| Summary: | Please add ~x86 keyword to x11-misc/xcalib | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Preben Holm <64bit> |
| Component: | New packages | Assignee: | Michael Hanselmann (hansmi) (RETIRED) <hansmi> |
| Status: | RESOLVED FIXED | ||
| Severity: | enhancement | CC: | tove |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
ebuild patch
files/0.6-Makefile.patch |
||
|
Description
Preben Holm
2006-10-28 10:29:19 UTC
emerges on ~x86 Portage 2.1.2_rc1-r1 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.18.1 i686) ================================================================= System uname: 2.6.18.1 i686 Intel(R) Pentium(R) M processor 1600MHz Gentoo Base System version 1.12.5 Last Sync: Sun, 29 Oct 2006 08:50: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.18.1 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, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe" CHOST="i686-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 -march=pentium-m -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--nospinner" FEATURES="autoconfig collision-protect distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict userfetch userpriv usersandbox" GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo/ http://gentoo.inode.at/" LANG="en_GB.utf8" LC_ALL="en_GB.utf8" LINGUAS="en de en_GB" MAKEOPTS="-j2" 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/normal" SYNC="rsync://192.168.2.1/gentoo-portage" USE="x86 X a52 aac acpi alsa apache2 bash-completion berkdb bidi bitmap-fonts bzip2 cairo cdr clamav cli cracklib crypt css cups curl dbus divx divx4linux dlloader dri dts dvd dvdr dvdread eds elibc_glibc emboss encode ethereal exif ffmpeg firefox font-server fortran freetype gcj gd gdbm gif gnome gnuplot gnutls gphoto2 gpm graphviz gs gstreamer gtk hal hardenedphp iconv ieee1394 imagemagick input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_synaptics ipod ipv6 isdnlog java jikes jpeg kde kdeenablefinal kernel_linux libclamav libg++ linguas_de linguas_en linguas_en_GB live logitech-mouse mad maildir mikmod mmx mono mozcalendar mozdevelop mozilla mozsvg mp3 mpeg ncurses network nls no-htdocs nptl nptlonly ntfs nvidia oav ogg oggvorbis opengl oss pam pcre pdf perl png ppds pppd python qt qt3 qt4 quicktime readline real reflection ruby samba screen sdl session spell spl sse sse2 ssl stream subversion svg tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU vcd video_cards_radeon vlm vorbis wifi win32codecs wxwindows xcomposite xine xinerama xml2 xorg xprint xv xvid zlib" Unset: CTARGET, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS Reassigning. Attached are two patches for it. Feel free to add ~x86 to keywords. Where can i get other profiles? What is the license of the iccs in the tarball? Created attachment 100717 [details, diff]
ebuild patch
Created attachment 100718 [details, diff]
files/0.6-Makefile.patch
Why is that patch to Makefile needed? It works here without it. The distribution includes some readme and some example icc that can be useful as a starting point, I think they should be installed too. What about an "institutional" place to store icc files(/usr/share/X11/color maybe?) and a script to load them whenever the Xserver is started? I can confirm that it compiles and works fine on x86. The icc are copyrighted: bluish.icc Copyright (c) 1998 Hewlett-Packard Company gamma*.icc Copyright (c) 2002 Bruce Justin Lindbloom. All Rights Reserved. <http://www.brucelindbloom.com> There are good, free icc to download at: http://www.scarse.org/goodies/profiles/ I am trying to figure out the best way to have xcalib called whenever the xserver startes and than try to write some scripts and an ebuild (In reply to comment #7) > I am trying to figure out the best way to have xcalib called whenever the > xserver startes and than try to write some scripts and an ebuild ~/.xinitrc: xcalib -s 0 ~/.icc/'Color LCD-4271380.icc' (In reply to comment #8) > (In reply to comment #7) > > I am trying to figure out the best way to have xcalib called whenever the > > xserver startes and than try to write some scripts and an ebuild > > ~/.xinitrc: > xcalib -s 0 ~/.icc/'Color LCD-4271380.icc' > gdm ignores it something like this in /etc/X11/xinit/xinitrc.d/99xcalib.sh works # # Loads a default ICC profile # if [ -a ~/.xcalib/default.icc ] ; then echo Loading default ICM profile from ~/.xcalib/default.icc xcalib -d $DISPLAY -v ~/.xcalib/default.icc elif [ -a /usr/share/xcalib/profiles/default.icc ] ; then echo Loading default ICM profile from /usr/share/xcalib/profiles/default.icc xcalib -d $DISPLAY -v /usr/share/xcalib/profiles/default.icc fi ## end ## The problem is that kde loads the gamma defined in the control panel after the call to xcalib overwriting it. So it ist effective on kde. I tried several icc and icm, the ones from the scarse library and all icc in my windows installation, well they all give the same result. Invoking xcalib -p -n prints the ramps that are loaded in the server, well all icc I have tried generates the same ramps (and same resulting gamma), only the icc included in the tarball of xcalib gives different result (and works). just save the output of xcalib -p iccfile.icc and use diff to compare them. So on my opinion it cannot parse any icc except the ones contained in its distribution :-) almost useless by now maybe someone should write a new version. (In reply to comment #10) > So on my opinion it cannot parse any icc except the ones contained in > its distribution I use it with ICCs distributed with or generated by Apple Mac OS X. and they produce different ramps? maybe it can only read icc generated on a mac, this could be an explanation and maybe easy to fix. can you send me some icc that works? The directory icclib contains an utility iccdump that dumps the specs of an icc profile and one of the fields is Platform, I can confirm that only icc profiles that has Platform = Macintosh works. Recompiling with make icclib_xcalib generates an executable that uses icclib and that gives error warning if the icc profile contains unreadable data (was generated on Windows) or an error message if it does not contain a vcgt tag (like most icc profiles distributed with Windows). The README says that the best parser is the icclib. (In reply to comment #5) > Why is that patch to Makefile needed? It works here without it. tove: ping ^ (In reply to comment #14) > (In reply to comment #5) > > Why is that patch to Makefile needed? It works here without it. > > tove: ping ^ Sorry, i have missed that one. I just wanted to use LDFLAGS at linking stage. Somehow, I lost this bug. It's done now in 0.6-r1. |