Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 301505 - app-misc/realpath requires gnulib on IRIX for getopt_long
Summary: app-misc/realpath requires gnulib on IRIX for getopt_long
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All IRIX
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-19 11:00 UTC by Stuart Shelton
Modified: 2010-01-23 12:52 UTC (History)
0 users

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


Attachments
realpath-1.15.ebuild with gnulib (realpath-1.15.ebuild.patch,1.22 KB, patch)
2010-01-19 11:02 UTC, Stuart Shelton
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Shelton 2010-01-19 11:00:40 UTC
realpath compiles successfully under IRIX if the ebuild is modified as follows:

--- realpath-1.15.ebuild.dist
+++ realpath-1.15.ebuild
@@ -3,7 +3,7 @@
 # $Header: /var/cvsroot/gentoo-x86/app-misc/realpath/realpath-1.15.ebuild,v 1.1 2009/10/13 16:58:23 ulm Exp $
 
 EAPI=2
-inherit eutils toolchain-funcs prefix
+inherit eutils flag-o-matic toolchain-funcs prefix
 
 DESCRIPTION="Return the canonicalized absolute pathname"
 HOMEPAGE="http://packages.debian.org/unstable/utils/realpath"
@@ -16,8 +16,11 @@ KEYWORDS="~amd64-linux ~x86-linux ~ppc-m
 IUSE="nls"
 
 RDEPEND="!sys-freebsd/freebsd-bin"
-DEPEND="${RDEPEND}
-       virtual/libintl"
+DEPEND="mips-irix? (
+                       dev-libs/gnulib
+               )
+               ${RDEPEND}
+               virtual/libintl"
 
 src_unpack() {
        unpack ${PN}_${PV}.tar.gz
@@ -43,6 +46,13 @@ src_prepare() {
 src_compile() {
        tc-export CC
        use !elibc_glibc && export LIBS="-lintl"
+
+       if use mips-irix; then
+               append-flags -I"${EPREFIX}"/usr/$(get_libdir)/gnulib/include
+               append-ldflags -L"${EPREFIX}"/usr/$(get_libdir)/gnulib/$(get_libdir)
+               append-libs -lgnu
+       fi
+
        emake VERSION="${PV}" SUBDIRS="src man $(use nls && echo po)" \
                || die "emake failed"
 }
Comment 1 Stuart Shelton 2010-01-19 11:02:07 UTC
Created attachment 216897 [details, diff]
realpath-1.15.ebuild with gnulib


Above changes, as patch.
Comment 2 Fabian Groffen gentoo-dev 2010-01-23 12:52:43 UTC
applied, thanks