[dvipdfmx] [PATCH] mingw: Don't copy libtool wrappers

Naveen M K naveen521kk at gmail.com
Sat Oct 30 12:41:31 CEST 2021


Hi,

Recently someone reported[1] that extractbb.exe isn't working as 
expected. I found that they were libtool wrappers which shouldn't be 
installed outside of build tree. I also found this affect all the 
following executables:

- extractbb.exe
- dvipdfm.exe
- dvipdfmx.exe
- ebb.exe

I am suggesting the following patch so that this doesn't happen. I have 
applied this patch in MSYS2[2] and it seems to work.

[1].. https://github.com/msys2/msys2-texlive/issues/18
[2].. https://github.com/msys2/MINGW-packages/pull/9840

Naveen M K
-------------- next part --------------
From 41d467a60daabb971322f99bf087701ff5dce097 Mon Sep 17 00:00:00 2001
From: Naveen M K <naveen521kk at gmail.com>
Date: Fri, 22 Oct 2021 15:03:31 +0530
Subject: [PATCH] texk/dvipdfm-x: Don't copy libtool wrapper

Previously libtools wrapper was copied as `extractbb.exe`
and other which is not to be done. So, now use libtool to
copy the files rather than doing manually so that this
doesn't happen.

Signed-off-by: Naveen M K <naveen521kk at gmail.com>
---
 texk/dvipdfm-x/Makefile.am | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/texk/dvipdfm-x/Makefile.am b/texk/dvipdfm-x/Makefile.am
index c738137d3d..6c845232ab 100644
--- a/texk/dvipdfm-x/Makefile.am
+++ b/texk/dvipdfm-x/Makefile.am
@@ -209,10 +209,10 @@ dist_cmapdata_DATA = data/EUC-UCS2
 
 install-exec-hook: install-bin-links
 if WIN32
-	$(INSTALL_PROGRAM) call_xdvipdfmx$(EXEEXT) $(DESTDIR)$(bindir)/dvipdfm$(EXEEXT)
-	$(INSTALL_PROGRAM) call_xdvipdfmx$(EXEEXT) $(DESTDIR)$(bindir)/dvipdfmx$(EXEEXT)
-	$(INSTALL_PROGRAM) call_xdvipdfmx$(EXEEXT) $(DESTDIR)$(bindir)/ebb$(EXEEXT)
-	$(INSTALL_PROGRAM) call_xdvipdfmx$(EXEEXT) $(DESTDIR)$(bindir)/extractbb$(EXEEXT)
+	$(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) call_xdvipdfmx$(EXEEXT) "$(DESTDIR)$(bindir)/dvipdfm$(EXEEXT)"
+	$(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) call_xdvipdfmx$(EXEEXT) "$(DESTDIR)$(bindir)/dvipdfmx$(EXEEXT)"
+	$(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) call_xdvipdfmx$(EXEEXT) "$(DESTDIR)$(bindir)/ebb$(EXEEXT)"
+	$(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) call_xdvipdfmx$(EXEEXT) "$(DESTDIR)$(bindir)/extractbb$(EXEEXT)"
 endif WIN32
 
 install-data-hook: install-man1-links


More information about the dvipdfmx mailing list.