[Pkg-lyx-devel] Bug#597279: lyx: FTBFS on hurd-i386 due to PATH_MAX usage
Samuel Thibault
sthibault at debian.org
Sat Sep 18 12:06:48 UTC 2010
Package: lyx
Severity: normal
Version: 1.6.7
Tags: patch
User: debian-hurd at list.debian.org
User-tags: hurd
Hello,
lyx currently FTBFS on hurd-i386 because of inconditional usage of the
optional PATH_MAX macro. The attached patch fixes that by taking
advantage of glibc's extension to realpath (accepting NULL and allocate
on the fly). Could you please apply it?
Thanks,
Samuel
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.35 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages lyx depends on:
pn libaiksaurus-1.2-0c2 <none> (no description available)
ii libaspell15 0.60.6-4 GNU Aspell spell-checker runtime l
pn libboost-regex1.34.1 <none> (no description available)
pn libboost-signals1.34 <none> (no description available)
ii libc6 2.11.2-5 Embedded GNU C Library: Shared lib
ii libgcc1 1:4.5.0-6 GCC support library
ii libqtcore4 4:4.6.3-1+b1 Qt 4 core module
ii libqtgui4 4:4.6.3-1+b1 Qt 4 GUI module
ii libstdc++6 4.5.0-6 The GNU Standard C++ Library v3
ii libx11-6 2:1.3.3-3 X11 client-side library
pn lyx-common <none> (no description available)
ii mime-support 3.48-1 MIME files 'mime.types' & 'mailcap
ii xdg-utils 1.0.2+cvs20100307-1 desktop integration utilities from
ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime
Versions of packages lyx recommends:
ii acroread [pdf-viewer] 9.1.1-0.0 Adobe Acrobat Reader: Portable Doc
pn dvipng <none> (no description available)
ii evince-gtk [pdf-viewer] 2.30.3-1 Document (postscript, pdf) viewer
ii ghostscript 8.71~dfsg2-6 The GPL Ghostscript PostScript/PDF
ii gv [pdf-viewer] 1:3.7.1-1 PostScript and PDF viewer for X
ii imagemagick 8:6.6.0.4-2.2 image manipulation programs
ii kghostview [pdf-viewer] 4:3.5.9-3+lenny2 PostScript viewer for KDE
ii kpdf [pdf-viewer] 4:3.5.9-3+lenny2 PDF viewer for KDE
ii latex-xft-fonts 1.6.7-1 TrueType versions of some TeX font
ii okular [pdf-viewer] 4:4.4.5-1 document viewer for KDE
ii poppler-utils 0.12.4-1.1 PDF utilitites (based on libpopple
ii preview-latex-style 11.85-1 extraction of elements from LaTeX
ii psutils 1.17-27 A collection of PostScript documen
ii texlive-fonts-recommend 2009-10 TeX Live: Recommended fonts
ii texlive-latex-extra 2009-9 TeX Live: LaTeX supplementary pack
ii texlive-latex-recommend 2009-10 TeX Live: LaTeX recommended packag
ii xpdf [pdf-viewer] 3.02-11 Portable Document Format (PDF) rea
Versions of packages lyx suggests:
pn chktex <none> (no description available)
ii chromium-browser [ww 6.0.472.53~r57914-3 Chromium browser
ii cups-bsd [lpr] 1.4.4-3 Common UNIX Printing System(tm) -
ii cups-client 1.4.4-3 Common UNIX Printing System(tm) -
pn dvipost <none> (no description available)
ii edbrowse [www-browse 3.4.1-1+b1 A /bin/ed-alike webbrowser written
ii elinks [www-browser] 0.12~pre5-2 advanced text-mode WWW browser
ii galeon [www-browser] 2.0.7-2.1+b1 GNOME web browser for advanced use
pn gnuhtml2latex <none> (no description available)
ii groff 1.20.1-10 GNU troff text-formatting system
ii hevea 1.10-12 translates from LaTeX to HTML, inf
ii iceape-browser [www- 2.0.7-1 Iceape Navigator (Internet browser
ii iceweasel [www-brows 3.5.12-2 Web browser based on Firefox
ii konqueror [www-brows 4:4.4.5-1 advanced file manager, web browser
ii latex2html 2008-debian1-5 LaTeX to HTML translator
pn latex2rtf <none> (no description available)
pn libtiff-tools <none> (no description available)
ii links [www-browser] 2.3~pre1-1 Web browser running in text mode
ii links2 [www-browser] 2.3pre1-1 Web browser running in both graphi
ii linuxdoc-tools 0.9.66 convert LinuxDoc SGML source into
ii lynx-cur [www-browse 2.8.8dev.5-1 Text-mode WWW Browser with NLS sup
ii menu 2.1.43 generates programs menu for all me
pn noweb <none> (no description available)
ii rcs 5.7-25 The GNU Revision Control System
pn sgmltools-lite <none> (no description available)
ii w3m [www-browser] 0.5.2-9 WWW browsable pager with excellent
ii writer2latex 1.0-12 OpenOffice.org Writer/Calc to LaTe
pn wv <none> (no description available)
--
Samuel Thibault <samuel.thibault at fnac.net>
I am the "ILOVEGNU" signature virus. Just copy me to your signature.
This email was infected under the terms of the GNU General Public License.
-------------- next part --------------
--- ./src/support/os_unix.cpp.orig 2010-09-18 09:01:32.000000000 +0000
+++ ./src/support/os_unix.cpp 2010-09-18 09:01:36.000000000 +0000
@@ -297,9 +297,16 @@
string real_path(string const & path)
{
+#ifdef __GLIBC__
+ char * result = realpath(path.c_str(), NULL);
+ string ret = FileName::fromFilesystemEncoding(result ? result : path).absFilename();
+ free(result);
+ return ret;
+#else
char rpath[PATH_MAX + 1];
char * result = realpath(path.c_str(), rpath);
return FileName::fromFilesystemEncoding(result ? rpath : path).absFilename();
+#endif
}
} // namespace os
More information about the Pkg-lyx-devel
mailing list