]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/libsepol/0003-revert-ln-relative.patch
lrzsz: install symlinks for XMODEM and YMODEM
[coffee/buildroot.git] / package / libsepol / 0003-revert-ln-relative.patch
1 From 16b2b0e21e10727065042a1baabd1a887757c65c Mon Sep 17 00:00:00 2001
2 From: Adam Duskett <Adamduskett@outlook.com>
3 Date: Mon, 9 Oct 2017 16:29:36 -0400
4 Subject: [PATCH] Makefile: revert libsepol: use ln --relative to create .so symlinks
5
6 This reverts 71393a181d63c9baae5fe8dcaeb9411d1f253998
7
8 ln --relative is too recent to be available in all distributions,
9 especially enterprise-grade distros that can stick around as long as
10 they are maintained (up to 10 years in some cases?).
11
12 For the sake of Buildroot, revert the upstream patch.
13
14 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
15
16 diff -durNw libsepol-2.7.orig/src/Makefile libsepol-2.7/src/Makefile
17 --- libsepol-2.7.orig/src/Makefile      2018-01-15 21:37:12.821831315 +0100
18 +++ libsepol-2.7/src/Makefile   2018-01-15 21:38:03.838497434 +0100
19 @@ -92,7 +92,7 @@
20  endif
21         test -d $(LIBINSTALL)/pkgconfig || install -m 755 -d $(LIBINSTALL)/pkgconfig
22         install -m 644 $(LIBPC) $(LIBINSTALL)/pkgconfig
23 -       $(LN) -sf --relative $(LIBINSTALL)/$(LIBSO) $(LIBINSTALL)/$(TARGET)
24 +       cd $(LIBINSTALL) && ln -sf $(LIBSO) $(TARGET)
25  
26  relabel:
27         /sbin/restorecon $(LIBINSTALL)/$(LIBSO)