]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commit
rpm: add patches to fix bfd.h related build issues
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 8 Dec 2016 23:00:38 +0000 (00:00 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 8 Dec 2016 23:04:36 +0000 (00:04 +0100)
commit0018d7d6ba436a59875328fb3f372aff1888bff8
tree0518f72ee5f2bfcad81402fcc8a786f5772d8f91
parenta27f8c80462b3f28b741b5d3a57f3346a2321252
rpm: add patches to fix bfd.h related build issues

This commit adds two patches to the rpm package to fix two separate but
related build issues:

 - The first patch fixes a build that occurs when rpm is built after
   elfutils, but without binutils. In this case, dwarf.h is present, so
   rpm enables the build of a number of additional tools. But one of
   them uses bfd.h, provided by binutils, without checking for its
   existence. So the first patch fixes that by checking for bfd.h
   existence before enabling the tool.

   Fixes:

     http://autobuild.buildroot.net/results/810/810e24cab65f67d143da29c78c0f89d37a851cd7/build-end.log

 - The second patch fixes a build issue that occurs when rpm is built
   after both dwarf and binutils. In this case, bfd.h complains because
   config.h is not included. That's a weird and silly issue in bfd.h
   that the binutils developers don't want to fix, and you have to
   define PACKAGE or PACKAGE_VERSION before including bfd.h to use it
   outside of binutils.

   Fixes:

     http://autobuild.buildroot.net/results/362/362502f89631c9ba1d71906527674657ccff01ed/build-end.log

Thanks a lot to James Knight <james.knight@rockwellcollins.com> for the
initial investigation about the first issue.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/rpm/0001-Detect-bfd.h-to-enable-disable-sepdebugcrcfix-buildi.patch [new file with mode: 0644]
package/rpm/0002-tools-sepdebugcrcfix.c-fix-build-with-recent-binutil.patch [new file with mode: 0644]