Skip to content

Commit

Permalink
packaging: make sure rpcgen runs first in spec
Browse files Browse the repository at this point in the history
Previously, the build might fail because some cross-directory header
dependencies are not configured correctly. We work around this by
making the ndmp headers first which will run rpcgen before building
anything else.
  • Loading branch information
arogge committed Dec 12, 2019
1 parent 5dfede4 commit 4f9d6f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions platforms/packaging/bareos.spec
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,8 @@ export MTX=/usr/sbin/mtx
--enable-includes


# dependency ordering isn't correct, so we run rpcgen first.
%__make -C src/ndmp ndmp0.h ndmp2.h ndmp3.h ndmp4.h ndmp9.h

#Add flags
%__make CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags};
Expand Down

0 comments on commit 4f9d6f3

Please sign in to comment.