From: "Антон Мидюков" <midyukov-anton@ya.ru> To: devel-distro@lists.altlinux.org Subject: Re: [devel-distro] apt-get autoremove в конце установки Date: Tue, 10 Sep 2019 04:00:24 +0700 Message-ID: <65348faa-234a-cdce-85eb-166f37f9f66c@ya.ru> (raw) In-Reply-To: <2e71a5b0-9c2d-3e1f-a106-fd5894a66de8@gmail.com> [-- Attachment #1: Type: text/plain, Size: 1844 bytes --] 06.09.2019 19:40, Leonid Krivoshein пишет: > > 06.09.2019 15:28, Anton V. Boyarshinov пишет: >> On Fri, 6 Sep 2019 11:20:19 +0300 Anton V. Boyarshinov wrote: >> >>> Я подготовил сборку пакета installer, которая после удаления >>> installer-* >>> выполняет apt-get autoremove. >>> >>> #237190 TESTED #1 [test-only] sisyphus installer.git=1.9.1-alt1 >> В этом виде оно, определённо, не попадёт в репозитории, так как >> обнаружилась следующая коллизия (пример): >> >> 1) Пакет alterator—users устанавливается при установке .base, так как он >> требуется installer-distro и, соответственно, отмечается как auto >> >> 2) При установке дополнительных пакетов этот пакет уже установлен, >> поэтому он не устанавливается и остаётся в статусе auto >> >> 3) apt-get autoremove его выносит. >> >> Таким образом, моих изменений мало, видимо, надо делать apt-mark всем >> пакетам, явно устанавливаемым при установке дополнительных пакетов... > Помнится, мы это обсуждали с legion@ и кем-то ещё (кажется это был > manowar@), только не помню где... > > И ещё: у нас во всех образах ставится apt? Даже в JeOS? > Чтобы apt-get autoremove не удалил базовые пакеты, предлагаю такой патч для m-p. -- С уважением, Антон Мидюков <antohami@altlinux.org> [-- Attachment #2: 0001-lib-distro.mk-add-base-packages-to-distro-.base.patch --] [-- Type: text/x-patch, Size: 1039 bytes --] >From 7bf550ae4e1208ed7d75d28c0adfb0204f349c61 Mon Sep 17 00:00:00 2001 From: Anton Midyukov <antohami@altlinux.org> Date: Tue, 10 Sep 2019 03:42:53 +0700 Subject: [PATCH] lib/distro.mk: add base packages to distro/.base Basic packages that should not be removed with apt-get autoremove. See-also: https://lists.altlinux.org/pipermail/devel-distro/2019-September/001749.html --- lib/distro.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/distro.mk b/lib/distro.mk index ef8ae19f3..ad11c0c11 100644 --- a/lib/distro.mk +++ b/lib/distro.mk @@ -20,6 +20,9 @@ distro/.boot: distro/.init boot/iso # the kernel packages regexp evaluation has to take place at build stage distro/.base: distro/.boot use/kernel @$(call set,META_SYSTEM_ID,LINUX) + @$(call add,BASE_PACKAGES,interactivesystem shadow-utils e2fsprogs) + @$(call add,BASE_PACKAGES,apt) + @$(call add,BASE_PACKAGES,su) # this one should not be fundamental as it appears (think armh) distro/.installer: distro/.base use/bootloader/grub +installer; @: -- 2.21.0
next prev parent reply other threads:[~2019-09-09 21:00 UTC|newest] Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-09-06 8:20 Anton V. Boyarshinov 2019-09-06 8:27 ` Anton Farygin 2019-09-06 8:31 ` Anton V. Boyarshinov 2019-09-06 12:28 ` Anton V. Boyarshinov 2019-09-06 12:40 ` Leonid Krivoshein 2019-09-09 4:41 ` Anton Farygin 2019-09-09 11:04 ` Anton V. Boyarshinov 2019-09-09 21:00 ` Антон Мидюков [this message] 2019-09-10 10:16 ` Leonid Krivoshein 2019-09-10 11:03 ` Антон Мидюков 2019-09-10 10:23 ` Leonid Krivoshein 2019-09-10 11:08 ` Антон Мидюков 2019-09-06 13:43 ` Anton V. Boyarshinov 2019-09-09 9:27 ` Maxim Vetsalo 2019-09-09 9:55 ` Leonid Krivoshein 2019-09-11 8:20 ` Anton V. Boyarshinov 2019-09-11 9:28 ` Anton Farygin 2019-09-11 10:48 ` Anton V. Boyarshinov 2019-09-10 7:38 ` Sergey V Turchin 2019-09-11 10:32 ` Anton V. Boyarshinov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=65348faa-234a-cdce-85eb-166f37f9f66c@ya.ru \ --to=midyukov-anton@ya.ru \ --cc=devel-distro@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Distributions development This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel-distro/0 devel-distro/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 devel-distro devel-distro/ http://lore.altlinux.org/devel-distro \ devel-distro@lists.altlinux.org devel-distro@lists.altlinux.ru devel-distro@lists.altlinux.com public-inbox-index devel-distro Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel-distro AGPL code for this site: git clone https://public-inbox.org/public-inbox.git