Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 456056 - New ebuild: dev-utils/trinity-1.1 - A 'smart' system call fuzzer
Summary: New ebuild: dev-utils/trinity-1.1 - A 'smart' system call fuzzer
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2013-02-07 18:04 UTC by Kevin Faulkner
Modified: 2013-02-11 14:32 UTC (History)
1 user (show)

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


Attachments
trinity-1.1.ebuild (trinity-1.1.ebuild,604 bytes, text/plain)
2013-02-07 18:04 UTC, Kevin Faulkner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Faulkner 2013-02-07 18:04:05 UTC
Created attachment 338264 [details]
trinity-1.1.ebuild

Hello, I wrote an ebuild for the system call fuzzer called Trinity. It's slightly intelligent in some of the fuzzing attempts and thought it would be a good contribution to Gentoo. There was an article recently in LWN and you can find it here: https://lwn.net/Articles/536173/
I would suggest placing trinity in dev-utils/trinity-1.1
Comment 1 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-02-07 18:23:10 UTC
> EAPI=4

EAPI=5 has been approved, you can always find the latest approved EAPI in /usr/poratge/skel.ebuild. See http://devmanual.gentoo.org/ebuild-writing/eapi for an overview of what newer EAPI versions introduce.

> src_configure() {
>     ./configure.sh || die
> }
> 
> src_compile() {
>     emake || die "emake failed"
> }

There are default functions, you can see them at http://devmanual.gentoo.org/ebuild-writing/functions. For instance, for src_configure you see that it checks for presence of ./configure and then calls econf. Therefore, you can remove src_configure; in a similar way you can remove src_compile as well.

> src_install() {
>     emake DESTDIR="${D}" install
>     dodoc -r Documentation/
>     dodoc README
> }

If you list the documents in DOCS you can remove src_install since the default function (http://devmanual.gentoo.org/ebuild-writing/functions/src_install) covers this as well.

The goal of these default functions is to make ebuild writing easier.
Comment 2 Tim Harder gentoo-dev 2013-02-07 18:49:49 UTC
(In reply to comment #1)
> > src_configure() {
> >     ./configure.sh || die
> > }
> > 
> > src_compile() {
> >     emake || die "emake failed"
> > }
> 
> There are default functions, you can see them at
> http://devmanual.gentoo.org/ebuild-writing/functions. For instance, for
> src_configure you see that it checks for presence of ./configure and then
> calls econf. Therefore, you can remove src_configure; in a similar way you
> can remove src_compile as well.

No, you can't remove src_configure in this instance, since it's a custom configure script and is named "configure.sh", the default runs configure. Anyway, in most cases for custom (non-autotools) configure scripts you should specify them manually with die since using the default econf call adds a lot of extra arguments that may not be ignored or used properly by the custom configure script.
 
> > src_install() {
> >     emake DESTDIR="${D}" install
> >     dodoc -r Documentation/
> >     dodoc README
> > }
> 
> If you list the documents in DOCS you can remove src_install since the
> default function
> (http://devmanual.gentoo.org/ebuild-writing/functions/src_install) covers
> this as well.

No, the default wouldn't quite work here either since I don't think you can specify directories to be recursively installed via DOCS.
Comment 3 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-02-07 19:08:47 UTC
Sorry, misread and didn't notice the ".sh"; as for DOCS, it would indeed require the globstar future, which is not enabled by default in current EAPIs.

So, only src_compile can be removed then.
Comment 4 Tim Harder gentoo-dev 2013-02-07 22:52:04 UTC
Added to CVS.