Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 295083

Summary: media-gfx/ufraw wrong default gconf schemas directory
Product: Gentoo Linux Reporter: PiotrAF <piotr4f+bugs.gentoo>
Component: Current packagesAssignee: Gentoo Graphics Project <graphics+disabled>
Status: RESOLVED FIXED    
Severity: enhancement CC: web
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: ufraw-999.ebuild

Description PiotrAF 2009-11-29 19:35:42 UTC
1. The default gconf schemas directory in which ufraw.schemas is installed is /usr/share/gconf/schemas and should be where all schemas reside i.e. /etc/gconf/schemas
2. after installation of ufraw, nautilus should recognize *.raw as image/x-panasonic-raw and be able to create thumbnails as it is in other distros and as it is stated in ufraw-0.16 README:
# Associate mime type to raw images:
$ (only needed if you are using shared-mime-info < 0.21)
update-mime-database /usr/share/mime
# Install UFRaw's thumbnails generator:
GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-install-rule /usr/share/gconf/schemas/ufraw.schemas
# Associate UFRaw with the raw images mime types:
update-desktop-database

which is missing in the ebuilds

Reproducible: Always

Actual Results:  
/usr/share/gconf/schemas/ufraw.schemas and no panasonic *.raw files thumbnails in nautilus

Expected Results:  
/etc/gconf/schemas/ufraw.schemas and panasonic *.raw files thumbnails in nautilus

The FIX:

--- /usr/portage/media-gfx/ufraw/ufraw-0.16.ebuild	2009-11-21 20:36:00.000000000 +0100
+++ /usr/local/portage/piotr/media-gfx/ufraw/ufraw-0.16-r1.ebuild	2009-11-29 19:49:21.934091894 +0100
@@ -45,15 +45,18 @@
 		$(use_with lensfun) \
 		$(use_enable openmp) \
 		$(use_enable timezone dst-correction)
-	emake || die "emake failed"
+	emake schemasdir=/etc/gconf/schemas  || die "emake failed"
 }
 
 src_install() {
-	emake DESTDIR="${D}" install || die "make install failed"
+	emake DESTDIR="${D}" schemasdir=/etc/gconf/schemas install || die "make install failed"
 	dodoc README TODO || die "doc installation failed"
 }
 
 pkg_postinst() {
+	GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` \
+	gconftool-2 --makefile-install-rule \
+	/etc/gconf/schemas/ufraw.schemas >& /dev/null || :
 	if use gnome ; then
 		fdo-mime_mime_database_update
 		gnome2_gconf_install
Comment 1 INODE64 Sistemas 2009-12-05 17:59:47 UTC
Created attachment 212173 [details]
ufraw-999.ebuild

update from cvs
Comment 2 INODE64 Sistemas 2009-12-05 18:01:54 UTC
ufraw-999.ebuild
- Update deps, sci-libs/cfitsio
- fix schema
- And remove invalid configure options
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2011-10-09 07:34:28 UTC
+  09 Oct 2011; Samuli Suominen <ssuominen@gentoo.org> ufraw-0.18.ebuild:
+  Fix gconf schema installation wrt #295083 by "PiotrAF" and Francisco Javier

Should be OK