Package: epix
Version: 1.2.17-1
Severity: normal
Tags: patch pending

Dear maintainer,

The epix.el isn't building with the correct paths. Opening emacs
and trying some of the commands results in errors like:

Searching for program: no such file or directory, @bashpath@
Running `@bindir@/epix' on `hello.xp
Running `@bindir@/elaps' on `hello.xp

I've attached a patch made following this tutorial[0], I hope it
works.

[0]
https://raphaelhertzog.com/2011/07/04/how-to-prepare-patches-for-debian-packages/

Regards,
Danilo
diff -Nru epix-1.2.17/debian/changelog epix-1.2.17/debian/changelog
--- epix-1.2.17/debian/changelog	2017-07-25 17:36:14.000000000 -0300
+++ epix-1.2.17/debian/changelog	2017-08-10 16:25:22.000000000 -0300
@@ -1,3 +1,10 @@
+epix (1.2.17-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix epix.el target
+
+ -- Danilo Alves <daniloal...@riseup.net>  Thu, 10 Aug 2017 16:25:22 -0300
+
 epix (1.2.17-1) unstable; urgency=medium
 
   * New upstream release
diff -Nru epix-1.2.17/debian/patches/fix-broken-target.patch epix-1.2.17/debian/patches/fix-broken-target.patch
--- epix-1.2.17/debian/patches/fix-broken-target.patch	1969-12-31 21:00:00.000000000 -0300
+++ epix-1.2.17/debian/patches/fix-broken-target.patch	2017-08-10 16:25:22.000000000 -0300
@@ -0,0 +1,15 @@
+Index: epix-1.2.17/Makefile.am
+===================================================================
+--- epix-1.2.17.orig/Makefile.am
++++ epix-1.2.17/Makefile.am
+@@ -100,7 +100,9 @@ epix.1: epix.1.in
+ 
+ #  emacs mode
+ epix.el: epix.el.in
+-	sed -e 's%@infodir\@%$(infodir)%;' $< > $@
++	sed -e 's%@infodir\@%$(infodir)%;' \
++	    -e 's%@bashpath\@%$(BASH_PATH)%;' \
++	    -e 's%@bindir\@%$(bindir)%;' $< > $@
+ 
+ # Extra things to install
+ install-data-local:
diff -Nru epix-1.2.17/debian/patches/series epix-1.2.17/debian/patches/series
--- epix-1.2.17/debian/patches/series	2016-05-22 16:33:48.000000000 -0300
+++ epix-1.2.17/debian/patches/series	2017-08-10 16:25:22.000000000 -0300
@@ -1 +1,2 @@
 01_untimestamp_gzip
+fix-broken-target.patch

Reply via email to