Hello, I'm trying to create an ebuild for omniORBpy: http://omniorb.sourceforge.net/
I'll attach the ebuild file that I managed to produce so far.
However, there is a conflict with omniORB as both are installing the same file.
I've tried to remove the offending file in the pkg_preinst function, but
it doesn't seem to work, and I can't manage to log any message to the console to see what happens.
Any help is appreciated.
Steps to Reproduce:
1.Merge omniORB (anyway, omniORBpy depends on it) from the regular portage repository.
2.Merge omniORBpy using ebuild command.
$ ebuild ./omniORBpy-3.6.ebuild merge
[... bla bla ...]
* Detected file collision(s):
* Searching all installed packages for file collisions...
* Press Ctrl-C to Stop
* Package 'net-misc/omniORBpy-3.6' NOT merged due to file collisions. If
* necessary, refer to your elog messages for the whole content of the
* above message.
No file collision
Created attachment 282957 [details]
The failing omniORBpy ebuild file.
Skimming through the ebuild you sent, I got to this line:
If this is the ebuild you are testing, then I think you missed a 't' in the filename -> '__ini__.py'
(In reply to comment #2)
> Hey Mikael,
> Skimming through the ebuild you sent, I got to this line:
> If this is the ebuild you are testing, then I think you missed a 't' in the
> filename -> '__ini__.py'
Right, thank you for noticing the typo.
Unfortunately, it doesn't work any better once fixed.
And I can't debug this if I don't get some basic loging working.
Created attachment 286005 [details]
This ebuild works
The problem was that the conflict checking code is run before pkg_preinst.
Thus my pkg_preinst function removing the conflicting file was never run.
In the attached ebuild, the conflicting file is removed in the src_install function. There is no more conflict, and the package is installed without problem.
Looks like this is a duplicate of Bug 166738.
As I have made an ebuild for this, maybe this can be integrated into the science overlay?
Changing the summary:
From: "New ebuild: omniORBpy and conflicting files"
to "[Science overlay] omniORBpy version 3.6 ebuild"
In the science overlay. Closing.