linux-trace-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] libtraceevent: make it possible to set libdir and mandir from outside
@ 2022-10-31 21:21 Peter Bergin
  2022-11-01 11:15 ` Peter Bergin
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Bergin @ 2022-10-31 21:21 UTC (permalink / raw)
  To: linux-trace-devel; +Cc: 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.

Signed-off-by: Peter Bergin <peter@berginkonsult.se>
---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index fab8f7e..e974117 100644
--- a/Makefile
+++ b/Makefile
@@ -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 ":" " "))
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] libtraceevent: make it possible to set libdir and mandir from outside
  2022-10-31 21:21 [PATCH] libtraceevent: make it possible to set libdir and mandir from outside Peter Bergin
@ 2022-11-01 11:15 ` Peter Bergin
  2022-11-10  0:43   ` Steven Rostedt
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Bergin @ 2022-11-01 11:15 UTC (permalink / raw)
  To: linux-trace-devel

On 2022-10-31 22:21, Peter Bergin wrote:
> When building in build frameworks such as openembedded it is desired
> to use the defintion of libdir and mandir from the build framework.
>
> Signed-off-by: Peter Bergin <peter@berginkonsult.se>
> ---
>   Makefile | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/Makefile b/Makefile
> index fab8f7e..e974117 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -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/20221101111143.191772-1-peter@berginkonsult.se/

Best regards,
/Peter


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] libtraceevent: make it possible to set libdir and mandir from outside
  2022-11-01 11:15 ` Peter Bergin
@ 2022-11-10  0:43   ` Steven Rostedt
  2022-11-10  1:08     ` Steven Rostedt
  0 siblings, 1 reply; 4+ messages in thread
From: Steven Rostedt @ 2022-11-10  0:43 UTC (permalink / raw)
  To: Peter Bergin; +Cc: linux-trace-devel

On Tue, 1 Nov 2022 12:15:21 +0100
Peter Bergin <peter@berginkonsult.se> wrote:

> On 2022-10-31 22:21, Peter Bergin wrote:
> > When building in build frameworks such as openembedded it is desired
> > to use the defintion of libdir and mandir from the build framework.
> >
> > Signed-off-by: Peter Bergin <peter@berginkonsult.se>
> > ---
> >   Makefile | 4 ++--
> >   1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/Makefile b/Makefile
> > index fab8f7e..e974117 100644
> > --- a/Makefile
> > +++ b/Makefile
> > @@ -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/20221101111143.191772-1-peter@berginkonsult.se/

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

  https://lore.kernel.org/all/20221031212110.170564-1-peter@berginkonsult.se/

-- Steve

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] libtraceevent: make it possible to set libdir and mandir from outside
  2022-11-10  0:43   ` Steven Rostedt
@ 2022-11-10  1:08     ` Steven Rostedt
  0 siblings, 0 replies; 4+ messages in thread
From: Steven Rostedt @ 2022-11-10  1:08 UTC (permalink / raw)
  To: Peter Bergin; +Cc: linux-trace-devel

On Wed, 9 Nov 2022 19:43:10 -0500
Steven Rostedt <rostedt@goodmis.org> wrote:

> > 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/20221101111143.191772-1-peter@berginkonsult.se/  
> 
> This one applies to libtraceevent,  I think you meant to reply to:
> 
>   https://lore.kernel.org/all/20221031212110.170564-1-peter@berginkonsult.se/

Anyway, I applied this to libtraceevent. Thanks!

-- Steve

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-11-10  1:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-31 21:21 [PATCH] libtraceevent: make it possible to set libdir and mandir from outside Peter Bergin
2022-11-01 11:15 ` Peter Bergin
2022-11-10  0:43   ` Steven Rostedt
2022-11-10  1:08     ` Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).