]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/libselinux/0003-revert-ln-relative.patch
libselinux: remove Blackfin patch
[coffee/buildroot.git] / package / libselinux / 0003-revert-ln-relative.patch
1 Makefile: revert libselinux: use ln --relative to create .so symlinks
2
3 This reverts 71393a181d63c9baae5fe8dcaeb9411d1f253998
4
5 ln --relative is too recent to be available in all distributions,
6 especially enterprise-grade distros that can stick around as long as
7 they are maintained (up to 10 years in some cases?).
8
9 For the sake of Buildroot, revert the upstream patch.
10
11 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
12
13 diff -durNw libselinux-2.7.orig/src/Makefile libselinux-2.7/src/Makefile
14 --- libselinux-2.7.orig/src/Makefile    2018-01-15 20:53:50.168525700 +0100
15 +++ libselinux-2.7/src/Makefile 2018-01-15 20:55:27.061858005 +0100
16 @@ -181,7 +181,7 @@
17         install -m 755 $(LIBSO) $(LIBINSTALL)
18         test -d $(LIBINSTALL)/pkgconfig || install -m 755 -d $(LIBINSTALL)/pkgconfig
19         install -m 644 $(LIBPC) $(LIBINSTALL)/pkgconfig
20 -       ln -sf --relative $(LIBINSTALL)/$(LIBSO) $(LIBINSTALL)/$(TARGET)
21 +       cd $(LIBINSTALL) && ln -sf $(LIBSO) $(TARGET)
22  
23  install-pywrap: pywrap
24         test -d $(PYSITEDIR)/selinux || install -m 755 -d $(PYSITEDIR)/selinux