Hi all,
after re-installing Fink under Tiger I've noticed the folder /share/
info at the root of my disk. Inside that folder there are the
following files:
Totila:~ andrea$ ls -al /share/info/
total 936
drwxr-xr-x 8 root admin 272 Sep 8 15:41 .
drwxr-xr-x 3 root admin 102 Sep 2 11:51 ..
-rw-r--r-- 1 root admin 3842 Sep 8 15:41 dir
-rw-r--r-- 1 root admin 3842 Sep 8 15:41 dir.old
-rw-r--r-- 1 root admin 5560 Sep 8 15:41 gmp.info
-rw-r--r-- 1 root admin 297417 Sep 8 15:41 gmp.info-1
-rw-r--r-- 1 root admin 96413 Sep 8 15:41 gmp.info-2
-rw-r--r-- 1 root admin 65346 Sep 8 15:41 mpfr.info
Looking at the building log of the gmp package I've noticed the
following lines:
Totila:~ andrea$ fink rebuild gmp-4.1.3-11 gmp-shlibs-4.1.3-11
Password:
Information about 4861 packages read in 3 seconds.
The following 2 packages will be rebuilt:
gmp gmp-shlibs
[snip]
params="--prefix=/sw --infodir='${prefix}/share/info' --enable-cxx
--enable-mpfr"
case "powerpc" in
i386) params="$params --host=none-apple-darwin" ;;
esac
eval ./configure $params
./configure --prefix=/sw --infodir='/share/info' --enable-cxx --
enable-mpfr
[snip]
/bin/sh ./mkinstalldirs /sw/src/fink.build/root-gmp-4.1.3-11/sw/
include
/usr/bin/install -c -m 644 gmpxx.h /sw/src/fink.build/root-
gmp-4.1.3-11/sw/include/gmpxx.h
/usr/bin/install -c -m 644 mpfrxx.h /sw/src/fink.build/root-
gmp-4.1.3-11/sw/include/mpfrxx.h
/bin/sh ./mkinstalldirs /share/info
/usr/bin/install -c -m 644 ./gmp.info /share/info/gmp.info
/usr/bin/install -c -m 644 ./gmp.info-1 /share/info/gmp.info-1
/usr/bin/install -c -m 644 ./gmp.info-2 /share/info/gmp.info-2
install-info --info-dir=/share/info /share/info/gmp.info
* gmp: (gmp). GNU Multiple Precision Arithmetic Library.
install-info(/share/info/gmp.info): replacing existing dir entry
for `gmp'
Please note that the ${prefix} shell variable is expanded in an empty
string resulting in an --infodir='/share/info', exactly where the
info files are installed. Looking at the .deb package confirm this:
Totila:~ andrea$ dpkg -c /sw/fink/dists/stable/main/binary-darwin-
powerpc/libs/gmp_4.1.3-11_darwin-powerpc.deb|less
drwxr-xr-x root/admin 0 2005-09-08 15:41:41 ./
drwxr-xr-x root/admin 0 2005-09-08 15:41:45 ./sw/
drwxr-xr-x root/admin 0 2005-09-08 15:41:44 ./sw/include/
-rw-r--r-- root/admin 80818 2005-09-08 15:41:44 ./sw/include/gmp.h
-rw-r--r-- root/admin 182735 2005-09-08 15:41:44 ./sw/include/
gmpxx.h
-rw-r--r-- root/admin 5217 2005-09-08 15:41:42 ./sw/include/
mpf2mpfr.h
-rw-r--r-- root/admin 14102 2005-09-08 15:41:42 ./sw/include/mpfr.h
-rw-r--r-- root/admin 29116 2005-09-08 15:41:44 ./sw/include/
mpfrxx.h
drwxr-xr-x root/admin 0 2005-09-08 15:41:45 ./sw/lib/
-rw-r--r-- root/admin 1038008 2005-09-08 15:41:45 ./sw/lib/libgmp.a
-rwxr-xr-x root/admin 708 2005-09-08 15:41:43 ./sw/lib/libgmp.la
-rw-r--r-- root/admin 638472 2005-09-08 15:41:45 ./sw/lib/libgmpxx.a
-rwxr-xr-x root/admin 855 2005-09-08 15:41:44 ./sw/lib/
libgmpxx.la
-rw-r--r-- root/admin 494728 2005-09-08 15:41:45 ./sw/lib/libmpfr.a
drwxr-xr-x root/admin 0 2005-09-08 15:41:45 ./sw/share/
drwxr-xr-x root/admin 0 2005-09-08 15:41:45 ./sw/share/doc/
drwxr-xr-x root/admin 0 2005-09-08 15:41:45 ./sw/share/doc/gmp/
-rw-r--r-- root/admin 18009 2004-04-22 19:02:55 ./sw/share/doc/
gmp/COPYING
-rw-r--r-- root/admin 26430 2004-04-22 19:02:55 ./sw/share/doc/
gmp/COPYING.LIB
-rw-r--r-- root/admin 4065 2001-10-09 01:23:52 ./sw/share/doc/
gmp/README
lrwxr-xr-x root/admin 0 2005-09-08 15:41:43 ./sw/lib/
libgmp.dylib -> libgmp.3.3.3.dylib
lrwxr-xr-x root/admin 0 2005-09-08 15:41:44 ./sw/lib/
libgmpxx.dylib -> libgmpxx.3.0.5.dylib
and the .info files are not listed. The problem can be fixed with the
following patch, that I've already tested in my local tree:
--- /sw/fink/dists/unstable/main/finkinfo/libs/gmp.info 2005-07-05
05:31:11.000000000 +0200
+++ /sw/fink/dists/local/main/finkinfo/libs/gmp.info 2005-09-08
19:23:58.000000000 +0200
@@ -1,13 +1,13 @@
Package: gmp
Version: 4.1.3
-Revision: 11
+Revision: 12
GCC: 3.3
Source: gnu
Source-MD5: bdbb9136fa22a0ccf028d0f87aae1dd2
Patch: %n.patch
Depends: gmp-shlibs (= %v-%r)
BuildDepends: fink (>= 0.9.9)
-ConfigureParams: --infodir='${prefix}/share/info' --enable-cxx --
enable-mpfr
+ConfigureParams: --infodir='%i/share/info' --enable-cxx --enable-mpfr
CompileScript: <<
#! /bin/sh -ev
# Due to assembler differences on darwin x86 with ELF based gnu
assemblers
As a last note, using grep I've noticed that a lot of .info files use
the ${prefix} variable. It should be worth checking if they behave
correctly or not. In the former case it should be interesting to
understand why only this install script fails.
HTH,
Andrea.
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users