mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-16 16:27:27 +00:00
a3a88094a5
WARNING:
Some of the context lines in patches were ignored. This can lead to incorrectly applied patches.
The context lines in the patches can be updated with devtool:
devtool modify <recipe>
devtool finish --force-patch-refresh <recipe> <layer_path>
Then the updated patches and the source tree (in devtool's workspace)
should be reviewed to make sure the patches apply in the correct place
and don't introduce duplicate lines (which can, and does happen
when some of the context is ignored). Further information:
http://lists.openembedded.org/pipermail/openembedded-core/2018-March/148675.html
https://bugzilla.yoctoproject.org/show_bug.cgi?id=10450
Details:
checking file build/make/configure.sh
Hunk #1 succeeded at 581 with fuzz 2 (offset 137 lines).
Hunk #2 succeeded at 616 (offset 27 lines).
Signed-off-by: Armin Kuster <akuster808@gmail.com>
53 lines
1.3 KiB
Diff
53 lines
1.3 KiB
Diff
From dc0a5c3d2dd4e79d12a150a246a95c4dc88326f1 Mon Sep 17 00:00:00 2001
|
|
From: Koen Kooi <koen@dominion.thruhere.net>
|
|
Date: Tue, 16 Aug 2011 16:04:35 +0200
|
|
Subject: [PATCH] Upstream: not yet
|
|
|
|
Fix configure to accept "--prefix=" (a blank prefix).
|
|
|
|
---
|
|
build/make/configure.sh | 20 ++++++++++++++++----
|
|
1 file changed, 16 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/build/make/configure.sh b/build/make/configure.sh
|
|
index 007e020..04d5cbf 100644
|
|
--- a/build/make/configure.sh
|
|
+++ b/build/make/configure.sh
|
|
@@ -581,6 +581,8 @@ process_common_cmdline() {
|
|
;;
|
|
--prefix=*)
|
|
prefix="${optval}"
|
|
+ # Distinguish between "prefix not set" and "prefix set to ''"
|
|
+ prefixset=1
|
|
;;
|
|
--libdir=*)
|
|
libdir="${optval}"
|
|
@@ -614,13 +616,23 @@ process_cmdline() {
|
|
}
|
|
|
|
post_process_common_cmdline() {
|
|
- prefix="${prefix:-/usr/local}"
|
|
+ if [ "$prefixset" != "1" ]
|
|
+ then
|
|
+ prefix=/usr/local
|
|
+ fi
|
|
+
|
|
+ # Strip trailing slash
|
|
prefix="${prefix%/}"
|
|
+
|
|
libdir="${libdir:-${prefix}/lib}"
|
|
libdir="${libdir%/}"
|
|
- if [ "${libdir#${prefix}}" = "${libdir}" ]; then
|
|
- die "Libdir ${libdir} must be a subdirectory of ${prefix}"
|
|
- fi
|
|
+
|
|
+ case "$libdir" in
|
|
+ "${prefix}/"*) ;;
|
|
+ *)
|
|
+ die "Libdir ${libdir} must be a subdirectory of ${prefix}"
|
|
+ ;;
|
|
+ esac
|
|
}
|
|
|
|
post_process_cmdline() {
|