]> git.donarmstrong.com Git - lilypond.git/commitdiff
Remove patch hurd_file_name_support, applied upstream
authorDr. Tobias Quathamer <toddy@debian.org>
Tue, 3 Oct 2017 12:56:49 +0000 (14:56 +0200)
committerDr. Tobias Quathamer <toddy@debian.org>
Tue, 3 Oct 2017 12:56:49 +0000 (14:56 +0200)
debian/patches/hurd_file_name_support [deleted file]
debian/patches/series

diff --git a/debian/patches/hurd_file_name_support b/debian/patches/hurd_file_name_support
deleted file mode 100644 (file)
index 0f0cc74..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-Description: Hurd build without PATH_MAX; currently broken
-Forwarded: http://lists.gnu.org/archive/html/bug-lilypond/2017-01/msg00023.html
-Origin: vendor, https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=761036;filename=hurd_file_name_support;msg=5
-Bug-Debian: https://bugs.debian.org/761036
-Author: Don Armstrong <don@debian.org>
-Author: Petter Reinholdtsen <pere@hungry.com>
-Reviewed-by: Dr. Tobias Quathamer <toddy@debian.org>
-Reviewed-by: Anthony Fok <foka@debian.org>
-Last-Update: 2017-01-27
---- a/flower/file-name.cc
-+++ b/flower/file-name.cc
-@@ -77,9 +77,16 @@
- string
- get_working_directory ()
- {
-+#ifdef _GNU_SOURCE
-+  char *cwd = get_current_dir_name();
-+  string scwd(cwd);
-+  free(cwd);
-+  return scwd;
-+#else
-   char cwd[PATH_MAX];
-   // getcwd returns NULL upon a failure, contents of cwd would be undefined!
-   return string (getcwd (cwd, PATH_MAX));
-+#endif
- }
- /* Join components to full file_name. */
---- a/flower/test-file-path.cc
-+++ b/flower/test-file-path.cc
-@@ -6,12 +6,26 @@
- #include "yaffut.hh"
- #include "config.hh"
-+string
-+get_working_directory ()
-+{
-+#ifdef _GNU_SOURCE
-+  char *cwd = get_current_dir_name();
-+  string scwd(cwd);
-+  free(cwd);
-+  return scwd;
-+#else
-+  char cwd[PATH_MAX];
-+  // getcwd returns NULL upon a failure, contents of cwd would be undefined!
-+  return string (getcwd (cwd, PATH_MAX));
-+#endif
-+}
-+
- TEST (File_path, Find)
- {
-   char const *extensions[] = {"ly", "", 0};
-   string file = "init";
--  char cwd[PATH_MAX];
--  if (!getcwd (cwd, PATH_MAX))
-+  if (get_working_directory().empty())
-     {
-       cerr << "Could not get current work directory\n";
-       exit (1);
index 6c63751e84d97ac8084dc230318ca508902a4aca..f430bd2b85a870b67e3ccbd125c3e17e64192176 100644 (file)
@@ -1,5 +1,4 @@
 add_dircategories_to_documentation
-hurd_file_name_support
 more_debug_output_during_build
 support_guile_2
 use_cstring_and_ctype_includes