chaos / genders

Genders is a static cluster configuration database used for cluster configuration management. It is used by a variety of tools and scripts for management of large clusters.
GNU General Public License v2.0
35 stars 12 forks source link

libgenders/Makefile.am: Fix parallel build issue #69

Closed AdrianBunk closed 1 month ago

AdrianBunk commented 1 month ago

Two different Makefile rules are running the same bison command in parallel in parallel builds, creating the same files.

https://buildd.debian.org/status/fetch.php?pkg=genders&arch=mips64el&ver=1.27-3-2%2Bb1&stamp=1728948479&raw=0

...
bison -y -d -b genders_query ./genders_query.y
bison -y -d -b genders_query ./genders_query.y
...
genders_query.tab.c: In function 'yydestruct':
genders_query.tab.c:1468:3: error: 'YY_I' undeclared (first use in this function); did you mean 'YY_'?
 1468 |   YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
      |   ^~~~
      |   YY_
...

Make one of the targets just depend on the other one.

chu11 commented 1 month ago

doh! good catch. thanks.