Interesting finding:
libparted.so.0.0.1 (from *.deb) != libparted.so.0.0.1 (from *.udeb)
I have do this:
apt-get source parted
cd parted-2.3/
dpkg-buildpackage -rfakeroot -uc -us
cd ..
mkdir install-bin
dpkg -x libparted0-udeb_2.3-3_i386.udeb install-bin/
dpkg -x parted-udeb_2.3-3_i386.udeb install-bin/
cd install-bin/
ls -l *
lib:
total 484
lrwxrwxrwx 1 jcdr jcdr 18 6 nov 21:46 libparted.so.0 ->
libparted.so.0.0.1
-rw-r--r-- 1 jcdr jcdr 489596 6 nov 21:37 libparted.so.0.0.1
sbin:
total 72
-rwxr-xr-x 1 jcdr jcdr 68012 6 nov 21:37 parted
Now test ./sbin/parted with the system library:
ldd ./sbin/parted
linux-gate.so.1 => (0xb77c0000)
libparted.so.0 => /lib/libparted.so.0 (0xb773d000)
libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb75f7000)
libuuid.so.1 => /lib/libuuid.so.1 (0xb75f2000)
libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb75ee000)
libdevmapper.so.1.02.1 => /lib/libdevmapper.so.1.02.1 (0xb75cc000)
libblkid.so.1 => /lib/libblkid.so.1 (0xb75b0000)
/lib/ld-linux.so.2 (0xb77c1000)
libselinux.so.1 => /lib/libselinux.so.1 (0xb7595000)
libudev.so.0 => /lib/libudev.so.0 (0xb7586000)
./sbin/parted /dev/sdb print
WARNING: You are not superuser. Watch out for permissions.
Model: disk2go PURE II (scsi)
Disk /dev/sdb: 5243kB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 5120B 5243kB 5238kB primary
It use the /lib/libparted.so.0 (with the root /) and work fine.
Now test ./sbin/parted with the installer library:
LD_LIBRARY_PATH=./lib/ ldd ./sbin/parted
linux-gate.so.1 => (0xb78b1000)
libparted.so.0 => ./lib/libparted.so.0 (0xb7831000)
libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb76da000)
libuuid.so.1 => /lib/libuuid.so.1 (0xb76d5000)
libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb76d1000)
libdevmapper.so.1.02.1 => /lib/libdevmapper.so.1.02.1 (0xb76af000)
libblkid.so.1 => /lib/libblkid.so.1 (0xb7693000)
/lib/ld-linux.so.2 (0xb78b2000)
libselinux.so.1 => /lib/libselinux.so.1 (0xb7678000)
libudev.so.0 => /lib/libudev.so.0 (0xb7669000)
LD_LIBRARY_PATH=./lib/ ./sbin/parted /dev/sdb print
WARNING: You are not superuser. Watch out for permissions.
You found a bug in GNU Parted! Here's what you have to do:
Don't panic! The bug has most likely not affected any of your data.
Help us to fix this bug by doing the following:
Check whether the bug has already been fixed by checking
the last version of GNU Parted that you can find at:
http://ftp.gnu.org/gnu/parted/
Please check this version prior to bug reporting.
If this has not been fixed yet or if you don't know how to check,
please visit the GNU Parted website:
http://www.gnu.org/software/parted
for further information.
Your report should contain the version of this release (2.3)
along with the error message below, the output of
parted DEVICE unit co print unit s print
and the following history of commands you entered.
Also include any additional information about your setup you
consider important.
Assertion (dev != NULL) at ../../libparted/cs/geom.c:78 in function
ped_geometry_new() failed.
Abandon
It use the ./lib/libparted.so.0 (the current directory lib instead of
the root /) and failed. I verified that it work this way with the others
partitions.
There is obviously something different between this two library, despite
the fact that there are compiled form the same source package:
ls -l /lib/libparted.so.0.0.1 lib/libparted.so.0.0.1
-rw-r--r-- 1 root root 432668 17 oct 12:18 /lib/libparted.so.0.0.1
-rw-r--r-- 1 jcdr jcdr 489596 6 nov 21:37 lib/libparted.so.0.0.1
file /lib/libparted.so.0.0.1 lib/libparted.so.0.0.1
/lib/libparted.so.0.0.1: ELF 32-bit LSB shared object, Intel 80386,
version 1 (SYSV), dynamically linked, stripped
lib/libparted.so.0.0.1: ELF 32-bit LSB shared object, Intel 80386,
version 1 (SYSV), dynamically linked, stripped
The installed library is about 56k less in size that the system library.
Is some code path not compiled for the installer version ?
Jean-Christian de Rivaz
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org