• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/libsepol/0003-revert-ln-relative.patch
Adam DuskettAdam Duskett committed a26fc91cec509 Jan 2017
Raw file
Source viewDiff to previous
 
1
Makefile: revert libsepol: 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 -durN a/src/Makefile b/src/Makefile
14
--- a/src/Makefile
15
+++ b/src/Makefile
16
@@ -77,7 +77,7 @@
17
 ifeq ($(STATIC),)
18
    test -d $(SHLIBDIR) || install -m 755 -d $(SHLIBDIR)
19
    install -m 755 $(LIBSO) $(SHLIBDIR)
20
-   ln -sf --relative $(SHLIBDIR)/$(LIBSO) $(LIBDIR)/$(TARGET)
21
+   cd $(LIBDIR) && ln -sf ../../`basename $(SHLIBDIR)`/$(LIBSO) $(TARGET)
22
 endif
23
 
24
 relabel:
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.