[XForms] rpms are not quite right
Angus Leeming
angus.leeming at btopenworld.com
Thu May 6 09:46:41 EDT 2004
Jean-Marc, all,
Executive summary: how do we get rpm to install the symbolic links
libforms.so and libforms.so.1 that are to point at libforms.so.1.0.0?
Is this a libtool issue?
Detailed description of what I've done.
I've built the xforms rpms (as non-root) by
1. creating a file .rpmmacros:
$ cat ~/.rpmmacros
%_topdir /home/angus/rpm
2. generating the necessary subdirectories of ~/rpm
$ mkdir ~/rpm
$ cd ~/rpm
$ mkdir -p RPMS/i386 RPMS/noarch SRPMS SOURCES BUILD SPECS
Thereafter I can build the rpms as non-root with
$ cd ~/xforms/cvs/build
$ make rpmdist
The rpms are generated as expected:
$ cd ~/rpm/RPMS/i386/
$ ls
xforms-1.0.90-1rh8x.i386.rpm
xforms-devel-1.0.90-1rh8x.i386.rpm
xforms-debuginfo-1.0.90-1rh8x.i386.rpm
Two questions:
a. Any idea what this last one is???
b. The names are incorrect. I'm building on a fedora core 1 machine so
that 'rh8x' is incorrect. Is there a way to specify this portably in
the xforms.spec.in file or must it be hard coded?
Thereafter, as root, I install in /usr/local:
# rpm -Uvh --prefix /usr/local xforms-1.0.90-1rh8x.i386.rpm
Preparing... ############################# [100%]
1:xforms ############################# [100%]
# rpm -Uvh --prefix /usr/local xforms-devel-1.0.90-1rh8x.i386.rpm
Preparing... ############################# [100%]
1:xforms-devel ########################### [100%]
Everything appears to be OK:
# ls -l /usr/local/bin/f*
-rwxr-xr-x 1 root root 81916 May 6 14:33 /usr/local/bin/fd2ps
-rwxr-xr-x 1 root root 221920 May 6 14:33 /usr/local/bin/fdesign
# ls -l /usr/local/include
total 160
-rw-r--r-- 1 root root 24582 May 6 14:33 flimage.h
-rw-r--r-- 1 root root 123575 May 6 14:33 forms.h
-rw-r--r-- 1 root root 1129 May 6 14:33 glcanvas.h
# ls -l /usr/local/lib
total 1540
-rw-r--r-- 1 root root 254026 May 6 14:33 libflimage.a
-rwxr-xr-x 1 root root 729 May 6 14:33 libflimage.la
-rwxr-xr-x 1 root root 190856 May 6 14:33 libflimage.so.1.0.0
-rw-r--r-- 1 root root 637862 May 6 14:33 libforms.a
-rw-r--r-- 1 root root 4692 May 6 14:33 libformsGL.a
-rwxr-xr-x 1 root root 729 May 6 14:33 libformsGL.la
-rwxr-xr-x 1 root root 7204 May 6 14:33 libformsGL.so.1.0.0
-rwxr-xr-x 1 root root 715 May 6 14:33 libforms.la
-rwxr-xr-x 1 root root 435300 May 6 14:33 libforms.so.1.0.0
However, note that there are no libforms.so, libforms.so.1, etc
symbolic links. Just the libforms.so.1.0.0
There absence means that fdesign and fd2ps are not executable:
# ldd /usr/local/bin/fdesign
libforms.so.1 => not found
libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x00cc2000)
libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x00e1f000)
libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x00c43000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x00437000)
libc.so.6 => /lib/tls/libc.so.6 (0x005c1000)
libm.so.6 => /lib/tls/libm.so.6 (0x00799000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x00a48000)
libdl.so.2 => /lib/libdl.so.2 (0x0082a000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00325000)
How to rectify the situation?
Angus
More information about the Xforms
mailing list