> Should be updated: > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=636568 Next package on the list: xerces-c Attached is an updated patch for bug #636568, use_posix_fcns.patch, the *.dsc and *.debian.tar.gz files to enable a successful build for GNU/Hurd.
--- a/src/xercesc/util/FileManagers/PosixFileMgr.cpp.orig 2008-07-04 09:23:56.000000000 +0000
+++ b/src/xercesc/util/FileManagers/PosixFileMgr.cpp 2011-08-04 14:46:59.000000000 +0000
@@ -187,27 +187,32 @@
ArrayJanitor<char> janText(newSrc, manager);
// Use a local buffer that is big enough for the largest legal path
- char absPath[PATH_MAX + 1];
-
+ char *absPath;
+ XMLCh *ret;
+
// get the absolute path
- if (!realpath(newSrc, absPath))
+ absPath = realpath(newSrc, NULL);
+ if (absPath == NULL)
ThrowXMLwithMemMgr(XMLPlatformUtilsException, XMLExcepts::File_CouldNotGetBasePathName, manager);
-
- return XMLString::transcode(absPath, manager);
+ ret = XMLString::transcode(absPath, manager);
+ free(absPath);
+ return ret;
}
XMLCh*
PosixFileMgr::getCurrentDirectory(MemoryManager* const manager)
{
- char dirBuf[PATH_MAX + 2];
- char *curDir = getcwd(&dirBuf[0], PATH_MAX + 1);
+ XMLCh *ret;
+ char *curDir = getcwd(NULL, 0);
- if (!curDir)
+ if (curDir == NULL)
ThrowXMLwithMemMgr(XMLPlatformUtilsException,
XMLExcepts::File_CouldNotGetBasePathName, manager);
- return XMLString::transcode(curDir, manager);
+ ret = XMLString::transcode(curDir, manager);
+ free(curDir);
+ return ret;
}
Attachment:
xerces-c_3.1.1-3+hurd.1.debian.tar.gz
Description: application/compressed-tar
Format: 3.0 (quilt) Source: xerces-c Binary: libxerces-c3.1, libxerces-c-dev, libxerces-c-doc, libxerces-c-samples Architecture: any all Version: 3.1.1-3+hurd.1 Maintainer: Jay Berkenbilt <qjb@debian.org> Standards-Version: 3.9.3 Build-Depends: cdbs (>= 0.4.106~), debhelper (>> 9), dpkg-dev (>= 1.16.1~), libicu-dev, autotools-dev Package-List: libxerces-c-dev deb libdevel optional libxerces-c-doc deb doc optional libxerces-c-samples deb devel optional libxerces-c3.1 deb libs optional Checksums-Sha1: 177ec838c5119df57ec77eddec9a29f7e754c8b2 5051308 xerces-c_3.1.1.orig.tar.gz 05ea3a672cf61d26d7d33dccd9d0012c7720a5b5 5971 xerces-c_3.1.1-3+hurd.1.debian.tar.gz Checksums-Sha256: a42785f71e0b91d5fd273831c87410ce60a73ccfdd207de1b805d26d44968736 5051308 xerces-c_3.1.1.orig.tar.gz 6bd365f5882f5bf52fafef55a7cc4ab1c6ae072a862b13be4a8cd4c604f50dcd 5971 xerces-c_3.1.1-3+hurd.1.debian.tar.gz Files: 6a8ec45d83c8cfb1584c5a5345cb51ae 5051308 xerces-c_3.1.1.orig.tar.gz 1b2e604885e5afe27dc34a1555a16c99 5971 xerces-c_3.1.1-3+hurd.1.debian.tar.gz