Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 11515 - xfig needs runtime dependency on netpbm
Summary: xfig needs runtime dependency on netpbm
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-02 22:44 UTC by Nate Lynch
Modified: 2003-02-04 19:42 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Lynch 2002-12-02 22:44:56 UTC
The xfig program uses at least one command -- giftopnm -- from the netpbm ebuild
when importing a gif file.  To recreate:

0. Start xfig
1. Select the "Picture Object" tool (the camera in the toolbar)
2. A dialog appears; enter the path to a gif file in the "Picture Filename" box.
3. Click the "Apply" button in the dialog.

Xfig exits with the following:
$ xfig
sh: giftopnm: command not found
Broken pipe

While I don't think that this is necessarily the best behavior on xfig's part,
it could be prevented by adding a dependency on the media-libs/netpbm ebuild.

I'm using xfig 3.2.3d-r1.  I have verified that the problem is solved by
installing netpbm 9.12-r4.

I humbly submit the following patch for the xfig ebuild script:

# diff -c xfig-3.2.3d-r1.ebuild.orig xfig-3.2.3d-r1.ebuild
*** xfig-3.2.3d-r1.ebuild.orig  Mon Dec  2 22:34:09 2002
--- xfig-3.2.3d-r1.ebuild       Mon Dec  2 22:27:20 2002
***************
*** 17,23 ****
        media-libs/libpng"
  
  RDEPEND="${DEPEND}
!       media-gfx/transfig"
  
  src_unpack() {
        unpack ${A}
--- 17,24 ----
        media-libs/libpng"
  
  RDEPEND="${DEPEND}
!       media-gfx/transfig
!       media-libs/netpbm"
  
  src_unpack() {
        unpack ${A}
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2002-12-03 00:13:56 UTC
nice catch