epicsdeb / epics-base

EPICS Base packaging
http://www.aps.anl.gov/epics/
Other
5 stars 10 forks source link

rtems-epics build fails on 32 bit #13

Open aderbenev opened 6 years ago

aderbenev commented 6 years ago

When building rtems-epics https://github.com/epicsdeb/epics-base/commit/aff7372d52f26505a809c4e59266e449d087e2ad with rebuildd on 32 bit Debian 8 jessie image, error message is:

dh_install: usr/lib/epics/lib/pkgconfig/epics-base-linux-x86.pc exists in debian/tmp but is not installed to anywhere
dh_install: missing files, aborting

Addition to override_dh_install in debian/rules fixes the build:

rm -f $(CURDIR)/debian/tmp/usr/lib/epics/lib/pkgconfig/epics-base-linux-x86.pc
mdavidsaver commented 6 years ago

Strange, this file should match a line in debian/epics-dev.install

usr/lib/epics/lib/pkgconfig/*.pc usr/share/pkgconfig

in https://github.com/epicsdeb/epics-base/blob/master/debian/epics-dev.install

mdavidsaver commented 6 years ago

Right, this is from the host package... You're on the right track. Can you try changing:

rm -f $(CURDIR)/debian/tmp/usr/lib/epics/lib/pkgconfig/epics-base-linux-x86_64.pc

to

rm -f $(CURDIR)/debian/tmp/usr/lib/epics/lib/pkgconfig/epics-base-linux-*.pc

https://github.com/epicsdeb/epics-base/blob/master-rtems/debian/rules#L64

I guess it's been a while since anyone has done a 32-bit build.

mdavidsaver commented 6 years ago

Or more strictly:

rm -f $(CURDIR)/debian/tmp/usr/lib/epics/lib/pkgconfig/epics-base-$(EPICS_HOST_ARCH).pc
ralphlange commented 6 years ago

Careful. Does that work for cross-builds?

aderbenev commented 6 years ago

The build succeeds after replacing the existing

rm -f $(CURDIR)/debian/tmp/usr/lib/epics/lib/pkgconfig/epics-base-linux-x86_64.pc

with

rm -f $(CURDIR)/debian/tmp/usr/lib/epics/lib/pkgconfig/epics-base-$(EPICS_HOST_ARCH).pc

in debian/rules as suggested.