On 3 Sep, 2010, at 11:21 AM, Hanspeter Niederstrasser wrote:

> On 9/3/10 12:14 PM, David Lowe wrote:
> 
>> It might be the case that the executable wants to run under the 'games'
>> group for some reason--but I'm not sure.
>> 
>> - --build-as-nobody doesn't allow _any_ use of chgrp, chmod, ..., because
>> it uses a deliberately unprivileged 'fink-bld' user.
>> 
>> What you can do, however, is move chmods, chgrps, and the like to a
>> PostInstScript, since we're not _installing_ as anything but root. (at
>> least not yet).  It doesn't really matter _when_ you change a file's
>> ownership.
> 
> Correct.  Some of the games that failed --b-a-n had the chown/grp/mod 
> changes hand coded in InstallScript and so it was easy to move those 
> commands to PostInstScript.  However, the remaining packages (like 
> angband) have the ownership change coded inside a Makefile which will 
> require patching it out there and then repeating the command in 
> PostInstScript.  That's what I did with xinvaders just recently.
> 
> Angband has both (inside Makefile and in PostInstScript).  It also has 
> "--with-setgid=games" in ConfigureParams, so perhaps just removing that, 
> finding the Makefile commands that option activated, and copying the 
> remaining chown commands to PostInstScript will be enough.  Warning: 
> "find lib/ -exec chown games:games {} \;" looks like it might find way 
> to many incorrect files for PostInstScript if lib=/sw/lib, so make sure 
> that you're giving it a full path that points to the relevant angband files.

        Okeh, i guess i still need help.  I see the PostInstScript in the 
xinvaders info file, but i don't see where in it the offending commands get 
edited out of the makefile.  Isn't it normally done using "sed"?  FWIW, i'll 
include what i have so far for an info file.

Attachment: angband.info
Description: Binary data


1) rearranged the blocks by phase so i can more easily find things  ;^)
2) removed "--with-setgid=games", the game builds and plays without it!
3) changed "find lib/ -exec chown games:games {} \;" to "find lib/ -exec chown 
games:games {} %p/lib;", i think this needs more work, but it can wait until we 
get this past the --b-a-n problem
4) The offending section of the makefile has:

"#      chgrp "" "$(DESTDIR)$(bindir)/angband"
 #      chmod g+s "$(DESTDIR)$(bindir)/angband"

I'm still trying to grok percent expansion.  Is it the case that 
$(DESTDIR)$(bindir) should be replaced with %D?  With what do i replace the "" 
in chgrp??

Sent from my MacBookPro

Tell me what you need, and I'll tell you how to get along without it.
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to