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

Bug 654128

Summary: dev-util/catalyst installs files outside prefix
Product: Gentoo Hosted Projects Reporter: hanetzer
Component: CatalystAssignee: Gentoo Catalyst Developers <catalyst>
Status: RESOLVED CANTFIX    
Severity: normal CC: prefix
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description hanetzer 2018-04-26 15:31:54 UTC
So, I've got one of those odd projects going. Got a prefix on
macos (hackintosh, but that's irrelevant to this issue) and have
found two issues with this package.

1. Documentation does not build because the #!/usr/bin/python
calls the system (osx) python, instead of python inside the prefix.
Fixed via `sed -i "1s:/usr/bin/python:${EPREFIX}:" doc/*.py || die`
at the top of python_prepare_all()

2. Files outside of prefix, most likely due to setup.py's _data_files.
List includes:
/etc
/etc/catalyst
/etc/catalyst/catalyst.conf
/etc/catalyst/catalystrc
/usr
/usr/share
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/catalyst.1
/usr/share/man/man5
/usr/share/man/man5/catalyst-config.5
/usr/share/man/man5/catalyst-spec.5

Not a pythonist, so I don't know how to fix the latter issue.
Comment 1 Fabian Groffen gentoo-dev 2018-05-29 10:04:22 UTC
Ok, this has nothing to do with the problems you see, but what do you expect from this package on macOS?  I feel it's not worth the bother, as it is unlikely to be useful at this point.
Comment 2 hanetzer 2018-05-30 00:32:04 UTC
(In reply to Fabian Groffen from comment #1)
> Ok, this has nothing to do with the problems you see, but what do you expect
> from this package on macOS?  I feel it's not worth the bother, as it is
> unlikely to be useful at this point.

There's a project by the name of PureDarwin, which is sort of a fossish
thing based on the released osx codebase, which I've been looking at a
bit. It would be interesting imho if that project gets going really well
to be able to do like we do for Gentoo/BSD, if we're talking osx specific,
but if you can use catalyst in any prefix, you could theoretically use
it as a starting point in getting an initial stage3 for new architectures
by first building a prefix on it (assuming there is already some distro
which supports it) and using catalyst within that to build a stage3 for
a baremetal install.
Comment 3 Fabian Groffen gentoo-dev 2018-05-30 07:45:39 UTC
I think that's a noble goal, but way beyond our current interests.
Comment 4 hanetzer 2018-05-30 08:01:15 UTC
(In reply to Fabian Groffen from comment #3)
> I think that's a noble goal, but way beyond our current interests.
I've already fixed it and have a pr open at gentoo/catalyst
https://github.com/gentoo/catalyst/pull/2

Again though, its not just for using prefix to create a Gentoo/Darwin
stage3, but for Gentoo/SomeNewArchWeDon'tQuiteSupportYetButAnotherDoes
stage3's.