Bug 154353 - Add jpeg2k use flag to media-libs/netpbm
Bug#: 154353 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: graphics@gentoo.org Reported By: betelgeuse@gentoo.org
Component: Applications
URL: 
Summary: Add jpeg2k use flag to media-libs/netpbm
Keywords:  
Status Whiteboard: 
Opened: 2006-11-07 05:24 0000
Description:   Opened: 2006-11-07 05:24 0000
Like the other use flags, jasper is not mandatory so I added a jpeg2k use flag
for it.

------- Comment #1 From Petteri Räty 2006-11-07 05:41:34 0000 -------
Created an attachment (id=101391) [details]
Patch against netpbm-10.36.ebuild

------- Comment #2 From Luca Barbato 2006-11-07 06:18:35 0000 -------
Looks fine, please commit =)

------- Comment #3 From SpanKY 2006-11-07 10:31:58 0000 -------
that isnt how it works ... netpbm will use the bundled jasper version of you
set that value to NONE and that certainly is not correct

------- Comment #4 From Petteri Räty 2006-11-07 12:04:00 0000 -------
(In reply to comment #3)
> that isnt how it works ... netpbm will use the bundled jasper version of you
> set that value to NONE and that certainly is not correct
> 

Please read converter/other/jpeg2000/Makefile again. Relevant code:
ifneq ($(JASPERHDR_DIR),NONE)
  ifneq ($(JASPERLIB_USE),NONE)
    BINARIES = pamtojpeg2k jpeg2ktopam
  endif
endif

------- Comment #5 From Petteri Räty 2006-11-07 12:40:13 0000 -------
(In reply to comment #3)
> that isnt how it works ... netpbm will use the bundled jasper version of you
> set that value to NONE and that certainly is not correct
> 

I verified this with rm -r libjasper and ebuild netpbm-10.36.ebuild compile
worked just fine. install had problems because of the SUBDIRS variable. I could
of course send a patch upstream that disables the libjasper SUBDIR when jasper
support is off and then we can just rm the internal copy. Any way this bug can
be marked fixed.w