Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] head -1 weirdo

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Arwed von Merkatz <v.merkatz AT gmx.net>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] head -1 weirdo
  • Date: Sat, 16 Oct 2004 12:34:43 +0200

On Sat, Oct 16, 2004 at 12:12:24PM +0200, neuron wrote:
> [snip]
>
> > You shouldn't need to set it, the coreutils spell takes care of that
> > (/etc/profile.d/coreutils.sh).
>
> That explains something. I was wondering why it does work for me, when I
> cast qmail as root, but not when I cast it as user (which is su-ed
> lately to be root).
>
> It seems that when we 'su' by:
>
> su - -c "DISPLAY=$DISPLAY PATH=$PATH $0 $*"
>
> the root's .bash_profile nor .bashrc is executed at all. And because
> we're using 'su -', the variable is not passed to the subshell. So this
> qmail can't be compiled when cast is invoked as a regular user.
>
> The same problem is probably
> http://bugs.sourcemage.org/show_bug.cgi?id=7524

That's indeed the problem, i just tried it with mplayer (which also uses
head -1 in its configure). cast -c mplayer, enter root password ->
_POSIX2_VERSION isn't set, head -1 complains. sudo cast -c mplayer ->
_POSIX2_VERSION is set, everything works.

--
Arwed v. Merkatz Source Mage GNU/Linux developer
http://www.sourcemage.org




Archive powered by MHonArc 2.6.24.

Top of Page