[ Thread Index |
Date Index
| More lists.tuxfamily.org/slitaz Archives
]
- To: slitaz@xxxxxxxxxxxxxxxxxxx
- Subject: Fix for libgphoto2
- From: Christopher Rogers <slaxemulator@xxxxxxxxx>
- Date: Sun, 15 May 2011 17:12:15 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=doY+e0X5nrDo47jzYMNVSTG9I7rhI6fMs8vzbqVk1LM=; b=sBiLrqfvxAFI8b1lIsQCBLbFW4IKOmq1TY+Gafb/F6t8glkXnkva0NVthenTyXEYeZ ofXed19qZVrokLW27QbreuB1rEHqe2FXpXbI9gRdaoZZ5rJxo2YifkV1iG5t6xzXB+vo 8dRvTjXcipquqRGiCHbR7UMEZ/KNHMjMulk8I=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=rQi3rwhZQuPsJTV/6Iz9gwW7Eua46IfHN9zqucB90fj3zRAHY6ddcr3X8JWLCt81oB y6G8oont1Z86iFWa0SO6/3q/UOO8tjP3QMk0VNq4aPLLNCZoqkOdNekGzgXcTCOY38eN VBm8uoCh5d7JcZY7QB2jjUxT25LA3gmIV7cb4=
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.