Bug#880917: cross-gcc-dev: gcc-8/0008-g-include-directories-functional-again.patch: broken patch

Helmut Grohne <[email protected]> Sun, 5 Nov 2017 17:40:34 +0100
Newsgroups gmane.linux.debian.devel.toolchain
Message-ID <20171105164032.pf6hpbjvcekkgezy__32670.8103799776$1509900326$gmane$org@alf.mars>
Package: cross-gcc-dev
Version: 154
Tags: patch
User: [email protected]
Usertags: rebootstrap

Hi Dima and Wookey,

thanks for maintaining cross-gcc-dev. I noticed while the present gcc-8
patches do apply against gcc-8, they end up breaking
g++-multiarch-incdir.diff.
gcc-8/0008-g-include-directories-functional-again.patch has two hunks.
The first of the modifies a hunk header of g++-multiarch-incdir.diff.
That modification turns g++-multiarch-incdir.diff into a broken patch.
The first hunk should be removed. The following command nullifies it:

sed -i -e '/^+@@ -223,7 +235,45 @@/s/45/16/' patches/gcc-8/0008-g-include-directories-functional-again.patch

After doing so, I can bootstrap gcc-8 for some architectures.

Helmut