* [PATCH] libxenstore should be executable
@ 2006-07-04 3:28 Jeremy Katz
2006-07-04 6:51 ` Bastian Blank
2006-07-04 9:57 ` Vincent Hanquez
0 siblings, 2 replies; 5+ messages in thread
From: Jeremy Katz @ 2006-07-04 3:28 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1: Type: text/plain, Size: 104 bytes --]
Shared libraries are supposed to be installed +x
Signed-off-by: Jeremy Katz <katzj@redhat.com>
Jeremy
[-- Attachment #2: xen-libxenstore-exec.patch --]
[-- Type: text/x-patch, Size: 562 bytes --]
diff -r fd6d12935b56 tools/xenstore/Makefile
--- a/tools/xenstore/Makefile Mon Jul 03 16:07:20 2006 +0100
+++ b/tools/xenstore/Makefile Mon Jul 03 23:26:44 2006 -0400
@@ -171,7 +171,7 @@ install: all
$(INSTALL_PROG) xenstore-control $(DESTDIR)/usr/bin
$(INSTALL_PROG) xenstore-ls $(DESTDIR)/usr/bin
$(INSTALL_DIR) -p $(DESTDIR)/usr/$(LIBDIR)
- $(INSTALL_DATA) libxenstore.so $(DESTDIR)/usr/$(LIBDIR)
+ $(INSTALL_PROG) libxenstore.so $(DESTDIR)/usr/$(LIBDIR)
$(INSTALL_DATA) xs.h $(DESTDIR)/usr/include
$(INSTALL_DATA) xs_lib.h $(DESTDIR)/usr/include
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] libxenstore should be executable
2006-07-04 3:28 [PATCH] libxenstore should be executable Jeremy Katz
@ 2006-07-04 6:51 ` Bastian Blank
2006-07-04 9:57 ` Vincent Hanquez
1 sibling, 0 replies; 5+ messages in thread
From: Bastian Blank @ 2006-07-04 6:51 UTC (permalink / raw)
To: xen-devel
On Mon, Jul 03, 2006 at 11:28:03PM -0400, Jeremy Katz wrote:
> Shared libraries are supposed to be installed +x
No. Most of them can't be executed.
Bastian
--
Many Myths are based on truth
-- Spock, "The Way to Eden", stardate 5832.3
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] libxenstore should be executable
2006-07-04 3:28 [PATCH] libxenstore should be executable Jeremy Katz
2006-07-04 6:51 ` Bastian Blank
@ 2006-07-04 9:57 ` Vincent Hanquez
2006-07-05 18:36 ` Jeremy Katz
1 sibling, 1 reply; 5+ messages in thread
From: Vincent Hanquez @ 2006-07-04 9:57 UTC (permalink / raw)
To: Jeremy Katz; +Cc: xen-devel
On Mon, Jul 03, 2006 at 11:28:03PM -0400, Jeremy Katz wrote:
> Shared libraries are supposed to be installed +x
>
> Signed-off-by: Jeremy Katz <katzj@redhat.com>
>
> Jeremy
> diff -r fd6d12935b56 tools/xenstore/Makefile
> --- a/tools/xenstore/Makefile Mon Jul 03 16:07:20 2006 +0100
> +++ b/tools/xenstore/Makefile Mon Jul 03 23:26:44 2006 -0400
> @@ -171,7 +171,7 @@ install: all
> $(INSTALL_PROG) xenstore-control $(DESTDIR)/usr/bin
> $(INSTALL_PROG) xenstore-ls $(DESTDIR)/usr/bin
> $(INSTALL_DIR) -p $(DESTDIR)/usr/$(LIBDIR)
> - $(INSTALL_DATA) libxenstore.so $(DESTDIR)/usr/$(LIBDIR)
> + $(INSTALL_PROG) libxenstore.so $(DESTDIR)/usr/$(LIBDIR)
> $(INSTALL_DATA) xs.h $(DESTDIR)/usr/include
> $(INSTALL_DATA) xs_lib.h $(DESTDIR)/usr/include
I don't think that needed (almost all libraries in my /usr/lib are -x).
Even then you shouldn't call INSTALL_**PROG** but just create an
INSTALL_LIB or somethign similar..
--
Vincent Hanquez
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] libxenstore should be executable
2006-07-04 9:57 ` Vincent Hanquez
@ 2006-07-05 18:36 ` Jeremy Katz
2006-07-11 12:30 ` Horms
0 siblings, 1 reply; 5+ messages in thread
From: Jeremy Katz @ 2006-07-05 18:36 UTC (permalink / raw)
To: Vincent Hanquez; +Cc: xen-devel
[-- Attachment #1: Type: text/plain, Size: 807 bytes --]
On Tue, 2006-07-04 at 11:57 +0200, Vincent Hanquez wrote:
> On Mon, Jul 03, 2006 at 11:28:03PM -0400, Jeremy Katz wrote:
> > Shared libraries are supposed to be installed +x
>
> I don't think that needed (almost all libraries in my /usr/lib are -x).
> Even then you shouldn't call INSTALL_**PROG** but just create an
> INSTALL_LIB or somethign similar..
Shared libs have traditionally been installed as executables due to some
long ago accidents of implementation in historical Unixes. And there
are various tools which "expect" it (... and this is why they get
created as executable by default by ld).
Switching to INSTALL_LIB here although I think the whole "define all the
ways you're going to use install" in this makefile a _smidge_ overkill
Signed-off-by: Jeremy Katz <katzj@redhat.com>
Jeremy
[-- Attachment #2: xen-libxenstore-exec.patch --]
[-- Type: text/x-patch, Size: 795 bytes --]
diff -r fd6d12935b56 tools/xenstore/Makefile
--- a/tools/xenstore/Makefile Mon Jul 03 16:07:20 2006 +0100
+++ b/tools/xenstore/Makefile Wed Jul 05 14:33:07 2006 -0400
@@ -5,6 +5,7 @@ INSTALL = install
INSTALL = install
INSTALL_DATA = $(INSTALL) -m0644
INSTALL_PROG = $(INSTALL) -m0755
+INSTALL_LIBS = $(INSTALL) -m0755
INSTALL_DIR = $(INSTALL) -d -m0755
PROFILE=#-pg
@@ -171,7 +172,7 @@ install: all
$(INSTALL_PROG) xenstore-control $(DESTDIR)/usr/bin
$(INSTALL_PROG) xenstore-ls $(DESTDIR)/usr/bin
$(INSTALL_DIR) -p $(DESTDIR)/usr/$(LIBDIR)
- $(INSTALL_DATA) libxenstore.so $(DESTDIR)/usr/$(LIBDIR)
+ $(INSTALL_LIBS) libxenstore.so $(DESTDIR)/usr/$(LIBDIR)
$(INSTALL_DATA) xs.h $(DESTDIR)/usr/include
$(INSTALL_DATA) xs_lib.h $(DESTDIR)/usr/include
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] libxenstore should be executable
2006-07-05 18:36 ` Jeremy Katz
@ 2006-07-11 12:30 ` Horms
0 siblings, 0 replies; 5+ messages in thread
From: Horms @ 2006-07-11 12:30 UTC (permalink / raw)
To: Jeremy Katz; +Cc: xen-devel, Vincent Hanquez
On Wed, 05 Jul 2006 14:36:29 -0400, Jeremy Katz wrote:
> [-- text/plain, encoding 7bit, charset: ISO-8859-1, 20 lines --]
>
> On Tue, 2006-07-04 at 11:57 +0200, Vincent Hanquez wrote:
>> On Mon, Jul 03, 2006 at 11:28:03PM -0400, Jeremy Katz wrote:
>> > Shared libraries are supposed to be installed +x
>>
>> I don't think that needed (almost all libraries in my /usr/lib are -x).
>> Even then you shouldn't call INSTALL_**PROG** but just create an
>> INSTALL_LIB or somethign similar..
>
> Shared libs have traditionally been installed as executables due to some
> long ago accidents of implementation in historical Unixes. And there
> are various tools which "expect" it (... and this is why they get
> created as executable by default by ld).
>
> Switching to INSTALL_LIB here although I think the whole "define all the
> ways you're going to use install" in this makefile a _smidge_ overkill
>
> Signed-off-by: Jeremy Katz <katzj@redhat.com>
I think that this patch is corret (well, perhaps execpt for the _smidge_ bit).
I believe that it is general practice for make install and the like to
install shared libraries as executables for the reason that you give
above. Though it is common practice for distros to remove the executable
bit as part of their packaging process - which explains why many
people won't see it when they go and check /usr/lib, but is of little
concern to this patch.
Acked: Horms <horms@verge.net.au>
--
Horms
H: http://www.vergenet.net/~horms/
W: http://www.valinux.co.jp/en/
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-07-11 12:30 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-04 3:28 [PATCH] libxenstore should be executable Jeremy Katz
2006-07-04 6:51 ` Bastian Blank
2006-07-04 9:57 ` Vincent Hanquez
2006-07-05 18:36 ` Jeremy Katz
2006-07-11 12:30 ` Horms
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.