Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 157282 - media-video/cinepaint and media-gfx/imagemagick missing media-gfx/dcraw dependency
Summary: media-video/cinepaint and media-gfx/imagemagick missing media-gfx/dcraw depen...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-05 19:31 UTC by David Fellows
Modified: 2010-03-25 21:10 UTC (History)
2 users (show)

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 David Fellows 2006-12-05 19:31:17 UTC
dcraw is a program used to read digital camera raw files. The author periodically changes the command line parameters used/required in ways that are not backward compatible. The dcraw program is provided by the media-gfx/dcraw package.

cinepaint and imagemagick packages include code to execute dcraw with what they think is an appropriate commandline when they are asked to open a raw file.
If dcraw is not available they each report that is missing and await further instructions.  

If the wrong version of dcraw is present and you invoked cinepaint or the imagemagic program from the command line you will see an error message from dcraw that it has been given an invalid parameter, otherwise you do not see anything.
In either case the file is not loaded.

Neither cinepaint nor any of the imagemagick ebuilds have run-time dependencies on dcraw indicated. 

As of a 2006-12-05 sync the current ebuilds are:

# equery list -p cinepaint
[ Searching for package 'cinepaint' in all categories among: ]
 * installed packages
[I--] [ ~] media-video/cinepaint-0.21.1 (0)
 * Portage tree (/usr/portage)
# equery list -p imagemagick
[ Searching for package 'imagemagick' in all categories among: ]
 * installed packages
[I--] [  ] media-gfx/imagemagick-6.3.0.5 (0)
 * Portage tree (/usr/portage)
[-P-] [  ] media-gfx/imagemagick-6.2.9.5 (0)
[-P-] [M~] media-gfx/imagemagick-6.2.9.5-r1 (0)
# equery list -p dcraw
[ Searching for package 'dcraw' in all categories among: ]
 * installed packages
[I--] [ ~] media-gfx/dcraw-8.39 (0)
 * Portage tree (/usr/portage)
[-P-] [  ] media-gfx/dcraw-8.03 (0)

The actual dependencies are:
media-gfx/imagemagick-6.2.9.5 
   <media-gfx/dcraw-8.25 
        (upstream documentation) 8.03 verified OK, 8.39 verified not OK
media-gfx/imagemagick-6.3.0.5
   =>media-gfx/dcraw-8.25 
         (upstream documentation) 8.39 verified OK, 8.03 verified not OK
   In addition, 6.3.0.5 requires that the tiff USE flag be specified if you are
   using dcraw since the newer dcraw uses tiff for the output file format.
media-video/cinepaint-0.21.1 
   < media-gfx/dcraw-8.25 
       8.03 verified OK, 8.39 verified not OK.

There is  GLSA against <imagemagick-6.3.0.5. So basically you can't use cinepaint and imagemagick to process raw files on the same machine.

cinepaint-0.21.2 is current upstream. Its docs indicate that it requires >=dcraw-8.37.  I fetched this, put it in an overlay, hacked the two patches from cinepaint-0.21.1, found that the gcc patch would not apply, found that 0.21.2 appears to incorporate (the intent of) these patches so dropped them. 0.21.2 then built but generated a string of errors followed by a segfault during startup.   

I decided not to delve into these problems but I did salvage /usr/lib64/cinepaint/0.21-2/plug-ins/rawphoto  by copying it to
 ~/.cinepaint/plug-ins/
(rawphoto is the interface to dcraw). I then removed 0.21.2 and re-emerged cinepaint-0.21.1.
I verified that it uses the rawphoto in my plug-ins directory and that dcraw-8.39 works with it and 8.03 does not.

I suggest that cinepaint and imagemagick ebuilds include a dcraw use flag to
conditionally add the appropriate run-time dependency on dcraw (and tiff in the case of imagemagick). dcraw is already used in :www-apps/gallery for this purpose.

Getting cinepaint-0.21.2 into the tree would be nice too.

A final note: the rawphoto source indicates that it is a gimp 1. and gimp 2. plugin.  It is not included in media-gfx/gimp-2.2.12 but if it is ever included the issues above would apply to gimp as well.

Not sure how relevant it is but...
 emerge --info
Portage 2.1.1-r2 (default-linux/amd64/2006.0, gcc-4.1.1, glibc-2.4-r4, 2.6.17-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r7 x86_64 AMD Opteron(tm) Processor 246
Gentoo Base System version 1.12.6
Last Sync: Tue, 05 Dec 2006 21:00:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.3.5-r3, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://adelie.polymtl.ca/ http://gentoo.mirrored.ca/ http://gentoo.osuosl.org/ "
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X alsa berkdb bitmap-fonts cli cracklib crypt cups dbus dlloader doc dri eds elibc_glibc emboss encode foomaticdb fortran gcj gif gnome gpm gstreamer gtk gtk2 guile iconv imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog java jpeg kde kernel_linux lcms lzw lzw-tiff mp3 mpeg ncurses nls nptl nptlonly nsplugin ogg opengl pam pcre perl png pppd python qt3 qt4 quicktime readline reflection sdl session spell spl ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts usb userland_GNU video_cards_fbdev video_cards_nv video_cards_radeon video_cards_vesa video_cards_vga xorg xpm xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2010-03-25 21:10:11 UTC
http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/cinepaint/?hideattic=0

cinepaint was removed from tree