Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 310093

Summary: New package: sys-libs/libnih
Product: Gentoo Linux Reporter: Bruno 'brubru' Tarquini <btarquini>
Component: Current packagesAssignee: Default Assignee for New Packages <maintainer-wanted>
Status: RESOLVED FIXED    
Severity: enhancement CC: bradskins, dev-zero
Priority: High Keywords: EBUILD
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://launchpad.net/libnih
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 303044    
Attachments: ebuild for libnih
patch to remove dependency on dbus
libnih-1.0.2.ebuild

Description Bruno 'brubru' Tarquini 2010-03-18 14:26:26 UTC
libnih is a light-weight C library developed by ubuntu and used by ureadahead (#303044)

The ebuild is borrowed from dev-zero overlay (http://git.overlays.gentoo.org/gitweb/?p=dev/dev-zero.git;a=blob;f=sys-libs/libnih/libnih-1.0.1.ebuild;hb=HEAD) with a patch to remove the dependency on unstable >=sys-apps/dbus-1.2.16 (useless for ureadahead) and install libnih under /lib.

The build with USE="+dbus" is completely untested, so, please try it and report.


Reproducible: Always
Comment 1 Bruno 'brubru' Tarquini 2010-03-18 14:27:49 UTC
Created attachment 224115 [details]
ebuild for libnih
Comment 2 Bruno 'brubru' Tarquini 2010-03-18 14:28:44 UTC
Created attachment 224117 [details, diff]
patch to remove dependency on dbus
Comment 3 Bruno 'brubru' Tarquini 2010-04-17 09:45:42 UTC
Small update: fix a bug when compiling others packages (vlc)

------------------------------------------------------------
 	use static-libs || rm "${D}"/usr/lib*/*.la
 
 	dodoc AUTHORS ChangeLog HACKING NEWS README TODO
 
+	# libnih.m4 overrides AC_COPYRIGHT macro
+	# which breaks compilation of others projects (vlc)
+	# https://bugs.launchpad.net/libnih/+bug/519278
+	# sould be fixed for 1.0.2 release
+	rm "${D}"/usr/share/aclocal/libnih.m4
+	rmdir "${D}"/usr/share/aclocal
}
Comment 4 Hanno Böck gentoo-dev 2010-09-10 10:32:21 UTC
Created attachment 246679 [details]
libnih-1.0.2.ebuild

Some minor cleanups and version bump. Replaced eautoconf with eautoreconf (else it won't build with latest libtool).
Bruno, little tip: Use repoman for future ebuilds to check for common problems.
Comment 5 SpanKY gentoo-dev 2011-10-19 17:18:14 UTC
should be all set now in the tree; thanks for the report!

Commit message: Initial ebuild merging the ChromeOS version, dev-zero, Bruno Tarquini, and my work
http://sources.gentoo.org/sys-libs/libnih/files/libnih-1.0.3-optional-dbus.patch?rev=1.1
http://sources.gentoo.org/sys-libs/libnih/files/libnih-1.0.3-pkg-config.patch?rev=1.1
http://sources.gentoo.org/sys-libs/libnih/libnih-1.0.3.ebuild?rev=1.1
Comment 6 SpanKY gentoo-dev 2011-10-19 17:27:14 UTC
should be all set now in the tree; thanks for the report!

Commit message: Initial ebuild merging the ChromeOS version, dev-zero, Bruno Tarquini, and my work
http://sources.gentoo.org/sys-libs/libnih/files/libnih-1.0.3-optional-dbus.patch?rev=1.1
http://sources.gentoo.org/sys-libs/libnih/files/libnih-1.0.3-pkg-config.patch?rev=1.1
http://sources.gentoo.org/sys-libs/libnih/libnih-1.0.3.ebuild?rev=1.1