From: Markus Brischke <zoke-gentoo@zoke.de>
To: gentoo-dev@gentoo.org
Subject: Re: [gentoo-dev] Ebuild Help...
Date: Fri, 14 Jun 2002 08:42:40 +0200 [thread overview]
Message-ID: <20020614064240.GA24834@Q.math.fu-berlin.de> (raw)
In-Reply-To: <33782.216.190.203.135.1024027370.squirrel@adamantium.mthmarketing.com>
Quoting Matthew Walker (mwalker@kydance.net):
> I'm writing my first ebuild, and I'm having a hard time figuring out how
> to get it to install all the files properly once they've been created in
> the image directory. I've included my ebuild file. Any help would be
> greatly appreciated.
...
> src_install () {
> make DESTDIR=${D} install || die
>
> dodir /usr/bin
> dodir /usr/share/doc/${PN}-${PV}
> dodir /usr/share/${PN}
> dodir /usr/share/${PN}/images
> dodir /usr/share/${PN}/sounds
>
> dobin ${D}/usr/bin/xscorch
> dobin ${D}/usr/bin/xscorch-server
>
> insinto /usr/share/man/man6
> doins ${D}/usr/share/man/man6/${PN}.6.gz
>
> dodoc AUTHORS ChangeLog COPYING INSTALL NEWS README TODO
> }
Hi, i have written yesterday my first too ;) If i read all the stuff
right the ${D} in the do<something> helperapps is unnecessary. This is
hardly ;) explained in the table in http://www.gentoo.org/doc/gentoo-howto.html
I read many of the ebuildfiles to get here and there a picture :) There
is a usefull manpage (man 5 ebuild) and a usefull skeleton and last but
not least the documentation and mailinglistarchive (is there a search
mechanism anywhere?).
If you are not sure if your installscript puts the thing into right
directories (meaning outside PORTAGE_TMPDIR) then use
FEATURES="sandbox". If i have read right this will protect you from
overwriting you system :) But (!) watch carefully imho not everything is
logged. e.g. the bernstein setup mechanism fails using mkdir(), but
there is no logwarning because no "new" file|dir created.
Another thing is the way how to install things. Imho it is a better
style to patch the Makefiles(.in) to improve or correct the ${D}
installation than to dodir/dobin/insinto,... doing yourself. The reason
for this the potential difference between a "make install" and doing the
"same" yourself. I found it maddening in some distros that the
packagemaintainers forgot these and that in the package that a "make
install" would have installed. Another adavantage would be if the author
of the package change the installation your patch won't properly apply
(in most cases not in all!). The Request for controlling the makefiles
is so right, but in these concepts even the controller make mistakes and
every hinting mechanism like sandox and (failed) patching should be used
but must not be relied on.
I hope this will help you and that i don't say anything wrong :)
Markus Brischke aka Zoke
next prev parent reply other threads:[~2002-06-14 6:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-14 4:02 [gentoo-dev] Ebuild Help Matthew Walker
2002-06-14 6:42 ` Markus Brischke [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-09-24 1:17 [gentoo-dev] ebuild help Brett
2003-09-24 2:27 ` Mike Frysinger
2003-09-24 4:21 ` Brian Jackson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020614064240.GA24834@Q.math.fu-berlin.de \
--to=zoke-gentoo@zoke.de \
--cc=gentoo-dev@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox