diff options
author | Mingli Yu <mingli.yu@windriver.com> | 2022-08-12 11:43:36 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-08-12 01:24:27 -0700 |
commit | 015fcc40539995eccd62eed11c67598be4bd0d81 (patch) | |
tree | 793589ca2ad59de1a25f0acc3ff733084bacd832 | |
parent | 3d3d7b1d6b81e59b996efd7e05a76cb3c8a7fc80 (diff) | |
download | meta-openembedded-015fcc40539995eccd62eed11c67598be4bd0d81.tar.gz |
liblockfile: fix buildpaths issue
Fixes:
WARNING: liblockfile-1.14-r0 do_package_qa: QA Issue: File /usr/lib/liblockfile.a in package liblockfile-staticdev contains reference to TMPDIR [buildpaths]
WARNING: liblockfile-1.14-r0 do_package_qa: QA Issue: File /usr/lib/liblockfile.so.1.0 in package liblockfile contains reference to TMPDIR [buildpaths]
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-oe/recipes-extended/liblockfile/liblockfile/0001-Makefile.in-redefine-LOCKPROG.patch | 33 | ||||
-rw-r--r-- | meta-oe/recipes-extended/liblockfile/liblockfile_1.14.bb | 1 |
2 files changed, 34 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/liblockfile/liblockfile/0001-Makefile.in-redefine-LOCKPROG.patch b/meta-oe/recipes-extended/liblockfile/liblockfile/0001-Makefile.in-redefine-LOCKPROG.patch new file mode 100644 index 0000000000..35549ff2d3 --- /dev/null +++ b/meta-oe/recipes-extended/liblockfile/liblockfile/0001-Makefile.in-redefine-LOCKPROG.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From 9beb650712d448ad9c0899de9d98e9b623f9c249 Mon Sep 17 00:00:00 2001 | ||
2 | From: Mingli Yu <mingli.yu@windriver.com> | ||
3 | Date: Fri, 12 Aug 2022 11:18:15 +0800 | ||
4 | Subject: [PATCH] Makefile.in: redefine LOCKPROG | ||
5 | |||
6 | By default the LOCKPROG will be expanded as below: | ||
7 | LOCKPROG="/build/tmp-glibc/work/core2-32-wrs-linux/liblockfile/1.14-r0/image/usr/bin/dotlockfile" | ||
8 | |||
9 | And it should be "/usr/bin/dotlockfile" on the target. | ||
10 | |||
11 | Upstream-Status: Inappropriate [oe specific] | ||
12 | |||
13 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | ||
14 | --- | ||
15 | Makefile.in | 2 +- | ||
16 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
17 | |||
18 | diff --git a/Makefile.in b/Makefile.in | ||
19 | index 6e53179..bfa0acb 100644 | ||
20 | --- a/Makefile.in | ||
21 | +++ b/Makefile.in | ||
22 | @@ -42,7 +42,7 @@ dotlockfile: dotlockfile.o xlockfile.o | ||
23 | $(CC) $(LDFLAGS) -o dotlockfile dotlockfile.o xlockfile.o | ||
24 | |||
25 | lockfile.o: lockfile.c | ||
26 | - $(CC) $(CFLAGS) -DLIB -DLOCKPROG=\"$(bindir)/dotlockfile\" \ | ||
27 | + $(CC) $(CFLAGS) -DLIB -DLOCKPROG=\"/usr/bin/dotlockfile\" \ | ||
28 | -c lockfile.c | ||
29 | |||
30 | xlockfile.o: lockfile.c | ||
31 | -- | ||
32 | 2.25.1 | ||
33 | |||
diff --git a/meta-oe/recipes-extended/liblockfile/liblockfile_1.14.bb b/meta-oe/recipes-extended/liblockfile/liblockfile_1.14.bb index bac3a2c0bd..2604e14f07 100644 --- a/meta-oe/recipes-extended/liblockfile/liblockfile_1.14.bb +++ b/meta-oe/recipes-extended/liblockfile/liblockfile_1.14.bb | |||
@@ -10,6 +10,7 @@ SRC_URI = "${DEBIAN_MIRROR}/main/libl/liblockfile/liblockfile_1.14.orig.tar.gz \ | |||
10 | file://0001-Makefile.in-add-DESTDIR.patch \ | 10 | file://0001-Makefile.in-add-DESTDIR.patch \ |
11 | file://0001-Makefile.in-install-nfslock-libs.patch \ | 11 | file://0001-Makefile.in-install-nfslock-libs.patch \ |
12 | file://liblockfile-fix-install-so-to-man-dir.patch \ | 12 | file://liblockfile-fix-install-so-to-man-dir.patch \ |
13 | file://0001-Makefile.in-redefine-LOCKPROG.patch \ | ||
13 | " | 14 | " |
14 | 15 | ||
15 | SRC_URI[md5sum] = "420c056ba0cc4d1477e402f70ba2f5eb" | 16 | SRC_URI[md5sum] = "420c056ba0cc4d1477e402f70ba2f5eb" |