Bug#1144189: c-t-b-ports fails to building glibc for arc-linux-gnu

Bastian Blank <[email protected]>
Newsgroups gmane.linux.debian.devel.bugs.rc
Message-ID <b3sbra7pyudb4giw2wqvykmvvzltvasypazyrwu6u47swuqjk4@o5kc2e3wlg4m>
On Wed, Aug 12, 2026 at 07:20:11PM +0200, Bastian Blank wrote:
> Anyway, there is a LINUX_SOURCE definition in debian/rules.  This is
> then used by glibc as additional search location and current set to
> debian/tmp.arc/usr/include.  Did this in the past contain the headers,
> as side effect of the linux-libc-dev-*-cross build?

--- cross-toolchain-base-ports-77/debian/rules	2026-08-11 07:07:26.000000000 +0000
+++ cross-toolchain-base-ports-77/debian/rules	2026-08-11 07:07:26.000000000 +0000
@@ -472,7 +473,7 @@
 	cd glibc-${VER_GLIBC} && \
 	  PATH=${CURDIR}/debian/tmp.${CROSS_ARCH}/$(PF)/bin/:${PATH} \
 	  LD_LIBRARY_PATH=$(call binutils_ldpath,$*):${CURDIR}/gcc/debian/lib$(libgcc_base)1-armel-cross/usr/${CROSS_GNU_TYPE}/lib/ \
-	  LINUX_SOURCE=${CURDIR}/debian/tmp.${CROSS_ARCH}/usr \
+	  LINUX_SOURCE=/usr/${CROSS_GNU_TYPE} \
 	  PATCHED_SOURCES=yes \
 	  WITH_BUILD_SYSROOT=${CURDIR}/debian/tmp.${CROSS_ARCH} \
 	  DEB_BUILD_PROFILES=stage1 \
@@ -545,7 +546,7 @@
 	cd glibc-${VER_GLIBC} && \
 	  PATH=${CURDIR}/debian/tmp.${CROSS_ARCH}/$(PF)/bin/:${PATH} \
 	  LD_LIBRARY_PATH=$(call binutils_ldpath,$*):${CURDIR}/gcc/debian/lib$(libgcc_base)1-armel-cross/usr/${CROSS_GNU_TYPE}/lib/ \
-	  LINUX_SOURCE=${CURDIR}/debian/tmp.${CROSS_ARCH}/usr \
+	  LINUX_SOURCE=/usr/${CROSS_GNU_TYPE} \
 	  DEB_BUILD_OPTIONS="nocheck notest notests $(DH_PARALLEL)" \
 	  PATCHED_SOURCES=yes \
 	  WITH_BUILD_SYSROOT=${CURDIR}/debian/tmp.${CROSS_ARCH} \

Bastian
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.