aports/testing/openvi/fix-symlinks.patch
Jason Swank e8d18ddf76 testing/openvi: various changes
- Binaries are prefixed with "o" to avoid conflicting with vim (ex, view)

- The makefile patch to avoid /var/tmp mods was updated with accurate notes
  and renamed (rm-recover.patch).  A PR has been opened upstream.

- A makefile patch to create relative rather than absolute symlinks for ex, view.
  A PR has been opened upstream.

- A makefile patch to handle DESTDIR.  A PR has been opened upstream.
2023-04-24 13:19:50 +02:00

23 lines
837 B
Diff

Use relative symlinks for view, ex
Create symlinks like:
/usr/bin/ex -> vi
/usr/bin/view -> vi
rather than:
/usr/bin/ex -> /usr/bin/vi
/usr/bin/view -> /usr/bin/vi
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -616,3 +616,3 @@
@$(VERBOSE); $(TEST) -x "$(PREFIX)/bin/$(BINPREFIX)vi$(BINSUFFIX)" && \
- $(LNS) "$(PREFIX)/bin/$(BINPREFIX)vi$(BINSUFFIX)" \
+ $(LNS) "$(BINPREFIX)vi$(BINSUFFIX)" \
"$(PREFIX)/bin/$(BINPREFIX)ex$(BINSUFFIX)"
@@ -623,3 +623,3 @@
@$(VERBOSE); $(TEST) -x "$(PREFIX)/bin/$(BINPREFIX)vi$(BINSUFFIX)" && \
- $(LNS) "$(PREFIX)/bin/$(BINPREFIX)vi$(BINSUFFIX)" \
+ $(LNS) "$(BINPREFIX)vi$(BINSUFFIX)" \
"$(PREFIX)/bin/$(BINPREFIX)view$(BINSUFFIX)"