Menu

#8 libspnav install with relative symlinks

Unstable_(example)
closed
nobody
None
5
2020-02-27
2020-02-24
No

Hi John,
could you use this patch on the libspnav Makefile.in? It changes the library symlinks from absolute paths to relative. This makes using fakeroot possible when building distribution packages. It should also work with direct source installs. The patch is identical for Arch and Debian.

Cheers,
Torsten

--- libspnav-0.2.3/Makefile.in~ 2015-01-10 09:08:35.043417955 +0000
+++ libspnav-0.2.3/Makefile.in 2015-01-10 09:09:00.833315269 +0000
@@ -54,8 +54,8 @@
cp $(lib_so) $(DESTDIR)$(PREFIX)/$(libdir)/$(lib_so)
[ -n "$(soname)" ] && \
rm -f $(DESTDIR)$(PREFIX)/$(libdir)/$(soname) $(DESTDIR)$(PREFIX)/$(libdir)/$(devlink) && \

  • ln -s $(DESTDIR)$(PREFIX)/$(libdir)/$(lib_so) $(DESTDIR)$(PREFIX)/$(libdir)/$(soname) && \
  • ln -s $(DESTDIR)$(PREFIX)/$(libdir)/$(soname) $(DESTDIR)$(PREFIX)/$(libdir)/$(devlink) || \
  • ln -s $(lib_so) $(DESTDIR)$(PREFIX)/$(libdir)/$(soname) && \
  • ln -s $(soname) $(DESTDIR)$(PREFIX)/$(libdir)/$(devlink) || \
    true
    for h in $(hdr); do cp -p $(srcdir)/$$h $(DESTDIR)$(PREFIX)/include/; done

Discussion

  • John Tsiombikas

    John Tsiombikas - 2020-02-25

    Done, commit 79ad169.

     
  • John Tsiombikas

    John Tsiombikas - 2020-02-25
    • status: open --> closed
     
  • Torsten Sadowski

    Thank you very much. Could you tag a release that the changes can be picked up by the Linux distributions?

    Cheers,
    Torsten

     
  • John Tsiombikas

    John Tsiombikas - 2020-02-27

    This is an extremely minor change to warrant a full release. I'm sure any distributions which have a problem with this can either use the specific git revision, or take the diff from this commit and add it to their package patches.

     

Log in to post a comment.