Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#557322: --exclude='ing essential packages

58 views
Skip to first unread message

Ivan Shmakov

unread,
Nov 21, 2009, 7:00:03 AM11/21/09
to
Package: debootstrap
Version: 1.0.10lenny1
Severity: minor

debootstrap(8) reads:

--cut--
--exclude=alpha,beta
Comma separated list of packages which will be removed from
download and extract lists. WARNING: you can and probably will
exclude essential packages, be careful using this option.
--cut--

However, it seems that it doesn't allow, say, initscripts &
co. to be excluded:

# debootstrap --verbose --variant=minbase \
--exclude=initscripts,sysv{-rc,init{,-utils}},login,mount \
--include=bind9-host,bzip2,gawk,less,psmisc,tree,zip \
--keep-debootstrap-dir \
--print-debs \
lenny \
/tmp/$(date +%s)/ \
file:/com/waterlily.public/debian/
I: Retrieving Release
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Found additional base dependencies: debian-archive-keyring gnupg gpgv libbind9-40 libbz2-1.0 libcap2 libdns45 libisc45 libisccc40 libisccfg40 libkeyutils1 libkrb53 liblwres40 libreadline5 libssl0.9.8 libusb-0.1-4 libxml2 readline-common
base-files base-passwd bash bsdutils coreutils debconf debconf-i18n debianutils diff dpkg e2fslibs e2fsprogs findutils gcc-4.2-base gcc-4.3-base grep gzip hostname initscripts libacl1 libattr1 libblkid1 libc6 libcomerr2 libdb4.6 libdevmapper1.02.1 libgcc1 liblocale-gettext-perl libncurses5 libpam-modules libpam-runtime libpam0g libselinux1 libsepol1 libslang2 libss2 libstdc++6 libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl libuuid1 login lsb-base lzma makedev mawk mktemp mount ncurses-base ncurses-bin passwd perl-base procps sed sysv-rc sysvinit sysvinit-utils tar tzdata util-linux zlib1g apt bind9-host bzip2 debian-archive-keyring gawk gnupg gpgv less libbind9-40 libbz2-1.0 libcap2 libdns45 libisc45 libisccc40 libisccfg40 libkeyutils1 libkrb53 liblwres40 libreadline5 libssl0.9.8 libusb-0.1-4 libxml2 psmisc readline-common tree zip
#

--
FSF associate member #7257

--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Otavio Salvador

unread,
Nov 21, 2009, 5:30:02 PM11/21/09
to
retitle 557322 Improve manpage to explain that --exclude doesn't
affects dependency resolution
thanks

On Sat, Nov 21, 2009 at 9:43 AM, Ivan Shmakov <iv...@main.uusia.org> wrote:
> --cut--
>       --exclude=alpha,beta
>              Comma separated list of packages  which  will  be  removed  from
>              download  and extract lists.  WARNING: you can and probably will
>              exclude essential packages, be careful using this option.
> --cut--
>
>        However, it seems that it doesn't allow, say, initscripts &
>        co. to be excluded:

To you exclude a package you also need to exclude all one that depends
on it otherwise it will be added back into the installation list by
the dependency resolution code.

I'm changing the title of the bug to improve this part of the manpage
since it ought to be cited there to avoid confusion.

--
Otavio Salvador O.S. Systems
E-mail: ota...@ossystems.com.br http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br

Ivan Shmakov

unread,
Nov 22, 2009, 1:50:01 AM11/22/09
to
>>>>> "OS" == Otavio Salvador <ota...@ossystems.com.br> writes:

OS> retitle 557322 Improve manpage to explain that --exclude doesn't
OS> affects dependency resolution thanks

[...]

IS> However, it seems that it doesn't allow, say, initscripts & co. to
IS> be excluded:

>> # debootstrap --verbose --variant=minbase \
>> --exclude=initscripts,sysv{-rc,init{,-utils}},login,mount \
>> --include=bind9-host,bzip2,gawk,less,psmisc,tree,zip \
>> --keep-debootstrap-dir \
>> --print-debs \
>> lenny \
>> /tmp/$(date +%s)/ \
>> file:/com/waterlily.public/debian/
>> I: Retrieving Release
>> I: Retrieving Packages
>> I: Validating Packages
>> I: Resolving dependencies of required packages...
>> I: Resolving dependencies of base packages...
>> I: Found additional base dependencies: debian-archive-keyring gnupg gpgv libbind9-40 libbz2-1.0 libcap2 libdns45 libisc45 libisccc40 libisccfg40 libkeyutils1 libkrb53 liblwres40 libreadline5 libssl0.9.8 libusb-0.1-4 libxml2 readline-common

[...]

OS> To you exclude a package you also need to exclude all one that
OS> depends on it otherwise it will be added back into the installation
OS> list by the dependency resolution code.

Is it really the whole problem? What other package(s) I should
--exclude= as well considering the case above?

OS> I'm changing the title of the bug to improve this part of the
OS> manpage since it ought to be cited there to avoid confusion.

Please note that:

* the ``Found additional base dependencies:'' line doesn't
report any of the `--exclude='d packages among those brought
by the dependencies;

* chroot(8)ing into the system and `apt-get remove'ing the very
same set of packages:

# apt-get remove initscripts sysv{-rc,init{,-utils}} login mount

doesn't remove any package out of this set; (though it
complains on essentiality, of course.)

TIA.

--
FSF associate member #7257

--

Otavio Salvador

unread,
Nov 22, 2009, 5:00:02 PM11/22/09
to
Hello Ivan,

On Sun, Nov 22, 2009 at 4:00 AM, Ivan Shmakov <iv...@main.uusia.org> wrote:
>  OS> To you exclude a package you also need to exclude all one that
>  OS> depends on it otherwise it will be added back into the installation
>  OS> list by the dependency resolution code.
>
>        Is it really the whole problem?  What other package(s) I should
>        --exclude= as well considering the case above?

It is added when debootstrap adds the required packages.

I've prepared a patch to allow it to be removed on the required list
however it is added back in dependency resolution code. I didn't play
with it to check the package that depends on that and will leave it to
you.

deboostrap.diff

Goswin von Brederlow

unread,
Nov 23, 2009, 2:50:01 AM11/23/09
to
Otavio Salvador <ota...@ossystems.com.br> writes:

> Hello Ivan,
>
> On Sun, Nov 22, 2009 at 4:00 AM, Ivan Shmakov <iv...@main.uusia.org> wrote:
>>  OS> To you exclude a package you also need to exclude all one that
>>  OS> depends on it otherwise it will be added back into the installation
>>  OS> list by the dependency resolution code.
>>
>>        Is it really the whole problem?  What other package(s) I should
>>        --exclude= as well considering the case above?
>
> It is added when debootstrap adds the required packages.
>
> I've prepared a patch to allow it to be removed on the required list
> however it is added back in dependency resolution code. I didn't play
> with it to check the package that depends on that and will leave it to
> you.

Please also consider the case of virtual packages. E.g. --exclude
exim4 should not add exim4 back in due to dependencies on
mail-transport-agent. Instead some other MTA should be used, idealy
one added with --include.

MfG
Goswin

Otavio Salvador

unread,
Nov 23, 2009, 6:20:02 AM11/23/09
to
Hello,

On Mon, Nov 23, 2009 at 5:27 AM, Goswin von Brederlow <goswi...@web.de> wrote:
> Please also consider the case of virtual packages. E.g. --exclude
> exim4 should not add exim4 back in due to dependencies on
> mail-transport-agent. Instead some other MTA should be used, idealy
> one added with --include.

If you wish to drop exim4 you can do it but will also need to drop any
package depending on it otherwise it will be added back.

--
Otavio Salvador O.S. Systems
E-mail: ota...@ossystems.com.br http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br

--

Goswin von Brederlow

unread,
Nov 23, 2009, 10:40:01 AM11/23/09
to
Otavio Salvador <ota...@ossystems.com.br> writes:

> Hello,
>
> On Mon, Nov 23, 2009 at 5:27 AM, Goswin von Brederlow <goswi...@web.de> wrote:
>> Please also consider the case of virtual packages. E.g. --exclude
>> exim4 should not add exim4 back in due to dependencies on
>> mail-transport-agent. Instead some other MTA should be used, idealy
>> one added with --include.
>
> If you wish to drop exim4 you can do it but will also need to drop any
> package depending on it otherwise it will be added back.

Please reread what I said. It should not add exim4 back in just
because something depends on mail-transport-agent. Exim4 is also just
an example for a virtual package.

MfG
Goswin

Hideki Yamane

unread,
Jun 3, 2018, 4:40:03 AM6/3/18
to
control: tags -1 +pending

Hi,

Now --exlucde works properly and it is not added again (and maybe
break dependency).


--
Hideki Yamane

Mayveline Bote

unread,
Nov 28, 2019, 6:10:03 AM11/28/19
to
Hello Dear,
My name is Mayveline P. Bote, Please I will like to discuss a very important issue that will be of a benefit to you so please if you are interested, I will like you to respond to me in urgently,
Please do respond to me very urgently so that we can discuss the issue in private. then nobody can read our mails or know what we are discussing.
Thanks and I wait to hear from you urgently
Best regards
Mayveline


DISCLAIMER:

The message and its attachments are for designated recipient(s) only and may contain privileged, proprietary and private information. If you have received it in error, kindly delete it and notify the sender immediately.
Mrs. Mayveline P. Bote, accepts no liability for any loss or damage resulting directly and indirectly from the transmission of this e-mail message.
0 new messages