Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 17344 - app-editors/ted-2.12 ebuild failed to compile (FIX INCLUDED ;-))
Summary: app-editors/ted-2.12 ebuild failed to compile (FIX INCLUDED ;-))
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Martin Holzer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-11 23:53 UTC by Daniel Black (RETIRED)
Modified: 2003-03-12 13:14 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Black (RETIRED) gentoo-dev 2003-03-11 23:53:17 UTC
Following the standard emerge steps for "ted" (attached) failed to compile. 
 
The error lays in the fact that the current directory when the "ebuild ..." 
command is executed is: 
/var/tmp/portage/ted-2.12/work/Ted-2.12/libreg which doesn't contain the target 
`package.shared'. 
 
SOLUTION: 
 
bash-2.05b# diff ted-2.12.ebuild ted-2.12-r1.ebuild 
35a36,37 
> 
>       cd ${S} 
 
Which changes back to the dir /var/tmp/portage/ted-2.12/work/Ted-2.12 before 
compiling. 
 
OTHER surperfluous info: 
 
bash-2.05b# more files/digest-ted-2.12-r1 
MD5 4587e3218dd8aa1b1bae8a97b3b9eef6 ted-2.12.src.tar.gz 2560159 
 
Complete new ebuild (equal to difference descripted above) 
 
bash-2.05b# cat ted-2.12-r1.ebuild 
# Copyright 1999-2003 Gentoo Technologies, Inc. 
# Distributed under the terms of the GNU General Public License v2 
# $Header: /home/cvsroot/gentoo-x86/app-editors/ted/ted-2.12.ebuild,v 1.3 
2003/02/28 23:11:40 vapier Exp $ 
 
DESCRIPTION="X-based rich text editor." 
HOMEPAGE="http://www.nllgg.nl/Ted" 
SRC_URI="ftp://ftp.nluug.nl/pub/editors/ted/${P}.src.tar.gz" 
 
LICENSE="GPL-2" 
SLOT="0" 
KEYWORDS="x86 ppc sparc" 
 
DEPEND=">=x11-libs/openmotif-2.1.30 
        >=media-libs/tiff-3.5.7 
        >=media-libs/jpeg-6b 
        >=media-libs/libpng-1.2.3 
        >=media-libs/xpm-3.4k" 
 
S="${WORKDIR}/Ted-${PV}" 
 
src_unpack() { 
        unpack ${A} 
        cd ${S}/Ted 
        mv makefile.in makefile.in.orig 
        sed 's@^CFLAGS=@CFLAGS= 
-DDOCUMENT_DIR=\\"/usr/share/doc/${PF}/Ted/\\"@' makefile.in.orig > 
makefile.in 
} 
 
src_compile() { 
        for dir in Ted tedPackage appFrame appUtil ind bitmap libreg; do 
                cd ${S}/${dir} 
                econf --cache-file=../config.cache 
        done 
 
        # The makefile doesn't really allow parallel make, but it does 
        # no harm either. 
 
        cd ${S} 
        emake DEF_AFMDIR=-DAFMDIR=\\\"/usr/share/Ted/afm\\\" \ 
                DEF_INDDIR=-DINDDIR=\\\"/usr/share/Ted/ind\\\" \ 
                package.shared || die "couldnt emake" 
} 
 
src_install() { 
        cd ${BUILDDIR} 
 
        mkdir ${T}/pkg 
        cd ${T}/pkg || die "Couldn't cd to package" 
        tar --use=gzip -xvf ${S}/tedPackage/Ted*.tar.gz || die "couldnt unpack 
tedPackage/Ted*.tar.gz" 
 
        cd ${BUILDDIR} 
 
        dodir /usr/share/Ted 
        cp -R ${T}/pkg/afm ${D}/usr/share/Ted/afm || die "couldnt cp 
temp/pkg/afm" 
        cp -R ${T}/pkg/ind ${D}/usr/share/Ted/ind || die "couldnt cp temp/pkg/ind" 
 
        exeinto /usr/bin 
        doexe ${T}/pkg/bin/* || die "couldnt doexe temp/pkg/bin/*" 
 
        dodir /usr/share/doc/${P} 
        cp -R ${T}/pkg/Ted ${D}/usr/share/doc/${P} || die "couldnt cp 
temp/pkg/Ted" 
 
        rm -rf ${T} 
} 
 

Reproducible: Always
Steps to Reproduce:
1.emerge /usr/portage/app-editors/ted/ted-2.12.ebuild 
2. 
3. 
Actual Results:  
bash-2.05b# emerge /usr/portage/app-editors/ted/ted-2.12.ebuild 
Calculating dependencies ...done! 
>>> emerge (1 of 1) app-editors/ted-2.12 to / 
>>> md5 ;-) ted-2.12.src.tar.gz 
>>> Unpacking source... 
>>> Unpacking ted-2.12.src.tar.gz to /var/tmp/portage/ted-2.12/work 
>>> Source unpacked. 
<snip> 
checking for working const... (cached) yes 
checking whether byte ordering is bigendian... (cached) no 
checking for socket... (cached) yes 
checking for strerror... (cached) yes 
checking for uname... (cached) yes 
updating cache ../config.cache 
creating ./config.status 
creating makefile 
creating libregConfig.h 
libregConfig.h is unchanged 
make: *** No rule to make target `package.shared'.  Stop. 
 
!!! ERROR: app-editors/ted-2.12 failed. 
!!! Function src_compile, Line 38, Exitcode 2 
!!! couldnt emake 

Expected Results:  
Started compiling and finished installing. (Which it does when the 
ted-2.12-r1.ebuild (sumitted) is used) 

bash-2.05b# emerge /usr/portage/app-editors/ted/ted-2.12.ebuild info 
Portage 2.0.47-r8 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r2) 
================================================================= 
System uname: 2.4.20-gentoo-r1-d1 i686 Pentium III (Coppermine) 
GENTOO_MIRRORS="http://public.www.planetmirror.com/pub/gentoo 
ftp://ftp.ibiblio.org/pub/linux/distributions/gentoo http://gentoo.oregonstate.edu 
http://ftp.gentoo.or.kr/ http://gentoo.gnukorea.org/ 
http://distro.ibiblio.org/gentoo " 
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config 
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config 
/usr/share/config" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
PORTDIR="/usr/portage" 
DISTDIR="/usr/portage/distfiles" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR_OVERLAY="" 
USE="x86 oss 3dnow apm avi crypt cups encode gif gpm jpeg libg++ mikmod mmx 
mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml 
gdbm berkdb slang readline arts tetex svga java guile X sdl tcpd pam libwww ssl 
python esd imlib oggvorbis gtk qt motif opengl snmp acpi alsa bonobo cdr ethereal 
flash gd gphoto2 gtk2 ipv6 junit ldap libgda mbox mozilla perl pic kde gnome samba 
scanner slp socks5 sse tcltk tiff usb" 
COMPILER="gcc3" 
CHOST="i686-pc-linux-gnu" 
CFLAGS="-march=pentium3 -O3" 
CXXFLAGS="-march=pentium3 -O3" 
ACCEPT_KEYWORDS="x86" 
MAKEOPTS="-j2" 
AUTOCLEAN="yes" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
FEATURES="sandbox ccache"
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-03-12 13:14:17 UTC
fixed in cvs