• 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/libselinux/0003-revert-ln-relative.patch
Yann E. MORINYann E. MORIN committed 4e2d1e43cf002 Jul 2016
Raw file
Source viewDiff to previous
 
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 -durN a/src/Makefile b/src/Makefile
14
--- a/src/Makefile
15
+++ b/src/Makefile
16
@@ -151,7 +151,7 @@
17
    install -m 755 $(LIBSO) $(SHLIBDIR)
18
    test -d $(LIBDIR)/pkgconfig || install -m 755 -d $(LIBDIR)/pkgconfig
19
    install -m 644 $(LIBPC) $(LIBDIR)/pkgconfig
20
-   ln -sf --relative $(SHLIBDIR)/$(LIBSO) $(LIBDIR)/$(TARGET)
21
+   cd $(LIBDIR) && ln -sf ../../`basename $(SHLIBDIR)`/$(LIBSO) $(TARGET)
22
 
23
 install-pywrap: pywrap
24
    test -d $(PYLIBDIR)/site-packages/selinux || install -m 755 -d $(PYLIBDIR)/site-packages/selinux
  • 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.