libselinux pkgconfig does not work correctly on lib64 machines.
libselinux/src/Makefile +2 -1
@@ -11,6 +11,7 @@ RUBYLIBVER ?= $(shell ruby -e 'print RUBY_VERSION.split(".")[0..1].join(".")') RUBYPLATFORM ?= $(shell ruby -e 'print RUBY_PLATFORM') RUBYINC ?= $(LIBDIR)/ruby/$(RUBYLIBVER)/$(RUBYPLATFORM) RUBYINSTALL ?= $(LIBDIR)/ruby/site_ruby/$(RUBYLIBVER)/$(RUBYPLATFORM) +LIBBASE=$(shell basename $(LIBDIR)) VERSION = $(shell cat ../VERSION) LIBVERSION = 1
@@ -85,7 +86,7 @@ $(LIBSO): $(LOBJS) ln -sf $@ $(TARGET) $(LIBPC): $(LIBPC).in - sed -e 's/@VERSION@/$(VERSION)/; s:@prefix@:$(PREFIX):; s:@libdir@:$(LIBDIR):; s:@includedir@:$(INCLUDEDIR):' < $< > $@ + sed -e 's/@VERSION@/$(VERSION)/; s:@prefix@:$(PREFIX):; s:@libdir@:$(LIBBASE):; s:@includedir@:$(INCLUDEDIR):' < $< > $@ selinuxswig_python_exception.i: ../include/selinux/selinux.h bash exception.sh > $@
libsemanage/src/Makefile +3 -2
@@ -10,6 +10,7 @@ RUBYLIBVER ?= $(shell ruby -e 'print RUBY_VERSION.split(".")[0..1].join(".")') RUBYPLATFORM ?= $(shell ruby -e 'print RUBY_PLATFORM') RUBYINC ?= $(LIBDIR)/ruby/$(RUBYLIBVER)/$(RUBYPLATFORM) RUBYINSTALL ?= $(LIBDIR)/ruby/site_ruby/$(RUBYLIBVER)/$(RUBYPLATFORM) +LIBBASE=$(shell basename $(LIBDIR)) DEFAULT_SEMANAGE_CONF_LOCATION=$(DESTDIR)/etc/selinux/semanage.conf
@@ -47,7 +48,7 @@ OBJS= $(patsubst %.c,%.o,$(SRCS)) conf-scan.o conf-parse.o LOBJS= $(patsubst %.c,%.lo,$(SRCS)) conf-scan.lo conf-parse.lo CFLAGS ?= -Wall -W -Wundef -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wno-unused-parameter -override CFLAGS += -I../include -I$(INCLUDEDIR) -D_GNU_SOURCE +override CFLAGS += -I../include -I$(INCLUDEDIR) -D_GNU_SOURCE -fPIC SWIG = swig -Wall -python -o $(SWIGCOUT) -outdir ./
@@ -82,7 +83,7 @@ $(LIBSO): $(LOBJS) ln -sf $@ $(TARGET) $(LIBPC): $(LIBPC).in - sed -e 's/@VERSION@/$(VERSION)/; s:@prefix@:$(PREFIX):; s:@libdir@:$(LIBDIR):; s:@includedir@:$(INCLUDEDIR):' < $< > $@ + sed -e 's/@VERSION@/$(VERSION)/; s:@prefix@:$(PREFIX):; s:@libdir@:$(LIBBASE):; s:@includedir@:$(INCLUDEDIR):' < $< > $@ conf-scan.c: conf-scan.l conf-parse.h $(LEX) $(LFLAGS) -t $< > $@
libsepol/src/Makefile +2 -1
@@ -3,6 +3,7 @@ PREFIX ?= $(DESTDIR)/usr INCLUDEDIR ?= $(PREFIX)/include LIBDIR ?= $(PREFIX)/lib SHLIBDIR ?= $(DESTDIR)/lib +LIBBASE=$(shell basename $(LIBDIR)) VERSION = $(shell cat ../VERSION) LIBVERSION = 1
@@ -27,7 +28,7 @@ $(LIBSO): $(LOBJS) ln -sf $@ $(TARGET) $(LIBPC): $(LIBPC).in - sed -e 's/@VERSION@/$(VERSION)/; s:@prefix@:$(PREFIX):; s:@libdir@:$(LIBDIR):; s:@includedir@:$(INCLUDEDIR):' < $< > $@ + sed -e 's/@VERSION@/$(VERSION)/; s:@prefix@:$(PREFIX):; s:@libdir@:$(LIBBASE):; s:@includedir@:$(INCLUDEDIR):' < $< > $@ %.o: %.c $(CC) $(CFLAGS) -fPIC -c -o $@ $<
updated libselinux pkgconfig does not work correctly on lib64 machines.
Quoted 1 line · Daniel J Walsh
Ignore the first patch it was missing pc.in files.
libselinux/src/Makefile +2 -1
@@ -11,6 +11,7 @@ RUBYLIBVER ?= $(shell ruby -e 'print RUBY_VERSION.split(".")[0..1].join(".")') RUBYPLATFORM ?= $(shell ruby -e 'print RUBY_PLATFORM') RUBYINC ?= $(LIBDIR)/ruby/$(RUBYLIBVER)/$(RUBYPLATFORM) RUBYINSTALL ?= $(LIBDIR)/ruby/site_ruby/$(RUBYLIBVER)/$(RUBYPLATFORM) +LIBBASE=$(shell basename $(LIBDIR)) VERSION = $(shell cat ../VERSION) LIBVERSION = 1
@@ -85,7 +86,7 @@ $(LIBSO): $(LOBJS) ln -sf $@ $(TARGET) $(LIBPC): $(LIBPC).in - sed -e 's/@VERSION@/$(VERSION)/; s:@prefix@:$(PREFIX):; s:@libdir@:$(LIBDIR):; s:@includedir@:$(INCLUDEDIR):' < $< > $@ + sed -e 's/@VERSION@/$(VERSION)/; s:@prefix@:$(PREFIX):; s:@libdir@:$(LIBBASE):; s:@includedir@:$(INCLUDEDIR):' < $< > $@ selinuxswig_python_exception.i: ../include/selinux/selinux.h bash exception.sh > $@
libselinux/src/libselinux.pc.in +1 -1
@@ -1,6 +1,6 @@ prefix=@prefix@ exec_prefix=${prefix} -libdir=${exec_prefix}/lib +libdir=${exec_prefix}/@libdir@ includedir=@includedir@ Name: libselinux
libsemanage/src/Makefile +3 -2
@@ -10,6 +10,7 @@ RUBYLIBVER ?= $(shell ruby -e 'print RUBY_VERSION.split(".")[0..1].join(".")') RUBYPLATFORM ?= $(shell ruby -e 'print RUBY_PLATFORM') RUBYINC ?= $(LIBDIR)/ruby/$(RUBYLIBVER)/$(RUBYPLATFORM) RUBYINSTALL ?= $(LIBDIR)/ruby/site_ruby/$(RUBYLIBVER)/$(RUBYPLATFORM) +LIBBASE=$(shell basename $(LIBDIR)) DEFAULT_SEMANAGE_CONF_LOCATION=$(DESTDIR)/etc/selinux/semanage.conf
@@ -47,7 +48,7 @@ OBJS= $(patsubst %.c,%.o,$(SRCS)) conf-scan.o conf-parse.o LOBJS= $(patsubst %.c,%.lo,$(SRCS)) conf-scan.lo conf-parse.lo CFLAGS ?= -Wall -W -Wundef -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wno-unused-parameter -override CFLAGS += -I../include -I$(INCLUDEDIR) -D_GNU_SOURCE +override CFLAGS += -I../include -I$(INCLUDEDIR) -D_GNU_SOURCE -fPIC SWIG = swig -Wall -python -o $(SWIGCOUT) -outdir ./
@@ -82,7 +83,7 @@ $(LIBSO): $(LOBJS) ln -sf $@ $(TARGET) $(LIBPC): $(LIBPC).in - sed -e 's/@VERSION@/$(VERSION)/; s:@prefix@:$(PREFIX):; s:@libdir@:$(LIBDIR):; s:@includedir@:$(INCLUDEDIR):' < $< > $@ + sed -e 's/@VERSION@/$(VERSION)/; s:@prefix@:$(PREFIX):; s:@libdir@:$(LIBBASE):; s:@includedir@:$(INCLUDEDIR):' < $< > $@ conf-scan.c: conf-scan.l conf-parse.h $(LEX) $(LFLAGS) -t $< > $@
libsemanage/src/libsemanage.pc.in +1 -1
@@ -1,6 +1,6 @@ prefix=@prefix@ exec_prefix=${prefix} -libdir=${exec_prefix}/lib +libdir=${exec_prefix}/@libdir@ includedir=@includedir@ Name: libsemanage
libsepol/src/Makefile +2 -1
@@ -3,6 +3,7 @@ PREFIX ?= $(DESTDIR)/usr INCLUDEDIR ?= $(PREFIX)/include LIBDIR ?= $(PREFIX)/lib SHLIBDIR ?= $(DESTDIR)/lib +LIBBASE=$(shell basename $(LIBDIR)) VERSION = $(shell cat ../VERSION) LIBVERSION = 1
@@ -27,7 +28,7 @@ $(LIBSO): $(LOBJS) ln -sf $@ $(TARGET) $(LIBPC): $(LIBPC).in - sed -e 's/@VERSION@/$(VERSION)/; s:@prefix@:$(PREFIX):; s:@libdir@:$(LIBDIR):; s:@includedir@:$(INCLUDEDIR):' < $< > $@ + sed -e 's/@VERSION@/$(VERSION)/; s:@prefix@:$(PREFIX):; s:@libdir@:$(LIBBASE):; s:@includedir@:$(INCLUDEDIR):' < $< > $@ %.o: %.c $(CC) $(CFLAGS) -fPIC -c -o $@ $<
libsepol/src/libsepol.pc.in +1 -1
@@ -1,6 +1,6 @@ prefix=@prefix@ exec_prefix=${prefix} -libdir=${exec_prefix}/lib +libdir=${exec_prefix}/@libdir@ includedir=@includedir@ Name: libsepol
Re: updated libselinux pkgconfig does not work correctly on lib64 machines.
Quoted 2 lines · Daniel J Walsh
On 02/24/2010 02:24 PM, Daniel J Walsh wrote:
Ignore the first patch it was missing pc.in files.
I am completely new to libtool. Does this seem reasonable Eamon?
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Re: updated libselinux pkgconfig does not work correctly on lib64 machines.
Quoted 7 lines · Joshua Brindle
Quoted 3 lines · Daniel J Walsh
On 02/24/2010 02:24 PM, Daniel J Walsh wrote:
Ignore the first patch it was missing pc.in files.I am completely new to libtool. Does this seem reasonable Eamon?
I don't see any reference to "lib64" anywhere in our Makefiles even with the patch. We have "lib" hard-coded, and I just checked a 64-bit machine and our stuff is in /usr/lib instead of /usr/lib64. Is that what this patch is trying to solve?
Signature · 8 lines
Eamon Walsh National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Re: updated libselinux pkgconfig does not work correctly on lib64 machines.
Quoted 9 lines · Eamon Walsh
Quoted 7 lines · Joshua Brindle
Quoted 4 lines · Daniel J Walsh
On 02/24/2010 02:24 PM, Daniel J Walsh wrote:
Ignore the first patch it was missing pc.in files.
Quoted 11 lines
Quoted 3 lines
I am completely new to libtool. Does this seem reasonable Eamon?
I don't see any reference to "lib64" anywhere in our Makefiles even with the patch. We have "lib" hard-coded, and I just checked a 64-bit machine and our stuff is in
/usr/libinstead of/usr/lib64. Is that what this patch is trying to solve?
Yes
If you execute
make LIBDIR=/usr/lib64 SHLIBDIR=/lib64 install
It should do the right thing with the patch.
This is what the spec file hands in.
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Eamon Walsh
Acked-byRe: updated libselinux pkgconfig does not work correctly on lib64 machines.
Quoted 28 lines · Daniel J Walsh
Quoted 12 lines · Eamon Walsh
Quoted 9 lines · Joshua Brindle
Quoted 5 lines · Daniel J Walsh
On 02/24/2010 02:24 PM, Daniel J Walsh wrote:
Ignore the first patch it was missing pc.in files.Quoted 12 lines
Quoted 4 lines
I am completely new to libtool. Does this seem reasonable Eamon?
I don't see any reference to "lib64" anywhere in our Makefiles even with the patch. We have "lib" hard-coded, and I just checked a 64-bit machine and our stuff is in
/usr/libinstead of/usr/lib64. Is that what this patch is trying to solve?Yes
Quoted 8 lines
If you execute
make LIBDIR=/usr/lib64 SHLIBDIR=/lib64 install
It should do the right thing with the patch.
This is what the spec file hands in.
OK, that makes sense.
The patch contains a stray line involving adding -fPIC to CFLAGS. I don't think that was meant to be part of this patch.
Otherwise,
Signature · 8 lines
Eamon Walsh National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Re: updated libselinux pkgconfig does not work correctly on lib64 machines.
Quoted 38 lines · Eamon Walsh
Quoted 28 lines · Daniel J Walsh
Quoted 12 lines · Eamon Walsh
Quoted 9 lines · Joshua Brindle
Quoted 5 lines · Daniel J Walsh
On 02/24/2010 02:24 PM, Daniel J Walsh wrote:
Ignore the first patch it was missing pc.in files.Quoted 12 lines
Quoted 4 lines
I am completely new to libtool. Does this seem reasonable Eamon?
I don't see any reference to "lib64" anywhere in our Makefiles even with the patch. We have "lib" hard-coded, and I just checked a 64-bit machine and our stuff is in
/usr/libinstead of/usr/lib64. Is that what this patch is trying to solve?Yes
Quoted 8 lines
If you execute
make LIBDIR=/usr/lib64 SHLIBDIR=/lib64 install
It should do the right thing with the patch.
This is what the spec file hands in.
Quoted 10 lines
OK, that makes sense.
The patch contains a stray line involving adding -fPIC to CFLAGS. I don't think that was meant to be part of this patch.
Otherwise,
Acked-by Eamon Walsh<[email protected]>
Merged in libselinux 2.0.92
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.