[aseprite] 01/01: Fix for #821764: PATH_MAX on hurd
Tobias Frost
tobi at moszumanska.debian.org
Tue Apr 19 19:16:56 UTC 2016
This is an automated email from the git hooks/post-receive script.
tobi pushed a commit to branch master
in repository aseprite.
commit 8d0f104e87bec48c7f01158dff63ea735f701b2f
Author: Tobias Frost <tobi at coldtobi.de>
Date: Tue Apr 19 21:06:48 2016 +0200
Fix for #821764: PATH_MAX on hurd
---
debian/changelog | 8 ++++++++
debian/patches/ftbfs-hurd.patch | 31 +++++++++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 40 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 22bcb03..e936bcc 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+aseprite (1.1.3+ds-4) unstable; urgency=medium
+
+ * Team upload.
+ * Do not use PATH_MAX on hurd, but use the realpath(3) feature to
+ allocate the memory itself (Closes: #821764)
+
+ -- Tobias Frost <tobi at debian.org> Tue, 19 Apr 2016 21:06:09 +0200
+
aseprite (1.1.3+ds-3) unstable; urgency=medium
* Add paragraphs for duktape and simpleini to d/copyright.
diff --git a/debian/patches/ftbfs-hurd.patch b/debian/patches/ftbfs-hurd.patch
new file mode 100644
index 0000000..d74f9d2
--- /dev/null
+++ b/debian/patches/ftbfs-hurd.patch
@@ -0,0 +1,31 @@
+Description: Port aseprite to hurd, removing usage of PATH_MAX
+ realpath, on newer glibc (and on hurd), will allocate the memory themselves when the
+ second parmeter is NULL. For defensive programmming, only the behaviour is changed if
+ PATH_MAX is undefined.
+Author: Tobias Frost <tobi at debian.org>
+Bug-Debian: https://bugs.debian.org/821764
+Forwarded: no
+Last-Update: 2016-04-19
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: aseprite-1.1.3+ds/src/base/fs_unix.h
+===================================================================
+--- aseprite-1.1.3+ds.orig/src/base/fs_unix.h
++++ aseprite-1.1.3+ds/src/base/fs_unix.h
+@@ -157,9 +157,16 @@ std::string get_user_docs_folder()
+
+ std::string get_canonical_path(const std::string& path)
+ {
++#ifdef PATH_MAX
+ char buffer[PATH_MAX];
+ realpath(path.c_str(), buffer);
+ return buffer;
++#else
++ char *buffer = realpath(path.c_str(), NULL);
++ std::string ret(buffer);
++ free(buffer);
++ return ret;
++#endif
+ }
+
+ std::vector<std::string> list_files(const std::string& path)
diff --git a/debian/patches/series b/debian/patches/series
index 1cb7ef2..49d2051 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -6,3 +6,4 @@ third_party_cmakelists.patch
find_freetype.patch
shared_modp_b64.patch
disable-resize_image_tests.patch
+ftbfs-hurd.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git
More information about the Pkg-games-commits
mailing list