SPECS (AC-branch): glibc.spec - workaround to be able upgrade

Andrzej Krzysztofowicz ankry at green.mif.pg.gda.pl
Mon Dec 20 10:28:41 CET 2004


Elan =?iso-8859-1?q?Ruusam=E4e?= wrote:
> On Saturday 18 December 2004 13:28, Andrzej Krzysztofowicz wrote:
> > Elan =?iso-8859-1?q?Ruusam=E4e?= wrote:
> > > On Friday 17 December 2004 18:19, Andrzej Krzysztofowicz wrote:
> > > > Elan =?iso-8859-2?q?Ruusam=E4e?= wrote:
> > > > > this is to resolve such issue:
> > > > >
> > > > > http://glen.alkohol.ee/pld/glibc-fc.txt
> > > >
> > > > But you get uninstalable glibc probably.
> > > > As /bin/sh is rather not available at glibc install.
> > >
> > > this is ran in %pre, not in %post, so everything is available :)
> >
> > Nothing is vailable if you install it on a clean disk.
> > Maybe except FHS...
> 
> the dependancy pulls ksh in, and it's even installed before glibc. but /bin/sh 
> is dynamic app and yes, %pre fails because of that.
> 
> Processing dependencies...
> glibc-2.3.4-0.20040722.9.5 marks pdksh-5.2.14-41 (cap /bin/sh)
>   pdksh-5.2.14-41 marks coreutils-5.2.1-2 (cap fileutils)
>     coreutils-5.2.1-2 marks acl-2.2.27-1 (cap acl)
>       acl-2.2.27-1 marks attr-2.4.19-1 (cap attr)
>     coreutils-5.2.1-2 marks pam-0.78.1-1 (cap libpam.so.0)
>       pam-0.78.1-1 marks mawk-1.3.3-30 (cap awk)
>       pam-0.78.1-1 marks cracklib-2.7-18 (cap cracklib)
>       pam-0.78.1-1 marks cracklib-dicts-2.7-18 (cap cracklib-dicts)
>       pam-0.78.1-1 marks db-4.2.52-6 (cap db) 
>       pam-0.78.1-1 marks make-3.80-5 (cap make)
>     coreutils-5.2.1-2 marks setup-2.4.6-8.2 (cap setup >= 2.4.6-2)
> glibc-2.3.4-0.20040722.9.5 marks basesystem-1.99-2 (cap basesystem)
>   basesystem-1.99-2 marks FHS-2.3-9 (cap FHS)
>   basesystem-1.99-2 marks dev-2.9.0-12 (cap dev)
> glibc-2.3.4-0.20040722.9.5 marks glibc-misc-2.3.4-0.20040722.9.5 (cap 
> glibc-misc = 6:2.3.4-0.20040722.9.5)
> There are 16 packages to install (15 marked by dependencies):
> I glibc-2.3.4-0.20040722.9.5
> D glibc-misc-2.3.4-0.20040722.9.5, setup-2.4.6-8.2, acl-2.2.27-1, 
> attr-2.4.19-1, coreutils-5.2.1-2, pam-0.78.1-1, FHS-2.3-9,
> D basesystem-1.99-2, cracklib-2.7-18, cracklib-dicts-2.7-18, db-4.2.52-6, 
> dev-2.9.0-12, make-3.80-5, mawk-1.3.3-30,
> D pdksh-5.2.14-41
> Need to download about 8MB of archives. After unpacking about 18MB will be 
> used.
> 
> looks like dead end, only way to solve it is dependancy of package containing 
> static binary. 

This is the reason the "base" packages (like glibc, FHS, setup, etc.) do not
contain %pre/%post shell scripts.
The only acceptable script may be a LUA script.
Or just a static binary program call.

And the only reason of my last split in bzip2 package was to break such a
loop.

> can package required in %pre uninstalled after package has been installed?
> 
> 
> > Am I wrong thinking that failing %pre means refusal of the package
> > installation?
> unfortunately or fortunately yes.

-- 
=======================================================================
  Andrzej M. Krzysztofowicz               ankry at mif.pg.gda.pl
  phone (48)(58) 347 14 61
Faculty of Applied Phys. & Math.,   Gdansk University of Technology




More information about the pld-devel-en mailing list