Just a version bump and some unnecessary dependencies removed. Some internal changes have been made (razor-register is now reazor-admin). I'd like to have the version bumped to current 2.20, but this produces the following error: Can't locate Razor2/Preproc/deHTMLxs.pm in @INC (@INC contains: lib /usr/lib/perl5/5.6.1/i686-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i686-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl .) at lib/Razor2/Preproc/Manager.pm line 4. BEGIN failed--compilation aborted at lib/Razor2/Preproc/Manager.pm line 4. Compilation failed in require at lib/Razor2/Client/Agent.pm line 21. BEGIN failed--compilation aborted at lib/Razor2/Client/Agent.pm line 21. Compilation failed in require at blib/script/razor-client line 21. BEGIN failed--compilation aborted at blib/script/razor-client line 21. make: *** [install_razor_agents] Fehler 2 Since I have absolutly no idea, how this "inherit perl-module" works and couldn't find any documentation about it, I don't know whow to fix that. If I compile it manually, it works, so I suppose this is only a problem with the ebuild. If you know what the reason for this it, please let me know so I can make a new ebuild. If not, please bump version to 2.14.
Created attachment 5724 [details] Razor 2.14 ebuild
That error actually looks like you need to reinstall Extutils-MakeMaker and the re-emerge your package - it isn't getting installed to the right place. I will take a look at your proposed ebuild soon as I have a second.
No, re-emerging Extutils doesn't help. If I compile from source without an ebuild, 2.20 runs fine. But if I use this "inherit perl-module" within an ebuild, it gives the error. The missing deHTMLxs.pm is a part of razor, not of any other script. I suppose the problem is, that the missing module is still in /var/tmp/portage and has not yet been installed although it should have been.
I'll go ahead and version bump razor for you - but looking at the files generated by razor, would seem that the problem is that that file is no longer provided - hence your error messages. Where were you receiving this message?
I just changed the version (name of the ebuild), created the digest and tried to emerge. And there the error was. But 2.20 isn't the current version anymore, so I don't know if it works with a more up2date version. Would be great if you would bump the version since there have been quite some internatl changes been made.
Here' my issue (asside from not being able to duplicate your problem): In your error output, you have "Can't locate Razor2/Preproc/deHTMLxs.pm in @INC " - well, that file isn't bundled with razor anymore, so i'm still looking for where this error is originating from...
Hmm, I have the file in my razor tarball: $ find razor-agents-2.22 -name deHTMLxs.pm razor-agents-2.22/Razor2-Preproc-deHTMLxs/deHTMLxs.pm
I'm working my way into the 2.2's now. In the 2.1's, it didn't exist, in the 2.2's it does. I can explain the problem you are having, I just having figured out how to fix it yet. Razor wants to run its client tools during an install to clean up old copies of itself. The issue (not yet encountered) is that that will violate the sandbox, and that in order to run itself (your issue) it needs to load its own libraries - which it can't do while they're still being built. A nasty circular problem.
New version, complete with a patch, on its way into portage. Let me know if this does it for you. (works over here)
Yep, compiles and works: Jan 05 22:07:35.279370 check[5969]: [ 2] Razor-Agents v2.20 starting razor-check Jan 05 22:07:39.703941 check[5969]: [ 3] mail 1 is known spam. Only one error during emerging: Creating symlink razor-client <== /usr/bin/razor-check Creating symlink razor-client <== /usr/bin/razor-report Creating symlink razor-client <== /usr/bin/razor-revoke Creating symlink razor-client <== /usr/bin/razor-admin /usr/sbin/ebuild.sh: command substitution: line 1: unexpected EOF while looking for matching `'' /usr/sbin/ebuild.sh: command substitution: line 11: syntax error: unexpected end of file BTW: The current version of razor is 2.22
Actually, at that point you are in razor's hands. I placed their razor-config thingie at the end of the ebuild in the postinstall so it could run as they intended (since I had to take it out of their Makfile, since it was causing problems in their post install, but still in the middle of our install process).
Thank you Michael! Your Razor 2.20 ebuild worked for me as well (Gentoo 1.4_rc2, dual xeon 2.2Ghz/2GB). Great job! Any plans to maintain this package (i.e. updating it to version 2.22 and beyond)?
I'm going to close this down since the bug report is satisfied. I'll post a reminder to look at 2.20 once we are out of package freeze - right now, we are only doing enhancments to fix bugs, not package upgrades. Hopefully this time around 1.4_rc3 will fold over into 1.4final quickly.