Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 292189 - new ebuild sys-libs/argp-standalone-1.3 - argp from glibc broken out for use with uclibc
Summary: new ebuild sys-libs/argp-standalone-1.3 - argp from glibc broken out for use ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Embedded Gentoo Team
URL: http://www.lysator.liu.se/~nisse/misc...
Whiteboard:
Keywords:
Depends on:
Blocks: 292191
  Show dependency tree
 
Reported: 2009-11-06 22:26 UTC by Ed Wildgoose
Modified: 2012-05-25 11:23 UTC (History)
0 users

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


Attachments
sys-libs/argp-standalone-1.3.ebuild (argp-standalone-1.3.ebuild,571 bytes, text/plain)
2009-11-06 22:28 UTC, Ed Wildgoose
Details
Patch to remove __Throw from function definitions (argp-standalone-1.3-throw-in-funcdef.patch,2.44 KB, patch)
2009-11-06 22:29 UTC, Ed Wildgoose
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Wildgoose 2009-11-06 22:26:39 UTC
uClibc does not have argp, because argp is not defined by any standard and
does not belong in a C library (it's Glibc specific). So get the stand-alone
argp library:
http://www.lysator.liu.se/~nisse/misc/argp-standalone-1.3.tar.gz

In particular it's required to compile rng-tools for use with hardware random number generators (eg for use with the Alix boards).  As such it's useful to be able to compile against uclibc

The attached ebuild and patch builds and installs the required library and header file. Separate bug will be filed with the changes to rng-tools

Reproducible: Always
Comment 1 Ed Wildgoose 2009-11-06 22:28:23 UTC
Created attachment 209475 [details]
sys-libs/argp-standalone-1.3.ebuild
Comment 2 Ed Wildgoose 2009-11-06 22:29:35 UTC
Created attachment 209476 [details, diff]
Patch to remove __Throw from function definitions
Comment 3 SpanKY gentoo-dev 2009-11-09 21:36:27 UTC
if you hadnt mentioned uClibc here, i wouldnt have looked at this :p
Comment 4 Ed Wildgoose 2009-11-09 23:20:56 UTC
Well the chain of though is something like:

- gcc 4.4.2 is working VERY nicely with SSP+uclibc
- but the Alix is a bit underpowered and SSP may consume all the kernel entropy
- BUT the Alix has a neat hardware RNG (and hardware AES)!
- rng-tools makes everyone happy again...

It's another package which was created in something like 2002 and hasn't changed since, so I doubt it's going to be a maintenance headache...

Cheers
Comment 5 Ed Wildgoose 2010-10-07 19:32:06 UTC
Any chance you could look at committing this since it's a blocker for Bug #292191

Thanks
Comment 6 Anthony Basile gentoo-dev 2012-05-18 00:57:43 UTC
(In reply to comment #5)
> Any chance you could look at committing this since it's a blocker for Bug
> #292191
> 
> Thanks

I've looked into this issue more.  It seems that there are at least three packages that need argp:

    sys-apps/rng-tools
    dev-libs/elfutils
    dev-libs/glib

@vapier, do you know if upstream uclibc has any plans of adding argp support?  If not, it might make sense to add this to the tree even if it does mean editing a few ebuild to depend on elibc_uclibc? ( sys-libs/argp-standalone )

In the meantime, I'm going to play with this on the hardened-dev::uclibc overlay.
Comment 7 Anthony Basile gentoo-dev 2012-05-18 01:58:50 UTC
@Ed here's a cleaned up version of your ebuild.  I switched to EAPI=4 (no good reason, just that I prefer 4) and I inherit eutils for epatch.  There is no reason to inherit autotools.

http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=blob;f=sys-libs/argp-standalone/argp-standalone-1.3.ebuild;h=634416a3a115e9b1bed0ba1fab51a2b9c9709b17;hb=cbcbf78dae6817d206a612ae1a47febc36a2320e
Comment 8 SpanKY gentoo-dev 2012-05-24 04:58:18 UTC
(In reply to comment #7)

LICENSE is wrong (use a dash, not a space), and no point in setting the *DEPEND vars since they're empty.  sort the KEYWORDS (`echangelog ~all`) and feel free to commit it to the main tree.
Comment 9 Anthony Basile gentoo-dev 2012-05-25 11:23:40 UTC
(In reply to comment #8)
> (In reply to comment #7)
> 
> LICENSE is wrong (use a dash, not a space), and no point in setting the
> *DEPEND vars since they're empty.  sort the KEYWORDS (`echangelog ~all`) and
> feel free to commit it to the main tree.

Okay its in the tree.  Wow @LICENSE, I must not have run repoman.

Ed, I added you to the metadata.xml so you get bug reports too.  If you don't want that, let me know and I'll remove you.  Thanks!