Your message dated Fri, 07 Jun 2024 17:50:28 +0000
with message-id <[email protected]>
and subject line Bug#1069780: Removed package(s) from unstable
has caused the Debian Bug report #1057812,
regarding luajit2 FTCBFS: passes host flags to build compiler
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1057812: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1057812
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: luajit2
Version: 2.1-20230410-1
Tags: patch
User: [email protected]
Usertags: ftcbfs
luajit2 fails to cross build from source. Unfortunately, the
nomenclature gets really confusing here, so let me clarify:
Debian | luajit2
-------+--------
build | host
host | target
target | -
Hencefore, I am assuming Debian's meaning. So luajit2 passes host flags
to the build compiler. This happen both during clean (as dh_auto_clean
doesn't pass cross tools yet picks up CFLAGS) and during build (because
CFLAGS automatically promote to both kinds of flags). I'm attaching a
patch that fixes both for your convenience.
Helmut
diff --minimal -Nru luajit2-2.1-20230410/debian/changelog
luajit2-2.1-20230410/debian/changelog
--- luajit2-2.1-20230410/debian/changelog 2023-06-18 03:26:28.000000000
+0200
+++ luajit2-2.1-20230410/debian/changelog 2023-12-08 13:49:40.000000000
+0100
@@ -1,3 +1,10 @@
+luajit2 (2.1-20230410-1.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: Be more precise about build/host/target. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]> Fri, 08 Dec 2023 13:49:40 +0100
+
luajit2 (2.1-20230410-1) unstable; urgency=medium
[ Debian Janitor ]
diff --minimal -Nru luajit2-2.1-20230410/debian/rules
luajit2-2.1-20230410/debian/rules
--- luajit2-2.1-20230410/debian/rules 2023-02-28 19:24:49.000000000 +0100
+++ luajit2-2.1-20230410/debian/rules 2023-12-08 13:49:40.000000000 +0100
@@ -10,10 +10,16 @@
%:
dh $@
+override_dh_auto_clean:
+ dh_auto_clean -- CROSS=$(DEB_HOST_GNU_TYPE)-
+
override_dh_auto_build:
$(MAKE) amalg PREFIX=/usr \
MULTILIB=lib/$(DEB_HOST_MULTIARCH) \
CROSS=$(DEB_HOST_GNU_TYPE)- \
+ CFLAGS= \
+ HOST_CFLAGS='$(CFLAGS_FOR_BUILD)' \
+ TARGET_CFLAGS='$(CFLAGS)' \
Q= E=@:
override_dh_auto_install:
--- End Message ---
--- Begin Message ---
Version: 2.1-20230410-1+rm
Dear submitter,
as the package luajit2 has just been removed from the Debian archive
unstable we hereby close the associated bug reports. We are sorry
that we couldn't deal with your issue properly.
For details on the removal, please see https://bugs.debian.org/1069780
The version of this package that was in Debian prior to this removal
can still be found using https://snapshot.debian.org/.
Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.
This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
[email protected].
Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)
--- End Message ---