Genlop's current hasbang is: #!/usr/bin/env perl Result (for me): Can't locate Date/Manip.pm in @INC (@INC contains: /opt/local/lib/perl5/5.8.9/darwin-2level /opt/local/lib/perl5/5.8.9 /opt/local/lib/perl5/site_perl/5.8.9/darwin-2level /opt/local/lib/perl5/site_perl/5.8.9 /opt/local/lib/perl5/site_perl /opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level /opt/local/lib/perl5/vendor_perl/5.8.9 /opt/local/lib/perl5/vendor_perl .) at /Users/*/Gentoo/usr/bin/genlop line 24. BEGIN failed--compilation aborted at /Users/*/Gentoo/usr/bin/genlop line 24. Changing it to (expanded) $EPREFIX/usr/bin/perl did it for me. Patch provided. Reproducible: Always Steps to Reproduce: 1.emerge genlop 2.genlop 3.fails (look at description)
Created attachment 182599 [details, diff] Fixes the hashbang to work with prefix-perl instead of system-perl.
This is incorrect, a proper fix will be to make a sed statement that places @GENTOO_PORTAGE_EPREFIX@ instead of EPREFIX in there then call eprefixify on the file. I know we don't have very good docs on this yet. The reason is simple, any app in prefix should work without being in a prefix env. (Including where EPREFIX is not set).
The real problem in your case is why /usr/bin/env perl doesn't find your Prefix perl. I suspect a path issue. Do you use startprefix.sh? Does your bashrc overwrite the path perhaps? From where do you call genlop?
(In reply to comment #2) > This is incorrect, a proper fix will be to make a sed statement that places > @GENTOO_PORTAGE_EPREFIX@ instead of EPREFIX in there then call eprefixify on > the file. I know we don't have very good docs on this yet. The reason is > simple, any app in prefix should work without being in a prefix env. (Including > where EPREFIX is not set). > I am eager to learn. ;) (In reply to comment #3) > The real problem in your case is why /usr/bin/env perl doesn't find your Prefix > perl. I suspect a path issue. Do you use startprefix.sh? Does your bashrc > overwrite the path perhaps? From where do you call genlop? > This is true. I have _export PATH=/opt/local/bin:/opt/local/sbin:$PATH_ set in .bash_login for my current macports installation. I don't use startprefix.sh but adapted Terminal.app to use $EPREFIX/bin/bash as default shell, so I technically am in a "startprefix.sh" environment. Sorry for wasting your time, commenting the export clause did it. Fixed for me.
resolving as fixed.