Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 10831 - Updated razor-ebuild to 2.14
Summary: Updated razor-ebuild to 2.14
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Michael Cummings (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-16 08:58 UTC by fbusse
Modified: 2003-02-04 19:42 UTC (History)
0 users

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


Attachments
Razor 2.14 ebuild (razor-2.14.ebuild,652 bytes, application/octet-stream)
2002-11-16 08:59 UTC, fbusse
Details

Note You need to log in before you can comment on or make changes to this bug.
Description fbusse 2002-11-16 08:58:54 UTC
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.
Comment 1 fbusse 2002-11-16 08:59:43 UTC
Created attachment 5724 [details]
Razor 2.14 ebuild
Comment 2 Michael Cummings (RETIRED) gentoo-dev 2002-12-05 20:34:44 UTC
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.
Comment 3 fbusse 2002-12-19 02:57:33 UTC
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.
Comment 4 Michael Cummings (RETIRED) gentoo-dev 2003-01-05 11:48:40 UTC
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?
Comment 5 fbusse 2003-01-05 11:55:52 UTC
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. 
Comment 6 Michael Cummings (RETIRED) gentoo-dev 2003-01-05 12:01:52 UTC
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...
Comment 7 fbusse 2003-01-05 12:09:52 UTC
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 
Comment 8 Michael Cummings (RETIRED) gentoo-dev 2003-01-05 12:38:24 UTC
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.
Comment 9 Michael Cummings (RETIRED) gentoo-dev 2003-01-05 13:21:57 UTC
New version, complete with a patch, on its way into portage. Let me know if this
does it for you. (works over here)
Comment 10 fbusse 2003-01-05 15:09:00 UTC
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    
Comment 11 Michael Cummings (RETIRED) gentoo-dev 2003-01-05 16:02:52 UTC
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).
Comment 12 mgirard 2003-01-08 07:50:19 UTC
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)?
Comment 13 Michael Cummings (RETIRED) gentoo-dev 2003-01-17 08:40:33 UTC
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.