Hello. Judy fails to build with parallel make (-j 10 for example, which are quite common at this time) with the following error:
make[2]: Entering directory `/vt/portage/tmp/portage/dev-libs/judy-1.0.4/work/Judy-1.0.4/doc'
../tool/jhton ext/Judy_3.htm | grep -v '^[ ]*$' | sed -e 's/\.C//' > man/man3/Judy
../tool/jhton ext/Judy1_3.htm | grep -v '^[ ]*$' | sed -e 's/\.C//' > man/man3/Judy1
../tool/jhton ext/Judy1_funcs_3.htm | grep -v '^[ ]*$' | sed -e 's/\.C//' > man/man3/Judy1_funcs
../tool/jhton ext/JudyL_3.htm | grep -v '^[ ]*$' | sed -e 's/\.C//' > man/man3/JudyL
../tool/jhton ext/JudyL_funcs_3.htm | grep -v '^[ ]*$' | sed -e 's/\.C//' > man/man3/JudyL_funcs
../tool/jhton ext/JudySL_3.htm | grep -v '^[ ]*$' | sed -e 's/\.C//' > man/man3/JudySL
../tool/jhton ext/JudySL_funcs_3.htm | grep -v '^[ ]*$' | sed -e 's/\.C//' > man/man3/JudySL_funcs
../tool/jhton ext/JudyHS_3.htm | grep -v '^[ ]*$' | sed -e 's/\.C//' > man/man3/JudyHS
../tool/jhton ext/JudyHS_funcs_3.htm | grep -v '^[ ]*$' | sed -e 's/\.C//' > man/man3/JudyHS_funcs
make[2]: *** No rule to build `man/man3/J1T', required for `all-am'. Stop.
make[2]: *** Waiting for all jobs to finish...
cd man/man3; ln -s JudySL_funcs JudySLGet
cd man/man3; ln -s JudyHS_funcs JudyHSGet
cd man/man3; ln -s JudyHS_funcs JudyHSIns
The patch in attachment fixes this issue.
judy-1.0.4-parallel-make.patch
View and moderate all "patches Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Patches"
Just in case someone reads this, here is an updated patch:
http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/judy/files/judy-1.0.5-parallel-make.patch?rev=1.1&view=markup
I have reported my 3 patches here today and notice this ticket also exists in the same areas I have been working.
I am unable to access the gentoo patch at this time.
If someone reads this maybe this is of some help to them in the future.
My version of this fix is up at:
https://github.com/dlmiles/libjudy/commit/fb71440179e4ac794b589d37d3825f9f8422d315
This has also be attached to sourceforge judy project Ticket#6 as file 0002:
doc/Makefile.am: mkdir -p man/man3 and parallel building in CI
This corrects the dependency graph:
* so the directory man/man3 is created automatically before being
used as an output directory
* building parallel targets works as expected for symlink generation