cschwan / sage-on-gentoo

(Unofficial) Gentoo Overlay for Sage- and Sage-related ebuilds
84 stars 26 forks source link

bashism in sci-mathematics/pari-2.8_pre20151001 #401

Closed Alessandro-Barbieri closed 8 years ago

Alessandro-Barbieri commented 8 years ago

When using dash as /bin/sh emerge fails with:

./Configure: 21: ./get_fltk: Syntax error: Unterminated quoted string

with bash works as normal

 cat /var/tmp/portage/sci-mathematics/pari-2.8_pre20151001/temp/build.log
 * Package:    sci-mathematics/pari-2.8_pre20151001
 * Repository: sage-on-gentoo
 * Maintainer: francois.bissey@canterbury.ac.nz
 * USE:        X abi_x86_32 data doc elibc_glibc fltk gmp kernel_linux userland_GNU x86
 * FEATURES:   fakeroot installsources preserve-libs sandbox splitdebug userpriv usersandbox
>>>  -sandbox(setup)
>>>  +sandbox(unpack)
>>> Unpacking source...
>>> Unpacking pari-2.8-1813-g6157df4.tar.gz to /var/tmp/portage/sci-mathematics/pari-2.8_pre20151001/work
>>> Source unpacked in /var/tmp/portage/sci-mathematics/pari-2.8_pre20151001/work
>>> Preparing source in /var/tmp/portage/sci-mathematics/pari-2.8_pre20151001/work/pari-2.8-1813-g6157df4 ...
 * Applying pari-2.3.2-strip.patch ...
 [ ok ]
 * Applying pari-2.3.2-ppc-powerpc-arch-fix.patch ...
 [ ok ]
 * Applying pari-2.7.0-doc-make.patch ...
 [ ok ]
 * Applying pari-2.8_pre20150611-no-automagic.patch ...
 [ ok ]
 * Applying pari-9999-public_memory_functions.patch ...
 [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sci-mathematics/pari-2.8_pre20151001/work/pari-2.8-1813-g6157df4 ...
true
Configuring pari-2.8.0 (DEVELOPMENT VERSION) [ development git-6157df4 ]
Checking echo to see how to suppress newlines...
...using -n.
Looking for some tools first ...
...gzip is /bin/gzip
...cc is /usr/bin/cc
...gcc is /usr/bin/gcc
...ld is /usr/bin/ld
GNU compatible compiler: gcc version 4.9.3 (Gentoo 4.9.3 p1.5, pie-0.6.4)
Using mt engine single
Given the previous choices, sizeof(long) is 4 chars.
The internal word representation of a double is l[1], l[0].
==========================================================================
Building for: i686 running linux (ix86/GMP kernel) 32-bit version
==========================================================================
C compiler is          gcc -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer  -Os -march=native -mtune=native -mfpmath=both -fweb -fomit-frame-pointer -fipa-pta -fisolate-erroneous-paths-attribute -fsched-stalled-insns-dep -fsched-pressure -fsched-spec-load -fsched-spec-load-dangerous -fsched-stalled-insns  -fPIC
Executable linker is   gcc  -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer  -Os -march=native -mtune=native -mfpmath=both -fweb -fomit-frame-pointer -fipa-pta -fisolate-erroneous-paths-attribute -fsched-stalled-insns-dep -fsched-pressure -fsched-spec-load -fsched-spec-load-dangerous -fsched-stalled-insns  -Wl,--export-dynamic -Os -march=native -mtune=native -mfpmath=both -fweb -fomit-frame-pointer -fipa-pta -fisolate-erroneous-paths-attribute -fsched-stalled-insns-dep -fsched-pressure -fsched-spec-load -fsched-spec-load-dangerous -fsched-stalled-insns
Dynamic Lib linker is  gcc  -shared  $(LDFLAGS) $(CFLAGS) $(DLCFLAGS) -Wl,-shared,-soname=$(LIBPARI_SONAME)
Looking in C lib for some symbols...
...Found exp2.
...Found log2.
...Found strftime.
...Found getrusage.
...Found gettimeofday.
...Found sigaction.
...Found TIOCGWINSZ.
...Found getrlimit.
...Found stat.
...Found vsnprintf.
...Found mmap.
...Found waitpid.
...Found setsid.
...Found getenv.
...Found isatty.
...Found alarm.
...Found system.
...I did not find dlopen.
Try again, with -ldl this time...
...Found dlopen.
Checking for optional libraries and headers...
Using GNU MP, version 6.0.0
./Configure: 21: ./get_fltk: Syntax error: Unterminated quoted string
 * ERROR: sci-mathematics/pari-2.8_pre20151001::sage-on-gentoo failed (configure phase):
 *   ./Configure failed
 *
 * Call stack:
 *     ebuild.sh, line 133:  Called src_configure
 *   environment, line 2351:  Called die
 * The specific snippet of code:
 *       ./Configure --prefix="${EPREFIX}"/usr --datadir="${EPREFIX}"/usr/share/${PN} --libdir="${EPREFIX}"/usr/$(get_libdir) --sysdatadir="${EPREFIX}"/usr/share/doc/${PF} --mandir="${EPREFIX}"/usr/share/man/man1 --with-readline="${EPREFIX}"/usr --with-ncurses-lib="${EPREFIX}"/usr/$(get_libdir) $(use_with fltk) $(use_with gmp) $(use_with qt4 qt) || die "./Configure failed"
 *
 * If you need support, post the output of `emerge --info '=sci-mathematics/pari-2.8_pre20151001::sage-on-gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sci-mathematics/pari-2.8_pre20151001::sage-on-gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sci-mathematics/pari-2.8_pre20151001/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-mathematics/pari-2.8_pre20151001/temp/environment'.
 * Working directory: '/var/tmp/portage/sci-mathematics/pari-2.8_pre20151001/work/pari-2.8-1813-g6157df4'
 * S: '/var/tmp/portage/sci-mathematics/pari-2.8_pre20151001/work/pari-2.8-1813-g6157df4'
kiwifb commented 8 years ago

Out of curiosity, do you know if it also happens with version of pari from the main tree?

kiwifb commented 8 years ago

Had a syntax error in a patch. That should sort things.

Alessandro-Barbieri commented 8 years ago

Now works.