Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 136858 - emerge lprng-3.8.28 fails
Summary: emerge lprng-3.8.28 fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-15 00:39 UTC by Fredrik Tuomas
Modified: 2006-07-18 10:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for lprng Makefile.in (lprng-3.8.28-make.diff,364 bytes, patch)
2006-06-27 00:45 UTC, Thomas Pfaff
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fredrik Tuomas 2006-06-15 00:39:41 UTC
Trying to emerge lprng-3.8.28

Expected result: correctly installed lprng

Actual result: emerge failing with this:

...
config.status: creating po/Makefile
config.status: executing default commands
if [ "UTILS" = po ] ; then \
            for i in po/Makefile* ; do \
                if [ -f "$i" ] ; then \
                    if grep '^mkinstalldirs.*=.*case' $i ; then \
                        echo "fixing broken $i which causes wrong path to mkinstalldirs to be used"; \
                        perl -spi -e 's:^mkinstalldirs\s*=\s*.*:mkinstalldirs = \$(SHELL) \$(MKINSTALLDIRS):' $i; \
                    fi \
                fi \
            done \
        fi
/bin/sh: -c: line 1: syntax error: unexpected end of file
/bin/sh: line 1:     for i in po/Makefile* ; do \: Filen eller katalogen finns inte
/bin/sh: line 2:        if [ -f "$i" ] ; then \: command not found
/bin/sh: line 3:            if grep '^mkinstalldirs.*=.*case' $i ; then \: command not found
/bin/sh: line 4:                echo "fixing broken $i which causes wrong path to mkinstalldirs to be used"; \: command not found
/bin/sh: line 5:                perl -spi -e 's:^mkinstalldirs\s*=\s*.*:mkinstalldirs = \$(SHELL) \$(MKINSTALLDIRS):' $i; \: command not found
/bin/sh: line 6:            fi \: command not found
/bin/sh: line 7:        fi \: command not found
/bin/sh: line 8:     done \: command not found
/bin/sh: -c: line 9: syntax error near unexpected token `fi'
/bin/sh: -c: line 9: `fi'
make: *** [UTILS] Fel 2

!!! ERROR: net-print/lprng-3.8.28 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  lprng-3.8.28.ebuild, line 57:   Called die

!!! printer on fire!
!!! If you need support, post the topmost build error, and the call stack if relevant.


After som Goooogling I found this: http://lists.debian.org/debian-printing/2006/03/msg00021.html


emerge --info
Portage 2.1 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.4-r3, 2.6.16-gentoo-r7-tuomaz i686)
=================================================================
System uname: 2.6.16-gentoo-r7-tuomaz i686 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
Gentoo Base System version 1.12.0
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -msse2 -msse3 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon64 -O2 -pipe -msse2 -msse3 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ds.thn.htu.se/linux/gentoo"
LANG="sv_SE.utf8"
LC_ALL="sv_SE.utf8"
LINGUAS="sv en"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 aac acpi alsa apm avahi avi beagle bitmap-fonts bzip2 cairo cdr cli crypt dbus dri dvb dvd dvdr dvi eds emboss encode esd evdev evolution exif firefox flac foomaticdb fortran gdbm gif glitz gnome gpm gstreamer gtk gtk2 hal howl-compat httpd imlib isdnlog jpeg ldap libg++ libwww live mad mdnsresponder-compat mikmod mmx mmxext mono motif mp3 mpeg mysql nautilus ncurses nls nptl nptlonly ogg opengl pam pcre pdf pdflib perl png pppd python quicktime readline real reflection rtc samba sdl session spell spl sse sse2 sse3 ssl stream tcpd theora truetype truetype-fonts type1-fonts udev unicode vorbis widescreen win32codecs x264 xml xorg xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux linguas_sv linguas_en userland_GNU video_cards_nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Stefan Schweizer (RETIRED) gentoo-dev 2006-06-26 04:01:48 UTC
a fix would speed this up. Obviously no one is really interested in this one from gentoo. Are you interested in fixing this?

We may as well remove the package otherwise - because it is broken
Comment 2 Thomas Pfaff 2006-06-26 05:02:16 UTC
Seems to be a problem with the latest make version.
On my machine it builds with make-3.80-r4, but fails with 3.81.

Calling shell script commands from a Makefile seems to have changed.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-06-26 08:42:35 UTC

*** This bug has been marked as a duplicate of 132637 ***
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-06-26 08:45:22 UTC
/me smacks bugzilla, don't jump on next open bug!
Comment 5 Thomas Pfaff 2006-06-26 09:03:35 UTC
This bug has nothing to do with gcc-4.1.1 but with make-3.81.
Frederik has emerged with gcc-3.4.5.
Comment 6 Thomas Pfaff 2006-06-27 00:45:26 UTC
Created attachment 90252 [details, diff]
patch for lprng Makefile.in

This patch fixes Makefile.in for make >= 3.81.
should work with make < 3.81 too.
Comment 7 Stefan Schweizer (RETIRED) gentoo-dev 2006-07-18 10:09:09 UTC
thanks, committed