All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] libmpathpersist: depend on libmultipath
@ 2020-05-06  7:35 Christian Hesse
  2020-05-06  7:35 ` [PATCH 2/2] libmultipath: create libdir on install Christian Hesse
  2020-05-07 21:18 ` [PATCH 1/2] libmpathpersist: depend on libmultipath Martin Wilck
  0 siblings, 2 replies; 7+ messages in thread
From: Christian Hesse @ 2020-05-06  7:35 UTC (permalink / raw)
  To: dm-devel; +Cc: Christian Hesse

From: Christian Hesse <mail@eworm.de>

Without this the build fails with:

/usr/bin/ld: cannot find -lmultipath

Signed-off-by: Christian Hesse <mail@eworm.de>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 1dee3680..ba1d73ba 100644
--- a/Makefile
+++ b/Makefile
@@ -28,7 +28,7 @@ all:	$(BUILDDIRS)
 $(BUILDDIRS):
 	$(MAKE) -C $@
 
-multipath multipathd mpathpersist: libmultipath
+libmpathpersist multipath multipathd mpathpersist: libmultipath
 mpathpersist:  libmpathpersist
 
 $(BUILDDIRS.clean):

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

* [PATCH 2/2] libmultipath: create libdir on install
  2020-05-06  7:35 [PATCH 1/2] libmpathpersist: depend on libmultipath Christian Hesse
@ 2020-05-06  7:35 ` Christian Hesse
  2020-05-06  7:48   ` Christian Hesse
  2020-05-07 21:18 ` [PATCH 1/2] libmpathpersist: depend on libmultipath Martin Wilck
  1 sibling, 1 reply; 7+ messages in thread
From: Christian Hesse @ 2020-05-06  7:35 UTC (permalink / raw)
  To: dm-devel; +Cc: Christian Hesse

From: Christian Hesse <mail@eworm.de>

Without this installation fails with:

install: target '$DESTDIR/usr/lib/multipath' is not a directory
Signed-off-by: Christian Hesse <mail@eworm.de>
---
 libmultipath/prioritizers/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libmultipath/prioritizers/Makefile b/libmultipath/prioritizers/Makefile
index 9d0fe03c..11da5be2 100644
--- a/libmultipath/prioritizers/Makefile
+++ b/libmultipath/prioritizers/Makefile
@@ -35,6 +35,7 @@ libprio%.so: %.o
 	$(CC) $(LDFLAGS) $(SHARED_FLAGS) -o $@ $^
 
 install: $(LIBS)
+	$(INSTALL_PROGRAM) -d $(DESTDIR)$(libdir)
 	$(INSTALL_PROGRAM) -m 755 libprio*.so $(DESTDIR)$(libdir)
 
 uninstall:

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

* Re: [PATCH 2/2] libmultipath: create libdir on install
  2020-05-06  7:35 ` [PATCH 2/2] libmultipath: create libdir on install Christian Hesse
@ 2020-05-06  7:48   ` Christian Hesse
  2020-05-07 21:13     ` Martin Wilck
  0 siblings, 1 reply; 7+ messages in thread
From: Christian Hesse @ 2020-05-06  7:48 UTC (permalink / raw)
  To: dm-devel; +Cc: Christian Hesse


[-- Attachment #1.1: Type: text/plain, Size: 1221 bytes --]

Christian Hesse <list@eworm.de> on Wed, 2020/05/06 09:35:
> From: Christian Hesse <mail@eworm.de>
> 
> Without this installation fails with:
> 
> install: target '$DESTDIR/usr/lib/multipath' is not a directory
> Signed-off-by: Christian Hesse <mail@eworm.de>
> ---
>  libmultipath/prioritizers/Makefile | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/libmultipath/prioritizers/Makefile
> b/libmultipath/prioritizers/Makefile index 9d0fe03c..11da5be2 100644
> --- a/libmultipath/prioritizers/Makefile
> +++ b/libmultipath/prioritizers/Makefile
> @@ -35,6 +35,7 @@ libprio%.so: %.o
>  	$(CC) $(LDFLAGS) $(SHARED_FLAGS) -o $@ $^
>  
>  install: $(LIBS)
> +	$(INSTALL_PROGRAM) -d $(DESTDIR)$(libdir)
>  	$(INSTALL_PROGRAM) -m 755 libprio*.so $(DESTDIR)$(libdir)
>  
>  uninstall:

Ignore this one... It does not fix the issue. The build system has to be
fixed for simultaneous jobs when installing.

For now installing with just one job (`make -j1`).
-- 
main(a){char*c=/*    Schoene Gruesse                         */"B?IJj;MEH"
"CX:;",b;for(a/*    Best regards             my address:    */=0;b=c[a++];)
putchar(b-1/(/*    Chris            cc -ox -xc - && ./x    */b/42*2-3)*42);}

[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



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

* Re: [PATCH 2/2] libmultipath: create libdir on install
  2020-05-06  7:48   ` Christian Hesse
@ 2020-05-07 21:13     ` Martin Wilck
  2020-05-07 22:18       ` Christian Hesse
  0 siblings, 1 reply; 7+ messages in thread
From: Martin Wilck @ 2020-05-07 21:13 UTC (permalink / raw)
  To: Christian Hesse, dm-devel; +Cc: Christian Hesse

On Wed, 2020-05-06 at 09:48 +0200, Christian Hesse wrote:
> Christian Hesse <list@eworm.de> on Wed, 2020/05/06 09:35:
> > From: Christian Hesse <mail@eworm.de>
> > 
> > Without this installation fails with:
> > 
> > install: target '$DESTDIR/usr/lib/multipath' is not a directory
> > Signed-off-by: Christian Hesse <mail@eworm.de>
> > ---
> >  libmultipath/prioritizers/Makefile | 1 +
> >  1 file changed, 1 insertion(+)
> > 
> > diff --git a/libmultipath/prioritizers/Makefile
> > b/libmultipath/prioritizers/Makefile index 9d0fe03c..11da5be2
> > 100644
> > --- a/libmultipath/prioritizers/Makefile
> > +++ b/libmultipath/prioritizers/Makefile
> > @@ -35,6 +35,7 @@ libprio%.so: %.o
> >  	$(CC) $(LDFLAGS) $(SHARED_FLAGS) -o $@ $^
> >  
> >  install: $(LIBS)
> > +	$(INSTALL_PROGRAM) -d $(DESTDIR)$(libdir)
> >  	$(INSTALL_PROGRAM) -m 755 libprio*.so $(DESTDIR)$(libdir)
> >  
> >  uninstall:
> 
> Ignore this one... It does not fix the issue. The build system has to
> be
> fixed for simultaneous jobs when installing.
> 
> For now installing with just one job (`make -j1`).

Right. Feel free to send patches for this. I've never felt the urge to
run "make install" parallelized; it takes less then 1s on my laptop.

Martin

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

* Re: [PATCH 1/2] libmpathpersist: depend on libmultipath
  2020-05-06  7:35 [PATCH 1/2] libmpathpersist: depend on libmultipath Christian Hesse
  2020-05-06  7:35 ` [PATCH 2/2] libmultipath: create libdir on install Christian Hesse
@ 2020-05-07 21:18 ` Martin Wilck
  2020-05-07 22:14   ` Christian Hesse
  1 sibling, 1 reply; 7+ messages in thread
From: Martin Wilck @ 2020-05-07 21:18 UTC (permalink / raw)
  To: Christian Hesse, dm-devel; +Cc: Christian Hesse

On Wed, 2020-05-06 at 09:35 +0200, Christian Hesse wrote:
> From: Christian Hesse <mail@eworm.de>
> 
> Without this the build fails with:
> 
> /usr/bin/ld: cannot find -lmultipath

Thank you. Strange, I've built multipath thousands of times and never
hit this error. 

> 
> Signed-off-by: Christian Hesse <mail@eworm.de>
> ---
>  Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/Makefile b/Makefile
> index 1dee3680..ba1d73ba 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -28,7 +28,7 @@ all:	$(BUILDDIRS)
>  $(BUILDDIRS):
>  	$(MAKE) -C $@
>  
> -multipath multipathd mpathpersist: libmultipath
> +libmpathpersist multipath multipathd mpathpersist: libmultipath
>  mpathpersist:  libmpathpersist

Reviewed-by: Martin Wilck <mwilck@suse.com>

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

* Re: [PATCH 1/2] libmpathpersist: depend on libmultipath
  2020-05-07 21:18 ` [PATCH 1/2] libmpathpersist: depend on libmultipath Martin Wilck
@ 2020-05-07 22:14   ` Christian Hesse
  0 siblings, 0 replies; 7+ messages in thread
From: Christian Hesse @ 2020-05-07 22:14 UTC (permalink / raw)
  To: Martin Wilck; +Cc: Christian Hesse, dm-devel


[-- Attachment #1.1: Type: text/plain, Size: 698 bytes --]

Martin Wilck <mwilck@suse.com> on Thu, 2020/05/07 23:18:
> On Wed, 2020-05-06 at 09:35 +0200, Christian Hesse wrote:
> > From: Christian Hesse <mail@eworm.de>
> > 
> > Without this the build fails with:
> > 
> > /usr/bin/ld: cannot find -lmultipath  
> 
> Thank you. Strange, I've built multipath thousands of times and never
> hit this error. 

Did you build with lots of parallel jobs? I think my build server does
something like `make -j48`. :-p
-- 
main(a){char*c=/*    Schoene Gruesse                         */"B?IJj;MEH"
"CX:;",b;for(a/*    Best regards             my address:    */=0;b=c[a++];)
putchar(b-1/(/*    Chris            cc -ox -xc - && ./x    */b/42*2-3)*42);}

[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



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

* Re: [PATCH 2/2] libmultipath: create libdir on install
  2020-05-07 21:13     ` Martin Wilck
@ 2020-05-07 22:18       ` Christian Hesse
  0 siblings, 0 replies; 7+ messages in thread
From: Christian Hesse @ 2020-05-07 22:18 UTC (permalink / raw)
  To: Martin Wilck; +Cc: Christian Hesse, dm-devel


[-- Attachment #1.1: Type: text/plain, Size: 1831 bytes --]

Martin Wilck <mwilck@suse.com> on Thu, 2020/05/07 23:13:
> On Wed, 2020-05-06 at 09:48 +0200, Christian Hesse wrote:
> > Christian Hesse <list@eworm.de> on Wed, 2020/05/06 09:35:  
> > > From: Christian Hesse <mail@eworm.de>
> > > 
> > > Without this installation fails with:
> > > 
> > > install: target '$DESTDIR/usr/lib/multipath' is not a directory
> > > Signed-off-by: Christian Hesse <mail@eworm.de>
> > > ---
> > >  libmultipath/prioritizers/Makefile | 1 +
> > >  1 file changed, 1 insertion(+)
> > > 
> > > diff --git a/libmultipath/prioritizers/Makefile
> > > b/libmultipath/prioritizers/Makefile index 9d0fe03c..11da5be2
> > > 100644
> > > --- a/libmultipath/prioritizers/Makefile
> > > +++ b/libmultipath/prioritizers/Makefile
> > > @@ -35,6 +35,7 @@ libprio%.so: %.o
> > >  	$(CC) $(LDFLAGS) $(SHARED_FLAGS) -o $@ $^
> > >  
> > >  install: $(LIBS)
> > > +	$(INSTALL_PROGRAM) -d $(DESTDIR)$(libdir)
> > >  	$(INSTALL_PROGRAM) -m 755 libprio*.so $(DESTDIR)$(libdir)
> > >  
> > >  uninstall:  
> > 
> > Ignore this one... It does not fix the issue. The build system has to
> > be
> > fixed for simultaneous jobs when installing.
> > 
> > For now installing with just one job (`make -j1`).  
> 
> Right. Feel free to send patches for this. I've never felt the urge to
> run "make install" parallelized; it takes less then 1s on my laptop.

Well, doing things in parallel is the default on our build servers... Via
environment variable MAKEFLAGS="-j#". Running just one job is extra work. :-p

If I have some spare time I will have a look again.
-- 
main(a){char*c=/*    Schoene Gruesse                         */"B?IJj;MEH"
"CX:;",b;for(a/*    Best regards             my address:    */=0;b=c[a++];)
putchar(b-1/(/*    Chris            cc -ox -xc - && ./x    */b/42*2-3)*42);}

[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



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

end of thread, other threads:[~2020-05-07 22:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-06  7:35 [PATCH 1/2] libmpathpersist: depend on libmultipath Christian Hesse
2020-05-06  7:35 ` [PATCH 2/2] libmultipath: create libdir on install Christian Hesse
2020-05-06  7:48   ` Christian Hesse
2020-05-07 21:13     ` Martin Wilck
2020-05-07 22:18       ` Christian Hesse
2020-05-07 21:18 ` [PATCH 1/2] libmpathpersist: depend on libmultipath Martin Wilck
2020-05-07 22:14   ` Christian Hesse

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.