Skip to contentSkip to conversation

polkit: do not hardcode the libdir

PATCH Superseded [email protected] 2 participants 4 messages May 4, 2015 – May 5, 2015

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 polkit: do not hardcode the libdir

From: Chunrong Guo <[email protected]>

libdir is defined as ${prefix}/lib/, but we want it to support multilib path

---
 .../polkit/0001-do-not-hardcoded-libdir.patch      | 44 ++++++++++++++++++++++
 meta-oe/recipes-extended/polkit/polkit_0.112.bb    |  1 +
 2 files changed, 45 insertions(+)
 create mode 100644 meta-oe/recipes-extended/polkit/polkit/0001-do-not-hardcoded-libdir.patch
meta-oe/recipes-extended/polkit/polkit/0001-do-not-hardcoded-libdir.patch new file +44 -0
new file mode 100644
index 0000000..3ccedcd
@@ -0,0 +1,44 @@
+From c9e09d9b101109832b1dcb050f0c8b588e276686 Mon Sep 17 00:00:00 2001
+From: Zhenhua Luo <[email protected]>
+Date: Mon, 4 May 2015 04:11:27 -0500
+Subject: [PATCH] do not hardcoded libdir
+
+Upstream-Status: Pending
+
+libdir is hardcoded to ${prefix}/lib, but we want it to support multilib
+
+Signed-off-by: Chunrong Guo <[email protected]>
+---
+ polkitagent/Makefile.am   | 2 +-
+ polkitbackend/Makefile.am | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/polkitagent/Makefile.am b/src/polkitagent/Makefile.am
+index 3bc364e..7d1ac0e 100644
+--- a/src/polkitagent/Makefile.am
++++ b/src/polkitagent/Makefile.am
+@@ -78,7 +78,7 @@ libpolkit_agent_1_la_LIBADD =                               		\
+ 
+ libpolkit_agent_1_la_LDFLAGS = -export-symbols-regex '(^polkit_.*)'
+ 
+-libprivdir = $(prefix)/lib/polkit-1
++libprivdir = $(prefix)/${base_libdir}/polkit-1
+ libpriv_PROGRAMS = polkit-agent-helper-1
+ 
+ polkit_agent_helper_1_SOURCES = 					\
+diff --git a/src/polkitbackend/Makefile.am b/src/polkitbackend/Makefile.am
+index 9f430d0..1f7610b 100644
+--- a/src/polkitbackend/Makefile.am
++++ b/src/polkitbackend/Makefile.am
+@@ -67,7 +67,7 @@ rules_DATA = 50-default.rules
+ 
+ # ----------------------------------------------------------------------------------------------------
+ 
+-libprivdir = $(prefix)/lib/polkit-1
++libprivdir = $(prefix)/${base_libdir}/polkit-1
+ libpriv_PROGRAMS = polkitd
+ 
+ polkitd_SOURCES = 							\
+-- 
+2.3.3
+
meta-oe/recipes-extended/polkit/polkit_0.112.bb +1 -0
index 72b182b..f20e1a4 100644
@@ -21,6 +21,7 @@ PAM_SRC_URI = "file://polkit-1_pam.patch"
 SRC_URI = "http://www.freedesktop.org/software/polkit/releases/polkit-${PV}.tar.gz \
            ${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)} \
            file://0001-configure.ac-Check-only-for-libsystemd-not-libsystem.patch \
+           file://0001-do-not-hardcoded-libdir.patch \
 "
 
 SRC_URI[md5sum] = "b0f2fa00a55f47c6a5d88e9b73f80127"
Signature · 1 line
1.9.2
#1 lore raw
Quoted 2 lines · On Mon, May 4, 2015 at 2:47 AM, <[email protected]> wrote:

+-libprivdir = $(prefix)/lib/polkit-1
++libprivdir = $(prefix)/${base_libdir}/polkit-1

who defines base_libdir ?

#2 lore raw

Base_libdir is defined in meta/conf/bitbake.conf

export base_libdir = "${base_prefix}/${baselib}"

thanks,
Chunrong

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Khem Raj
Sent: Tuesday, May 05, 2015 4:22 AM
To: openembeded-devel
Subject: Re: [oe] [meta-oe][PATCH] polkit: do not hardcode the libdir

Quoted 2 lines · On Mon, May 4, 2015 at 2:47 AM, <[email protected]> wrote:

+-libprivdir = $(prefix)/lib/polkit-1
++libprivdir = $(prefix)/${base_libdir}/polkit-1

who defines base_libdir ?

Signature · 4 lines
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
#3 lore raw
Quoted 3 lines · On 15-05-05 03:30:10, [email protected] wrote:

Base_libdir is defined in meta/conf/bitbake.conf

export base_libdir = "${base_prefix}/${baselib}"

thats OE environment. I was asking was autoconf question

Quoted 27 lines

thanks,
Chunrong

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Khem Raj
Sent: Tuesday, May 05, 2015 4:22 AM
To: openembeded-devel
Subject: Re: [oe] [meta-oe][PATCH] polkit: do not hardcode the libdir

Quoted 2 lines · On Mon, May 4, 2015 at 2:47 AM, <[email protected]> wrote:

+-libprivdir = $(prefix)/lib/polkit-1
++libprivdir = $(prefix)/${base_libdir}/polkit-1

who defines base_libdir ?
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel