Thread: Re: [Perlgssapi-developer] [rt.cpan.org #48732] look for krb5-config in /usr/kerberos/bin
Brought to you by:
achimgrolms
From: Achim G. <ac...@gr...> - 2009-08-15 14:40:19
|
Hello Mark, if you run the the "perl Makefile.PL" in this way: perl Makefile.PL --gssapiimpl /usr/kerberos You can always specify the path where to look for krb5_config utility. (run "perl Makefile.PL --help" for all available options). In general the GSSAPI-Makefile.PL does not look into the PATH environment, it makes direct use of the systems /usr/bin/which for searching for krb5-config and it's path. From that point of view I suppose if you can make your sudo-toolchain properly run the "which krb5-config" the other parts will work fine. Does this help on your problem? Best Regards, Achim On Saturday 15 August 2009, Mark Hedges via RT wrote: > Fri Aug 14 18:31:29 2009: Request 48732 was acted upon. > Transaction: Ticket created by MARKLE > Queue: GSSAPI > Subject: look for krb5-config in /usr/kerberos/bin > Broken in: 0.26 > Severity: (no value) > Owner: Nobody > Requestors: MA...@cp... > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=48732 > > > > CentOS 5.3 krb5-workstation package installs krb5-* utils in > /usr/kerberos/bin and /usr/kerberos/sbin, and adds the bin to the > default PATH. As root I can use CPAN to build the package, but when I > use `sudo perl -MCPAN -e shell` or sudo a script that uses CPAN > directly, CPAN does not use my PATH or root's PATH, and it fails to find > the config script. Is it safe to look for krb5-config in > /usr/kerberos/bin if it does not find it in the available PATH? |
From: Achim G. <ac...@gr...> - 2009-08-16 22:20:27
|
On Saturday 15 August 2009, Mark Hedges via RT wrote: > I can build all other modules using CPAN with sudo > unless they have bugs, but this one is broken because it does not look > in the "system standard" place for `krb5-config`. Hello Mark, As far as I know there is no '"system standard" place for `krb5-config'. So the "which krb5-config"-way was choosed because this works on the most platforms, Kerberos-implementions (MIT, Heimdal, Sun) and conditions. The idea was to keep the Makefile.PL's complexity small. But you're correct, on the circumstances you describe the Makefile.PL behaves 'broken'. Your suggestion how Makefile.PL should additonally search the '"system standard" place for `krb5-config`' is... to test a given list of binaries. If I got the idea right that means maintaining a list of paths to search for the krb5-config binary within Makefile.PL? What's the output of perl -e "print $^O; " on your platform? (Sorry I can't provide a patch within the next days... you will get my answer at the end of this week) Best Regards, Achim |
From: Achim G. <ac...@gr...> - 2009-08-18 20:00:59
Attachments:
Makefile.PL
|
On Monday 17 August 2009, Mark Hedges via RT wrote: > So I appreciate your help if > the build script can look through a list of other directories that would > be awesome. Hello Mark, I've modified the Makefile.PL as discussed. Find the new Makefile.PL attached to this email. Please check if the new Makefile.PL works within your toolchain. Please let me know if that works. Please let me know if there are any problems. Best Regards, Achim |
From: Achim G. <ac...@gr...> - 2009-08-18 21:46:39
Attachments:
Makefile.PL
|
On Tuesday 18 August 2009, Mark Hedges via RT wrote: > Searching krb5-config command... not found! at Makefile.PL line 95. > Warning: No success on command[/usr/bin/perl Makefile.PL] Hmm... maybe I did the testing the wrong way? 1. I've additionally added the Makefile.PL Version information to the Build output, thanks for the idea. 2. Find below the manual step-by-steps executed I have executed on my platform 3. Please check if this test steps work on your platform by manual executing 4. If they work... please let me know an idea what makes the difference between manual stepping and your build environment. Thank you! Best Regards, Achim achim@mjoelnir ~ $ uname Linux achim@mjoelnir ~/svn_gssapi/GSSAPI $unset PATH achim@mjoelnir ~/svn_gssapi/GSSAPI $ /usr/bin/perl Makefile.PL Welcome to GSSAPI.pm setup! (Makefile.PL Version 0.03) run "perl Makefile.PL --help" to see further installation options ---------------------------------------------------------- Searching krb5-config command... krb5-config NOT found in $PATH... now doing some guesswork: 1. trying /usr/kerberos/bin/krb5-config ...not found. 2. trying /usr/bin/krb5-config ...found. using krb5-config command '/usr/bin/krb5-config'. ---------------------------------------------------------- using GSSAPI implementation Kerberos 5 release 1.5.3 ---------------------------------------------------------- Adding from your Perlinstallation ($Config{lddlflags}) to LDDLFLAGS -shared -L/usr/local/lib ---------------------------------------------------------- Bypassing to LDDLFLAGS -shared -L/usr/local/lib -Wl,-rpath -Wl,/usr/lib ---------------------------------------------------------- Using LIBS -L/usr/lib -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -ldl ---------------------------------------------------------- Using INC includeconfiguration ---------------------------------------------------------- Writing Makefile for GSSAPI |