Tuesday, December 11, 2007

Monitor calibration (epilogue)

So far, so good :

  • argyllcms 0.70 beta7 is now packaged on Mandriva contrib. I had to fight with Jam (because argyllcms insists on shipping a copy of libtiff and libusb and I didn't want those in our package) and with FORTIFY_SOURCE (causing buffer overflow in most tools, because of strange usage of printf, so I disabled FORTIFY_SOURCE).
  • I've updated lprof package in Mandriva contrib to CVS snapshot and I got it to work nicely with Huey colorimeter. There are still some build issues to workaround (calreports.html is missing from CVS, preventing build, embedded copy of argyllcms has the same FORTIFY_SOURCE issue, build being not lib64 aware) and application bugs, such as not disabling screensaver when running calibration (unlike argyllcms), calibration windows badly interacting with Ia Ora QT theme, causing misrendering) but nothing not really serious.
  • Until kernel is fixed to ignore Huey device for HID, you can unbind it from usbhid module, using echo -n "usb_id" > /sys/bus/drivers/usbhid/unbin. I'v created udev rule to handle this workaround until fix is merged in our kernel and put it in both argyllcms and lprof packages.


  1. Comment from Nicolas Mailhot:

    C'est sympa d'avoir repris et terminé mon .spec d'argyllcms.

    Je dois dire que Jam m'avait tellement gonflé que j'avais remis la fin du truc a plus tard, et je trouvais tous les prétextes possibles pour ne plus y toucher.

    Je vais essayer de le finir côté Fedora maintenant.

  2. Merci de l'avoir commencé (et merci à Google de l'avoir trouvé). La bidouille pour libtiff m'a bien servi comme base. Mais je dois avouer que j'ai bien galéré.

    Idem pour lprof, cette fois avec scons. Qu'on vienne pas me dire que autoconf/automake c'est pas bien ensuite, hein ;)

  3. Comment from Guy:

    > I had to fight with Jam (because argyllcms insists on shipping a copy of libtiff and libusb and I didn’t want those in our package)

    Fred, ever thought of taking a look at lprof [1]? I've seen in their CVS that they're using SCons to build lprof, and lprof includes the 0.70b6 version of ArgyllCMS [2]. Following their changes in the build system should also help to get rid of jam and migrate to SCons for the build system. SCons is nicely Python based anyway, so it can only be a lot better, can't it ...? ;)

    [1] http://lprof.sourceforge.net/
    [2] http://lprof.cvs.sourceforge.net/lprof/lprof/src/argyll/

  4. Thanks Guy, I also packaged a cvs snapshot of lprof, once Argyllcms was done. Unfortunately, lprof packages a forked copy of argyllcms (which is stupid IMHO, just like argyllcms packaging a copy of libusb and libtiff). And frankly, IMO, Scons is as ugly as Jam. Nothing beats auto* tools, and I'm serious when I write that (with my 7 years experience of packaging at Mandriva).