Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 379571 - latex-package.eclass mishandles files with spaces in filename
Summary: latex-package.eclass mishandles files with spaces in filename
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: TeX project
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2011-08-17 13:12 UTC by Andreas K. Hüttel
Modified: 2022-04-15 09:01 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas K. Hüttel archtester gentoo-dev 2011-08-17 13:12:31 UTC
*NOT* a problem with any of the ebuilds in the main tree afaik, but it turns up in a local ebuild.

${S} contains a pdf documentation file with spaces in the filename, "UR_Anleitung zur Installation der Hausschrift unter LaTeX.pdf"

All goes well up to the installation phase, where latex-package_src_install fails with "File not found"...

install: Aufruf von stat für „./UR_Anleitung“ nicht möglich: Datei oder Verzeichnis nicht gefunden
!!! doins: ./UR_Anleitung does not exist
doins failed
 * ERROR: dev-tex/frutiger-1.0 failed (install phase):
 *   doins ./UR_Anleitung failed
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_install
 *   environment, line 2391:  Called latex-package_src_install
 *   environment, line 1813:  Called latex-package_src_doinstall 'all'
 *   environment, line 1804:  Called latex-package_src_doinstall 'styles' 'fonts' 'bin' 'doc'
 *   environment, line 1795:  Called latex-package_src_doinstall 'tex' 'dtx' 'dvi' 'ps' 'pdf'
 *   environment, line 1752:  Called die
 * The specific snippet of code:
 *                       doins $i || die "doins $i failed";
Comment 1 MW 2022-04-08 08:59:07 UTC
I was not able to reproduce this. Has this been resolved? If not, please supply a MWE.
Comment 2 Larry the Git Cow gentoo-dev 2022-04-15 08:59:02 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa3d9fa67e6b8f39bf0e8e85d71bbeae8236aa06

commit fa3d9fa67e6b8f39bf0e8e85d71bbeae8236aa06
Author:     Ulrich Müller <ulm@gentoo.org>
AuthorDate: 2022-04-11 10:37:23 +0000
Commit:     Ulrich Müller <ulm@gentoo.org>
CommitDate: 2022-04-15 08:58:43 +0000

    latex-package.eclass: Properly quote variables
    
    Bug: https://bugs.gentoo.org/379571
    Signed-off-by: Ulrich Müller <ulm@gentoo.org>

 eclass/latex-package.eclass | 40 +++++++++++++++++++++-------------------
 1 file changed, 21 insertions(+), 19 deletions(-)
Comment 3 Ulrich Müller gentoo-dev 2022-04-15 09:01:02 UTC
@dilfridge: Please test if the issue is fixed.