Requires(pre) support?

Vincent Danen vdanen at annvix.org
Fri Jul 7 15:00:42 PDT 2006


Does apt understand the Requires(pre) tag in rpm files?  I'm wondering
because it borked the installation order of an upgrade.  I have:

Requires(pre):  setup >= 2.5-5735avx

in a few spec files because that setup package provides some new groups
that are required by other packages.  apt-get dist-upgrade gets all the
required files, but setup is being installed after the files that
require it:


Committing changes...
Preparing...                ########################################### [100%]
   1:ldconfig               ########################################### [  3%]
   2:glibc                  warning: /etc/localtime created as /etc/localtime.rpmnew
########################################### [  6%]
   3:lib64sasl2             ########################################### [  9%]
   4:lib64db4.2             ########################################### [ 11%]
   5:lib64pam0              ########################################### [ 14%]
   6:lib64apr1              ########################################### [ 17%]
   7:lib64apr-util1         ########################################### [ 20%]
   8:lib64tcb0              warning: group chkpwd does not exist - using root)
warning: group shadow does not exist - using root
########################################### [ 23%]
   9:lib64python2.4         ########################################### [ 26%]
  10:python-base            ########################################### [ 29%]
  11:pam_tcb                ########################################### [ 31%]
  12:httpd-common           ########################################### [ 34%]
  13:httpd-modules          ########################################### [ 37%]
Restarting service 'httpd': done
  14:nss_tcb                ########################################### [ 40%]
  15:pam_passwdqc           ########################################### [ 43%]
  16:pam_userpass           ########################################### [ 46%]
  17:glibc-devel            ########################################### [ 49%]
  18:locales                ########################################### [ 51%]
  19:lib64db2               ########################################### [ 54%]
  20:locales-en             ########################################### [ 57%]
  21:httpd-mod_ssl          ########################################### [ 60%]
Restarting service 'httpd': done
  22:httpd                  ########################################### [ 63%]
Restarting service 'httpd': done
  23:python                 ########################################### [ 66%]
  24:pam                    warning: /etc/pam.d/system-auth created as /etc/pam.d/system-auth.rpmnew
########################################### [ 69%]
  25:mount                  ########################################### [ 71%]
  26:shadow-utils           warning: group shadow does not exist - using root
warning: group shadow does not exist - using root
warning: group shadow does not exist - using root
warning: group shadow does not exist - using root
warning: group shadow does not exist - using root
########################################### [ 74%]
  27:gnupg                  ########################################### [ 77%]
  28:losetup                ########################################### [ 80%]
  29:timezone               ########################################### [ 83%]
  30:setup                  warning: /etc/group created as /etc/group.rpmnew%)
warning: group shadow does not exist - using root)
########################################### [ 86%]
  31:tcb                    ########################################### [ 89%]
  32:passwd                 ########################################### [ 91%]
  33:util-linux             ########################################### [ 94%]
  34:dcron                  ########################################### [ 97%]
Restarting service 'crond': done
  35:exim                   ########################################### [100%]
......Restarting service 'exim': done
Done.


This isn't good at all, because a number of files require group shadow
in place, not root (same with chkpwd).  The only thing I can think of is
that setup itself requires shadow-utils, but since shadow-utils is
already installed, that dependency should be satisfied (it's not a
versioned requirement).

As it currently stands, I can't recommend using apt to upgrade an Annvix
system like I had wanted to (I was planning on making apt available for
the current release so that people could use it do the system upgrade),
but if it orders things incorrectly, no one will be able to login or use
the system when this is done due to the incorrect file ownerships.  =(

Any ideas here?  Is this a logic problem in apt?  FWIW, urpmi does the
right thing.

Thanks.

-- 
{FEE30AD4 : 7F6C A60C 06C2 4811 FA1C  A2BC 2EBC 5E32 FEE3 0AD4}
mysql> SELECT * FROM users WHERE clue > 0;
Empty set (0.00sec)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
URL: <http://lists.laiskiainen.org/pipermail/apt-rpm-laiskiainen.org/attachments/20060707/f3addcee/attachment-0002.pgp>


More information about the Apt-Rpm mailing list