Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 38204 - bootsplash-0.6-r3.ebuild fails due to two errors in the ebuild script
Summary: bootsplash-0.6-r3.ebuild fails due to two errors in the ebuild script
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Michal Januszewski (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-14 12:55 UTC by Rich Smith
Modified: 2004-01-19 08:40 UTC (History)
3 users (show)

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


Attachments
Patch for bootsplash-0.6-r3.ebuild to fix two errors in the ebuild (bootsplash.patch,575 bytes, patch)
2004-01-14 12:58 UTC, Rich Smith
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rich Smith 2004-01-14 12:55:41 UTC
bootsplash-0.6-r3.ebuild fails with the following error:

Calculating dependencies ...done!
>>> emerge (1 of 1) media-gfx/bootsplash-0.6-r3 to /
/usr/sbin/ebuild.sh: /usr/portage/media-gfx/bootsplash/bootsplash-0.6-r3.ebuild: line 123: syntax error: unexpected end of file

!!! ERROR: media-gfx/bootsplash-0.6-r3 failed.
!!! Function , Line 1238, Exitcode 1
!!! error sourcing ebuild

This is due to a missing terminating '}' character at the end of the ebuild.
Once replaced the ebuild fails again, this time with:

>>> md5 src_uri ;-) bootsplash-0.6-r3.tar.bz2
>>> Unpacking source...
>>> Unpacking bootsplash-0.6-r3.tar.bz2 to /var/tmp/portage/bootsplash-0.6-r3/work
>>> Source unpacked.
/usr/sbin/ebuild.sh: line 24: cd: /var/tmp/portage/bootsplash-0.6-r3/work/bootsplash-0.6-r3/utils/fbmtils/fbmngplay: No such file or directory
make: *** No rule to make target `fbmngplay'.  Stop.

!!! ERROR: media-gfx/bootsplash-0.6-r3 failed.
!!! Function src_compile, Line 25, Exitcode 2
!!! (no error message)

This error is due to the ebuild trying to access the fbmngplay component from utils/fbmtils/fbmngplay rather than the correct location which is utils/fbmngplay. Once this is corrected the ebuild builds correctly.

Reproducible: Always
Steps to Reproduce:
1.emerge bootsplash-0.6-r3
2.
3.

Actual Results:  
bootsplash-0.6-r3.ebuild fails with the following error:

Calculating dependencies ...done!
>>> emerge (1 of 1) media-gfx/bootsplash-0.6-r3 to /
/usr/sbin/ebuild.sh: /usr/portage/media-gfx/bootsplash/bootsplash-0.6-r3.ebuild:
line 123: syntax error: unexpected end of file

!!! ERROR: media-gfx/bootsplash-0.6-r3 failed.
!!! Function , Line 1238, Exitcode 1
!!! error sourcing ebuild


The following patch fixes the two errors in the ebuild:

--- ./bootsplash-0.6-r3.ebuild  2004-01-14 20:43:17.000000000 +0000
+++ ./bootsplash-0.6-r4.ebuild  2004-01-14 20:43:58.000000000 +0000
@@ -21,7 +21,7 @@
        # compile utils
        # the util builds but the rc scripts have not been modified
        # animated boot up require patches to the baselayout package
-       cd ${S}/utils/fbmtils/fbmngplay
+       cd ${S}/utils/fbmngplay
        emake fbmngplay || die

        cd ${S}/utils/fbtruetype
@@ -119,4 +119,4 @@
        einfo "framebuffer boot screens"
        einfo
        einfo "Ensure you make the appropriate changes to your grub.conf"
-
\ No newline at end of file
+}
Comment 1 Rich Smith 2004-01-14 12:58:07 UTC
Created attachment 23808 [details, diff]
Patch for bootsplash-0.6-r3.ebuild to fix two errors in the ebuild
Comment 2 Jon Portnoy (RETIRED) gentoo-dev 2004-01-16 16:07:52 UTC
TaD is on hiatus -- do we have anyone who can pick up bootsplash bugs?

This is a dep of genkernel 3.x, so it's fairly important that someone who knows something about bootsplash pick this up soonish.
Comment 3 Michal Januszewski (RETIRED) gentoo-dev 2004-01-16 16:27:40 UTC
I'll work on it first thing tomorrow. I think I can take care of the other bootsplash bugs as well.
Comment 4 Troy Dack 2004-01-16 16:54:49 UTC
I've just checked bootsplash-0.6-r3 on cvs and it is fine ie: has a } at the end and the ${S}/utils/fbmngplay is correct (see  http://www.gentoo.org/cgi-bin/viewcvs.cgi/media-gfx/bootsplash/bootsplash-0.6-r3.ebuild?rev=1.2&content-type=text/vnd.viewcvs-markup).

Could you please try rsyncing from another mirror to see if maybe your local copy was corrupted.
Comment 5 Jon Portnoy (RETIRED) gentoo-dev 2004-01-16 16:59:41 UTC
I believe this is a rsync bug - a trailing newline at the end of the file after the last } in CVS could fix it permanently... not sure why it happens in the first place.
Comment 6 Michal Januszewski (RETIRED) gentoo-dev 2004-01-17 02:26:07 UTC
This is definitely a rsync issue. Could you tell us which rsync mirror were you using? (have a look at /var/log/emerge.log)
Comment 7 Rich Smith 2004-01-18 15:28:17 UTC
Sorry my emerge.log was deleted on friday. But I usually use the uk rsync mirror :)
Comment 8 Michal Januszewski (RETIRED) gentoo-dev 2004-01-19 08:40:55 UTC
Ok, I'm closing this as there does not seem to be anything more to fix or discuss.