Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 101218 - sys-app/coreutils: install with 'g' prefix on non-GNU userlands
Summary: sys-app/coreutils: install with 'g' prefix on non-GNU userlands
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All FreeBSD
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 101219
  Show dependency tree
 
Reported: 2005-08-03 09:04 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2006-04-12 10:50 UTC (History)
1 user (show)

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


Attachments
Ebuild patch (coreutils-nongnu.patch,2.23 KB, patch)
2005-08-03 09:04 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2005-08-03 09:04:21 UTC
As I'm trying to get some sort of GNU-compatibility for end users on  
Gentoo/FreeBSD, I need to have coreutils working on Gentoo/FreeBSD.  
Sources compiles fine on Gentoo/FreeBSD without problems or collisions (a part  
charset.alias, sure), so I changed the ebuild to make it support non-GNU  
userlands as well as the default GNU userlands. 
 
When installed in a non-GNU userland, it installs every binary with g-prefix  
and in /usr/bin instead of /bin, so it doesn't need to move them around; it  
also avoid to touch /usr/bin/hostname. 
 
The change is a no-op for GNU systems. 
 
Thanks in advance, 
Diego
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-08-03 09:04:41 UTC
Created attachment 64994 [details, diff]
Ebuild patch
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-08-03 09:11:34 UTC
Actually ${D}/usr/lib should be ${D}/usr/$(get_libdir) when removing the 
charset.alias. 
 
Comment 3 SpanKY gentoo-dev 2005-08-03 10:48:27 UTC
i dont like this change ... i dont see much benefit installing coreutils like this
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-08-03 10:50:41 UTC
Read on my blog 
( http://planet.gentoo.org/developers/flameeyes/2005/08/03/p268 ), it's to 
allow users to have gnu-style userland commands if they are too used to them. 
 
Comment 5 Luca Barbato gentoo-dev 2005-08-14 06:54:05 UTC
Looks fine beside those lines:

+
+	rm -f ${D}/usr/lib/charset.alias

Segregate the with as you planned on irc

+	# charset.alias provided by libiconv on non glibc systems
+	# and not built on glibc
+	use elibc_glibc || rm -f ${D}/usr/lib/charset.alias

or patch the build system to avoid building it on libiconv presence.
Comment 6 SpanKY gentoo-dev 2005-08-15 21:24:34 UTC
/usr/lib/charset.alias should never be produced by anything on a GNU system afaik

the '-f' passed to 'rm' will keep rm from erroring, so no point in adding the `use`
Comment 7 SpanKY gentoo-dev 2005-08-17 19:20:08 UTC
sync up and try out what ive committed to 5.2.1-r6
Comment 8 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-08-18 06:44:33 UTC
Thanks, works fine. 
I've only committed a change to ChangeLog to fix the spelling of my name :P