On Tue, 2018-04-03 at 05:52 -0400, Roberto C. Sánchez wrote: > On Mon, Apr 02, 2018 at 01:45:40AM +0100, Ben Hutchings wrote: > > > > I would suggest looking at how non-default compiler versions are built > > in other suites. > > > > Ben. > > > > Hi Ben, > > Could you provide some more specific pointers at what I should look at? > I tried looking at gcc-4.8 in jessie, but I was not able to figure out > what is different about it that makes it only build a subset of the > packages built by gcc-4.9.
I didn't know how it worked, only that it does work. Anyway, I've looked now and I think you need to apply the following patch: --- gcc-4.9-4.9.2/debian/rules.conf +++ gcc-4.9-4.9.2/debian/rules.conf @@ -392,7 +392,7 @@ # ensure that the common libs, built from the next GCC version are available ifeq ($(PKGSOURCE),gcc-$(BASE_VERSION)) ifneq ($(with_common_libs),yes) - BASE_BUILD_DEP = gcc-4.10-base, + BASE_BUILD_DEP = gcc-4.7-base, endif endif --- gcc-4.9-4.9.2/debian/rules.defs +++ gcc-4.9-4.9.2/debian/rules.defs @@ -373,9 +373,9 @@ # common things --------------- # build common packages, where package names don't differ in different # gcc versions (fixincludes, libgcj-common) ... -with_common_pkgs := yes +with_common_pkgs := no # ... and some libraries, which do not change (libgcc1, libssp0). -with_common_libs := yes +with_common_libs := no # XXX: should with_common_libs be "yes" only if this is the default compiler # version on the targeted arch? --- END --- and then run 'debian/rules control' to update debian/control etc. Ben. -- Ben Hutchings The generation of random numbers is too important to be left to chance. - Robert Coveyou
signature.asc
Description: This is a digitally signed message part