HPPA64 cross binutils build handling
Sedat Dilek
sedat.dilek at gmail.com
Thu Jan 5 11:41:02 UTC 2017
[ Need more coffee - last attempt of sending this ]
Happy new 2017 and Hi,
I tried backporting binutils (2.26.1-1ubuntu1~16.04.3) to Ubuntu/precise.
I am aware this is not an ideal platform for such backports and my
good-old-Debian-packaging-days need a refresh.
MIPS64 is BROKEN for GNU/gold in binutils v2.26.1, etc.
But anyway...
I played a bit with 'nocross' and 'nomult' DEB_BUILD_OPTIONS.
My goal is a host-only binutils for AMD64 arch.
While playing, I see that the HPPA64 cross binutils build handling is
done in a separate (unusual) way.
A binutils-hppa64-linux-gnu package is always built
undesiredly/unwantedly even...
$ LC_ALL=C DEB_BUILD_OPTIONS="parallel=3,nocross,nomult" debuild -d
...is set explicitly for building.
So, my suggestion is...
-ifneq (,$(filter $(DEB_HOST_ARCH),amd64 i386 x32 hppa))
- with_hppa64 = yes
+# XXX: Fix HPPA64 cross binutils build handling when 'with_cross' is set.
+with_hppa64 =
+ifeq ($(with_cross),yes)
+ ifneq (,$(filter $(DEB_HOST_ARCH),amd64 i386 x32 hppa))
+ with_hppa64 = yes
+ endif
endif
...
ifneq (,$(findstring nomult,$(DEB_BUILD_OPTIONS)))
with_multiarch = disabled in DEB_BUILD_OPTIONS
endif
+# XXX: Fix HPPA64 cross binutils build handling when 'nocross' is set
in DEB_BUILD_OPTIONS.
ifneq (,$(findstring nocross,$(DEB_BUILD_OPTIONS)))
with_cross = disabled in DEB_BUILD_OPTIONS
+ with_hppa64 = disabled in DEB_BUILD_OPTIONS
endif
...to fix this.
Ideas?
My current debdiff is attached.
Thanks.
Regards,
- Sedat -
-------------- next part --------------
A non-text attachment was scrubbed...
Name: binutils-2.26.1-1+dileks1~precise.debdiff
Type: application/octet-stream
Size: 3376 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-devel-discuss/attachments/20170105/91978f2d/attachment.obj>
More information about the Ubuntu-devel-discuss
mailing list