From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0) Description of problem: The manual page for rpm says that I can use --relocate multiple times to relocate multiple paths. When I try I get the following two types of response [root@newns1 RPMS]# rpm -i --relocate=/usr/share=/u01/htdig/htdocs -- relocate=/var/lib=/var/db htdig-3.2.0-2.011302.i386.rpm path #@7I7 in package htdig-3.2.0-2.011302 is not relocateable path /var/lib in package htdig-3.2.0-2.011302 is not relocateable Note the corrupt path name in the first error message. When --badreloc is added I get the following [root@newns1 RPMS]# rpm -i --badreloc --relocate=/usr/share=/u01/htdig/htdocs -- relocate=/var/lib=/var/db htdig-3.2.0-2.011302.i386.rpm [root@newns1 RPMS]# rpm -ql htdig | egrep 'var|index.html' /usr/share/doc/htdig-3.2.0/cf_variables.html /usr/share/doc/htdig-3.2.0/confindex.html /usr/share/doc/htdig-3.2.0/index.html /usr/share/htdig/index.html /var/db/htdig Note that only the last --relocate has worked. If I reorder the --relocate options in the command line, it is still only ever the last --relocate that is used. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1.rpm -i --relocate=/usr/share=/u01/htdig/htdocs --relocate=/var/lib=/var/db htdig-3.2.0-2.011302.i386.rpm 2.rpm -i --badreloc --relocate=/usr/share=/u01/htdig/htdocs -- relocate=/var/lib=/var/db htdig-3.2.0-2.011302.i386.rpm 3.rpm -ql htdig | egrep 'var|index.html' Actual Results: path #@7I7 in package htdig-3.2.0-2.011302 is not relocateable path /var/lib in package htdig-3.2.0-2.011302 is not relocateable /usr/share/doc/htdig-3.2.0/cf_variables.html /usr/share/doc/htdig-3.2.0/confindex.html /usr/share/doc/htdig-3.2.0/index.html /usr/share/htdig/index.html /var/db/htdig Expected Results: path /usr/share in package htdig-3.2.0-2.011302 is not relocateable path /var/lib in package htdig-3.2.0-2.011302 is not relocateable /u01/htdig/htdocs/doc/htdig-3.2.0/cf_variables.html /u01/htdig/htdocs/doc/htdig-3.2.0/confindex.html /u01/htdig/htdocs/doc/htdig-3.2.0/index.html /u01/htdig/htdocs/htdig/index.html /var/db/htdig Additional info: [root@newns1 RPMS]# rpm -q rpm rpm-4.0.4-7x.18 Also occurred in rpm 4.0.3.
CLI arg passed to popt callback was free'd, yuk. Fixed in rpm-4.1-0.35.
*** Bug 62011 has been marked as a duplicate of this bug. ***