public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [patch] Fix gdb/doc/ PDF build on Fedora Rawhide==F-29
@ 2018-03-31 17:32 Jan Kratochvil
  2018-03-31 23:44 ` Simon Marchi
  0 siblings, 1 reply; 4+ messages in thread
From: Jan Kratochvil @ 2018-03-31 17:32 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 587 bytes --]

Hi,

on Fedora Rawhide==F-29 PDF build fails with:
	https://kojipkgs.fedoraproject.org//work/tasks/2102/26052102/build.log
	texi2dvi --pdf  -I ../../../gdb/doc/../mi -I ../../../gdb/doc \
		../../../gdb/doc/gdb.texinfo
	! I can't find file `texinfo.tex'.

TBH I do not see how the file could be found in earlier versions.  Also both
F-29 and F-28 have texinfo-tex-6.5-3.fc28.x86_64 while in F-28 it still builds
fine but in F-29 it does not - so apparently it depends on some other package.

But I did not investigate why as IMO the patch below is a logical one.

OK for check-in?


Jan

[-- Attachment #2: gdb-texinfo-path.patch --]
[-- Type: text/plain, Size: 489 bytes --]

gdb/ChangeLog
2018-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>

	* doc/Makefile.in (TEXI2DVI): Add $(SET_TEXINPUTS).

diff --git a/gdb/doc/Makefile.in b/gdb/doc/Makefile.in
index 0323bc4ecb..fa745b3542 100644
--- a/gdb/doc/Makefile.in
+++ b/gdb/doc/Makefile.in
@@ -63,7 +63,7 @@ MAKEHTMLFLAGS =
 TEXI2ROFF=texi2roff
 
 # where to find texi2dvi, ditto
-TEXI2DVI=texi2dvi
+TEXI2DVI=$(SET_TEXINPUTS) texi2dvi
 
 # Package to install the docs under
 PACKAGE = @PACKAGE@
-- 
2.17.0.rc1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [patch] Fix gdb/doc/ PDF build on Fedora Rawhide==F-29
  2018-03-31 17:32 [patch] Fix gdb/doc/ PDF build on Fedora Rawhide==F-29 Jan Kratochvil
@ 2018-03-31 23:44 ` Simon Marchi
  2018-04-01  4:46   ` Jan Kratochvil
  0 siblings, 1 reply; 4+ messages in thread
From: Simon Marchi @ 2018-03-31 23:44 UTC (permalink / raw)
  To: Jan Kratochvil; +Cc: gdb-patches

On 2018-03-31 13:32, Jan Kratochvil wrote:
> Hi,
> 
> on Fedora Rawhide==F-29 PDF build fails with:
> 	https://kojipkgs.fedoraproject.org//work/tasks/2102/26052102/build.log
> 	texi2dvi --pdf  -I ../../../gdb/doc/../mi -I ../../../gdb/doc \
> 		../../../gdb/doc/gdb.texinfo
> 	! I can't find file `texinfo.tex'.
> 
> TBH I do not see how the file could be found in earlier versions.  Also 
> both
> F-29 and F-28 have texinfo-tex-6.5-3.fc28.x86_64 while in F-28 it still 
> builds
> fine but in F-29 it does not - so apparently it depends on some other 
> package.
> 
> But I did not investigate why as IMO the patch below is a logical one.
> 
> OK for check-in?
> 
> 
> Jan

Hi Jan,

 From the logs of building it on F27, it is picked up at

   /usr/share/texlive/texmf-local/texmf-compat/tex/texinfo/texinfo.tex

   $ readlink -f 
/usr/share/texlive/texmf-local/texmf-compat/tex/texinfo/texinfo.tex
   /usr/share/texmf/tex/texinfo/texinfo.tex

which is probably in the default latex include dirs, I guess because of 
this line in texmf.cnf:

   TEXMFLOCAL = $TEXMFROOT/texmf-local//

The directory /usr/share/texlive/texmf-local exists on F27 and F28 but 
not on F29.  So the F29 config references a directory that does not 
exist.  Re-creating it and updating the tex hash:

   # mkdir /usr/share/texlive/texmf-local
   # ln -s ../../texmf /usr/share/texlive/texmf-local/texmf-compat
   # texhash

makes it work for me on F29.  So maybe there's actually a bug in the F29 
version of the texinfo package that you should report?  I have no idea 
if that change in the packaging was intended or not, but having the 
texinfo.tex file excluded from the default latex search path will 
probably break anything trying to use texinfo.

As for the version of texinfo.tex in the source tree, my guess is 
(correct me if I'm wrong) that it was put there in a time where it was 
not so readily available as a package in distros.  But realistically, 
today, everyone picks it up from their distro's texinfo package (which 
is proven by the fact that you didn't need to set TEXINPUTS to find the 
in-tree version until a distro package broke).

If we can now expect people to pick up texinfo.tex from their distro, 
then I think we should instead remove SET_TEXINPUTS altogether.

Simon

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [patch] Fix gdb/doc/ PDF build on Fedora Rawhide==F-29
  2018-03-31 23:44 ` Simon Marchi
@ 2018-04-01  4:46   ` Jan Kratochvil
  2018-04-02 16:58     ` cancel: " Jan Kratochvil
  0 siblings, 1 reply; 4+ messages in thread
From: Jan Kratochvil @ 2018-04-01  4:46 UTC (permalink / raw)
  To: Simon Marchi; +Cc: gdb-patches

On Sun, 01 Apr 2018 01:44:16 +0200, Simon Marchi wrote:
>   # mkdir /usr/share/texlive/texmf-local
>   # ln -s ../../texmf /usr/share/texlive/texmf-local/texmf-compat
>   # texhash
> 
> makes it work for me on F29.  So maybe there's actually a bug in the F29
> version of the texinfo package that you should report?

Thanks, filed:
	Regression from F-28: texinfo PDF document no longer builds
	https://bugzilla.redhat.com/show_bug.cgi?id=1562580


> As for the version of texinfo.tex in the source tree, my guess is (correct
> me if I'm wrong) that it was put there in a time where it was not so readily
> available as a package in distros.  But realistically, today, everyone picks
> it up from their distro's texinfo package (which is proven by the fact that
> you didn't need to set TEXINPUTS to find the in-tree version until a distro
> package broke).
> 
> If we can now expect people to pick up texinfo.tex from their distro, then I
> think we should instead remove SET_TEXINPUTS altogether.

GDB sources carry even readline/, zlib/ and intl/ from which at least that
readline/ causes --with-system-readline to be buggy and despite causing such
problems they are still there.  My guess is it is so because some OS which
disappeared 30 years ago did miss them.


Jan

^ permalink raw reply	[flat|nested] 4+ messages in thread

* cancel: [patch] Fix gdb/doc/ PDF build on Fedora Rawhide==F-29
  2018-04-01  4:46   ` Jan Kratochvil
@ 2018-04-02 16:58     ` Jan Kratochvil
  0 siblings, 0 replies; 4+ messages in thread
From: Jan Kratochvil @ 2018-04-02 16:58 UTC (permalink / raw)
  To: Simon Marchi; +Cc: gdb-patches

On Sun, 01 Apr 2018 06:46:46 +0200, Jan Kratochvil wrote:
> On Sun, 01 Apr 2018 01:44:16 +0200, Simon Marchi wrote:
> >   # mkdir /usr/share/texlive/texmf-local
> >   # ln -s ../../texmf /usr/share/texlive/texmf-local/texmf-compat
> >   # texhash
> > 
> > makes it work for me on F29.  So maybe there's actually a bug in the F29
> > version of the texinfo package that you should report?
> 
> Thanks, filed:
> 	Regression from F-28: texinfo PDF document no longer builds
> 	https://bugzilla.redhat.com/show_bug.cgi?id=1562580

texlive-base has been fixed in Fedora Rawhide so I am withdrawing this patch.

Still sure the texinfo/ directory is currently unused plus obsolete so it
should be most probably deleted (although it may be in use by some non-GDB
component of the sourceware tree, I did not check).


Jan

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-04-02 16:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-31 17:32 [patch] Fix gdb/doc/ PDF build on Fedora Rawhide==F-29 Jan Kratochvil
2018-03-31 23:44 ` Simon Marchi
2018-04-01  4:46   ` Jan Kratochvil
2018-04-02 16:58     ` cancel: " Jan Kratochvil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).