]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
pbzip2: fix for rebuild rbt/rebuild
authorRobert Yang <liezhi.yang@windriver.com>
Fri, 8 Apr 2016 03:03:00 +0000 (20:03 -0700)
committerRobert Yang <liezhi.yang@windriver.com>
Fri, 8 Apr 2016 03:11:58 +0000 (20:11 -0700)
Fixed when rebuild pbzip2:
make: Nothing to be done for `all'

This may cause unexpected errors, for example, when depends libs
changed:
| pbzip2: error while loading shared libraries: libbz2.so.0: cannot open shared object file: No such file or directory

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
meta/recipes-extended/pbzip2/pbzip2_1.1.13.bb

index b3c5975811640dd00d023af7b7c5a8e9b8a60d1a..67fb2ef9c54bc30a4ac32f8ee328eba1ff6a446a 100644 (file)
@@ -22,6 +22,18 @@ do_configure[noexec] = "1"
 
 EXTRA_OEMAKE = "CXX='${CXX} ${CXXFLAGS}' LDFLAGS='${LDFLAGS}'"
 
+do_compile_prepend() {
+    # Update timestamp to fix rebuild
+    src_files="pbzip2.cpp BZ2StreamScanner.cpp ErrorContext.cpp"
+    for f in $src_files; do
+        if [ -f $f ]; then
+            touch $f
+        else
+            bbwarn "Regular file $f not found"
+        fi
+    done
+}
+
 do_install() {
     install -d ${D}${bindir}
     install -m 0755 pbzip2 ${D}${bindir}/