New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
db-2-install-exe.patch defines wrong variable #2187
Comments
In the meantime the manual change I do by switching |
@tonytheodore you mentioned that the db patch is skipped with gcc8 installation, but I think it isn't because I see after I do
The console outputs:
When it builds db (and fails) the log file shows: (cd '/home/demon/dev/mxe_patch/tmp-db-i686-w64-mingw32.static/db-6.1.26' && patch -p1 -u) < /home/demon/dev/mxe_patch/src/db-2-install-exe.patch
patching file dist/Makefile.in So it seems it does in fact use the patch even with gcc8. And I do have gcc8 installed: demon@UbuntuHP:~/dev/mxe$ ls pkg/gcc*
pkg/gcc-8.2.0.tar.xz |
Now I see, what happens if you do:
That usage of diff --git a/src/db-2-install-exe.patch b/src/db-2-install-exe.patch
deleted file mode 100644
index 57d26f07..00000000
--- a/src/db-2-install-exe.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-This file is part of MXE. See LICENSE.md for licensing information.
-
-From 67a1bbc57a368efd2ebb81f771ef7ba794bac5a0 Mon Sep 17 00:00:00 2001
-From: Boris Nagaev <bnagaev@gmail.com>
-Date: Wed, 2 Sep 2015 20:18:30 +0300
-Subject: [PATCH] install executables with .exe
-
----
- dist/Makefile.in | 3 +--
- 1 file changed, 1 insertion(+), 2 deletions(-)
-
-diff --git a/dist/Makefile.in b/dist/Makefile.in
-index 8358e53..8839ea6 100644
---- a/dist/Makefile.in
-+++ b/dist/Makefile.in
-@@ -1150,8 +1150,7 @@ install_utilities:
- ($(MKDIR) -p $(DESTDIR)$(bindir) && \
- $(CHMOD) $(dmode) $(DESTDIR)$(bindir))
- @for i in $(UTIL_PROGS); do \
-- test -f $$i.exe && i=$$i.exe; \
-- e=`echo $$i | $(SED) '$(transform)'`; \
-+ e=$$i.exe; \
- $(RM) $(DESTDIR)$(bindir)/$$e; \
- $(INSTALLER) $$i $(DESTDIR)$(bindir)/$$e; \
- $(STRIP) $(DESTDIR)$(bindir)/$$e; \
---
-2.1.4
-
diff --git a/src/db.mk b/src/db.mk
index fe4a013a..e0c39ecd 100644
--- a/src/db.mk
+++ b/src/db.mk
@@ -20,6 +20,7 @@ endef
define $(PKG)_BUILD
cd '$(1)/build_unix' && ../dist/configure \
$(MXE_CONFIGURE_OPTS) \
+ --program-transform-name='s,.exe,,;s,\(.*\),\1.exe,' \
--enable-mingw \
--enable-cxx \
--enable-cryptography \ |
Output:
Output:
|
👍 for adding to db.mk L#23, works like a charm 💯
|
@starius when building BerkelyDB after installing qt5 with gcc8:
The patch does not change the $$i variable in
mxe/src/db-2-install-exe.patch
Line 24 in 13d6257
and leaves
$(INSTALLER) $$i
still in place from the original Makefile.in setup.This results in libtool not being able to locate the bindir files in build_unix to copy over to mxe/usr/i686-w64-mingw32.static/bin (or relevant target dir), because $$i variable isn't defined, like it is in the original makefile.in
@tonytheodore believes this patch may be removed all together and use the transform variable to fix this issue. #2186 (comment).
I'm not familiar with making this type of change. I'll let it to you guys.
The text was updated successfully, but these errors were encountered: