Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: non-root build failure + correct permissions for /usr/obj?



On Tue, 25 May 2010, Robert Elz wrote:
> It would probably make sense for build.sh to include something like
> 
>       if [ $(id -u) -ne 0 ]; then
>               setmakeenv MKUNPRIVED yes
>       fi

I prefer to complain if option don't make sense, rather than guessing
how to fix them.  build.sh already has this code, to bomb if you try to
build as an unprivileged user without setting either -U (unprivileged)
or -E (expert mode):

        if ${do_build} || ${do_distribution} || ${do_release}; then
                if ! ${do_expertmode} && \
                    [ "$id_u" -ne 0 ] && \
                    [ "${MKUNPRIVED}" = "no" ] ; then
                        bomb "-U or -E must be set for build as an unprivileged
user."
                fi
        fi

--apb (Alan Barrett)


Home | Main Index | Thread Index | Old Index