public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Errors in building the documentation prevent compilation from completing properly
@ 2022-10-19 17:57 Denis Excoffier
  2022-10-20 10:29 ` Jon Turney
  0 siblings, 1 reply; 4+ messages in thread
From: Denis Excoffier @ 2022-10-19 17:57 UTC (permalink / raw)
  To: cygwin; +Cc: Denis Excoffier

Hello,

Currently i have docbook2X not working on my system (a perl problem
that i don't know how to repair, but in a few months i will reinstall completely
this C:\Cygwin64 which dates back to 2019).

This means that /usr/share/docbook2X and /usr/bin/docbook2x-texi are missing.
Consequently, no *.info* file is produced.

Nevertheless, i tried to compile cygwin from sources (newlib-cygwin-3.3.6.tar.bz2),
knowing that "Normally, building ignores any errors in building the documentation"
(see https://cygwin.com/faq.html#faq.programming.building-cygwin)

However, in order to 'make' and then 'make install' properly, i had to apply the following
easy patch (below).

Hope this helps,

Regards,

Denis Excoffier.


diff -uNr o/newlib-cygwin/winsup/doc/Makefile.am p/newlib-cygwin/winsup/doc/Makefile.am
--- o/newlib-cygwin/winsup/doc/Makefile.am	2022-09-05 13:09:51.000000000 +0200
+++ p/newlib-cygwin/winsup/doc/Makefile.am	2022-10-19 14:00:03.052557100 +0200
@@ -61,7 +61,7 @@
 
 install-info-local: cygwin-ug-net.info cygwin-api.info
 	@$(MKDIR_P) $(DESTDIR)$(infodir)
-	$(INSTALL_DATA) *.info* $(DESTDIR)$(infodir)
+	-$(INSTALL_DATA) *.info* $(DESTDIR)$(infodir)
 
 install-etc:
 	@$(MKDIR_P) $(DESTDIR)$(sysconfdir)/postinstall
@@ -141,7 +141,7 @@
 
 # this generates a custom charmap for docbook2x-texi which has a mapping for ®
 charmap:
-	cp /usr/share/docbook2X/charmaps/texi.charmap charmap
+	-cp /usr/share/docbook2X/charmaps/texi.charmap charmap
 	echo "ae (R)" >>charmap
 
 intro2man.stamp: intro.xml man.xsl




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

* Re: Errors in building the documentation prevent compilation from completing properly
  2022-10-19 17:57 Errors in building the documentation prevent compilation from completing properly Denis Excoffier
@ 2022-10-20 10:29 ` Jon Turney
  2022-10-20 17:46   ` Denis Excoffier
  0 siblings, 1 reply; 4+ messages in thread
From: Jon Turney @ 2022-10-20 10:29 UTC (permalink / raw)
  To: Denis Excoffier, The Cygwin Mailing List

On 19/10/2022 18:57, Denis Excoffier wrote:
> Hello,
> 
> Currently i have docbook2X not working on my system (a perl problem
> that i don't know how to repair, but in a few months i will reinstall completely
> this C:\Cygwin64 which dates back to 2019).
> 
> This means that /usr/share/docbook2X and /usr/bin/docbook2x-texi are missing.
> Consequently, no *.info* file is produced.
> 
> Nevertheless, i tried to compile cygwin from sources (newlib-cygwin-3.3.6.tar.bz2),
> knowing that "Normally, building ignores any errors in building the documentation"
> (see https://cygwin.com/faq.html#faq.programming.building-cygwin)

The behaviour was changed by [1], but unfortunately the documentation 
change that contains has not yet been published.

Use the configure option '--disable-doc'.

[1] 
https://cygwin.com/git/?p=newlib-cygwin.git;a=commitdiff;h=f4a26ececa180cec70c41b6dd2082ff730f92065

> 
> However, in order to 'make' and then 'make install' properly, i had to apply the following
> easy patch (below).
> 
> Hope this helps,
> 
> Regards,
> 
> Denis Excoffier.
> 
> 
> diff -uNr o/newlib-cygwin/winsup/doc/Makefile.am p/newlib-cygwin/winsup/doc/Makefile.am
> --- o/newlib-cygwin/winsup/doc/Makefile.am	2022-09-05 13:09:51.000000000 +0200
> +++ p/newlib-cygwin/winsup/doc/Makefile.am	2022-10-19 14:00:03.052557100 +0200
> @@ -61,7 +61,7 @@
>   
>   install-info-local: cygwin-ug-net.info cygwin-api.info
>   	@$(MKDIR_P) $(DESTDIR)$(infodir)
> -	$(INSTALL_DATA) *.info* $(DESTDIR)$(infodir)
> +	-$(INSTALL_DATA) *.info* $(DESTDIR)$(infodir)

Ignoring errors here is (and always was) a terrible idea, frankly.

>   
>   install-etc:
>   	@$(MKDIR_P) $(DESTDIR)$(sysconfdir)/postinstall
> @@ -141,7 +141,7 @@
>   
>   # this generates a custom charmap for docbook2x-texi which has a mapping for ®
>   charmap:
> -	cp /usr/share/docbook2X/charmaps/texi.charmap charmap
> +	-cp /usr/share/docbook2X/charmaps/texi.charmap charmap
>   	echo "ae (R)" >>charmap
>   
>   intro2man.stamp: intro.xml man.xsl


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

* Re: Errors in building the documentation prevent compilation from completing properly
  2022-10-20 10:29 ` Jon Turney
@ 2022-10-20 17:46   ` Denis Excoffier
  2022-11-15  3:24     ` Denis Excoffier
  0 siblings, 1 reply; 4+ messages in thread
From: Denis Excoffier @ 2022-10-20 17:46 UTC (permalink / raw)
  To: Jon Turney, cygwin; +Cc: Denis Excoffier


> On 2022-10-20 12:29, Jon Turney wrote:
> 
> On 19/10/2022 18:57, Denis Excoffier wrote:
>> Hello,
>> Currently i have docbook2X not working on my system (a perl problem
>> that i don't know how to repair, but in a few months i will reinstall completely
>> this C:\Cygwin64 which dates back to 2019).
>> This means that /usr/share/docbook2X and /usr/bin/docbook2x-texi are missing.
>> Consequently, no *.info* file is produced.
>> Nevertheless, i tried to compile cygwin from sources (newlib-cygwin-3.3.6.tar.bz2),
>> knowing that "Normally, building ignores any errors in building the documentation"
>> (see https://cygwin.com/faq.html#faq.programming.building-cygwin)
> 
> The behaviour was changed by [1], but unfortunately the documentation change that contains has not yet been published.
> 
> Use the configure option '--disable-doc'.

For me, '--disable-doc' makes no difference with the unpatched code. Same errors. Sorry.

Regards,

Denis Excoffier.


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

* Re: Errors in building the documentation prevent compilation from completing properly
  2022-10-20 17:46   ` Denis Excoffier
@ 2022-11-15  3:24     ` Denis Excoffier
  0 siblings, 0 replies; 4+ messages in thread
From: Denis Excoffier @ 2022-11-15  3:24 UTC (permalink / raw)
  To: cygwin; +Cc: Denis Excoffier

> On 2022-10-20 19:46, Denis Excoffier wrote:
> 
>> On 2022-10-20 12:29, Jon Turney wrote:
>> 
>> On 19/10/2022 18:57, Denis Excoffier wrote:
>>> Hello,
>>> Currently i have docbook2X not working on my system (a perl problem
>>> that i don't know how to repair, but in a few months i will reinstall completely
>>> this C:\Cygwin64 which dates back to 2019).
>>> This means that /usr/share/docbook2X and /usr/bin/docbook2x-texi are missing.
>>> Consequently, no *.info* file is produced.
>>> Nevertheless, i tried to compile cygwin from sources (newlib-cygwin-3.3.6.tar.bz2),
>>> knowing that "Normally, building ignores any errors in building the documentation"
>>> (see https://cygwin.com/faq.html#faq.programming.building-cygwin)
>> 
>> The behaviour was changed by [1], but unfortunately the documentation change that contains has not yet been published.
>> 
>> Use the configure option '--disable-doc'.
> 
> For me, '--disable-doc' makes no difference with the unpatched code. Same errors. Sorry.
> 
With cygwin-3.4.0-0.1, '--disable-doc’ now works as expected. Thank you.

Denis Excoffier.


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

end of thread, other threads:[~2022-11-15  3:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-19 17:57 Errors in building the documentation prevent compilation from completing properly Denis Excoffier
2022-10-20 10:29 ` Jon Turney
2022-10-20 17:46   ` Denis Excoffier
2022-11-15  3:24     ` Denis Excoffier

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).