[mupen64plus-ui-console] 27/172: Add dummy PATH_MAX on systems without it
Sven Eckelmann
ecsv-guest at moszumanska.debian.org
Thu Nov 26 06:07:26 UTC 2015
This is an automated email from the git hooks/post-receive script.
ecsv-guest pushed a commit to branch armhf_test
in repository mupen64plus-ui-console.
commit 5874923fec62e08ab9edde65d65a6122f9945c97
Author: Sven Eckelmann <sven.eckelmann at gmx.de>
Date: Tue Jul 13 20:30:46 2010 +0200
Add dummy PATH_MAX on systems without it
Posix only defines that PATH_MAX may is defined through limits.h.
GNU/Hurd has removed this definition without violating the standards.
Mupen64Plus still relies on it and we work around that problem by
defining PATH_MAX as 4096 in all places it is needed. This is not 100%
correct as their are ways to generate longer paths, but mupen64plus must
be heavily refactored in some places to fix the actual problem.
---
debian/changelog | 3 ++-
debian/patches/path_max.patch | 28 ++++++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 31 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 7e21190..7f65e31 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -18,7 +18,8 @@ mupen64plus-ui-console (1.99.4~hg20100403-1) UNRELEASED; urgency=low
system-zlib.patch, version-string.patch, xdg-basedir.patch,
rice_fog.patch, ftbfs-gvariant-type-conflicts.patch,
dont-install-unneeded.patch, rice-ati-symbols.patch, link_gdk.patch
- - Rebase default-optimisations.patch against 1.99.4~hg20100403
+ - Rebase default-optimisations.patch and path_max.patch against
+ 1.99.4~hg20100403
- Add hurd_os.patch, Add GNU/Hurd as operating system with "linux" userland
* Convert to 3.0 (quilt) source format
* debian/control:
diff --git a/debian/patches/path_max.patch b/debian/patches/path_max.patch
new file mode 100644
index 0000000..2a3cc14
--- /dev/null
+++ b/debian/patches/path_max.patch
@@ -0,0 +1,28 @@
+Description: Add dummy PATH_MAX on systems without it
+ Posix only defines that PATH_MAX may is defined through limits.h. GNU/Hurd has
+ removed this definition without violating the standards.
+ .
+ Mupen64Plus still relies on it and we work around that problem by defining
+ PATH_MAX as 4096 in all places it is needed. This is not 100% correct as their
+ are ways to generate longer paths, but mupen64plus must be heavily refactored
+ in some places to fix the actual problem.
+Bug-Debian: http://bugs.debian.org/588066
+Author: Sven Eckelmann <sven.eckelmann at gmx.de>
+
+---
+diff --git a/src/osal_preproc.h b/src/osal_preproc.h
+index 2b69de042ee01f6dd3f3e69e69350d9a221b3315..8503ff69821ec2c86b405204507e291a2f8e160c 100644
+--- a/src/osal_preproc.h
++++ b/src/osal_preproc.h
+@@ -54,6 +54,11 @@
+ #define OSAL_DLL_EXTENSION ".so"
+ #define osal_insensitive_strcmp(x, y) strcasecmp(x, y)
+
++ /* PATH_MAX only may be defined by limits.h */
++ #ifndef PATH_MAX
++ #define PATH_MAX 4096
++ #endif
++
+ #endif
+
+ #endif /* #define OSAL_PREPROC_H */
diff --git a/debian/patches/series b/debian/patches/series
index 16e335d..5fed16e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
default-optimisations.patch
hurd_os.patch
+path_max.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/mupen64plus-ui-console.git
More information about the Pkg-games-commits
mailing list