Skip to contentSkip to conversation

libtraceevent: make it possible to set libdir and mandir from outside

PATCH Superseded Peter Bergin 2 participants 4 messages Oct 31, 2022 – Nov 10, 2022 Kbuild

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libtraceevent: make it possible to set libdir and mandir from outside

When building in build frameworks such as openembedded it is desired to use the defintion of libdir and mandir from the build framework.

---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Makefile +2 -2
index fab8f7e..e974117 100644
@@ -46,8 +46,8 @@ endif
 
 libdir_relative ?= $(libdir_relative_temp)
 prefix ?= /usr/local
-libdir = $(prefix)/$(libdir_relative)
-man_dir = $(prefix)/share/man
+libdir ?= $(prefix)/$(libdir_relative)
+man_dir ?= $(prefix)/share/man
 man_dir_SQ = '$(subst ','\'',$(man_dir))'
 pkgconfig_dir ?= $(word 1,$(shell $(PKG_CONFIG) 		\
 			--variable pc_path pkg-config | tr ":" " "))
Signature · 1 line
2.34.1
#1 lore raw
Quoted 13 lines · Peter Bergin

When building in build frameworks such as openembedded it is desired to use the defintion of libdir and mandir from the build framework.

---
  Makefile | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
Makefile +0 -0
index fab8f7e..e974117 100644

Makefile endif · line 53

Quoted 10 lines
Makefile +2 -2
@@ -46,8 +46,8 @@ endif
 
  libdir_relative ?= $(libdir_relative_temp)
  prefix ?= /usr/local
-libdir = $(prefix)/$(libdir_relative)
-man_dir = $(prefix)/share/man
+libdir ?= $(prefix)/$(libdir_relative)
+man_dir ?= $(prefix)/share/man
  man_dir_SQ = '$(subst ','\'',$(man_dir))'
  pkgconfig_dir ?= $(word 1,$(shell $(PKG_CONFIG) 		\
  			--variable pc_path pkg-config | tr ":" " "))

This patch has been superseded by a v2 patch because I did a mistake and wrote the wrong prefix. Reference to new patch: https://lore.kernel.org/linux-trace-devel/[email protected]/

Best regards,
/Peter

#2 lore raw
Quoted 15 lines · On Tue, 1 Nov 2022 12:15:21 +0100 Peter Bergin <[email protected]> wrote:
Quoted 14 lines · Peter Bergin

When building in build frameworks such as openembedded it is desired to use the defintion of libdir and mandir from the build framework.

---
  Makefile | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
Makefile +0 -0
index fab8f7e..e974117 100644
@@ -46,8 +46,8 @@ endif
 
Quoted 13 lines

Makefile endif · line 53

Quoted 9 lines
Makefile +2 -2
  libdir_relative ?= $(libdir_relative_temp)
  prefix ?= /usr/local
-libdir = $(prefix)/$(libdir_relative)
-man_dir = $(prefix)/share/man
+libdir ?= $(prefix)/$(libdir_relative)
+man_dir ?= $(prefix)/share/man
  man_dir_SQ = '$(subst ','\'',$(man_dir))'
  pkgconfig_dir ?= $(word 1,$(shell $(PKG_CONFIG) 		\
  			--variable pc_path pkg-config | tr ":" " "))  

This patch has been superseded by a v2 patch because I did a mistake and wrote the wrong prefix. Reference to new patch:
https://lore.kernel.org/linux-trace-devel/[email protected]/

This one applies to libtraceevent, I think you meant to reply to:

https://lore.kernel.org/all/[email protected]/

-- Steve

#3 lore raw
Quoted 7 lines · On Wed, 9 Nov 2022 19:43:10 -0500 Steven Rostedt <[email protected]> wrote:
Quoted 3 lines

This patch has been superseded by a v2 patch because I did a mistake and wrote the wrong prefix. Reference to new patch:
https://lore.kernel.org/linux-trace-devel/[email protected]/

This one applies to libtraceevent, I think you meant to reply to:

https://lore.kernel.org/all/[email protected]/

Anyway, I applied this to libtraceevent. Thanks!

-- Steve