Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 336684 - app-text/xmlto-0.0.23 needs getopt
Summary: app-text/xmlto-0.0.23 needs getopt
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-10 04:02 UTC by Ivan Jager
Modified: 2014-01-14 20:04 UTC (History)
0 users

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


Attachments
build.log (build.log,4.33 KB, text/plain)
2010-09-10 04:03 UTC, Ivan Jager
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Jager 2010-09-10 04:02:39 UTC
When emerging xmlto it  tries to use getopt-long which doesn't seem to exist on RHEL 5.5.
Comment 1 Ivan Jager 2010-09-10 04:03:31 UTC
Created attachment 246652 [details]
build.log

I'm not sure why it decides it should be using getopt-long in the first place...
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-09-13 21:01:56 UTC
checking for bash... /bin/sh
checking for getopt... getopt-long
checking for long options support in getopt-long... ./configure: line 3798: getopt-long: command not found
no
configure: error: 

Smells like PATHs are hardcoded in configure.
Comment 3 Ivan Jager 2010-09-13 23:07:18 UTC
I don't think it's a hardcoded path. These RHEL 5.5 computers just don't have getopt-long on them.

aij@ghc07:~$ rpm -qf /usr/bin/getopt 
util-linux-2.13-0.52.el5_4.1
aij@ghc07:~$ rpm -ql util-linux | grep long
aij@ghc07:~$

I followed the bootstrap process at http://www.gentoo.org/proj/en/gentoo-alt/prefix/bootstrap-solaris.xml

Is getopt normally supposed to be part of system? If so, might it make sense to include it as part of system on prefix also, or would that break something?
Comment 4 Fabian Groffen gentoo-dev 2010-09-30 09:31:49 UTC
hmmm, xmlto can't know you're on a old util-linux without getopt-long support.

It should depend on this though, which should be enough:
|| ( sys-apps/util-linux app-misc/getopt )

What pulls in xmlto, at which step are you?  Feels like this shouldn't come at this stage yet.
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-09-30 14:29:02 UTC
(In reply to comment #4)
> hmmm, xmlto can't know you're on a old util-linux without getopt-long support.
> ...
> || ( sys-apps/util-linux app-misc/getopt )

Oh. On linux we provide util-linux. Bummer =/

However, I am on an older RHEL than you and have no issues with xmlto.
%% rpm -qf /usr/bin/getopt
util-linux-2.12a-16.EL4.25
Comment 6 Ivan Jager 2010-10-01 19:42:44 UTC
> However, I am on an older RHEL than you and have no issues with xmlto.
> %% rpm -qf /usr/bin/getopt
> util-linux-2.12a-16.EL4.25
 
Does that version include getopt-long?
Comment 7 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-10-01 19:46:57 UTC
(In reply to comment #6)
> > However, I am on an older RHEL than you and have no issues with xmlto.
> > %% rpm -qf /usr/bin/getopt
> > util-linux-2.12a-16.EL4.25
> 
> Does that version include getopt-long?
> 

No, I have no /usr/bin/getopt-long, or getopt-long in my PATH anywhere else.
Comment 8 Paul 2012-06-21 14:43:22 UTC
This package is problematic on os x lion as described in this thread: http://forums.gentoo.org/viewtopic-t-922948-start-0.html

Not sure if it should be a separate bug or not. I am not the poster of that thread, but am experiencing the issue as well. How should I proceed (new bug or details here)? Sorry for the noise.
Comment 9 Fabian Groffen gentoo-dev 2013-02-26 21:48:34 UTC
Problem is we install util-linux, so the logic is flawed.
Comment 10 Fabian Groffen gentoo-dev 2014-01-14 20:04:52 UTC
util-linux is masked on Darwin now, so getopt should be drawn in