man: fix several annoying compile/build warnings
PATCH v3 1/1 man: fix several annoying compile/build warnings
Fixed the build error when building man.config.5 (a remnant of a long ago previous patch). Optimized the manpages Makefile for parallel builds. Drop a FHS patch that is no longer needed, as the standard Makefile puts the man pages in the proper location. Also, fix compile warnings in a couple other files.
[YOCTO #9341]
---
[Note: should be applied after previous man patch "fix src/Makefile to work with parallel make".]
v3: clean up patch submission for mailing list
.../man/man/man-1.5m2-tv_fhs.patch | 31 ------- .../man/man/man-1.6g-compile-warnings.patch | 101 +++++++++++++++++++++ meta/recipes-extended/man/man_1.6g.bb | 2 +- 3 files changed, 102 insertions(+), 32 deletions(-) delete mode 100644 meta/recipes-extended/man/man/man-1.5m2-tv_fhs.patch create mode 100644 meta/recipes-extended/man/man/man-1.6g-compile-warnings.patch
meta/recipes-extended/man/man/man-1.5m2-tv_fhs.patch deleted +0 -31
@@ -1,31 +0,0 @@ -Upstream-Status: Pending - -Signed-off-by: Scott Garman <[email protected]> - ---- man/Makefile.in 2008-12-21 19:19:33.000000000 +0100 -+++ man/Makefile.in.oden 2008-12-21 19:19:39.000000000 +0100 -@@ -34,6 +34,15 @@ - for i in $(MAN8); \ - do if test -f $$i.8; then $(INSTALL) $$i.8 $(mandir)/man8/$$i.@man8ext@; fi; done - -+install-l10n: $(ALL) -+ mkdir -p $(mandir)/$(SLANG)/man1 $(mandir)/$(SLANG)/man5 $(mandir)/$(SLANG)/man8 -+ for i in $(MAN1); \ -+ do $(INSTALL) $$i.1 $(mandir)/$(SLANG)/man1/$$i.@man1ext@; done -+ for i in $(MAN5); \ -+ do $(INSTALL) $$i.5 $(mandir)/$(SLANG)/man5/$$i.@man5ext@; done -+ for i in $(MAN8); \ -+ do if test -f $$i.8; then $(INSTALL) $$i.8 $(mandir)/$(SLANG)/man8/$$i.@man8ext@; fi; done -+ - clean: - rm -f core *.in *.@man1ext@ *.@man5ext@ *.@man8ext@ *~ - -@@ -49,7 +58,7 @@ - @for i in @languages@; do if test -d $$i; then echo; \ - echo "==== Installing the `cat $$i.txt` man pages. ===="; \ - cd $$i; SLANG=/$$i; if test $$SLANG = /en; then SLANG= ; fi; \ -- export SLANG; make -f ../Makefile install; cd ..; \ -+ export SLANG; make -f ../Makefile install-l10n; cd ..; \ - else echo "==== No $$i man pages found. ===="; fi; done - - cleansubdirs:
meta/recipes-extended/man/man/man-1.6g-compile-warnings.patch new file +101 -0
101 lines not on this page · raw message
meta/recipes-extended/man/man_1.6g.bb +1 -1
@@ -39,7 +39,6 @@ SRC_URI = "http://pkgs.fedoraproject.org/lookaside/pkgs/man2html/${BP}.tar.gz/ba file://man-1.5i2-initial.patch \ file://man-1.5h1-gencat.patch;striplevel=0 \ file://man-1.5g-nonrootbuild.patch \ - file://man-1.5m2-tv_fhs.patch;striplevel=0 \ file://man-1.5j-i18n.patch \ file://man-1.6e-whatis2.patch \ file://man-1.6e-use_i18n_vars_in_a_std_way.patch \
@@ -54,6 +53,7 @@ SRC_URI = "http://pkgs.fedoraproject.org/lookaside/pkgs/man2html/${BP}.tar.gz/ba file://man-1.6g-whatis3.patch \ file://configure_sed.patch \ file://man-1.6g-parallel.patch \ + file://man-1.6g-compile-warnings.patch \ " SRC_URI[md5sum] = "ba154d5796928b841c9c69f0ae376660"
Signature · 1 line
2.5.0
Quoted 6 lines · Bill Randle
Fixed the build error when building man.config.5 (a remnant of a long ago previous patch). Optimized the manpages
Makefilefor parallel builds. Drop a FHS patch that is no longer needed, as the standardMakefileputs the man pages in the proper location. Also, fix compile warnings in a couple other files.
Quoted 8 lines
[YOCTO #9341]
Signed-off-by Bill Randle <[email protected]>---
[Note: should be applied after previous man patch "fix src/Makefile to work with parallel make".]v3: clean up patch submission for mailing list
These two were applied in the build yet we saw:
https://autobuilder.yoctoproject.org/main/builders/nightly-x86-lsb/buil
ds/718/steps/BuildImages/logs/stdio
Cheers,
Richard
Quoted 16 lines · Richard Purdie
Quoted 15 lines · Bill Randle
Fixed the build error when building man.config.5 (a remnant of a long
ago previous patch). Optimized the manpagesMakefilefor parallel builds. Drop a FHS patch that is no longer needed, as the standardMakefileputs the man pages in the proper location. Also, fix compile
warnings in a couple other files.[YOCTO #9341]
Signed-off-by Bill Randle <[email protected]>---
[Note: should be applied after previous man patch "fix src/Makefile to work with parallel make".]
Quoted 7 lines
Quoted 1 line
v3: clean up patch submission for mailing list
These two were applied in the build yet we saw:
https://autobuilder.yoctoproject.org/main/builders/nightly-x86-lsb/bu
il
ds/718/steps/BuildImages/logs/stdio
The man failure worried me a bit so I had a look at the code. The configure script looks good with its BUILD_CC and CC, however it goes on to build things with $CC then run them which in a cross environment, isn't going to work.
The reason we only saw failures in qemux86-64 with poky-lsb is because that is the only case where the binaries generated with $CC could actually run (in the normal poky case, the interpretor isn't in /lib64/ but /lib/).
On my local builds in conf_script I see:
s,@DEFS@, -DUSG -Duid_t=__uid_t -Dgid_t=__uid_t -DALLOCA_MISSING -DNONLS -DNOGETOPT -DDO_COMPRESS,
and on the failed builds on the AB:
s,@DEFS@, -DSTDC_HEADERS -DTERMIOS_HEADER -DPOSIX -DDO_COMPRESS,
with the -DNONLS being necessary to avoid build failures.
I suspect we're going to have to seriously patch the configure script to remove several of the tests and then set the options to the correct things manually.
I haven't looked further at what other nastiness may lurk beyond this but at least we have a clear understanding of why its breaking now...
Cheers,
Richard