Skip to contentSkip to conversation

Fix multilib install conflicts

PATCH New [email protected] 1 participant 5 messages Oct 2, 2018

lore
Share & tools
lore
#1 lore raw

PATCH v3 1/4 cups: fix multilib install file conflicts

In reply to [email protected]

From: Kai Kang <[email protected]>

A comment line of conf file cups-files.conf refers to var @CUPS_SERVERBIN@ is ${libdir} related and then it causes multilib install file conflict.

Remove @CUPS_SERVERBIN@ from the comment line to avoid the conflict.

---
 meta/recipes-extended/cups/cups.inc           |  3 ++-
 .../cups-avoid-install-file-conflicts.patch   | 21 +++++++++++++++++++
 2 files changed, 23 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-extended/cups/cups/cups-avoid-install-file-conflicts.patch
meta/recipes-extended/cups/cups.inc +2 -1
index 717eef03a7..c142a4d990 100644
@@ -8,7 +8,8 @@ SRC_URI = "https://github.com/apple/cups/releases/download/v${PV}/${BP}-source.t
            file://use_echo_only_in_init.patch \
            file://0001-don-t-try-to-run-generated-binaries.patch \
            file://cups_serverbin.patch \
-	  "
+           file://cups-avoid-install-file-conflicts.patch \
+           "
 
 UPSTREAM_CHECK_URI = "https://github.com/apple/cups/releases"
 UPSTREAM_CHECK_REGEX = "cups-(?P<pver>\d+\.\d+(\.\d+)?)-source.tar"
meta/recipes-extended/cups/cups/cups-avoid-install-file-conflicts.patch new file +21 -0
new file mode 100644
index 0000000000..68885fa4db
@@ -0,0 +1,21 @@
+@CUPS_SERVERBIN@ is ${libdir} related that causes multilib install file
+conflict. Remove @CUPS_SERVERBIN@ from the comment line of cups-files.conf to
+avoid the conflict.
+
+Upstream-Status: Inappropriate [OE specific]
+
+Signed-off-by: Kai Kang <[email protected]>
+
+diff --git a/conf/cups-files.conf.in b/conf/cups-files.conf.in
+index 4a78ba6..03c6582 100644
+--- a/conf/cups-files.conf.in
++++ b/conf/cups-files.conf.in
+@@ -73,7 +73,7 @@ PageLog @CUPS_LOGDIR@/page_log
+ #RequestRoot @CUPS_REQUESTS@
+ 
+ # Location of helper programs...
+-#ServerBin @CUPS_SERVERBIN@
++#ServerBin
+ 
+ # SSL/TLS keychain for the scheduler...
+ #ServerKeychain @CUPS_SERVERKEYCHAIN@
Signature · 1 line
2.18.0
#2 lore raw

PATCH v3 2/4 man-db: fix multilib install file conflict

In reply to [email protected]

From: Kai Kang <[email protected]>

The first line of config file man_db.conf is the package name. It causes multilib install file conflict. So add a patch to remove the line.

---
 ...nf-avoid-multilib-install-file-conflict.patch | 16 ++++++++++++++++
 meta/recipes-extended/man-db/man-db_2.8.3.bb     |  3 ++-
 2 files changed, 18 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-extended/man-db/files/man_db.conf-avoid-multilib-install-file-conflict.patch
meta/recipes-extended/man-db/files/man_db.conf-avoid-multilib-install-file-conflict.patch new file +16 -0
new file mode 100644
index 0000000000..03273d3b49
@@ -0,0 +1,16 @@
+The first line of man_db.conf will be replaced by package name. And it causes
+multilib install file conflict. Remove the line to avoid the issue.
+
+Upstream-Status: Pending
+
+Signed-off-by: Kai Kang <[email protected]>
+
+diff --git a/src/man_db.conf.in b/src/man_db.conf.in
+index bc8bb7e..04cfb31 100644
+--- a/src/man_db.conf.in
++++ b/src/man_db.conf.in
+@@ -1,4 +1,3 @@
+-# @config_file_basename@
+ #
+ # This file is used by the man-db package to configure the man and cat paths.
+ # It is also used to provide a manpath for those without one by examining
meta/recipes-extended/man-db/man-db_2.8.3.bb +2 -1
index 97e5a3d6fb..cd8d27c33e 100644
@@ -5,7 +5,8 @@ LIC_FILES_CHKSUM = "file://docs/COPYING.LIB;md5=a6f89e2100d9b6cdffcea4f398e37343
                     file://docs/COPYING;md5=eb723b61539feef013de476e68b5c50a"
 
 SRC_URI = "${SAVANNAH_NONGNU_MIRROR}/man-db/man-db-${PV}.tar.xz \
-           file://99_mandb"
+           file://99_mandb \
+           file://man_db.conf-avoid-multilib-install-file-conflict.patch"
 SRC_URI[md5sum] = "6f3055e18fdd1ce5cbbdb30403991ec7"
 SRC_URI[sha256sum] = "5932a1ca366e1ec61a3ece1a3afa0e92f2fdc125b61d236f20cc6ff9d80cc4ac"
 
Signature · 1 line
2.18.0
#0 lore raw

v3 cover Fix multilib install conflicts

From: Kai Kang <[email protected]>

V3:
* replace sed commands with patches
* avoid multilib expand for os-release. It needs a commit on branch master-next, so rebase on master-next

The following changes since commit 92bf8679fd1b61a90ad3694ed7be5704ad0d6353:

meta-ide-support: add cmake-native (2018-10-01 13:08:00 +0100)

are available in the Git repository at:

git://git.pokylinux.org/poky-contrib kangkai/ML-sep30
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=kangkai/ML-sep30

Kai Kang (4):
cups: fix multilib install file conflicts
man-db: fix multilib install file conflict
libcheck: avoid multilib install file conflict
os-release: avoid multilib expand

 meta/conf/multilib.conf                       |  2 +-
 meta/recipes-extended/cups/cups.inc           |  3 ++-
 .../cups-avoid-install-file-conflicts.patch   | 21 +++++++++++++++++++
 ...avoid-multilib-install-file-conflict.patch | 16 ++++++++++++++
 meta/recipes-extended/man-db/man-db_2.8.3.bb  |  3 ++-
 ...echo-compiler-info-to-check_stdint.h.patch | 19 +++++++++++++++++
 .../libcheck/libcheck_0.12.0.bb               |  3 ++-
 7 files changed, 63 insertions(+), 4 deletions(-)
 create mode 100644 meta/recipes-extended/cups/cups/cups-avoid-install-file-conflicts.patch
 create mode 100644 meta/recipes-extended/man-db/files/man_db.conf-avoid-multilib-install-file-conflict.patch
 create mode 100644 meta/recipes-support/libcheck/libcheck/not-echo-compiler-info-to-check_stdint.h.patch
Signature · 1 line
2.18.0
#3 lore raw

PATCH v3 3/4 libcheck: avoid multilib install file conflict

From: Kai Kang <[email protected]>

The first line of output of '$CC --version' is written to check_stdint.h as a comment line. It causes multilib install file conflict.

Do not echo compiler version info to check_stdint.h to fix the issue.

---
 ...echo-compiler-info-to-check_stdint.h.patch | 19 +++++++++++++++++++
 .../libcheck/libcheck_0.12.0.bb               |  3 ++-
 2 files changed, 21 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-support/libcheck/libcheck/not-echo-compiler-info-to-check_stdint.h.patch
meta/recipes-support/libcheck/libcheck/not-echo-compiler-info-to-check_stdint.h.patch new file +19 -0
new file mode 100644
index 0000000000..3c7572700d
@@ -0,0 +1,19 @@
+Do not echo compiler info in a comment line to check_stdint.h which causes
+multilib install file conflict.
+
+Upstream-Status: Pending
+
+Signed-off-by: Kai Kang <[email protected]>
+
+diff --git a/m4/ax_create_stdint_h.m4 b/m4/ax_create_stdint_h.m4
+index 33a21f8..eacc37a 100644
+--- a/m4/ax_create_stdint_h.m4
++++ b/m4/ax_create_stdint_h.m4
+@@ -272,7 +272,6 @@ echo "#ifndef" $_ac_stdint_h >$ac_stdint
+ echo "#define" $_ac_stdint_h "1" >>$ac_stdint
+ echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
+ echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
+-echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
+ if test "_$ac_cv_header_stdint_t" != "_" ; then
+ echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
+ echo "#include <stdint.h>" >>$ac_stdint
meta/recipes-support/libcheck/libcheck_0.12.0.bb +2 -1
index e646d43968..3bb48a75a3 100644
@@ -5,7 +5,8 @@ SECTION = "devel"
 LICENSE  = "LGPLv2.1+"
 LIC_FILES_CHKSUM = "file://COPYING.LESSER;md5=2d5025d4aa3495befef8f17206a5b0a1"
 
-SRC_URI = "https://github.com/${BPN}/check/releases/download/${PV}/check-${PV}.tar.gz"
+SRC_URI = "https://github.com/${BPN}/check/releases/download/${PV}/check-${PV}.tar.gz \
+           file://not-echo-compiler-info-to-check_stdint.h.patch"
 SRC_URI[md5sum] = "31b17c6075820a434119592941186f70"
 SRC_URI[sha256sum] = "464201098bee00e90f5c4bdfa94a5d3ead8d641f9025b560a27755a83b824234"
 UPSTREAM_CHECK_URI = "https://github.com/libcheck/check/releases/"
Signature · 1 line
2.18.0
#4 lore raw

PATCH v3 4/4 os-release: avoid multilib expand

In reply to [email protected]

From: Kai Kang <[email protected]>

Add os-release to NON_MULTILIB_RECIPES in multilib.conf that do not do multilib expand for os-release.

---
 meta/conf/multilib.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/conf/multilib.conf +1 -1
index 65a28ddbd2..ccca29b854 100644
@@ -29,4 +29,4 @@ PKG_CONFIG_PATH[vardepvalueexclude] = ":${WORKDIR}/recipe-sysroot/${datadir}/pkg
 
 # These recipes don't need multilib variants, the ${BPN} PROVDES/RPROVDES
 # ${MLPREFIX}${BPN}
-NON_MULTILIB_RECIPES = "grub grub-efi make-mod-scripts"
+NON_MULTILIB_RECIPES = "grub grub-efi make-mod-scripts os-release"
Signature · 1 line
2.18.0