Fix for libgphoto2

[ Thread Index | Date Index | More lists.tuxfamily.org/slitaz Archives ]


I found why libgphoto2 failed to build. genpkgs_rules in tazwok and tazbb is normally executed before packages are removed. Here is the code in genpkg_rules thats causing the problem:

    HAL_FDI="usr/share/hal/fdi/information/20thirdparty/10-camera-libgphoto2.fdi"
    UDEV_RULE="etc/udev/rules.d/70-libgphoto2.rules"
    CAM_LIST="usr/lib/libgphoto2/print-camera-list"

   # Let print-camera-list find libgphoto2.so
    export LD_LIBRARY_PATH="$fs/usr/lib"
   # Let libgphoto2 find its camera-modules before running print-camera-list
    export CAMLIBS="$fs/usr/lib/libgphoto2/$VERSION"

  # HAL file
   "$fs/$CAM_LIST" hal-fdi > "$fs/$HAL_FDI" || return 1
 
    #udev rule
   "$fs/$CAM_LIST" udev-rules version 0.98 group camera mode 0660 > "$fs/$UDEV_RULE" || return 1

It maybe be best to fix cook to remove depends after genpkg_rules is done. This bug may also effect more packages.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/