Overview
Request 1004899 accepted
- Enable parallel builds by slpitting clean and all at make time
(Thanks to Christopher Yeleighton)
- Do not copy more than 1 byte for \(aq becoming a "'" in
quotes-man2html.patch
- Small change in quotes-man2html.patch
* Use a simple "'" aka quote instead of "′" for "\(aq"
- Add patch quotes-man2html.patch
* Fix boo#1203091 -- BASH(1) Manual Page: Unprocessed macro aq
- Created by WernerFink
- In state accepted
- Supersedes 1004724
-
strncpy(charb, "'", 7)
: why 7? I mean, it does what you want but in an obfuscated way XD - The reason why you cannot use a parallel build is probably this command
make clean all
. This is wrong not only in parallel context becausemake
is free to rearrange the targets and make clean last, which is not what you want.make clean && make all
is the way to go in this case.
Request History
WernerFink created request
- Enable parallel builds by slpitting clean and all at make time
(Thanks to Christopher Yeleighton)
- Do not copy more than 1 byte for \(aq becoming a "'" in
quotes-man2html.patch
- Small change in quotes-man2html.patch
* Use a simple "'" aka quote instead of "′" for "\(aq"
- Add patch quotes-man2html.patch
* Fix boo#1203091 -- BASH(1) Manual Page: Unprocessed macro aq
factory-auto added opensuse-review-team as a reviewer
Please review sources
factory-auto accepted review
Check script succeeded
licensedigger accepted review
ok
dimstar_suse set openSUSE:Factory:Staging:A as a staging project
Being evaluated by staging project "openSUSE:Factory:Staging:A"
dimstar_suse accepted review
Picked "openSUSE:Factory:Staging:A"
dimstar accepted review
dimstar_suse accepted review
Staging Project openSUSE:Factory:Staging:A got accepted.
dimstar_suse approved review
Staging Project openSUSE:Factory:Staging:A got accepted.
dimstar_suse accepted request
Staging Project openSUSE:Factory:Staging:A got accepted.
Adding to what @yecril71pl said. Now it's
strncpy(charb, "'", 1)
. Which is not much better thanstrncpy(charb, "'", 7)
. The last argument to strncpy is supposed to be size of the target buffer (fewer is possible - but raises eyebrows as it did). Since you are explicitly adding the\0
byte anyway at a fixed location without checking sizeof(charb), why even go to the hassle of using strncpy, just writestrcpy(charb, "'")
andstrcpy(charb, """)
, since you seem to be fine assuming charb is 7 or larger anyway.Thew size of charb is well defined:
and the code is choosen to look like the surrounding code as well. Otherwise I would simply memset the buffer charb with zeros and use
charb[0] = (char)39
An other approach would be to require groff-full at build time and use
roff2html
orgroff -Thtml
roff2html
seems to have very similar result asman2html
-Thtml
is hopelessly broken and must be reimplemented from scratch; my proof of concept was completely ignored by upstream :-(-Tdvi
would be better for reliability and readability but it requires a graphic display to be read, which does not fly for a base package.We could also just
%exclude
the result altogether and hope thatman bash
will do the right thing.Also, slpitting