Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 494390 - x11-libs/fltk-1.3.2 - pdflatex: LaTeX Error: File `a4wide.sty' not found. -/ /- make: *** [pdf] Error 1
Summary: x11-libs/fltk-1.3.2 - pdflatex: LaTeX Error: File `a4wide.sty' not found. -/ ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-15 20:56 UTC by Brenn
Modified: 2024-12-26 17:50 UTC (History)
5 users (show)

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


Attachments
emerge --info + build.log (emergeinfo,146.74 KB, text/plain)
2013-12-15 20:56 UTC, Brenn
Details
Update emerge --info (LANG) (emergeinfo,5.18 KB, text/plain)
2013-12-15 21:56 UTC, Brenn
Details
build.log (build.log,110.26 KB, text/plain)
2013-12-16 19:34 UTC, Brenn
Details
pdfall.log (pdfall.log,1.53 KB, text/plain)
2013-12-16 19:37 UTC, Brenn
Details
emerge --info '=x11-libs/fltk-1.3.2::gentoo' (emerge.info.txt,5.40 KB, text/plain)
2013-12-29 08:15 UTC, Craig Everett
Details
emerge -pqv '=x11-libs/fltk-1.3.2::gentoo' (emerge.pqv.txt,126 bytes, text/plain)
2013-12-29 08:15 UTC, Craig Everett
Details
Build log (fltk.build.log,110.17 KB, text/plain)
2013-12-29 08:16 UTC, Craig Everett
Details
environment (fltk.environment.txt,129.69 KB, text/plain)
2013-12-29 08:16 UTC, Craig Everett
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brenn 2013-12-15 20:56:23 UTC
Created attachment 365438 [details]
emerge --info + build.log

During emerge I get the following error: 

USE flag includes 'doc'. 

cp -f latex/refman.pdf fltk.pdf
cp: cannot stat 'latex/refman.pdf': No such file or directory
make: *** [pdf] Error 1
 * ERROR: x11-libs/fltk-1.3.2::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=x11-libs/fltk-1.3.2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=x11-libs/fltk-1.3.2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/x11-libs/fltk-1.3.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-libs/fltk-1.3.2/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-libs/fltk-1.3.2/work/fltk-1.3.2/documentation'
 * S: '/var/tmp/portage/x11-libs/fltk-1.3.2/work/fltk-1.3.2'

>>> Failed to emerge x11-libs/fltk-1.3.2, Log file:

>>>  '/var/tmp/portage/x11-libs/fltk-1.3.2/temp/build.log'

 * Messages for package x11-libs/fltk-1.3.2:

 * ERROR: x11-libs/fltk-1.3.2::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=x11-libs/fltk-1.3.2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=x11-libs/fltk-1.3.2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/x11-libs/fltk-1.3.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-libs/fltk-1.3.2/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-libs/fltk-1.3.2/work/fltk-1.3.2/documentation'
 * S: '/var/tmp/portage/x11-libs/fltk-1.3.2/work/fltk-1.3.2'

Attached is complete log and emerge --info
Comment 1 Ben Kohler gentoo-dev 2013-12-15 21:27:21 UTC
I don't think LANG="en" is valid, is it?  Try setting a proper locale like en_US or en_US.utf8 and see if that helps.
Comment 2 Brenn 2013-12-15 21:55:50 UTC
Thanks for information... 

no change after setting LANG to en_US.utf8 and env-update. 

"habicht mbrenn # set | grep LANG
LANG=en_US.utf8"

emerge output is now:

"
...
echo "Generating PDF documentation ..."
Generating PDF documentation ...
/usr/bin/doxygen Doxybook ;\
(cd latex ;\
pdflatex --interaction=nonstopmode refman.tex ;\
makeindex refman.idx ;\
pdflatex --interaction=nonstopmode refman.tex ;\
latex_count=5;\
while egrep -s 'Rerun (LaTeX|to get cross-references right)' refman.log \
	&& [ $latex_count -gt 0 ] ;\
    do \
      echo "Rerunning latex ..." ;\
      pdflatex --interaction=nonstopmode refman.tex ;\
      latex_count=`expr $latex_count - 1` ;\
    done ; \
cd ..) > pdfall.log 2>&1
warning: Tag `SHOW_DIRECTORIES' at line 462 of file Doxybook has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag `HTML_ALIGN_MEMBERS' at line 811 of file Doxybook has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
cp -f latex/refman.pdf fltk.pdf
cp: cannot stat ‘latex/refman.pdf’: No such file or directory
make: *** [pdf] Error 1
 * ERROR: x11-libs/fltk-1.3.2::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=x11-libs/fltk-1.3.2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=x11-libs/fltk-1.3.2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/x11-libs/fltk-1.3.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-libs/fltk-1.3.2/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-libs/fltk-1.3.2/work/fltk-1.3.2/documentation'
 * S: '/var/tmp/portage/x11-libs/fltk-1.3.2/work/fltk-1.3.2'

>>> Failed to emerge x11-libs/fltk-1.3.2, Log file:

>>>  '/var/tmp/portage/x11-libs/fltk-1.3.2/temp/build.log'
"
As an attachment, the updated emerge --info
Comment 3 Brenn 2013-12-15 21:56:50 UTC
Created attachment 365440 [details]
Update emerge --info (LANG)
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2013-12-16 01:38:11 UTC
Please attach the entire build log to this bug report.
Comment 5 Rafał Mużyło 2013-12-16 04:55:29 UTC
(In reply to Jeroen Roovers from comment #4)
> Please attach the entire build log to this bug report.

Actually, attach that pdfall.log too - it might be more interesting than build log itself.
Comment 6 Brenn 2013-12-16 19:34:54 UTC
Created attachment 365472 [details]
build.log
Comment 7 Brenn 2013-12-16 19:37:29 UTC
Created attachment 365474 [details]
pdfall.log
Comment 8 Brenn 2013-12-16 19:39:36 UTC
I see an error in pdfall.log, but did not find a solution: 

! LaTeX Error: File `a4wide.sty' not found.
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2013-12-16 20:02:13 UTC
a4wide.sty should be part of dev-texlive/texlive-latex . Which version do you have?
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2013-12-16 20:06:36 UTC
(In reply to Jeroen Roovers from comment #9)
> a4wide.sty should be part of dev-texlive/texlive-latex . Which version do
> you have?

Or maybe it should be dev-texlive/texlive-latexextra nowadays.

Maybe set a DEPEND on this?

   || (
      dev-texlive/texlive-latexextra
      <dev-texlive/texlive-latex-VER
   )
Comment 11 Brenn 2013-12-16 20:08:12 UTC

habicht mbrenn # emerge -a texlive-latex

[...]

[ebuild   R    ] dev-texlive/texlive-latex-2012 

[... After having rebuild texlive-latex]

habicht mbrenn # locate a4wide.sty
habicht mbrenn # find / | grep a4wide.sty
habicht mbrenn #
Comment 12 Brenn 2013-12-16 21:25:27 UTC
emerging "texlive-latexextra" solved the issue (for my local installation)
Comment 13 Craig Everett 2013-12-29 08:15:13 UTC
Created attachment 366414 [details]
emerge --info '=x11-libs/fltk-1.3.2::gentoo'
Comment 14 Craig Everett 2013-12-29 08:15:49 UTC
Created attachment 366416 [details]
emerge -pqv '=x11-libs/fltk-1.3.2::gentoo'
Comment 15 Craig Everett 2013-12-29 08:16:11 UTC
Created attachment 366418 [details]
Build log
Comment 16 Craig Everett 2013-12-29 08:16:33 UTC
Created attachment 366420 [details]
environment
Comment 17 Craig Everett 2013-12-29 08:18:42 UTC
Experiencing the same failure, but with a slightly different symptom. My workaround is to add "x11-libs/fltk -doc" to package.use, though that is obviously less than optimal. I think this is the same issue, so I'm attaching my output.
Comment 18 Larry the Git Cow gentoo-dev 2024-12-26 17:50:14 UTC
The bug has been closed via the following commit(s):

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

commit bf28418f30a122955e636dfba07d29cfa7447e75
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2024-12-25 00:16:13 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2024-12-26 17:48:28 +0000

    x11-libs/fltk: add 1.4.1
    
    Brand new ebuild not really based on the old. Changes may or may
    not introduce some regressions, but will see to these as needed.
    
    Regardless of the ebuild, note some revdeps may be broken with
    fltk-1.4.x. "Often" it's just trivial like a missing include (IWYU)
    or an include needing different casing due to compatibility symlinks
    (e.g. Fl/Fl_file_chooser.H -> FL/Fl_File_Chooser.H>) being dropped.
    Upstream discourages re-enabling them and suggests fixing packages
    instead.
    
    Some revdeps may also be relying on X-specific things (e.g.
    including x.H and using fl_display), and may need to depend on
    fltk[X(+)] (have not really looked at if things work on wayland).
    x.H is also deprecated and due for removal, should use platform.H.
    
    I've fixed a few while updating revdeps for := and USE changes but
    haven't tried nor handled everything myself.
    
    That aside, overview of (some) notable ebuild differences vs old:
    
    * Use cmake
    Upstream plans to remove autotools support in 1.5.0, so.
    
    * Actually run some tests
    The old ebuild's src_test was just building tests and never running
    anything, so at least run (minor) "unittests --core" like upstream's
    CI does.
    
    * Add subslot
    Gets a new soname + ABI incompatible changes every 1.x versions, but
    <1.3 is so old that never got a subslot (see README.abi-version.txt).
    
    * Drop multilib
    Do not think this is worth keeping. At most old 32bit prebuilts can
    need 32bit fltk but they cannot use 1.4 due to soname/ABI changes.
    (*if* really needed could consider a fltk-compat:1.3 for these).
    Can revisit if a reason to.
    
    * Drop USE=games
    Not convinced that there is real interest in these example apps being
    installed, and they all have generic naming by default (e.g. previous
    was installing /usr/bin/sudoku) making it easy to conflict. They also
    need to be installed manually (no cmake option for this that I can see
    at the moment). Could revisit if there is actual users and it is not
    just for completeness.
    
    * Drop USE=xft
    Can use either pango or xft w/ USE=X with pango being preferred, and
    it is kind of bogus to disable both (breaks things in unexpected ways).
    So now USE=cairo will use pango (forced by build system if cairo is
    enabled, -DFLTK_USE_PANGO accomplishes little), and USE=-cairo uses
    xft only. Pango/cairo is not optional for wayland, and that's why
    USE=cairo is default enabled now (also because it supposedly renders
    better on X as well).
    
    * Drop USE=threads, always enabled
    Nothing special there, but requires adjusting some revdeps w/ (+)
    
    * Drop USE=xinerama and always depend on it if USE=X
    Could understand some users not wanting it, however, for some reason
    -DFLTK_USE_XINERAMA is ignored when USE="X wayland" (works if -wayland)
    and README.Wayland.txt says that xinerama is always required if X11 is
    enabled as well.
    
    *could* make it optional with -wayland but that felt messy and a req
    use of "wayland? ( X? ( xinerama ) )" seems confusing.
    
    Ultimately it was enabled by default before and it's a very small
    dep. May revisit only after the build system gets polished and if
    there's a demand.
    
    * Drop env.d file and -rpath hacks
    This doesn't install in /usr/lib*/fltk anymore and so no need for
    LDPATH, and if the FLTK_DOCDIR env var is unset it should fallback
    to the builtin path which points to /usr/share/doc/${PF}/html
    (albeit the in-app help browser renders these rather poorly right
    now, better use a real browser).
    
    * Misc notes
    Was tempted to drop USE=static-libs, but I believe there is a demand
    for this on this package, may revisit.
    
    Considered making fluid optional being a GUI app for developers, but
    it's also used at build time by some packages and it's not worth being
    conditional on Gentoo then.
    
    It may be possible to make dbus optional with USE=wayland, but build
    system has no switch for it (automagic-only), so hard-depend for now.
    
    For those trying to avoid X libs, hard libglvnd[X] is not a typo,
    USE="-X wayland opengl" still links with libGLX->libX11 at the
    moment.
    
    Like before, fltk-config --ldflags still gives a wall of unnecessary
    libraries (that libftlk.so is linked with, more than before w/ wayland)
    due to expecting static -- but otherwise appears fine despite generated
    by cmake.
    
    bug #494390: pdf build is explicitly disabled in this version, so it
    shouldn't be trying to use latex (build system also changed, if still
    into something please open a new bug).
    
    Closes: https://bugs.gentoo.org/494390
    Closes: https://bugs.gentoo.org/946882
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 x11-libs/fltk/Manifest                           |   1 +
 x11-libs/fltk/files/fltk-1.4.1-fltk-config.patch |  25 +++++
 x11-libs/fltk/files/fltk-1.4.1-tests-odr.patch   |   9 ++
 x11-libs/fltk/fltk-1.4.1.ebuild                  | 113 +++++++++++++++++++++++
 4 files changed, 148 insertions(+)