Debian commit [60fb7e6] in glibc first introduced in "debian/2.25-0experimental3-25-g60fb7e6", has the effect to create a FTBFS situation for "cross-toolchain-base" on Bionic which uses glibc 2.26.
In fact after the above commit, the patch "debian/patches/glibc/ubuntu/no-gdb-python-hooks.diff" found in cross-toolchain-base source code is no longer needed and can be safely remove as it tries to modify a piece of code already in place in glibc introduced by [60fb7e6, preventing the package to properly build with a hunk FAILED as follow :
# Launchpad buildlog : https://launchpadlibrarian.net/348143571/buildlog_ubuntu-bionic-amd64.cross-toolchain-base_19ubuntu1_BUILDING.txt.gz
...
Applying patch no-gdb-python-hooks.diff
patching file debian/rules.d/debhelper.mk
Hunk #1 FAILED at 220.
1 out of 1 hunk FAILED -- rejects in file debian/rules.d/debhelper.mk
Patch no-gdb-python-hooks.diff can be reverse-applied
debian/rules:382: recipe for target 'stamp-dir/init-glibc' failed
make: *** [stamp-dir/init-glibc] Error 1
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 20171205-0736
Debian commit [60fb7e6] in glibc first introduced in "debian/ 2.25-0experimen tal3-25- g60fb7e6" , has the effect to create a FTBFS situation for "cross- toolchain- base" on Bionic which uses glibc 2.26.
In fact after the above commit, the patch "debian/ patches/ glibc/ubuntu/ no-gdb- python- hooks.diff" found in cross-toolchain -base source code is no longer needed and can be safely remove as it tries to modify a piece of code already in place in glibc introduced by [60fb7e6, preventing the package to properly build with a hunk FAILED as follow :
# Launchpad buildlog : https:/ /launchpadlibra rian.net/ 348143571/ buildlog_ ubuntu- bionic- amd64.cross- toolchain- base_19ubuntu1_ BUILDING. txt.gz python- hooks.diff rules.d/ debhelper. mk rules.d/ debhelper. mk python- hooks.diff can be reverse-applied dir/init- glibc' failed dir/init- glibc] Error 1 ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ---
...
Applying patch no-gdb-
patching file debian/
Hunk #1 FAILED at 220.
1 out of 1 hunk FAILED -- rejects in file debian/
Patch no-gdb-
debian/rules:382: recipe for target 'stamp-
make: *** [stamp-
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
-------
Build finished at 20171205-0736
# Patch: no-gdb- python- hooks.diff rules.d/ debhelper. mk rules.d/ debhelper. mk $$rtlddir# g" \ $$slibdir# g" \ $$libdir# g" \
--- a/debian/
+++ b/debian/
@@ -220,6 +220,7 @@
-e "s#RTLDDIR#
-e "s#SLIBDIR#
-e "s#LIBDIR#
+ -e "/gdb/d" \
$$t; \
done ; \
done
# debian/ rules.d/ debhelper. mk $$rtlddir# g" \ $$slibdir# g" \ $$libdir# g" \
220 -e "s#RTLDDIR#
221 -e "s#SLIBDIR#
222 -e "s#LIBDIR#
223 -e "/gdb/d" \
224 $$t; \
225 done ; \
226 done
[References & Other informations]
* Debian bug: /bugs.debian. org/cgi- bin/bugreport. cgi?bug= 874491
https:/
* Debian commit: /anonscm. debian. org/cgit/ pkg-glibc/ glibc.git/ commit/ ?id=60fb7e6
https:/
------- ------- ------- ------- -- rules.d/ debhelper. mk: do not install gdb python hooks for stage 1. Closes: #874491.
60fb7e6 debian/
# git describe 60fb7e6 2.25-0experimen tal3-25- g60fb7e6
debian/
# rmadison glibc ------- ------- ------- --
glibc | 2.26-0ubuntu2 | bionic | source
-------
* Ubuntu bug: /bugs.launchpad .net/ubuntu/ +source/ glibc/+ bug/1715366
https:/
* Launchpad Build log: /launchpadlibra rian.net/ 348143571/ buildlog_ ubuntu- bionic- amd64.cross- toolchain- base_19ubuntu1_ BUILDING. txt.gz
https:/