* [gentoo-user] [OT] Help tweaking an ebuild
@ 2009-07-12 12:59 Mick
2009-07-12 13:28 ` Arttu V.
2009-07-12 13:29 ` Alan McKinnon
0 siblings, 2 replies; 4+ messages in thread
From: Mick @ 2009-07-12 12:59 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1771 bytes --]
Hi All,
I am not at all competent at modifying ebuilds. I am trying to emerge an
ebuild locally for testing and I have two problems straight off the mark.
a)How should I specify the URI for the source file if it is already copied
into my /usr/portage/distfiles?
b)Trying to create a manifest gives me errors:
============================================================
# ebuild rtmpdump-1.2.ebuild manifest
/usr/local/portage/media-libs/rtmpdump/rtmpdump-1.2.ebuild: line 34:
unexpected EOF while looking for matching `"'
/usr/local/portage/media-libs/rtmpdump/rtmpdump-1.2.ebuild: line 43: syntax
error: unexpected end of file
*
* ERROR: media-libs/rtmpdump-1.2 failed.
* Call stack:
* ebuild.sh, line 1879: Called _source_ebuild
* ebuild.sh, line 1818: Called die
* The specific snippet of code:
* source "${EBUILD}" || die "error sourcing ebuild"
* The die message:
* error sourcing ebuild
============================================================
Line 34 is shown below:
============================================================
rc_compile() {
if [[ -x ${ECONF_SOURCE:-.}/configure ]] ; then
econf
fi
if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ] ; then
emake || die "emake failed" <--this is line 34-->
fi
}
============================================================
and this is line 42 (there is no line 43!):
============================================================
src_install() {
dobin rtmpdump
dodoc README ChangeLog
prepalldocs
} <--this is line 42-->
============================================================
Could you please hold my hand on this?
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] [OT] Help tweaking an ebuild
2009-07-12 12:59 [gentoo-user] [OT] Help tweaking an ebuild Mick
@ 2009-07-12 13:28 ` Arttu V.
2009-07-12 13:46 ` Mick
2009-07-12 13:29 ` Alan McKinnon
1 sibling, 1 reply; 4+ messages in thread
From: Arttu V. @ 2009-07-12 13:28 UTC (permalink / raw
To: gentoo-user
On 7/12/09, Mick <michaelkintzios@gmail.com> wrote:
> a)How should I specify the URI for the source file if it is already copied
> into my /usr/portage/distfiles?
Add RESTRICT="fetch", plus add an informational function pkg_nofetch.
Search for them for example here:
http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=1
or on the man page (man 5 ebuild).
> b)Trying to create a manifest gives me errors:
> ============================================================
> # ebuild rtmpdump-1.2.ebuild manifest
> /usr/local/portage/media-libs/rtmpdump/rtmpdump-1.2.ebuild: line 34:
> unexpected EOF while looking for matching `"'
I believe the problem spot could be anywhere before that line. That
line might just be the last one with a quote char, so there won't be
any later quotes in the file to match? Thus, check all lines before
that one.
--
Arttu V.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] [OT] Help tweaking an ebuild
2009-07-12 12:59 [gentoo-user] [OT] Help tweaking an ebuild Mick
2009-07-12 13:28 ` Arttu V.
@ 2009-07-12 13:29 ` Alan McKinnon
1 sibling, 0 replies; 4+ messages in thread
From: Alan McKinnon @ 2009-07-12 13:29 UTC (permalink / raw
To: gentoo-user; +Cc: Mick
On Sunday 12 July 2009 14:59:33 Mick wrote:
> Hi All,
>
> I am not at all competent at modifying ebuilds. I am trying to emerge an
> ebuild locally for testing and I have two problems straight off the mark.
>
> a)How should I specify the URI for the source file if it is already copied
> into my /usr/portage/distfiles?
Just list it as usual. portage will see that it is already there and not re-
download it.
> b)Trying to create a manifest gives me errors:
> ============================================================
> # ebuild rtmpdump-1.2.ebuild manifest
> /usr/local/portage/media-libs/rtmpdump/rtmpdump-1.2.ebuild: line 34:
> unexpected EOF while looking for matching `"'
You have an odd number of double quotes in that ebuild. Or, you are using
quotes literally and did not quote your quotes.
--
alan dot mckinnon at gmail dot com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] [OT] Help tweaking an ebuild
2009-07-12 13:28 ` Arttu V.
@ 2009-07-12 13:46 ` Mick
0 siblings, 0 replies; 4+ messages in thread
From: Mick @ 2009-07-12 13:46 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1113 bytes --]
On Sunday 12 July 2009, Arttu V. wrote:
> On 7/12/09, Mick <michaelkintzios@gmail.com> wrote:
> > a)How should I specify the URI for the source file if it is already
> > copied into my /usr/portage/distfiles?
>
> Add RESTRICT="fetch", plus add an informational function pkg_nofetch.
> Search for them for example here:
>
> http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=1
>
> or on the man page (man 5 ebuild).
>
> > b)Trying to create a manifest gives me errors:
> > ============================================================
> > # ebuild rtmpdump-1.2.ebuild manifest
> > /usr/local/portage/media-libs/rtmpdump/rtmpdump-1.2.ebuild: line 34:
> > unexpected EOF while looking for matching `"'
>
> I believe the problem spot could be anywhere before that line. That
> line might just be the last one with a quote char, so there won't be
> any later quotes in the file to match? Thus, check all lines before
> that one.
Thank you very much! I had indeed left a " open, at the SRC_URI line. It now
created the manifest without errors. :)
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-07-12 13:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-12 12:59 [gentoo-user] [OT] Help tweaking an ebuild Mick
2009-07-12 13:28 ` Arttu V.
2009-07-12 13:46 ` Mick
2009-07-12 13:29 ` Alan McKinnon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox