[Fink-devel] Re: [fink-seed] 10.4-transitional selfupdate problems
I have not yet been able to update to the latest fink-0.24.5-21 on 10.4 unstable. I am getting the same error as the one Cian Hughes reported to the fink-seed list on April 15 and on April 29, see below. He then claimed to have found that this was caused by a broken sudoers file. In my case, I don't think this can be the reason. As I find the perl test sources utterly incomprehensible, I would appreciate any help. -- Martin Cian Hughes wrote: anyone else seen this: make test Creating fink... Creating fink-virtual-pkgs... Creating pathsetup.sh... Creating FinkVersion.pm... Creating man page... Creating shlibs default file... Creating postinstall script... This first test is designed to die, so please ignore the error message on the next line. # Looks like your test died before it could output anything. ./00compileok ./Base/initialize..ok ./Base/param...ok ./Base/param_boolean...ok ./Command/cat..ok ./Command/chowname.ok ./Command/commands.ok ./Command/du_skok 1/6 skipped: can't test permission errors as root ./Command/exports..ok ./Command/failure..ok ./Command/touchok ./Config/exports...ok ./Config/failure...ok ./Config/load_save.ok ./Config/options...ok ./Config/param.ok ./Config/verbosity_level...ok ./FinkVersion/exports..ok ./FinkVersion/version..ok ./Mirror/exports...ok ./Notify/exports...ok ./Package/duplicate_fullnames..ok ./PkgVersion/buildlocksok ./PkgVersion/get_perl..ok ./PkgVersion/get_ruby..ok ./PkgVersion/non_consecutive_sourceok ./Services/eval_conditionalok ./Services/execute_nonroot_okayok 9/12Sorry, user root is not allowed to execute '/bin/sh -c /var/tmp/tmp.0.uhk843' as nobody on g5.cian.ws. ./Services/execute_nonroot_okayok 10/12Sorry, user root is not allowed to execute '/bin/sh -c /var/tmp/tmp.1.ARlvjr' as nobody on g5.cian.ws. ./Services/execute_nonroot_okayNOK 11# Failed test (./ Services/execute_nonroot_okay.t at line 103) # got: 1 # expected: 0 Sorry, user root is not allowed to execute '/bin/sh -c /var/tmp/tmp. 2.Ez2vGB' as nobody on g5.cian.ws. ./Services/execute_nonroot_okayNOK 12# Failed test (./ Services/execute_nonroot_okay.t at line 116) # got: 1 # expected: 0 # Looks like you failed 2 tests of 12. ./Services/execute_nonroot_okaydubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 11-12 Failed 2/12 tests, 83.33% okay (less 1 skipped test: 9 okay, 75.00%) ./Services/expand_percent..ok ./Services/prepare_script..ok ./Text/DelimMatch..ok Failed Test Stat Wstat Total Fail Failed List of Failed --- ./Services/execute_nonroot_okay.t2 512122 16.67% 11-12 2 subtests skipped. Failed 1/31 test scripts, 96.77% okay. 2/701 subtests failed, 99.71% okay. make: *** [test] Error 1 ### execution of make failed, exit code 2 Removing build lock... dpkg -r fink-buildlock-fink-0.24.5-11 (Reading database ... 57397 files and directories currently installed.) Removing fink-buildlock-fink-0.24.5-11 ... Failed: phase compiling: fink-0.24.5-11 failed --- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-devel
Re: [Fink-devel] Re: [fink-seed] 10.4-transitional selfupdate problems
Cian Hughes wrote: Martin, you would be surprised what problems can be caused by your sudoers file, [] # User privilege specification rootALL=(ALL) ALL %admin ALL=(ALL) NOPASSWD: ALL OK, I see now what is different: I had copied my /etc/sudoers from Panther to Tiger, and this has the last line slightly differently: %admin ALL=NOPASSWD: ALL This is what I always had, and it is also mentioned analogously in the Fink FAQ#5.9. On Panther this works, on Tiger it doesn't any more. One really seems to need the additional '(ALL)'. At least one needs it for the weird fink perl tests. I haven't seen any other adverse effects. Unfortunately, sudoers has by far the worst man page I have ever seen, and it is impossible to see from it whether anything has officially changed between Panther and Tiger. Or perhaps someone with a recent degree in theoretical computer science can see it and explain ;-) -- Martin --- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-devel
Re: [Fink-devel] Re: [fink-seed] 10.4-transitional selfupdate problems
Martin, you would be surprised what problems can be caused by your sudoers file,in order for the aforementioned test to function your mac must allow the user root to use sudo to execute that command as nobody,the error "Sorry, user root is not allowed to execute '/bin/sh -c /var/tmp/tmp.0.uhk843' as nobody on g5.cian.ws." is infact generated by the sudo command, and can be replicated outside of fink.I believe your problem is infact caused by /etc/sudoers and to test this I would like to to try this:in a terminal type:su -l and enter root passwordtype: sudo -u nobody /bin/sh -c 'ls /tmp'you may find me on freenode #fink from time to time, I don't believe this is a fink related problem, however it can easily be solvedbelow is my working custom /etc/sudoers :# sudoers file.## This file MUST be edited with the 'visudo' command as root.## See the sudoers man page for the details on how to write a sudoers file.## Host alias specification# User alias specification# Cmnd alias specification# Defaults specification# User privilege specificationroot ALL=(ALL) ALL%admin ALL=(ALL) NOPASSWD: ALL# end sudoers file. Regards, Cian Hughes -- E [EMAIL PROTECTED] NIC Handle CIAN-6BONE M +353-86-8465317 H +353-1-4991205 F +353-1-4900248 On 8 Beal 2005, at 12:07, Martin Costabel wrote:I have not yet been able to update to the latest fink-0.24.5-21 on 10.4 unstable. I am getting the same error as the one Cian Hughes reported to the fink-seed list on April 15 and on April 29, see below.He then claimed to have found that this was caused by a broken sudoers file. In my case, I don't think this can be the reason. As I find the perl test sources utterly incomprehensible, I would appreciate any help.--MartinCian Hughes wrote: anyone else seen this:make testCreating fink...Creating fink-virtual-pkgs...Creating pathsetup.sh...Creating FinkVersion.pm...Creating man page...Creating shlibs default file...Creating postinstall script...This first test is designed to die, so please ignore the errormessage on the next line.# Looks like your test died before it could output anything../00compileok./Base/initialize..ok./Base/param...ok./Base/param_boolean...ok./Command/cat..ok./Command/chowname.ok./Command/commands.ok./Command/du_skok 1/6 skipped: can't test permission errors as root./Command/exports..ok./Command/failure..ok./Command/touchok./Config/exports...ok./Config/failure...ok./Config/load_save.ok./Config/options...ok./Config/param.ok./Config/verbosity_level...ok./FinkVersion/exports..ok./FinkVersion/version..ok./Mirror/exports...ok./Notify/exports...ok./Package/duplicate_fullnames..ok./PkgVersion/buildlocksok./PkgVersion/get_perl..ok./PkgVersion/get_ruby..ok./PkgVersion/non_consecutive_sourceok./Services/eval_conditionalok./Services/execute_nonroot_okayok 9/12Sorry, user root is not allowed to execute '/bin/sh -c /var/tmp/tmp.0.uhk843' as nobody on g5.cian.ws../Services/execute_nonroot_okayok 10/12Sorry, user root is not allowed to execute '/bin/sh -c /var/tmp/tmp.1.ARlvjr' as nobody on g5.cian.ws../Services/execute_nonroot_okayNOK 11# Failed test (./ Services/execute_nonroot_okay.t at line 103)# got: 1# expected: 0Sorry, user root is not allowed to execute '/bin/sh -c /var/tmp/tmp. 2.Ez2vGB' as nobody on g5.cian.ws../Services/execute_nonroot_okayNOK 12# Failed test (./ Services/execute_nonroot_okay.t at line 116)# got: 1# expected: 0# Looks like you failed 2 tests of 12../Services/execute_nonroot_okaydubious Test returned status 2 (wstat 512, 0x200)DIED. FAILED tests 11-12 Failed 2/12 tests, 83.33% okay (less 1 skipped test: 9 okay, 75.00%)./Services/expand_percent..ok./Services/prepare_script..ok./Text/DelimMatch..okFailed Test Stat Wstat Total Fail Failed List of Failed ---./Services/execute_nonroot_okay.t 2 512 12 2 16.67% 11-122 subtests skipped.Failed 1/31 test scripts, 96.77% okay. 2/701 subtests failed, 99.71% okay.make: *** [test] Error 1### execution of make failed, exit code 2Removing build lock...dpkg -r fink-buildlock-fink-0.24.5-11(Reading database ... 57397 files and directories currently installed.)Removing fink-buildlock-fink-0.24.5-11 ...Failed: phase compiling: fink-0.24.5-11 failed ---This