On Sunday, August 25, 2013 08:11:38 PM Julian Gilbey wrote: > On Sun, Aug 25, 2013 at 08:06:44AM -0700, Daniel Schepler wrote: > > Source: epix > > Version: 1.2.12-1 > > Severity: important > > > > >From my pbuilder build log: > > [...] > > ../laps-local --pdf --verbose manual.tex > > /tmp/buildd/epix-1.2.12/epix-lib.sh: line 31: /dev/stdout: Permission > > denied /tmp/buildd/epix-1.2.12/epix-lib.sh: line 31: /dev/stdout: > > Permission denied /tmp/buildd/epix-1.2.12/epix-lib.sh: line 54: > > /dev/stdout: Permission denied /tmp/buildd/epix-1.2.12/epix-lib.sh: line > > 31: /dev/stdout: Permission denied /tmp/buildd/epix-1.2.12/epix-lib.sh: > > line 54: /dev/stdout: Permission denied > > /tmp/buildd/epix-1.2.12/epix-lib.sh: line 35: /dev/stderr: Permission > > denied > That's just plain weird. I'm not in a position to explore this for a > few days, though, as my laptop hard disk has just died and it will be > about a week before I can replace and reinstall it. > > Meanwhile, do you have any ideas why pbuilder should be saying that > permissions to /dev/stdout and /dev/stderr are denied?
The chrooted dpkg-buildpackage process started by pbuilder inherits the TTY device you run pbuilder from as its stdout and stderr. That TTY is owned by either root or by your actual login user, depending on how you started up the root shell. So user 1234, which is the user dpkg-buildpackage is running as, doesn't have access to open that TTY device. I haven't looked at epix-lib.sh in detail, but e.g. echo Danger Will Robinson 1>&2 should work whereas echo Danger Will Robinson >/dev/stderr wouldn't. -- Daniel Schepler -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

