RPM Community Forums

Mailing List Message of <rpm-users>

RE: rpm-5.0.0: usage of --root or --prefix while installing an rpm package -- not working ?

From: Stefan Westmeier <stefan_westmeier@hotmail.de>
Date: Tue 15 Jan 2008 - 23:07:22 CET
Message-ID: <BAY115-W21DE4243BFF744B39FA2A598470@phx.gbl>

Hi,
 
the recipe worked. Thx !!
 
Unfortunately --root does not lead to the package being installed there. My error.
 
Using --prefix or --relocate does not work for me as well. rpm chrashes.
 
So actualy I was just trying to have a local rpmdb and install the packages into a users
work area.
 
This is what happenend. What did I do wrong?
 
Installing the same package with no relocation works perfectly.
 
Thx,
Stefan
 
----------------------------------------------------------------------------------
user@ubuntu-vmware:~/SWDev/rpmroot$ rpm -qpil most_if-1.0-1.i686.rpm Name        : most_if                      Relocations: /if/sys Version     : 1.0                               Vendor: SWMRelease     : 1                             Build Date: Do 10 Jan 2008 12:54:58 CETInstall Date: (not installed)            Build Host: ubuntu-vmwareGroup       : CoC_sys                       Source RPM: most_if-1.0-1.src.rpmSize        : 45                               License: SWMSignature   : (none)Packager    : stefan_westmeier@hotmail.deSummary     : Interface Package for MostDescription :Interface Package for Most/if/sys/if/sys/most/if/sys/most/if_1.huser@ubuntu-vmware:~/SWDev/rpmroot$ rpm -vv --dbpath /home/user/SWDev/rpmroot/rpmdb --relocate /if/sys=/home/user/SWDev/rpmroot/if/sys -ihv most_if-1.0-1.i686.rpm D: Expected size:         2166 = lead(96)+sigs(180)+pad(4)+data(1886)D:   Actual size:         2166D: most_if-1.0-1.i686.rpm: SHA1-PrĆ¼fsumme des Headers: OK (2d44dcc16a0f7b1953039f5cf6df814c30845fab)D: ========== relocationsD:     0 relocate /if/sys -> /home/user/SWDev/rpmroot/if/sysD: relocating /if/sys to /home/user/SWDev/rpmroot/if/sysD: relocating directory /if/sys/most/ to /home/user/SWDev/rpmroot/if/sys/most/D: relocating directory /if/sys/ to /home/user/SWDev/rpmroot/if/sys/*** glibc detected *** rpm: free(): invalid pointer: 0xbfe18620 ***======= Backtrace: =========/lib/tls/i686/cmov/libc.so.6[0xb7a2bd65]/lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb7a2f800]/opt/lib/librpm-5.0.so[0xb7f560f5]/opt/lib/librpm-5.0.so(rpmfiNew+0x101d)[0xb7f57ced]/opt/lib/librpm-5.0.so[0xb7f643d6]/opt/lib/librpm-5.0.so(rpmteNew+0xab)[0xb7f646db]/opt/lib/librpm-5.0.so(rpmtsAddInstallElement+0x25d)[0xb7f2c8cd]/opt/lib/librpm-5.0.so(rpmcliInstall+0x585)[0xb7f5bf75]rpm[0x804bd3b]/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0)[0xb79d8050]rpm[0x804a101]======= Memory map: ========08048000-0804e000 r-xp 00000000 08:01 71958      /opt/bin/rpm0804e000-0804f000 rw-p 00005000 08:01 71958      /opt/bin/rpm0804f000-08070000 rw-p 0804f000 00:00 0          [heap]b7600000-b7621000 rw-p b7600000 00:00 0 b7621000-b7700000 ---p b7621000 00:00 0 b7730000-b7731000 rw-p b7730000 00:00 0 b7751000-b7763000 r--p 00000000 08:01 71676      /opt/share/locale/de/LC_MESSAGES/rpm.mob7763000-b77a2000 r--p 00000000 08:01 785656     /usr/lib/locale/de_DE.utf8/LC_CTYPEb77a2000-b77a3000 r--p 00000000 08:01 785837     /usr/lib/locale/de_DE.utf8/LC_NUMERICb77a3000-b77a4000 r--p 00000000 08:01 785648     /usr/lib/locale/de_DE.utf8/LC_TIMEb77a4000-b7884000 r--p 00000000 08:01 785668     /usr/lib/locale/de_DE.utf8/LC_COLLATEb7884000-b7885000 r--p 00000000 08:01 786055     /usr/lib/locale/de_DE.utf8/LC_MONETARYb7885000-b7886000 r--p 00000000 08:01 785665     /usr/lib/locale/de_DE.utf8/LC_MESSAGES/SYS_LC_MESSAGESb7886000-b7887000 r--p 00000000 08:01 785970     /usr/lib/locale/de_DE.utf8/LC_PAPERb7887000-b7889000 rw-p b7887000 00:00 0 b7889000-b789d000 r-xp 00000000 08:01 721586     /usr/lib/libz.so.1.2.3.3b789d000-b789e000 rw-p 00013000 08:01 721586     /usr/lib/libz.so.1.2.3.3b789e000-b78a8000 r-xp 00000000 08:01 801315     /lib/libgcc_s.so.1b78a8000-b78a9000 rw-p 0000a000 08:01 801315     /lib/libgcc_s.so.1b78a9000-b78cc000 r-xp 00000000 08:01 834833     /lib/tls/i686/cmov/libm-2.6.1.sob78cc000-b78ce000 rw-p 00023000 08:01 834833     /lib/tls/i686/cmov/libm-2.6.1.sob78ce000-b79b6000 r-xp 00000000 08:01 721516     /usr/lib/libstdc++.so.6.0.9b79b6000-b79b9000 r--p 000e8000 08:01 721516     /usr/lib/libstdc++.so.6.0.9b79b9000-b79bb000 rw-p 000eb000 08:01 721516     /usr/lib/libstdc++.so.6.0.9b79bb000-b79c2000 rw-p b79bb000 00:00 0 b79c2000-b7b06000 r-xp 00000000 08:01 834829     /lib/tls/i686/cmov/libc-2.6.1.sob7b06000-b7b07000 r--p 00143000 08:01 834829     /lib/tls/i686/cmov/libc-2.6.1.sob7b07000-b7b09000 rw-p 00144000 08:01 834829     /lib/tls/i686/cmov/libc-2.6.1.sob7b09000-b7b0c000 rw-p b7b09000 00:00 0 b7b0c000-b7c37000 r-xp 00000000 08:01 789029     /usr/lib/i686/cmov/libcrypto.so.0.9.8b7c37000-b7c4c000 rw-p 0012a000 08:01 789029     /usr/lib/i686/cmov/libcrypto.so.0.9.8b7c4c000-b7c4f000 rw-p b7c4c000 00:00 0 b7c4f000-b7c8c000 r-xp 00000000 08:01 789030     /usr/lib/i686/cmov/libssl.so.0.9.8b7c8c000-b7c90000 rw-p 0003c000 08:01 789030     /usr/lib/i686/cmov/libssl.so.0.9.8b7c90000-b7c97000 r-xp 00000000 08:01 834845     /lib/tls/i686/cmov/librt-2.6.1.sob7c97000-b7c99000 rw-p 00006000 08:01 834845     /lib/tls/i686/cmov/librt-2.6.1.sob7c99000-b7cad000 r-xp 00000000 08:01 834843     /lib/tls/i686/cmov/libpthread-2.6.1.sob7cad000-b7caf000 rw-p 00013000 08:01 834843     /lib/tls/i686/cmov/libpthread-2.6.1.sob7caf000-b7cb2000 rw-p b7caf000 00:00 0 b7cb2000-b7cb4000 r-xp 00000000 08:01 834832     /lib/tls/i686/cmov/libdl-2.6.1.sob7cb4000-b7cb6000 rw-p 00001000 08:01 834832     /lib/tls/i686/cmov/libdl-2.6.1.sob7cAborted (core dumped)> From: n3npq@mac.com> Subject: Re: rpm-5.0.0: usage of --root or --prefix while installing an rpm package -- not working ?> Date: Tue, 15 Jan 2008 11:32:34 -0500> To: rpm-users@rpm5.org> > > On Jan 15, 2008, at 11:00 AM, Stefan Westmeier wrote:> > The root cause of your problem is this> Dirnames: /if/sys/most NEIND> package most_if-1.0-1.i686 has unsatisfied Dirnames: /if/sys/mostD> > The easiest "fix" is to add --noparentdirs to disable dependencies of> files on their parent directories when installing.> > One can also add the directory skeleton to a package> (distros usually do this in a "filesystem" package), or> for your chroot-in-homedir usage case, create the> list of directories in the file tree skeleton in (this> is the default path, can be changed through configuration)> /etc/rpm/sysinfo/Dirnames> > I'd also suggest (if working with --root) to configure> > # Open all indices before doing chroot(2).> #> %_openall_before_chroot 1> > in ~/.rpmmacros or wherever else is convenient.> > 73 de Jeff> ______________________________________________________________________> RPM Package Manager http://rpm5.org> User Communication List rpm-users@rpm5.org
Received on Tue Jan 15 23:07:25 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.