First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 65670
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Heinrich Wendel (RETIRED) <lanius@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Olivier Castan <castan.o@free.fr>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 65670 depends on: Show dependency tree
Bug 65670 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-09-28 05:59 0000
The build process stops when running config.status to create Makefiles : sed
reports an incomplete command line.

Reproducible: Always
Steps to Reproduce:
emerge -uvD world
Actual Results:  
Calculating world dependencies ...done!
>>> emerge (1 of 3) dev-lang/swig-1.3.22 to /
>>> md5 src_uri ;-) swig-1.3.22.tar.gz
>>> Unpacking source...
>>> Unpacking swig-1.3.22.tar.gz to /home/portage/tmp/portage/swig-1.3.22/work
>>> Source unpacked.
~ppc
./configure --prefix=/usr --host=powerpc-unknown-linux-gnu
--mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share
--sysconfdir=/etc --localstatedir=/var/lib --with-py
--with-java=/opt/blackdown-jdk-1.3.1
--with-javaincl=/opt/blackdown-jdk-1.3.1/include --without-ruby --without-guile
--with-tcl --with-perl5=/usr/bin/perl --without-php
[...]
checking for chicken-config... no
checking for mcs... no
checking for cscc... no
configure: creating ./config.status
config.status: creating Makefile
sed: file ./confstatq2hf4G/subs-3.sed line 30: unterminated `s' command
sed: couldn't write 14 items to stdout: Broken pipe
sed: couldn't write 20 items to stdout: Broken pipe
config.status: creating swig.spec
sed: file ./confstatq2hf4G/subs-3.sed line 30: unterminated `s' command
[...]
config.status: creating preinst-swig
sed: file ./confstatq2hf4G/subs-3.sed line 30: unterminated `s' command
config.status: creating Source/Include/swigconfig.h
config.status: executing depfiles commands
tcltk
make: *** Pas de cibles. Arr

------- Comment #1 From Olivier Castan 2004-09-28 05:59:39 0000 -------
The build process stops when running config.status to create Makefiles : sed
reports an incomplete command line.

Reproducible: Always
Steps to Reproduce:
emerge -uvD world
Actual Results:  
Calculating world dependencies ...done!
>>> emerge (1 of 3) dev-lang/swig-1.3.22 to /
>>> md5 src_uri ;-) swig-1.3.22.tar.gz
>>> Unpacking source...
>>> Unpacking swig-1.3.22.tar.gz to /home/portage/tmp/portage/swig-1.3.22/work
>>> Source unpacked.
~ppc
./configure --prefix=/usr --host=powerpc-unknown-linux-gnu
--mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share
--sysconfdir=/etc --localstatedir=/var/lib --with-py
--with-java=/opt/blackdown-jdk-1.3.1
--with-javaincl=/opt/blackdown-jdk-1.3.1/include --without-ruby --without-guile
--with-tcl --with-perl5=/usr/bin/perl --without-php
[...]
checking for chicken-config... no
checking for mcs... no
checking for cscc... no
configure: creating ./config.status
config.status: creating Makefile
sed: file ./confstatq2hf4G/subs-3.sed line 30: unterminated `s' command
sed: couldn't write 14 items to stdout: Broken pipe
sed: couldn't write 20 items to stdout: Broken pipe
config.status: creating swig.spec
sed: file ./confstatq2hf4G/subs-3.sed line 30: unterminated `s' command
[...]
config.status: creating preinst-swig
sed: file ./confstatq2hf4G/subs-3.sed line 30: unterminated `s' command
config.status: creating Source/Include/swigconfig.h
config.status: executing depfiles commands
tcltk
make: *** Pas de cibles. ArrĂȘt.

!!! ERROR: dev-lang/swig-1.3.22 failed.
!!! Function src_compile, Line 59, Exitcode 2


Expected Results:  
Successful build

Running "./config.status -d" creates a sed command file which is broken for the
substitution of the autoconf var @JAVAINC@
Looking at configure this var is created when looking for jni.h and jni_md.h.
The command to identify jni_md.h turns to be `find
/opt/blackdown-jdk-1.3.1/include -follow -name jni_md.h -print` which gives 2
answers on my system the include file and a symlink :
/opt/blackdown-jdk-1.3.1/include/linux/jni_md.h
/opt/blackdown-jdk-1.3.1/include/jni_md.h
But the configure script expect a one line answer and this is why it creates a
sed command with a newline inserted in the middle which makes the build process
fail.
A good turnaround is to only look for regular files using `find
/opt/blackdown-jdk-1.3.1/include -follow -name jni_md.h -xtype f -print`

Here is the diff for the ebuild :
--- swig-1.3.22.ebuild.old      2004-09-28 14:25:34.395662296 +0200
+++ swig-1.3.22.ebuild  2004-09-28 14:28:56.384955256 +0200
@@ -28,6 +28,7 @@
        unpack ${A}
        cd ${S}
        sed -i 's:$(M4_INSTALL_DIR):$(DESTDIR)$(M4_INSTALL_DIR):g' Makefile.in
+       sed -i 's:-name jni_md.h -print:-xtype f -name jni_md.h -print:g'
configure
 }

 src_compile() {





# emerge info
Portage 2.0.51_rc6 (default-ppc-2004.3, gcc-3.4.1, glibc-2.3.4.20040808-r0,
2.6.8-gentoo-r4 ppc)
=================================================================
System uname: 2.6.8-gentoo-r4 ppc 7455, altivec supported
Gentoo Base System version 1.5.3
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.3-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec"
CHOST="powerpc-unknown-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config
/usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec"
DISTDIR="/home/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks"
GENTOO_MIRRORS="http://gentoo.mirror.sdv.fr http://128.213.5.34/gentoo/
http://gentoo.inode.at/ http://ds.thn.htu.se/linux/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/home/portage/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.fr.gentoo.org/gentoo-portage"
USE="X X509 aac aalib alsa altivec arts async berkdb bonobo cdparanoia cdr
chroot crypt dga dillo directfb divx4linux dts dv dvd dvdr dvdread edl encode
esd exif faac faad fbcon ffmpeg flac flash gd gdbm ggi gif gimpprint gnome
gnome-libs gphoto2 gpm graphviz gs gstreamer gtk gtk2 gtkhtml imagemagick imlib
java javascript jp2 jpeg lcms libcaca live lzo lzw lzw-tiff mad matroska mime
mng motif mozilla moznocompose moznoirc moznomail mozsvg mp3 mpeg mpeg4 mplayer
ncurses network nls nptl ntlm odbc offensive oggvorbis opengl pam pdflib perl
pg-hier physfs png ppc ppds pthreads python quicktime radeon readline rtc sdl
session slang smime spell ssl stencil-buffer svg tcltk tcpd tga theora tiff
truetype usb v4l v4l2 wmf xface xine xmms xosd xpm xv xvid xvmc yv12 zlib
video_cards_radeon"

------- Comment #2 From Heinrich Wendel (RETIRED) 2004-09-29 05:00:34 0000 -------
thx, applied

First Last Prev Next    No search results available      Search page      Enter new bug