Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 449302 - media-gfx/dispcalgui-0.9.9.1: fails to install
Summary: media-gfx/dispcalgui-0.9.9.1: fails to install
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Marios Andreopoulos
URL: https://tinderboxlogs.s3.amazonaws.co...
Whiteboard:
Keywords: STABLE
Depends on:
Blocks:
 
Reported: 2012-12-30 13:32 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2013-05-10 23:32 UTC (History)
4 users (show)

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


Attachments
dispcalGUI 0.9.9.1 fixed ebuild (dispcalgui-0.9.9.1.ebuild,1.91 KB, text/plain)
2012-12-30 14:27 UTC, Marios Andreopoulos
Details
dispcalGUI 1.1.0.0 fixed ebuild (dispcalgui-1.1.0.0.ebuild,2.19 KB, text/plain)
2012-12-30 14:28 UTC, Marios Andreopoulos
Details
dispcalGUI 1.1.0.0 fixed ebuild (dispcalgui-1.1.2.1.ebuild,2.19 KB, text/plain)
2012-12-30 14:28 UTC, Marios Andreopoulos
Details
dispcalGUI 1.1.2.9 fixed ebuild (dispcalgui-1.1.2.9.ebuild,2.18 KB, text/plain)
2012-12-30 14:29 UTC, Marios Andreopoulos
Details
dispcalGUI 1.1.2.1 fixed ebuild (dispcalgui-1.1.2.1.ebuild,2.19 KB, text/plain)
2012-12-30 14:29 UTC, Marios Andreopoulos
Details
dispcalgui 0.9.9.1 ebuild (dispcalgui-0.9.9.1.ebuild,1.90 KB, text/plain)
2013-04-18 22:35 UTC, Marios Andreopoulos
Details
dispcalgui 1.1.2.9 ebuild (dispcalgui-1.1.2.9.ebuild,2.18 KB, text/plain)
2013-04-18 22:37 UTC, Marios Andreopoulos
Details
dispcalgui 1.2.7.0 ebuild (dispcalgui-1.2.7.0.ebuild,2.10 KB, text/plain)
2013-04-18 22:40 UTC, Marios Andreopoulos
Details
dispcalgui-1.2.7.0-wxversion-select.patch (dispcalgui-1.2.7.0-wxversion-select.patch,278 bytes, text/plain)
2013-04-18 22:42 UTC, Marios Andreopoulos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2012-12-30 13:32:57 UTC
Portage 2.2.0_alpha142 (hardened/linux/amd64/no-multilib, gcc-4.5.4-asneeded-asneeded, glibc-2.15-r3, 3.4.7-hardened x86_64)
=================================================================
System uname: Linux-3.4.7-hardened-x86_64-AMD_Opteron-TM-_Processor_6272-with-gentoo-2.1
Timestamp of tree: Fri, 02 Nov 2012 20:00:01 +0000
ld GNU ld (GNU Binutils) 2.22
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.7 [disabled]
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.6.8, 2.7.3-r2, 3.2.3
dev-util/ccache:          3.1.7
dev-util/cmake:           2.8.9
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.4_p6-r1, 1.9.6-r3, 1.10.3, 1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -ggdb -march=native -ftracer -frecord-gcc-switches"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openfire/resources/security/ /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-2.2/conf /usr/share/openvpn/easy-rsa /usr/share/themes/oxygen-gtk/gtk-2.0 /var/bind /var/lib/hsqldb /var/qmail/alias /var/qmail/control /var/spool/torque /var/vpopmail/etc /var/yp/Makefile"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/games/angband/edit/ /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -ggdb -march=native -ftracer -frecord-gcc-switches"
DISTDIR="/var/cache/portage/distfiles"
FCFLAGS="-O2 -pipe -ggdb -march=native -frecord-gcc-switches"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict test test-fail-continue unknown-features-warn unmerge-orphans userfetch userpriv usersandbox"
FFLAGS="-O2 -pipe -ggdb -march=native -frecord-gcc-switches"
GENTOO_MIRRORS="http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://gentoo.mirrors.hoobly.com/ http://gentoo.llarian.net/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j24"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/var/cache/tinderbox/tree"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowex acl amd64 berkdb bzip2 cli cracklib crypt cups curl cxx dri ffmpeg gdbm gpm hardened iconv introspection ipv6 justify mmx modules mudflap ncurses nls nptl openmp pam pax_kernel pcre plasma pppd qt3support readline semantic-desktop session sse sse2 sse3 sse4 ssl ssse3 tcpd unicode urandom vhosts zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Marios Andreopoulos 2012-12-30 14:25:54 UTC
Thanks for the report.

DispcalGUI tries to install Argyll's udev rules. Since we have set Argyll as a dependency, we don't need dispcalgui to install them again nor portage protest for file collisions.

I knew that these rules can either be called 45-Argyll.rules or 55-Argyll.rules but never saw the former, so in the ebuild I only checked for the latter.

The fix is easy and it will also avoid creating an empty /etc/udev/rules.d path.

I will attach the new ebuilds.
Comment 2 Marios Andreopoulos 2012-12-30 14:27:36 UTC
Created attachment 333760 [details]
dispcalGUI 0.9.9.1 fixed ebuild

Replaced:
rm "${D}"/etc/udev/rules.d/55-Argyll.rules || die
With:
[ -d "${D}"/etc/udev ] && (rm -rf "${D}"/etc/udev || die)
Comment 3 Marios Andreopoulos 2012-12-30 14:28:18 UTC
Created attachment 333762 [details]
dispcalGUI 1.1.0.0 fixed ebuild

Replaced:
rm "${D}"/etc/udev/rules.d/55-Argyll.rules || die
With:
[ -d "${D}"/etc/udev ] && (rm -rf "${D}"/etc/udev || die)
Comment 4 Marios Andreopoulos 2012-12-30 14:28:37 UTC
Created attachment 333764 [details]
dispcalGUI 1.1.0.0 fixed ebuild

Replaced:
rm "${D}"/etc/udev/rules.d/55-Argyll.rules || die
With:
[ -d "${D}"/etc/udev ] && (rm -rf "${D}"/etc/udev || die)
Comment 5 Marios Andreopoulos 2012-12-30 14:29:08 UTC
Created attachment 333766 [details]
dispcalGUI 1.1.2.9 fixed ebuild

Replaced:
rm "${D}"/etc/udev/rules.d/55-Argyll.rules || die
With:
[ -d "${D}"/etc/udev ] && (rm -rf "${D}"/etc/udev || die)
Comment 6 Marios Andreopoulos 2012-12-30 14:29:47 UTC
Created attachment 333768 [details]
dispcalGUI 1.1.2.1 fixed ebuild

Replaced:
rm "${D}"/etc/udev/rules.d/55-Argyll.rules || die
With:
[ -d "${D}"/etc/udev ] && (rm -rf "${D}"/etc/udev || die)
Comment 7 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-12-30 14:31:56 UTC
Don't check for the dir if you're using rm -rf, and don't die if you're using rm -rf either.

rm -rf "${D}"/etc/udev/rules.d

would work just fine for what you're trying, but it's likely going to fail again. There's actually an eclass function to tell you where the rules are going to be installed, as portage-installed rules should go in /lib/rules.d (or somewhere in /usr I don't exactly know), rather than in /etc (which is reserved for user-added rules).

I suppose one of the problems is that the ebuild has been edited by non-maintainer to not use /etc/udev and not tested thoroughly.
Comment 8 Marios Andreopoulos 2012-12-30 15:07:10 UTC
dispcalgui always checks for (and installs if needed) argyll's rules at /etc/udev. It is a hardcoded path in its setup code until now.

During its setup process, it checks if these files exist and only installs them if they are missing.

On Gentoo the check fails because we don't install udev rules in /etc/udev. But we are sure that they exist in their correct paths (/lib/udev or /usr/lib/udev) due to argyll being a dependency.

Unfortunately I do not know much about Python, so I couldn't find a better way than good old bash to fix the various issues.
Comment 9 Markos Chandras (RETIRED) gentoo-dev 2013-03-21 21:17:57 UTC
what's pending here? Should all these ebuilds be committed or not?
Comment 10 Marios Andreopoulos 2013-03-26 03:33:11 UTC
Yes and no.

Let me upload ebuilds (or patches) with Diego's version of the fix I suggested and since we are at it, a bumped ebuild for the latest dispcalGUI.

I'll try to do it until Friday.
Comment 11 Ian Whyman (thev00d00) (RETIRED) gentoo-dev 2013-04-17 20:32:17 UTC
Hey, just installed this and thought I would pop a comment on here with my thoughts..

A couple of things:

1. This should depend on the 2.8 wxpython slot. It doesn't work with 2.9 and currently it will get pulled due to >=2.8.
2. Version 1.2.7.0 is now available.

Keep up the good proxy work
Comment 12 Marios Andreopoulos 2013-04-18 01:22:23 UTC
The problem seems to be greater. DispcalGUI doesn't work even with a slotted installation of wxpython (2.8 and 2.9 concurrently on a system).

Tomorrow I will upload updated ebuilds that fix this report's issue and restrict wxpython to 2.8.

For dispcalgui-1.2.7.0 I will try to create a patch, so that it will support a slotted installation of wxpython 2.8 and 2.9 (or any newer version).
Comment 13 Marios Andreopoulos 2013-04-18 22:35:01 UTC
Created attachment 345958 [details]
dispcalgui 0.9.9.1 ebuild

New ebuild for dispcalgui-0.9.9.1.

Since wxpython:2.9 is in testing, there won't be any problems.

Differences from portage version:

# diff -u /usr/portage/media-gfx/dispcalgui/dispcalgui-0.9.9.1.ebuild dispcalgui-0.9.9.1.ebuild
--- /usr/portage/media-gfx/dispcalgui/dispcalgui-0.9.9.1.ebuild 2012-11-03 00:31:18.000000000 +0200
+++ dispcalgui-0.9.9.1.ebuild   2013-04-19 00:59:41.320017230 +0300
@@ -22,7 +22,8 @@
 IUSE=""

 DEPEND=">=media-gfx/argyllcms-1.1.0
-       >=dev-python/wxpython-2.8.10.1
+       dev-python/wxpython:2.8
+       !dev-python/wxpython:2.9
        >=x11-libs/libX11-1.3.3
        >=x11-apps/xrandr-1.3.2
        >=x11-libs/libXxf86vm-1.1.0
@@ -51,7 +52,7 @@
 src_install() {
        distutils_src_install
        #remove udev files
-       rm "${D}"/etc/udev/rules.d/55-Argyll.rules || die
+       rm -rf "${D}"/etc/udev/rules.d
 }

 pkg_postinst() {
Comment 14 Marios Andreopoulos 2013-04-18 22:37:49 UTC
Created attachment 345960 [details]
dispcalgui 1.1.2.9 ebuild

Updated ebuild for dispcalgui 1.1.2.9.

Anyone who is using wxpython:2.9 will come up with a blockage if he stays on this one.

Differences from portage version:

# diff -u /usr/portage/media-gfx/dispcalgui/dispcalgui-1.1.2.9.ebuild dispcalgui-1.1.2.9.ebuild
--- /usr/portage/media-gfx/dispcalgui/dispcalgui-1.1.2.9.ebuild 2012-12-14 13:57:32.000000000 +0200
+++ dispcalgui-1.1.2.9.ebuild   2013-04-19 00:58:31.784129603 +0300
@@ -22,7 +22,8 @@
 IUSE=""

 DEPEND=">=media-gfx/argyllcms-1.1.0
-       >=dev-python/wxpython-2.8.10.1
+       dev-python/wxpython:2.8
+       !dev-python/wxpython:2.9
        >=x11-libs/libX11-1.3.3
        >=x11-apps/xrandr-1.3.2
        >=x11-libs/libXxf86vm-1.1.0
@@ -58,7 +59,7 @@
 src_install() {
        distutils_src_install
        #remove udev files
-       rm "${D}"/etc/udev/rules.d/55-Argyll.rules || die
+       rm -rf "${D}"/etc/udev/rules.d
 }

 pkg_postinst() {
Comment 15 Marios Andreopoulos 2013-04-18 22:40:48 UTC
Created attachment 345962 [details]
dispcalgui 1.2.7.0 ebuild

This is a new ebuild for dispcalgui 1.2.7.0.
I created a patch (attached below) to support concurrent installation of wxpython:2.8 and wxpython:2.9.

You can download the source file (dispcalGUI-1.2.7.0.tar.gz) from http://dispcalgui.hoech.net/download/dispcalGUI.tar.gz
Comment 16 Marios Andreopoulos 2013-04-18 22:42:25 UTC
Created attachment 345964 [details]
dispcalgui-1.2.7.0-wxversion-select.patch

This patch makes dispcalGUI.py to select wxpython 2.8 in case there are more versions installed in the system.
Comment 17 Marios Andreopoulos 2013-04-18 22:44:48 UTC
So, to conclude.

Markos, you can commit:
-dispcalgui-0.9.9.1.ebuild
-dispcalgui-1.1.2.9.ebuild
-dispcalgui-1.2.7.0.ebuild
-files/dispcalgui-1.2.7.0-wxversion-select.patch

Please remove from portage the testing old versions:
-dispcalgui-1.1.0.0.ebuild
-dispcalgui-1.1.2.1.ebuild

Thank you and sorry for the huge delay.
Comment 18 Markos Chandras (RETIRED) gentoo-dev 2013-04-19 08:33:18 UTC
Thanks. I will review the ebuilds soon
Comment 19 Markos Chandras (RETIRED) gentoo-dev 2013-05-10 23:32:01 UTC
+*dispcalgui-1.2.7.0 (10 May 2013)
+
+  10 May 2013; Markos Chandras <hwoarang@gentoo.org> +dispcalgui-1.2.7.0.ebuild,
+  +files/dispcalgui-1.2.7.0-wxversion-select.patch, -dispcalgui-1.1.0.0.ebuild,
+  -dispcalgui-1.1.2.1.ebuild, dispcalgui-0.9.9.1.ebuild,
+  dispcalgui-1.1.2.9.ebuild:
+  Version bump. Thanks to Marios Andreopoulos <opensource@andmarios.com>. Fixes
+  bug #449302
+