List Info

Thread: New sudo with Apple Update 10.4.9 break access to Fink libs




New sudo with Apple Update 10.4.9 break access to Fink libs
country flaguser name
United States
2007-03-29 19:14:46
Howdy,

In case it's of interest to anyone:

I regularly install new OS X systems with Fink and a large
handful of perl 
modules from CPAN for my company's work environment. I
install some libraries 
and perl libs through Fink first, then I use CPAN to install
a bunch of other 
modules (we use the Apple-supplied perl, mod_perl and
apache).

Yesterday I started to perform another such install, and
CPAN just would not 
pickup the modules/libraries installed by fink. I was
stumped until I figured 
the only thing "different" from every pervious
install was the recent 10.4.9 
update.

I looked into it and sure enough, the latest update contains
a new version of 
sudo, which now sanitizes various environment variables
pertaining to perl. 
In this case, Fink is affected by the removal of $PERL5LIB.

I wrote some more details, including how to defeat this new
sudo "feature" and 
posted them here:

http://jwadmin.blogspot.com/2007/03/a
pples-mac-1049-update-breaks-cpan.html

I'm probably the last person to figure this out, but I
didn't see any other 
discussion about it on the list so I thought I'd share my
discovery, in case 
anyone else runs into the same problem.

-- 

----------------------
jwmailsw.com - System Administrator - Cedar Creek
Software
www.cedarcreeksoftware.com

------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Fink-users mailing list
Fink-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users

Re: New sudo with Apple Update 10.4.9 break access to Fink libs
country flaguser name
United States
2007-03-29 20:21:52
Jonathan Wilson wrote:
> Howdy,
>
> In case it's of interest to anyone:
>
> I regularly install new OS X systems with Fink and a
large handful of perl 
> modules from CPAN for my company's work environment. I
install some libraries 
> and perl libs through Fink first, then I use CPAN to
install a bunch of other 
> modules (we use the Apple-supplied perl, mod_perl and
apache).
>
> Yesterday I started to perform another such install,
and CPAN just would not 
> pickup the modules/libraries installed by fink. I was
stumped until I figured 
> the only thing "different" from every
pervious install was the recent 10.4.9 
> update.
>
> I looked into it and sure enough, the latest update
contains a new version of 
> sudo, which now sanitizes various environment variables
pertaining to perl. 
> In this case, Fink is affected by the removal of
$PERL5LIB.
>
> I wrote some more details, including how to defeat this
new sudo "feature" and 
> posted them here:
>
> http://jwadmin.blogspot.com/2007/03/a
pples-mac-1049-update-breaks-cpan.html
>
> I'm probably the last person to figure this out, but I
didn't see any other 
> discussion about it on the list so I thought I'd share
my discovery, in case 
> anyone else runs into the same problem.
>
>   
Thanks!

fink-0.26.x and later have been modified to work around this
very 
problem, so we encourage people to upgrade.

-- 
Alexander K. Hansen
(akh)
Fink Documenter


------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Fink-users mailing list
Fink-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users

Re: New sudo with Apple Update 10.4.9 break access to Fink libs
country flaguser name
France
2007-03-30 00:33:54
Jonathan Wilson wrote:
[]
> http://jwadmin.blogspot.com/2007/03/a
pples-mac-1049-update-breaks-cpan.html
> 
> I'm probably the last person to figure this out, but I
didn't see any other 
> discussion about it on the list so I thought I'd share
my discovery, in case 
> anyone else runs into the same problem.

It has been discussed on several Fink lists, fink-core,
fink-devel, and 
even once on fink-beginners, but apparently not on
fink-users.
See for example
<http://thread.gmane.org/gmane.os.apple.fink.
core/1408/focus=1417>
<http://thread.gmane.org/gmane.os.macosx.fink.devel/1
4250>

As Alexander explains, fink itself has been aware of this
for a while 
(as part of the preparation for 10.5) and has been fixed to
work with 
the new version of sudo, even before 10.4.9 came out.

For other perl programs, and also for bootstrapping older
fink versions, 
two workarounds were proposed: Besides what you have found,
namely 
running "sudo visudo" and adding

Defaults env_delete-="PERLLIB PERL5LIB PERL5OPT"

to /etc/sudoers, a less intrusive method was suggested,
namely using the 
command

  sudo env PERL5LIB=$PERL5LIB cpan

instead of simply "sudo cpan".

-- 
Martin






------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Fink-users mailing list
Fink-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )