Hi,
Thanks for the report. The problem was that the package was checking the
/usr/bin/gcc build number, and this doesn't exist when /usr/bin/gcc is
clang.
A version which should build for you on 10.8 (it worked for me on 10.9)
should be available shortly via selfupdate. It's the same version and
revision.
thank you for the quick fix.
However, now it is badly interacting with emacs24:
In gp-ask-name-wisely:
/sw/share/emacs24/site-lisp/pari/pari-help.el:534:31:Warning: `(\` (list
(let*
((word (gp-find-word-to-complete)) (arg (progn (define-key
minibuffer-local-completion-map " " (quote self-insert-command))
(completing-read (concat ((\, this-type)) (if (intern-soft word
gp-c-array) (concat " [Default " word "]")) ": ") gp-c-array))))
(define-key minibuffer-local-completion-map " " (quote
minibuffer-complete-word)) (if (equal arg "") (if (intern-soft word
gp-c-array) word " ") arg))))' is a malformed function
/sw/share/emacs24/site-lisp/pari/pari-help.el:561:1:Error: Invalid
function: (\` (list (let* ((word (gp-find-word-to-complete)) (arg (progn
(define-key minibuffer-local-completion-map " " (quote
self-insert-command)) (completing-read (concat ((\, this-type)) (if
(intern-soft word gp-c-array) (concat " [Default " word "]")) ": ")
gp-c-array)))) (define-key minibuffer-local-completion-map " " (quote
minibuffer-complete-word)) (if (equal arg "") (if (intern-soft word
gp-c-array) word " ") arg))))
Wrote /sw/share/emacs24/site-lisp/pari/pari-messages.elc
In sli-get-relevant-alist:
/sw/share/emacs24/site-lisp/pari/sli-tools.el:695:15:Warning: `mapcar'
called
for effect; use `mapc' or `dolist' instead
Wrote /sw/share/emacs24/site-lisp/pari/sli-tools.elc
emacs-package-install: /sw/lib/emacsen-common/packages/install/pari-gp
emacs24 emacs24 failed at /sw/lib/emacsen-common/emacs-package-install
line 30, <TSORT> line 2.
/sw/bin/dpkg: error processing pari-gp (--install):
yyyy
Given that a new version 2.7.1 is out, I tried to adapt the old files to
the new source. the patchfile hung so i removed two patches, see attached,
but now the process falis with:
yyyy
mkdir -p "/sw/src/fink.build/root-pari-gp-nox-2.7.1-1/sw/lib/pari"
../config/install -m 644 pari.cfg
"/sw/src/fink.build/root-pari-gp-nox-2.7.1-1/sw/lib/pari"
if test -n "../src/funclist"; then mkdir -p
"/sw/src/fink.build/root-pari-gp-nox-2.7.1-1/sw/share/pari"/PARI;
../config/install -m 644 ../src/desc/PARI/822.pm
"/sw/src/fink.build/root-pari-gp-nox-2.7.1-1/sw/share/pari"/PARI;
../config/install -m 644 ../src/desc/pari.desc
"/sw/src/fink.build/root-pari-gp-nox-2.7.1-1/sw/share/pari"; fi
if test -d ../data; then cd ../data; for d in `ls`; do mkdir
-p "/sw/src/fink.build/root-pari-gp-nox-2.7.1-1/sw/share/pari"/$d &&
for f in `ls $d`; do ../config/install -m 644 $d/$f
"/sw/src/fink.build/root-pari-gp-nox-2.7.1-1/sw/share/pari"/$d;
done >/dev/null; done; fi
make[1]: Leaving directory
`/sw/src/fink.build/pari-gp-nox-2.7.1-1/pari-2.7.1/Odarwin-i386'
mkdir -p /sw/src/fink.build/root-pari-gp-nox-2.7.1-1/sw/etc
install -m644 misc/gprc.dft
/sw/src/fink.build/root-pari-gp-nox-2.7.1-1/sw/etc/gprc
install -m644 misc/gpalias
/sw/src/fink.build/root-pari-gp-nox-2.7.1-1/sw/etc
if [ "-nox" != "-xemacs" ]; then
rm
/sw/src/fink.build/root-pari-gp-nox-2.7.1-1/sw/share/emacs/site-lisp/pari/*.elc
mkdir -p
/sw/src/fink.build/root-pari-gp-nox-2.7.1-1/sw/lib/emacsen-common/packages/install
mkdir -p
/sw/src/fink.build/root-pari-gp-nox-2.7.1-1/sw/lib/emacsen-common/packages/remove
install -m 755 emacsen-install
/sw/src/fink.build/root-pari-gp-nox-2.7.1-1/sw/lib/emacsen-common/packages/install/pari-gp-nox
install -m 755 emacsen-remove
/sw/src/fink.build/root-pari-gp-nox-2.7.1-1/sw/lib/emacsen-common/packages/remove/pari-gp-nox
fi
rm:
/sw/src/fink.build/root-pari-gp-nox-2.7.1-1/sw/share/emacs/site-lisp/pari/*.elc:
No such file or directory
### execution of /tmp/fink.PiS6p failed, exit code 1
### execution of /tmp/fink.hx6Or failed, exit code 1
yyyy
Package manager version: 0.37.0
Distribution version: selfupdate-rsync Mon Jul 7 11:19:37 2014, 10.9,
x86_64
Trees: local/main stable/main
Xcode.app: 5.1.1
Xcode command-line tools: 5.1.0.0.1.1396320587
Max. Fink build jobs: 2
does anyone see whats wrong?
best
sven
Info2: <<
Package: pari-gp%type_pkg[-nox]%type_pkg[-64bit]
Type: -nox (. -nox -xemacs), -64bit (boolean)
Version: 2.7.1
Revision: 1
Architecture: ( %type_raw[-64bit] = -64bit ) powerpc, ( %type_raw[-64bit] =
-64bit ) i386
Distribution: ( %type_raw[-64bit] = -64bit ) 10.5, ( %type_raw[-64bit] = -64bit
) 10.6
PatchFile: %{ni}.patch
PatchFile-MD5: 0923bbad4e03c4569678bc4c04919699
Depends: <<
readline6%type_pkg[-64bit]-shlibs,
libncurses5%type_pkg[-64bit]-shlibs (>= 5.4-20041023-1006),
gmp5%type_pkg[-64bit]-shlibs,
(%type_raw[-nox] != -xemacs) emacsen-common,
(%type_raw[-nox] != -nox) x11-shlibs,
( %type_raw[-64bit] = -64bit ) 64bit-cpu
<<
BuildDepends: <<
fink (>= 0.24.12-1),
tetex-base,
readline6%type_pkg[-64bit],
libncurses5%type_pkg[-64bit] (>= 5.4-20041023-1006),
gmp5%type_pkg[-64bit],
(%type_raw[-nox] = -xemacs) xemacs,
(%type_raw[-nox] != -nox) x11,
(%type_raw[-nox] != -nox) x11-dev
<<
Conflicts: pari-gp, pari-gp-nox, pari-gp-xemacs, pari-gp-64bit,
pari-gp-nox-64bit, pari-gp-xemacs-64bit
Replaces: pari-gp, pari-gp-nox, pari-gp-xemacs, pari-gp-64bit,
pari-gp-nox-64bit, pari-gp-xemacs-64bit
Source: http://pari.math.u-bordeaux.fr/pub/pari/unix/pari-%v.tar.gz
Source-MD5: cdf11f569140343449bda477bea19ddb
Source2: http://pari.math.u-bordeaux.fr/pub/pari/packages/galdata.tgz
Source2-MD5: 4b5203e36ddd9e1786cd761e78fdc4f0
Source2ExtractDir: pari-%v
Source3: http://pari.math.u-bordeaux.fr/pub/pari/packages/elldata.tgz
Source3-MD5: f7798ba3587c3d51432f4abf5c69c885
Source3ExtractDir: pari-%v
PatchScript: <<
sed 's|@FINK@|%p|g' < %{PatchFile} | patch -p1
<<
CompileScript: <<
#!/usr/bin/perl
if (open(GCC, '/usr/bin/gcc --version 2>/dev/null |')) {
my $version = <GCC>;
close(GCC);
if( ! defined $version ) {
die "Your gcc version is undefined.";
}
chomp($version);
unless ( $version =~ /clang/ ) {
# Any Xcode with clang as /usr/bin/gcc is new enough to build this.
my ($build) = $version =~ /build (\d+)/i;
if ($build < 5341) {
die "\nSorry, this package requires XCode 2.3 or later
to build. Please upgrade\nyour XCode and try again.\n\n";
}
}
} else {
die "Couldn't run '/usr/bin/gcc --version'.\n";
}
if ("%type_raw[-64bit]" eq "." ) {
if ( "%type_raw[-nox]" eq "-nox" ) {
system("./Configure --prefix=%p --libdir=%p/%lib --with-readline=%p
--with-readline-lib=%p/%lib --with-ncurses-lib=%p/%lib --with-gmp=%p
--with-gmp-lib=%p/%lib --graphic=none");
} else {
system("./Configure --prefix=%p --libdir=%p/%lib --with-readline=%p
--with-readline-lib=%p/%lib --with-ncurses-lib=%p/%lib --with-gmp=%p
--with-gmp-lib=%p/%lib");
}
} else {
if ( "%type_raw[-nox]" eq "-nox" ) {
system("export CC='gcc -m64'; ./Configure --prefix=%p --libdir=%p/%lib
--with-readline=%p --with-readline-lib=%p/%lib --with-ncurses-lib=%p/%lib
--with-gmp=%p --with-gmp-lib=%p/%lib --graphic=none");
} else {
system("export CC='gcc -m64'; ./Configure --prefix=%p --libdir=%p/%lib
--with-readline=%p --with-readline-lib=%p/%lib --with-ncurses-lib=%p/%lib
--with-gmp=%p --with-gmp-lib=%p/%lib");
}
}
system( "make all; make bench");
<<
InstallScript: <<
#!/bin/bash -ev
make install DESTDIR=%d
mkdir -p %i/etc
install -m644 misc/gprc.dft %i/etc/gprc
install -m644 misc/gpalias %i/etc
if [ "%type_raw[-nox]" != "-xemacs" ]; then
rm %i/share/emacs/site-lisp/pari/*.elc
mkdir -p %i/lib/emacsen-common/packages/install
mkdir -p %i/lib/emacsen-common/packages/remove
install -m 755 emacsen-install %i/lib/emacsen-common/packages/install/%n
install -m 755 emacsen-remove %i/lib/emacsen-common/packages/remove/%n
fi
<<
PostInstScript: <<
if [ "%type_raw[-nox]" != "-xemacs" ]; then
%p/lib/emacsen-common/emacs-package-install %n
fi
<<
PreRmScript: <<
if [ "%type_raw[-nox]" != "-xemacs" ]; then
%p/lib/emacsen-common/emacs-package-remove %n
fi
<<
DocFiles: AUTHORS Announce.2.1 CHANGES CHANGES-2.2 COMPAT COPYING MACHINES NEW
README
ConfFiles: %p/etc/gprc %p/etc/gpalias
License: GPL
Description: Number theory (calculator and C-library)
DescPort: <<
* Edited gp.c so that %p/etc/gprc is recognized in addition to /etc/gprc.
* No longer makes or installs the pdf doc files.
* Thanks to Matt Sachs for patches for gcc 4.0 compatibility (no longer
needed.)
* Someday we might want to build shared libs, in which case the following
line could be useful (but needs modification for 64bit):
perl -pi -e 's|darwin\) DLLD=;|darwin\) DLLD=gcc;|' config/get_dlld
<<
DescPackaging: <<
Depends on tetex during building, which is used to make the documentation.
Depends on emacsen-common for proper handling of pari.el file, except for
the -xemacs variant.
We need to make sure that this is compiled with XCode 2.3 or later, and
we could have used BuildDepends: gcc4.0 (>= 4.0.1-5341), but this would
have left users with no clue about the source of the problem and how to
fix it if their XCode was not up to date. Instead, we have cribbed some
code from VirtPackage.pm.
<<
Homepage: http://pari.math.u-bordeaux.fr/
Maintainer: Dave Morrison <d...@finkproject.org>
#end of Info2
<<
diff -ruN pari-2.1.4/emacsen-install pari-2.1.4-patched/emacsen-install
--- pari-2.1.4/emacsen-install Wed Dec 31 16:00:00 1969
+++ pari-2.1.4-patched/emacsen-install Sun Aug 4 15:01:19 2002
@@ -0,0 +1,33 @@
+#!/bin/sh
+# @FINK@/lib/emacsen-common/packages/install/pari-gp
+set -e
+
+FLAVOR=$1
+echo install/pari-gp: Handling install of emacsen flavor ${FLAVOR}
+
+byte_compile_options="-batch -f batch-byte-compile"
+el_files="pari.el pari-*.el sli-tools.el"
+el_dir=@FINK@/share/emacs/site-lisp/pari
+elc_dir=@FINK@/share/${FLAVOR}/site-lisp/pari
+el_path_list="${el_dir}/pari.el ${el_dir}/pari-*.el ${el_dir}/sli-tools.el"
+elc_path_list="${elc_dir}/pari.el ${elc_dir}/pari-*.el ${elc_dir}/sli-tools.el"
+
+if [ ${FLAVOR} != emacs ]
+then
+ echo install/pari-gp: byte-compiling for ${FLAVOR}
+
+ # Create the directory
+ mkdir -p ${elc_dir}
+
+ # Copy the temp .el files
+ cp ${el_path_list} ${elc_dir}
+
+ # Byte compile them
+ ${FLAVOR} ${byte_compile_options} ${elc_path_list}
+
+ # remove the redundant .el files
+ # presumes that any .el files in the <flavor> dir are trash.
+ rm ${elc_dir}/*.el
+fi
+exit 0;
+
diff -ruN pari-2.1.4/emacsen-remove pari-2.1.4-patched/emacsen-remove
--- pari-2.1.4/emacsen-remove Wed Dec 31 16:00:00 1969
+++ pari-2.1.4-patched/emacsen-remove Sun Aug 4 15:01:30 2002
@@ -0,0 +1,13 @@
+#!/bin/sh
+# @FINK@/lib/emacsen-common/packages/remove/pari-gp
+set -e
+
+FLAVOR=$1
+echo remove/pari-gp: Handling removal of emacsen flavor ${FLAVOR}
+
+if [ ${FLAVOR} != emacs ]
+then
+ echo emacsen-common: purging byte-compiled files for ${FLAVOR}
+ rm -f @FINK@/share/${FLAVOR}/site-lisp/pari/*.elc
+fi
+exit 0;
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users