Package: emacs24
Version: 24.4+1
Severity: minor

I am trying to build the Debian package of emacs24-24.4+1-5 on an
Ubuntu Trusty system.  I realize this is unsupported, but I have
encountered a confusing bug.  The build log shows this:

----
   debian/rules override_dh_auto_install
make[1]: Entering directory `/home/me/Temp/src/emacs/emacs24-24.4+1'
perl -p -e "s|\@PKG_NAME\@|emacs24-bin-common|go;" -e
"s|\@MAJOR_VERSION\@|24|go;" -e "s|\@MINOR_VERSION\@|4|go;" -e
"s|\@FULL_VERSION\@|24.4|go;" -e "s|\@PACKAGE_VERSION\@|24.4+1-5|go;"
-e "s|\@DEBIAN_REV\@||go;" -e "s|\@UPSTREAM_VERSION\@|24.4|go;" -e
"s|\@DEBSRC_VERSION\@|24.4+1|go;" -e "s|\@DEB_FLAVOR\@|emacs24|go;" -e
"s|\@MENU_VERSION\@|24|go;" -e "s|\@INFO_FILES\@|efaq.info|go;" -e
"s|\@INFO_SUBDIR\@|emacs-24|go;" -e "s|\@X_SUPPORT\@||go;" -e
"s|\@BIN_PRIORITY\@|27|go;" -e
"s|\@MOVEMAIL_BIN\@|usr/lib/emacs/24.4/x86_64-linux-gnu/movemail|go;"
< debian/emacsVER-bin-common.lintian-overrides >
debian/emacs24-bin-common.lintian-overrides
perl -p -e "s|\@PKG_NAME\@|emacs24-bin-common|go;" -e
"s|\@MAJOR_VERSION\@|24|go;" -e "s|\@MINOR_VERSION\@|4|go;" -e
"s|\@FULL_VERSION\@|24.4|go;" -e "s|\@PACKAGE_VERSION\@|24.4+1-5|go;"
-e "s|\@DEBIAN_REV\@||go;" -e "s|\@UPSTREAM_VERSION\@|24.4|go;" -e
"s|\@DEBSRC_VERSION\@|24.4+1|go;" -e "s|\@DEB_FLAVOR\@|emacs24|go;" -e
"s|\@MENU_VERSION\@|24|go;" -e "s|\@INFO_FILES\@|efaq.info|go;" -e
"s|\@INFO_SUBDIR\@|emacs-24|go;" -e "s|\@X_SUPPORT\@||go;" -e
"s|\@BIN_PRIORITY\@|27|go;" -e
"s|\@MOVEMAIL_BIN\@|usr/lib/emacs/24.4/x86_64-linux-gnu/movemail|go;"
< debian/emacsVER-bin-common.postinst >
debian/emacs24-bin-common.postinst
perl -p -e "s|\@PKG_NAME\@|emacs24-bin-common|go;" -e
"s|\@MAJOR_VERSION\@|24|go;" -e "s|\@MINOR_VERSION\@|4|go;" -e
"s|\@FULL_VERSION\@|24.4|go;" -e "s|\@PACKAGE_VERSION\@|24.4+1-5|go;"
-e "s|\@DEBIAN_REV\@||go;" -e "s|\@UPSTREAM_VERSION\@|24.4|go;" -e
"s|\@DEBSRC_VERSION\@|24.4+1|go;" -e "s|\@DEB_FLAVOR\@|emacs24|go;" -e
"s|\@MENU_VERSION\@|24|go;" -e "s|\@INFO_FILES\@|efaq.info|go;" -e
"s|\@INFO_SUBDIR\@|emacs-24|go;" -e "s|\@X_SUPPORT\@||go;" -e
"s|\@BIN_PRIORITY\@|27|go;" -e
"s|\@MOVEMAIL_BIN\@|usr/lib/emacs/24.4/x86_64-linux-gnu/movemail|go;"
< debian/emacsVER-bin-common.prerm > debian/emacs24-bin-common.prerm
cd debian && \
          csplit -s -f emacsVER-common.README. \
          emacsVER-common.README '/@@PATCH_LIST_HERE@@/'
cp debian/emacsVER-common.README.00 debian/emacsVER-common.README.tmp
for p in $(QUILT_PATCHES=debian/patches quilt series); do \
          debian/patch-to-news "$p" >> debian/emacsVER-common.README.tmp \
          && echo >> debian/emacsVER-common.README.tmp; \
        done
debian/patch-to-news: line 9:
0001-Prefer-usr-share-info-emacs-24-over-usr-share-info.patch: No such
file or directory
debian/patch-to-news: line 9:
0002-Run-debian-startup-and-set-debian-emacs-flavor.patch: No such
file or directory
debian/patch-to-news: line 9:
0003-Remove-files-that-appear-to-be-incompatible-with-the.patch: No
such file or directory
debian/patch-to-news: line 9:
0004-Adjust-documentation-references-for-Debian.patch: No such file or
directory
debian/patch-to-news: line 9:
0005-Modify-the-output-of-version-to-indicate-Debian-modi.patch: No
such file or directory
debian/patch-to-news: line 9:
0006-Look-for-NEWS-in-order-to-find-etc-rather-than-GNU.patch: No such
file or directory
debian/patch-to-news: line 9:
0007-Don-t-try-to-build-src-macuvs.h-via-IVD_Sequences.tx.patch: No
such file or directory
debian/patch-to-news: line 9:
0008-A-race-to-create-info-has-been-eliminated.patch: No such file or
directory
debian/patch-to-news: line 9:
0009-Nil-load-path-elements-shouldn-t-crash-Emacs.patch: No such file
or directory
make[1]: *** [debian/emacs24-common.README.Debian] Error 1
----

What's happening is, the patch-to-news script is getting just the
filename of each patch, not "debian/patches/filename.patch".

Now, there are entries in both the Ubuntu and Debian changelogs for
emacs24 packages that mention the bug being fixed (in different
versions), and it appears that the debian/rules file was edited to
change the argument to "debian/patches/$$p".  However, my download of
emacs24_24.4+1-5 from Debian does not have the corrected rules script,
so the build fails on my system.

In the process of investigating this, I found on Google a git repo
that fixes the patch-to-news script itself:

http://git.willhughes.name/emacs/commit/37eb31c8134e099a209f497512e7de8772b47105/

I don't know why the build works for Debian but doesn't work here.  Is
there a difference in quilt that causes the relative path to be
printed instead of just the filename?  Anyway, maybe it would be good
to consider patching patch-to-news itself.  It's a shame that the only
reason the build failed on my system is due to this little problem.

Thanks.

-- System Information:
Debian Release: jessie/sid
  APT prefers trusty-updates
  APT policy: (500, 'trusty-updates'), (500, 'trusty-security'), (500,
'trusty'), (100, 'trusty-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-30-generic (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to