Bug 11095

Summary: RPM does not put suggests tags in rpms anymore
Product: Mageia Reporter: Damien Lallement <mageia>
Component: RPM PackagesAssignee: Thierry Vignaud <thierry.vignaud>
Status: RESOLVED FIXED QA Contact:
Severity: critical    
Priority: release_blocker CC: ennael1, guillomovitch, jani.valimaa, lmenut, sysadmin-bugs, tmb
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: rpm-4.11.1-2.mga4.src.rpm CVE:
Status comment:

Description Damien Lallement 2013-08-28 14:07:19 CEST
I noticed that suggests doesn't seem to be installed with latest rpm.

[dams@maximus inxi]$ cat SPECS/inxi.spec 
Name:		inxi
Version:	1.9.14
Release:	%mkrel 1
[...]
Requires:	glxinfo
Suggests:	lm_sensors
Suggests:	hddtemp
Suggests:	usbutils
Suggests:	xrandr

When trying to install it, suggests are not installed:

[root@maximus dams]# urpmi --debug inxi
getting lock on urpmi
parsing: /etc/urpmi/mediacfg.d/Devel-3-x86_64
examen de la liste de synthèse [/var/lib/urpmi/Core Release/synthesis.hdlist.cz]
examen de la liste de synthèse [/var/lib/urpmi/Core Updates/synthesis.hdlist.cz]
examen de la liste de synthèse [/var/lib/urpmi/Nonfree Release/synthesis.hdlist.cz]
examen de la liste de synthèse [/var/lib/urpmi/Nonfree Updates/synthesis.hdlist.cz]
examen de la liste de synthèse [/var/lib/urpmi/Tainted Release/synthesis.hdlist.cz]
examen de la liste de synthèse [/var/lib/urpmi/Tainted Updates/synthesis.hdlist.cz]
examen de la liste de synthèse [/var/lib/urpmi/Core 32bit Release/synthesis.hdlist.cz]
examen de la liste de synthèse [/var/lib/urpmi/Core 32bit Updates/synthesis.hdlist.cz]
getting exclusive lock on rpm
search_packages: found inxi-1.9.14-1.mga4.noarch matching inxi
search_packages: found inxi-1.9.14-1.mga4.noarch matching inxi
found package(s): inxi-1.9.14-1.mga4.noarch inxi-1.9.14-1.mga4.noarch
opening rpmdb (root=, write=)
chosen inxi-1.9.14-1.mga4.noarch for inxi|inxi
selecting inxi-1.9.14-1.mga4.noarch
inxi is not in potential orphans
opening rpmdb (root=, write=)
getting graph of dependencies for sorting
sorting graph of dependencies
rpms sorted by dependencies:
inxi
selecting inxi-1.9.14-1.mga4.noarch
transaction valid: remove= update=inxi
scheduled sets of transactions:
remove=0= update=1=inxi


récupération des fichiers rpm à partir de « Core Release »...
récupération de   inxi-1.9.14-1.mga4.noarch.rpm
    rsync://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/cauldron/x86_64/media/core/release/inxi-1.9.14-1.mga4.noarch.rpm
/usr/bin/rsync --progress -v --timeout=60 --contimeout=60 --partial --no-whole-file --no-motd --copy-links 'rsync://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/cauldron/x86_64/media/core/release/inxi-1.9.14-1.mga4.noarch.rpm' '/var/cache/urpmi/partial' 2>&1
inxi-1.9.14-1.mga4.noarch.rpm

        100% terminé, débit = 118.78kB/s                                                                                                           

sent 44 bytes  received 103054 bytes  68732.00 bytes/sec

total size is 102535  speedup is 0.99

  inxi-1.9.14-1.mga4.noarch.rpm récupéré                                                                                                             
... récupération effectuée
verifying signature of /var/cache/urpmi/rpms/inxi-1.9.14-1.mga4.noarch.rpm
installation de inxi-1.9.14-1.mga4.noarch.rpm depuis /var/cache/urpmi/rpms
starting installing packages
opening rpmdb (root=, write=1)
transaction créée pour l'installation sur / (remove=0, install=0, upgrade=1)
trans: scheduling update of inxi-1.9.14-1.mga4.noarch (id=21394, file=/var/cache/urpmi/rpms/inxi-1.9.14-1.mga4.noarch.rpm)
Préparation...                   ###################################################################################################################
      1/1: inxi                  ###################################################################################################################
suppression des paquetages installés (inxi-1.9.14-1.mga4.noarch.rpm) de /var/cache/urpmi/rpms
unlocking urpmi database
unlocking rpm database
EXITING (pid=5361)
[root@maximus dams]# 

Even if using --allow-suggests:

[root@maximus ~]# urpmi --debug --allow-suggests inxi
getting lock on urpmi
parsing: /etc/urpmi/mediacfg.d/Devel-3-x86_64
examen de la liste de synthèse [/var/lib/urpmi/Core Release/synthesis.hdlist.cz]
examen de la liste de synthèse [/var/lib/urpmi/Core Updates/synthesis.hdlist.cz]
examen de la liste de synthèse [/var/lib/urpmi/Nonfree Release/synthesis.hdlist.cz]
examen de la liste de synthèse [/var/lib/urpmi/Nonfree Updates/synthesis.hdlist.cz]
examen de la liste de synthèse [/var/lib/urpmi/Tainted Release/synthesis.hdlist.cz]
examen de la liste de synthèse [/var/lib/urpmi/Tainted Updates/synthesis.hdlist.cz]
examen de la liste de synthèse [/var/lib/urpmi/Core 32bit Release/synthesis.hdlist.cz]
examen de la liste de synthèse [/var/lib/urpmi/Core 32bit Updates/synthesis.hdlist.cz]
getting exclusive lock on rpm
search_packages: found inxi-1.9.14-1.mga4.noarch matching inxi
search_packages: found inxi-1.9.14-1.mga4.noarch matching inxi
found package(s): inxi-1.9.14-1.mga4.noarch inxi-1.9.14-1.mga4.noarch
opening rpmdb (root=, write=)
chosen inxi-1.9.14-1.mga4.noarch for inxi|inxi
selecting inxi-1.9.14-1.mga4.noarch
inxi is not in potential orphans
opening rpmdb (root=, write=)
getting graph of dependencies for sorting
sorting graph of dependencies
rpms sorted by dependencies:
inxi
selecting inxi-1.9.14-1.mga4.noarch
transaction valid: remove= update=inxi
scheduled sets of transactions:
remove=0= update=1=inxi


récupération des fichiers rpm à partir de « Core Release »...
récupération de   inxi-1.9.14-1.mga4.noarch.rpm
    rsync://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/cauldron/x86_64/media/core/release/inxi-1.9.14-1.mga4.noarch.rpm
/usr/bin/rsync --progress -v --timeout=60 --contimeout=60 --partial --no-whole-file --no-motd --copy-links 'rsync://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/cauldron/x86_64/media/core/release/inxi-1.9.14-1.mga4.noarch.rpm' '/var/cache/urpmi/partial' 2>&1
inxi-1.9.14-1.mga4.noarch.rpm

        100% terminé, débit = 1.88MB/s                                                                                                             

sent 44 bytes  received 103054 bytes  206196.00 bytes/sec

total size is 102535  speedup is 0.99

  inxi-1.9.14-1.mga4.noarch.rpm récupéré                                                                                                             
... récupération effectuée
verifying signature of /var/cache/urpmi/rpms/inxi-1.9.14-1.mga4.noarch.rpm
installation de inxi-1.9.14-1.mga4.noarch.rpm depuis /var/cache/urpmi/rpms
starting installing packages
opening rpmdb (root=, write=1)
transaction créée pour l'installation sur / (remove=0, install=0, upgrade=1)
trans: scheduling update of inxi-1.9.14-1.mga4.noarch (id=21394, file=/var/cache/urpmi/rpms/inxi-1.9.14-1.mga4.noarch.rpm)
Préparation...                   ###################################################################################################################
      1/1: inxi                  ###################################################################################################################
suppression des paquetages installés (inxi-1.9.14-1.mga4.noarch.rpm) de /var/cache/urpmi/rpms
unlocking urpmi database
unlocking rpm database
EXITING (pid=5375)
[root@maximus ~]#

Reproducible: 

Steps to Reproduce:
Comment 1 Jani Välimaa 2013-08-28 19:38:47 CEST
Actually this isn't happenig because rpm won't install suggests anymore, but because rpmbuild doesn't add any suggests to pkgs anymore.

CC: (none) => jani.valimaa

Comment 2 Jani Välimaa 2013-08-28 19:45:41 CEST
Build task-xfce locally to test this. One in mirrors still has suggests, but locally build one doesn't have any.

[wally@samsung-chroot task-xfce]$ urpmq --suggests task-xfce-minimal
--suggests now displays the suggested packages, see --allow-suggests for previous behaviour
lightdm
canberra-gtk
drakconf
task-pulseaudio
xfce4-power-manager
[wally@samsung-chroot task-xfce]$ urpmq --suggests ./RPMS/noarch/task-xfce-minimal-4.10-3.1.mag4.noarch.rpm 
--suggests now displays the suggested packages, see --allow-suggests for previous behaviour
[wally@samsung-chroot task-xfce]$
Manuel Hiebel 2013-08-28 23:22:39 CEST

CC: (none) => ennael1, sysadmin-bugs, tmb
Severity: major => critical

Luc Menut 2013-09-07 23:41:18 CEST

Priority: Normal => release_blocker
CC: (none) => lmenut

Guillaume Rousse 2013-09-10 10:32:32 CEST

CC: (none) => guillomovitch

Comment 3 Thierry Vignaud 2013-09-28 15:44:24 CEST
rpm-4.11.0 wasn't supposed to be pushed so early in core/release.
I put it in core/udpates_testing but kamil uploaded it for some useless spec "cleaning"
Comment 4 Thierry Vignaud 2013-09-28 21:16:18 CEST
Fixed by using the official Suse patch

Status: NEW => RESOLVED
Resolution: (none) => FIXED
Summary: RPM does not install suggests anymore => RPM does not put suggests tags in rpms anymore