On Fri, Oct 06, 2006 at 11:20:07AM -0400, Charles Lepple wrote:
> On 10/6/06, Daniel Macks <[EMAIL PROTECTED]> wrote:
> > On Fri, Oct 06, 2006 at 09:27:19AM -0400, Charles Lepple wrote:
> > > I invite someone with better knowledge of this switch to correct me,
> > > but this is where I would use "--build-as-nobody". That way, you
> > > should get errors when the install process tries to write outside of
> > > %i (/sw/src/fink.build/root-*), such as directly in /sw.
> >
> > Yup...that's exactly why we have that flag.
> 
> Are there any caveats, though? Wasn't there a warning somwhere about
> this switch not producing working binary packages? (It works for me,
> but my packages haven't done anything complicated with permissions.)

It'll also cause a fatal error if the build tries to chown or chgrp,
which is a valid (though rarely done, and even more rarely actually
needed) action.

The warning was because it can also cause .deb "differences" vs not
using the flag if a package does an action like chown, but ignores the
failure of it. The result is that the binary won't have the effect of
the chown, and in rare cases, that effect may be required for the
binary to work properly. Why yes, in fact I *do* consider that a bug
in an upstream makefile if a required action doesn't cause an abend if
that action fails:)

There are also perhaps cases where ./configure or other script tests
may give different results (for example, --b-a-n disables access to
certain system resources), which could lead to different features
being enabled vs not using that flag.

dan

-- 
Daniel Macks
[EMAIL PROTECTED]
http://www.netspace.org/~dmacks


-------------------------------------------------------------------------
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-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to