Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 202569 - app-text/a2ps-4.13c-r5: configure running netscape
Summary: app-text/a2ps-4.13c-r5: configure running netscape
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
: 175846 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-12-17 12:46 UTC by Martin von Gagern
Modified: 2008-04-10 19:55 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
set COM_netscape to no in ebuild (a2ps-4.13c-r5.diff,655 bytes, patch)
2007-12-17 12:51 UTC, Martin von Gagern
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2007-12-17 12:46:37 UTC
I got this sanbox violation:
rename:    /opt/netscape/navigator/components/xpti.dat.tmp
rename:    /opt/netscape/navigator/components/xpti.dat.tmp
rename:    /opt/netscape/navigator/components/compreg.dat.tmp
unlink:    /opt/netscape/navigator/update.test
open_wr:   /root/.gconf/.testing.writeability
unlink:    /root/.gconf/.testing.writeability
open_wr:   /root/.gconfd/saved_state
chmod:     /root/.gnome2_private
open_wr:   /root/.gconfd/saved_state
open_wr:   /root/.gconfd/saved_state.tmp

Looked a lot like bug 145048, only this is netscape navigator (using an ebuild from bug 186954) instead of a browser from the official portage tree. Still I investigated, to find out what a2ps was doing here. Seems like it would call netscape to try figure out whether that program supports remote commands. I don't particularly like the idea of ebuilds running such programs as root.

The whole point of this check seems to provide a likely default configuration. I'm not sure whether this is a wanted feature on gentoo at all; I had supposed that the result of building a package should rely as little on the rest of the installed packages (and on what configure detects) as possible. In that case there would probably be a lot of checks to disable by default.
Comment 1 Martin von Gagern 2007-12-17 12:51:56 UTC
Created attachment 138728 [details, diff]
set COM_netscape to no in ebuild

This patch to a2ps-4.13c-r5.ebuild tells configure that there is no netscape available, so it has no cause to run netscape. The corresponding section will end up as commments in the config file, which I would prefer anyway.

As netscape is never run, there is probably no reason to predict any access to firefox-specific files. That would need to be tested on different systems, though, especially on those systems that needed these predictions in the first place. So I'll post a comment on bug 145048 pointing here.
Comment 2 Martin von Gagern 2008-01-31 10:14:36 UTC
Still an issue in app-text/a2ps-4.13c-r6. The patch still applies and works.
Comment 3 Ulrich Müller gentoo-dev 2008-03-02 11:14:20 UTC
Is this still an issue in (upstream) a2ps-4.14?
Comment 4 Martin von Gagern 2008-03-02 12:25:50 UTC
(In reply to comment #3)
> Is this still an issue in (upstream) a2ps-4.14?

Had some trouble locating the 4.14 sources, as the HOMEPAGE given in the current ebuild doesn't list that release yet. Maybe http://www.gnu.org/software/a2ps/ should become the official HOMEPAGE of a2ps.

Anyway, a grep for COM_netscape in the configure script tells me that this bug here is still an issue with 4.14.

Due to patches that won't apply out of the box and other sandbox violations that occur without these patches, I haven't managed to get a clean build of 4.14 here yet. Once you have an ebuild in portage, I'll test that, but I'm very sure that the fix from comment #1 still solves the issue described here as well as the one from bug 145048.
Comment 5 Martin von Gagern 2008-04-07 17:03:03 UTC
Now that a2ps-4.14 has hit the tree, I actually had netscape start up while emerging a2ps. So I can definitely confirm it's running "netscape" if that binary is in the PATH. The patch still applies to the ebuild.
Comment 6 Ulrich Müller gentoo-dev 2008-04-08 06:26:29 UTC
(In reply to comment #0)
> The whole point of this check seems to provide a likely default
> configuration. I'm not sure whether this is a wanted feature on gentoo at
> all; I had supposed that the result of building a package should rely as
> little on the rest of the installed packages (and on what configure detects)
> as possible.

This is a valid argument; especially the build system should not depend on
third-party binaries being present or not in the system.

(In reply to comment #5)
> Now that a2ps-4.14 has hit the tree, I actually had netscape start up while
> emerging a2ps. So I can definitely confirm it's running "netscape" if that
> binary is in the PATH.

@printing: The fix of comment 1 looks sane to me, any reason why it cannot be applied?
Comment 7 Stefan Schweizer (RETIRED) gentoo-dev 2008-04-09 10:02:16 UTC
well, obviously no one has looked here yet. Go ahead and apply it..
Comment 8 Ulrich Müller gentoo-dev 2008-04-09 12:39:39 UTC
Fixed in 4.14. No revbump, since it is a build-time issue.

Thank you for reporting and for the bugfix.
Comment 9 Ulrich Müller gentoo-dev 2008-04-10 19:55:10 UTC
*** Bug 175846 has been marked as a duplicate of this bug. ***