[pkg-wine-party] [wine] 08/10: Use variable instead of '-development' in winemenubuilder.patch.
Jens Reyer
jreyer-guest at moszumanska.debian.org
Wed Jun 22 23:44:53 UTC 2016
This is an automated email from the git hooks/post-receive script.
jreyer-guest pushed a commit to branch master
in repository wine.
commit a46a16ccd05f3b21345051e79afc980edc1e75a8
Author: Jens Reyer <jre.winesim at gmail.com>
Date: Wed Jun 22 23:35:03 2016 +0200
Use variable instead of '-development' in winemenubuilder.patch.
---
debian/changelog | 2 ++
debian/patches/development/winemenubuilder.patch | 35 ++++++++++++++++++++----
2 files changed, 31 insertions(+), 6 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index ff5a571..c78df96 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,8 @@ wine-development (1.9.12-2) UNRELEASED; urgency=medium
* Generate scripts (wine, wineserver, wineapploader, winegcc) with
hardcoded paths/names instead of runtime detection.
* Export DEBSUFFIX from d/rules.
+ * Use variable instead of '-development' in winemenubuilder.patch and
+ winegcc.patch.
-- Jens Reyer <jre.winesim at gmail.com> Wed, 22 Jun 2016 23:28:47 +0200
diff --git a/debian/patches/development/winemenubuilder.patch b/debian/patches/development/winemenubuilder.patch
index 65a96e3..ccf934c 100644
--- a/debian/patches/development/winemenubuilder.patch
+++ b/debian/patches/development/winemenubuilder.patch
@@ -1,23 +1,46 @@
-description: call wine-development instead of wine from desktop launchers
+description: call wineDEBSUFFIX instead of wine from desktop launchers
author: Michael Gilbert <mgilbert at debian.org>
+author: Jens Reyer <jre.winesim at gmail.com>
+--- a/programs/winemenubuilder/Makefile.in
++++ b/programs/winemenubuilder/Makefile.in
+@@ -1,6 +1,7 @@
+ MODULE = winemenubuilder.exe
+ APPMODE = -mwindows -municode
+ IMPORTS = uuid windowscodecs shell32 shlwapi ole32 user32 advapi32
++EXTRADEFS = -DDEBSUFFIX="\"${DEBSUFFIX}\""
+
+ C_SRCS = \
+ winemenubuilder.c
--- a/programs/winemenubuilder/winemenubuilder.c
+++ b/programs/winemenubuilder/winemenubuilder.c
-@@ -1488,7 +1488,7 @@ static BOOL write_desktop_entry(const ch
+@@ -104,6 +104,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(menubuilder);
+ #define in_startmenu(csidl) ((csidl)==CSIDL_STARTMENU || \
+ (csidl)==CSIDL_COMMON_STARTMENU)
+
++static const char wine_debsuffix[] = "wine" DEBSUFFIX;
++
+ /* link file formats */
+
+ #include "pshpack1.h"
+@@ -1488,8 +1490,8 @@ static BOOL write_desktop_entry(const ch
fprintf(file, "[Desktop Entry]\n");
fprintf(file, "Name=%s\n", linkname);
- fprintf(file, "Exec=env WINEPREFIX=\"%s\" wine %s %s\n",
-+ fprintf(file, "Exec=env WINEPREFIX=\"%s\" wine-development %s %s\n",
- wine_get_config_dir(), path, args);
+- wine_get_config_dir(), path, args);
++ fprintf(file, "Exec=env WINEPREFIX=\"%s\" %s %s %s\n",
++ wine_get_config_dir(), wine_debsuffix, path, args);
fprintf(file, "Type=Application\n");
fprintf(file, "StartupNotify=true\n");
-@@ -2527,7 +2527,7 @@ static BOOL write_freedesktop_associatio
+ if (descr && lstrlenA(descr))
+@@ -2527,7 +2529,8 @@ static BOOL write_freedesktop_associatio
fprintf(desktop, "Type=Application\n");
fprintf(desktop, "Name=%s\n", friendlyAppName);
fprintf(desktop, "MimeType=%s;\n", mimeType);
- fprintf(desktop, "Exec=env WINEPREFIX=\"%s\" wine start /ProgIDOpen %s %%f\n", wine_get_config_dir(), progId);
-+ fprintf(desktop, "Exec=env WINEPREFIX=\"%s\" wine-development start /ProgIDOpen %s %%f\n", wine_get_config_dir(), progId);
++ fprintf(desktop, "Exec=env WINEPREFIX=\"%s\" %s start /ProgIDOpen %s %%f\n",
++ wine_get_config_dir(), wine_debsuffix, progId);
fprintf(desktop, "NoDisplay=true\n");
fprintf(desktop, "StartupNotify=true\n");
if (openWithIcon)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wine/wine.git
More information about the pkg-wine-party
mailing list