Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 2952

Summary: Error in balsa-1.3.5-r1.ebuild
Product: Gentoo Linux Reporter: José Fonseca <j_r_fonseca>
Component: [OLD] GNOMEAssignee: Seemant Kulleen (RETIRED) <seemant>
Status: RESOLVED FIXED    
Severity: major    
Priority: High    
Version: 1.1a   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description José Fonseca 2002-05-23 06:29:02 UTC
The balsa-1.3.5-r1 ebuild fails to patch the source because it tries to use the
balsa-1.3.5.patch instead of the balsa-1.3.5-r1.patch.

The solution is either to rename the diff or use ${PF} instead of ${P} in line 30:

    patch -p0 < ${FILESDIR}/${PF}.diff
Comment 1 José Fonseca 2002-05-23 07:08:43 UTC
The ebuild still has some problems. It seems that "make install" attempts to
write outside the sandbox:

/bin/sh ../mkinstalldirs /etc/sound/events
 /bin/install -c -m 644 ./balsa.soundlist /etc/sound/events/balsa.soundlist
ACCESS DENIED  unlink:    /etc/sound/events/balsa.soundlist
/bin/install: cannot remove `/etc/sound/events/balsa.soundlist': Permission denied
 /bin/install -c -m 644 ./email.soundlist /etc/sound/events/email.soundlist
ACCESS DENIED  unlink:    /etc/sound/events/email.soundlist
/bin/install: cannot remove `/etc/sound/events/email.soundlist': Permission denied
make[2]: *** [install-soundlistDATA] Error 1
make[2]: Leaving directory `/var/tmp/portage/balsa-1.3.5-r1/work/balsa-1.3.5/sounds'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/var/tmp/portage/balsa-1.3.5-r1/work/balsa-1.3.5/sounds'
make: *** [install-recursive] Error 1

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_install, Line 4, Exitcode 2
!!! make install failed

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-balsa-1.3.5-r1-22960.log"

unlink:    /etc/sound/events/balsa.soundlist
unlink:    /etc/sound/events/email.soundlist
--------------------------------------------------------------------------------
!!! emerge aborting on  /usr/portage/net-mail/balsa/balsa-1.3.5-r1.ebuild .
Comment 2 José Fonseca 2002-05-23 17:35:18 UTC
To eliminate the access violation it's necessary to add

  gnomeconfdir=${D}/etc

to the "make install" line, i.e., it should be

	make \
		prefix=${D}/usr \
		mandir=${D}/usr/share/man \
		gnomeconfdir=${D}/etc \
		gnomedatadir=${D}/usr/share install || die "make install failed"
Comment 3 Seemant Kulleen (RETIRED) gentoo-dev 2002-05-25 16:44:44 UTC
Thanks for catching and fixing this :)