-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 This patch looks good to me. acked. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6wTYUACgkQrlYvE4MpobPAbgCfawBeUtpY0K081r/nJwyQO3yW Ls0AoJGgBYD6FLFztFAmh1RXi7nLFpbO =V4ZE -----END PGP SIGNATURE-----
>From c09b907dfdfddfbc847afc6d89c2cbe1f2d230d5 Mon Sep 17 00:00:00 2001 From: Eric Paris <eparis@xxxxxxxxxx> Date: Wed, 28 Sep 2011 17:15:16 -0400 Subject: [PATCH 41/63] libselinux: libsemanage: libsepol: regenerate .pc on VERSION change The makefile which generated the package config files did not have the VERSION file as a dependancy. Thus if you updated a tree you have previously build the .pc file wouldn't be rebuilt and the old version would be reinstalled. Signed-off-by: Eric Paris <eparis@xxxxxxxxxx> --- libselinux/src/Makefile | 2 +- libsemanage/src/Makefile | 2 +- libsepol/src/Makefile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libselinux/src/Makefile b/libselinux/src/Makefile index 2602d8b..1ddddb0 100644 --- a/libselinux/src/Makefile +++ b/libselinux/src/Makefile @@ -92,7 +92,7 @@ $(LIBSO): $(LOBJS) $(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $^ -ldl -L$(LIBDIR) -Wl,-soname,$(LIBSO),-z,defs,-z,relro ln -sf $@ $(TARGET) -$(LIBPC): $(LIBPC).in +$(LIBPC): $(LIBPC).in ../VERSION sed -e 's/@VERSION@/$(VERSION)/; s:@prefix@:$(PREFIX):; s:@libdir@:$(LIBBASE):; s:@includedir@:$(INCLUDEDIR):' < $< > $@ selinuxswig_python_exception.i: ../include/selinux/selinux.h diff --git a/libsemanage/src/Makefile b/libsemanage/src/Makefile index d9120c0..5495122 100644 --- a/libsemanage/src/Makefile +++ b/libsemanage/src/Makefile @@ -90,7 +90,7 @@ $(LIBSO): $(LOBJS) $(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $^ -lsepol -lselinux -lbz2 -lustr -L$(LIBDIR) -Wl,-soname,$(LIBSO),--version-script=libsemanage.map,-z,defs ln -sf $@ $(TARGET) -$(LIBPC): $(LIBPC).in +$(LIBPC): $(LIBPC).in ../VERSION sed -e 's/@VERSION@/$(VERSION)/; s:@prefix@:$(PREFIX):; s:@libdir@:$(LIBBASE):; s:@includedir@:$(INCLUDEDIR):' < $< > $@ semanageswig_python_exception.i: ../include/semanage/semanage.h diff --git a/libsepol/src/Makefile b/libsepol/src/Makefile index 73fdef8..cd8e767 100644 --- a/libsepol/src/Makefile +++ b/libsepol/src/Makefile @@ -27,7 +27,7 @@ $(LIBSO): $(LOBJS) $(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $^ -Wl,-soname,$(LIBSO),--version-script=libsepol.map,-z,defs ln -sf $@ $(TARGET) -$(LIBPC): $(LIBPC).in +$(LIBPC): $(LIBPC).in ../VERSION sed -e 's/@VERSION@/$(VERSION)/; s:@prefix@:$(PREFIX):; s:@libdir@:$(LIBBASE):; s:@includedir@:$(INCLUDEDIR):' < $< > $@ %.o: %.c -- 1.7.7