Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 , := ,
4 spacescip-debian debian gcc-12-cross 26 gcc-12-cross/rules/space. := $(EMPTYscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/EMPTY.) $(EMPTYscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/EMPTY.)
5
6 NJOBSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/NJOBS. =
7 # Support parallel=<n> in DEB_BUILD_OPTIONS (see #209008)
8 ifneq (,$(filterscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/filter. parallel=%,$(substscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/subst. $(,), ,$(DEB_BUILD_OPTIONSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/DEB_BUILD_OPTIONS.))))
9 NJOBS := -j $(subst parallel=,,$(filter parallel=%,$(subst $(,),$(space),$(DEB_BUILD_OPTIONS))))
10 endif
11
12 vendorscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/vendor. := $(shellscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/shell. if dpkg-vendor --derives-from Ubuntu; then echo Ubuntu; else echo Debian; fi)
13 distreleasescip-debian debian gcc-12-cross 26 gcc-12-cross/rules/distrelease. := $(shellscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/shell. lsb_release -cs)
14
15 GCC_VERscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/GCC_VER. := $(shellscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/shell. dpkg-parsechangelog |egrep ^Source:|cut -f2 -d' '|cut -f2 -d'-')
16
17 ifeq ($(GCC_VERscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/GCC_VER.),12)
18 MIN_VER_GCC := 12.5.0-9~
19 PPA_VER_GCC := 12.5.0-9~
20 endif
21
22 ifndef MIN_VER_GCC
23 MIN_VER_GCC := ${GCC_VER}.0.1-0~
24 #MIN_VER_GCC := ${GCC_VER}-20160225-0~
25 endif
26
27 DEB_NAME_ACTscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/DEB_NAME_ACT. := $(shellscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/shell. dpkg-parsechangelog| sed -n 's/-*//; s/^Source: \(.*\)/\1/p')
28 DEB_SVER_ACTscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/DEB_SVER_ACT. := $(shellscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/shell. dpkg-parsechangelog| sed -n 's/-*//; s/^Version: \(.*\)/\1/p')
29 ifeq ($(DEB_NAME_ACTscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/DEB_NAME_ACT.),gcc-$(GCC_VERscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/GCC_VER.)-cross-mipsen)
30 DEB_VER_ACT := $(shell /bin/sh debian/new_cross_version.sh mipsr6el)
31 else
32 DEB_VER_ACT := $(shell /bin/sh debian/new_cross_version.sh $(if $(filter $(DEB_NAME_ACT), gcc-$(GCC_VER)-cross),arm64,ppc64))
33 endif
34 CROSS_EXTscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_EXT. := cross$(DEB_VER_ACTscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/DEB_VER_ACT.)
35
36 VER_GCCscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/VER_GCC. := $(shellscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/shell. dpkg-parsechangelog -l/usr/src/gcc-${GCC_VERscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/GCC_VER.}/debian/changelog | awk '/^Version:/ {print $$2}' | sed 's/-[^-]*$$//')
37 GCC_DIRscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/GCC_DIR. := /usr/src/gcc-${GCC_VERscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/GCC_VER.}
38 GCC_TARBALLscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/GCC_TARBALL. := $(wildcardscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/wildcard. $(GCC_DIRscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/GCC_DIR.)/gcc-*.xz)
39 VER_BINUTILSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/VER_BINUTILS. := 2.39-6
40 MIN_VER_BINUTILSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/MIN_VER_BINUTILS. := 2.39-6
41 VER_ISLscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/VER_ISL. := 0.22.1-1~
42 MIN_VER_GLIBCscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/MIN_VER_GLIBC. := 2.32
43
44 DEB_VER_GCCscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/DEB_VER_GCC. := $(shellscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/shell. dpkg-parsechangelog -l${GCC_DIRscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/GCC_DIR.}/debian/changelog | egrep '^Version:' | cut -f 2 -d ' ')
45
46 CROSS_BIARCH_armhfscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_BIARCH_armhf.:=armel
47 CROSS_BIARCH_armelscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_BIARCH_armel.:=armhf
48 CROSS_BIARCH_powerpcscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_BIARCH_powerpc.:=ppc64
49 CROSS_BIARCH_s390xscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_BIARCH_s390x.:=s390
50
51 HOST_ARCHS_alphascip-debian debian gcc-12-cross 26 gcc-12-cross/rules/HOST_ARCHS_alpha. = amd64 i386 x32
52 # FIXME: adding amd64 in HOST_ARCHS_amd64 hard codes the indep build
53 # to amd64 buildds ...
54 HOST_ARCHS_amd64scip-debian debian gcc-12-cross 26 gcc-12-cross/rules/HOST_ARCHS_amd64. = amd64 arm64 i386 ppc64el x32
55 HOST_ARCHS_arcscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/HOST_ARCHS_arc. = amd64 i386 x32
56 HOST_ARCHS_armhfscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/HOST_ARCHS_armhf. = amd64 i386 x32 arm64 ppc64el
57 HOST_ARCHS_armelscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/HOST_ARCHS_armel. = amd64 i386 x32 arm64 ppc64el
58 HOST_ARCHS_arm64scip-debian debian gcc-12-cross 26 gcc-12-cross/rules/HOST_ARCHS_arm64. = amd64 i386 x32 ppc64el
59 HOST_ARCHS_hppascip-debian debian gcc-12-cross 26 gcc-12-cross/rules/HOST_ARCHS_hppa. = amd64 i386 x32
60 HOST_ARCHS_i386scip-debian debian gcc-12-cross 26 gcc-12-cross/rules/HOST_ARCHS_i386. = amd64 arm64 ppc64el x32
61 HOST_ARCHS_m68kscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/HOST_ARCHS_m68k. = amd64 i386 x32
62 HOST_ARCHS_powerpcscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/HOST_ARCHS_powerpc. = amd64 i386 x32 ppc64el
63 HOST_ARCHS_ppc64scip-debian debian gcc-12-cross 26 gcc-12-cross/rules/HOST_ARCHS_ppc64. = amd64 i386 x32
64 HOST_ARCHS_ppc64elscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/HOST_ARCHS_ppc64el. = amd64 i386 x32 ppc64 arm64
65 HOST_ARCHS_riscv64scip-debian debian gcc-12-cross 26 gcc-12-cross/rules/HOST_ARCHS_riscv64. = amd64 i386 x32 arm64 ppc64el
66 HOST_ARCHS_s390xscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/HOST_ARCHS_s390x. = amd64 i386 x32 arm64 ppc64el
67 HOST_ARCHS_sh4scip-debian debian gcc-12-cross 26 gcc-12-cross/rules/HOST_ARCHS_sh4. = amd64 i386 x32
68 HOST_ARCHS_sparc64scip-debian debian gcc-12-cross 26 gcc-12-cross/rules/HOST_ARCHS_sparc64. = amd64 i386 x32
69 HOST_ARCHS_x32scip-debian debian gcc-12-cross 26 gcc-12-cross/rules/HOST_ARCHS_x32. = amd64 arm64 i386 ppc64el
70
71 all_archs_mipsscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/all_archs_mips. = mips mipsel mipsn32 mipsn32el mips64 mips64el mipsr6 mipsr6el mipsn32r6 mipsn32r6el mips64r6 mips64r6el
72 mipsen_archsscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/mipsen_archs. = amd64 i386 x32 mips64el mipsel mips64r6el arm64 ppc64el
73 $(foreachscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/foreach. a, $(all_archs_mipsscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/all_archs_mips.), \
74 $(evalscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/eval. HOST_ARCHS_$(ascip-debian debian gcc-12-cross 26 gcc-12-cross/rules/a.) = $(filter-outscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/filter-out. $(ascip-debian debian gcc-12-cross 26 gcc-12-cross/rules/a.), $(mipsen_archsscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/mipsen_archs.))) \
75 )
76
77 HOST_GNU_TYPEscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/HOST_GNU_TYPE. := $(shellscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/shell. dpkg-architecture -qDEB_HOST_GNU_TYPE)
78 HOST_ARCHscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/HOST_ARCH. := $(shellscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/shell. dpkg-architecture -qDEB_HOST_ARCH)
79 HOST_ARCH_EXTscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/HOST_ARCH_EXT. := $(ifscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/if. $(DEB_HOST_ARCH_VARIANTscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/DEB_HOST_ARCH_VARIANT.),$(DEB_HOST_ARCH_VARIANTscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/DEB_HOST_ARCH_VARIANT.),$(HOST_ARCHscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/HOST_ARCH.))
80 stampscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/stamp. := stamp-dir/
81
82 # package metadata information
83 ifeq (,$(ELF_PACKAGE_METADATAscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/ELF_PACKAGE_METADATA.))
84 ELF_PACKAGE_METADATA := $(subst $(space),,{ \
85 "type":"deb", \
86 "os":"$(shell awk -F= '/^ID=/ {print $$2}' /etc/os-release)", \
87 "name":"$(DEB_NAME_ACT)", \
88 "version":"$(DEB_SVER_ACT)", \
89 "architecture":"$(HOST_ARCH)" \
90 $(if $(DEB_BUILD_DEBUG_INFO_URL),$(,)"debugInfoUrl":"$(DEB_BUILD_DEBUG_INFO_URL)") \
91 })
92 export ELF_PACKAGE_METADATA
93 endif
94
95 ifeq (,$(CROSS_ARCHSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_ARCHS.))
96 ifeq ($(DEB_NAME_ACT),gcc-12-cross)
97 ifneq (,$(filter $(HOST_ARCH),amd64 i386 x32))
98 CROSS_ARCHS = amd64
99 CROSS_ARCHS += s390x ppc64el arm64 armhf armel \
100 $(if $(filter $(vendor), Ubuntu), powerpc) \
101 $(if $(filter $(HOST_ARCH), amd64 x32), i386)
102 else ifeq ($(HOST_ARCH),arm64)
103 CROSS_ARCHS = amd64 armel armhf i386 ppc64el s390x
104 else ifeq ($(HOST_ARCH),ppc64)
105 CROSS_ARCHS = ppc64el
106 else ifeq ($(HOST_ARCH),ppc64el)
107 CROSS_ARCHS = amd64 i386 $(if $(filter $(vendor), Ubuntu), powerpc) \
108 armel armhf arm64 s390x
109 else
110 CROSS_ARCHS =
111 endif
112 GCC_PORTS_BUILD=
113 else ifeq ($(DEB_NAME_ACT),gcc-12-cross-mipsen)
114 ifneq (,$(filter $(HOST_ARCH),$(mipsen_archs)))
115 CROSS_ARCHS ?= mips mipsel mips64el mips64 \
116 mipsr6 mipsr6el mips64r6 mips64r6el
117 # n32: mipsn32 mipsn32el mipsn32r6 mipsn32r6el
118 # have problem on ada
119 endif
120 GCC_PORTS_BUILD=-mipsen
121 else # -ports package
122 ifneq (,$(filter $(HOST_ARCH),amd64 i386 x32))
123 CROSS_ARCHS ?= alpha arc hppa m68k ppc64 riscv64 sh4 sparc64 \
124 $(if $(filter $(vendor), Ubuntu),, powerpc) \
125 $(if $(filter $(HOST_ARCH), amd64 i386), x32)
126 else ifeq ($(HOST_ARCH),arm64)
127 CROSS_ARCHS = x32 riscv64
128 else ifeq ($(HOST_ARCH),ppc64el)
129 CROSS_ARCHS = x32 riscv64 $(if $(filter $(vendor), Ubuntu),, powerpc)
130 else
131 CROSS_ARCHS =
132 endif
133 GCC_PORTS_BUILD=-ports
134 endif
135 endif
136
137 CROSS_ARCHscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_ARCH. = $(substscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/subst. .,,$(suffixscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/suffix. $@))
138 KERNEL_ARCHscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/KERNEL_ARCH. = $(KERNEL_ARCH_scip-debian debian gcc-12-cross 26 gcc-12-cross/rules/KERNEL_ARCH_.$(CROSS_ARCHscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_ARCH.))
139 CROSS_BIARCHscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_BIARCH. = $(CROSS_BIARCH_scip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_BIARCH_.$(CROSS_ARCHscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_ARCH.))
140 _gnu_typescip-debian debian gcc-12-cross 26 gcc-12-cross/rules/_gnu_type. = $(shellscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/shell. dpkg-architecture -a$(1scip-debian debian gcc-12-cross 26 gcc-12-cross/rules/1.) -qDEB_HOST_GNU_TYPE -f)
141 _pkg_gnu_typescip-debian debian gcc-12-cross 26 gcc-12-cross/rules/_pkg_gnu_type. = $(shellscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/shell. dpkg-architecture -a$(1scip-debian debian gcc-12-cross 26 gcc-12-cross/rules/1.) -qDEB_HOST_GNU_TYPE -f | tr _ -)
142 CROSS_GNU_TYPEscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_GNU_TYPE. = $(callscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/call. _gnu_type,${CROSS_ARCHscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_ARCH.})
143 HOST_ARCHSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/HOST_ARCHS. = $(HOST_ARCH_scip-debian debian gcc-12-cross 26 gcc-12-cross/rules/HOST_ARCH_.$(CROSS_ARCHscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_ARCH.))
144 ADA_HOST_ARCHSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/ADA_HOST_ARCHS. = $(HOST_ARCH_scip-debian debian gcc-12-cross 26 gcc-12-cross/rules/HOST_ARCH_.$(CROSS_ARCHscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_ARCH.))
145 ADA64_HOST_ARCHSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/ADA64_HOST_ARCHS. = $(filter-outscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/filter-out. i386,$(HOST_ARCH_scip-debian debian gcc-12-cross 26 gcc-12-cross/rules/HOST_ARCH_.$(CROSS_ARCHscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_ARCH.)))
146
147 ARM32_MULTILIBSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/ARM32_MULTILIBS. :=
148 ifeq ($(vendorscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/vendor.),Ubuntu)
149 ifneq (,$(filter $(distrelease), precise trusty xenial bionic focal groovy hirsute))
150 ARM32_MULTILIBS := yes
151 endif
152 endif
153
154 ifeq ($(vendorscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/vendor.),Debian)
155 skip_dbg_packages = yes
156 skip_arm32ml_packages = yes
157 else ifeq ($(vendorscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/vendor.),Ubuntu)
158 ifeq (,$(filter $(distrelease), precise trusty xenial bionic focal groovy hirsute))
159 skip_arm32ml_packages = yes
160 endif
161 endif
162
163 libgcc_sourcescip-debian debian gcc-12-cross 26 gcc-12-cross/rules/libgcc_source. := $(shellscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/shell. apt-cache show --no-all-versions libgcc-s1-arm64-cross | awk '/^Source:/ { print $$2 }')
164 #ifneq ($(DEB_NAME_ACT),$(libgcc_source))
165 skip_common_packages = yes
166 #endif
167
168 BINUTILS_BUILD_DEPSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/BINUTILS_BUILD_DEPS. = $(foreachscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/foreach. a,$(CROSS_ARCHSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_ARCHS.),binutils-$(callscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/call. _pkg_gnu_type,$(ascip-debian debian gcc-12-cross 26 gcc-12-cross/rules/a.)) (>= $(MIN_VER_BINUTILSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/MIN_VER_BINUTILS.)) [$(HOST_ARCHS_scip-debian debian gcc-12-cross 26 gcc-12-cross/rules/HOST_ARCHS_.$(ascip-debian debian gcc-12-cross 26 gcc-12-cross/rules/a.))]$(,))
169 GLIBC_BUILD_DEPSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/GLIBC_BUILD_DEPS. = $(foreachscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/foreach. a,$(CROSS_ARCHSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_ARCHS.),libc6$(ifscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/if. $(filterscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/filter. $(ascip-debian debian gcc-12-cross 26 gcc-12-cross/rules/a.),alpha ia64),.1)-dev-$(ascip-debian debian gcc-12-cross 26 gcc-12-cross/rules/a.)-cross (>= $(MIN_VER_GLIBCscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/MIN_VER_GLIBC.)) [$(HOST_ARCHS_scip-debian debian gcc-12-cross 26 gcc-12-cross/rules/HOST_ARCHS_.$(ascip-debian debian gcc-12-cross 26 gcc-12-cross/rules/a.))]$(,))
170 LINUX_BUILD_DEPSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/LINUX_BUILD_DEPS. = $(foreachscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/foreach. a,$(CROSS_ARCHSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_ARCHS.),linux-libc-dev-$(ascip-debian debian gcc-12-cross 26 gcc-12-cross/rules/a.)-cross [$(HOST_ARCHS_scip-debian debian gcc-12-cross 26 gcc-12-cross/rules/HOST_ARCHS_.$(ascip-debian debian gcc-12-cross 26 gcc-12-cross/rules/a.))]$(,))
171
172 # build multilib cross compilers
173 ifeq ($(ARM32_MULTILIBSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/ARM32_MULTILIBS.),yes)
174 ifneq (,$(filter armel, $(CROSS_ARCHS)))
175 EXTRA_BUILD_DEPS += libc6-dev-armhf-cross [$(HOST_ARCHS_armel)],
176 ifeq ($(skip_common_packages),yes)
177 GCC_BUILD_DEPS += libhfgcc-s1-armel-cross [$(HOST_ARCHS_armel)],
178 endif
179 endif
180
181 ifneq (,$(filter armhf, $(CROSS_ARCHS)))
182 EXTRA_BUILD_DEPS += libc6-dev-armel-cross [$(HOST_ARCHS_armhf)],
183 ifeq ($(skip_common_packages),yes)
184 GCC_BUILD_DEPS += libsfgcc-s1-armhf-cross [$(HOST_ARCHS_armhf)],
185 endif
186 endif
187 endif
188
189 ifneq (,$(filterscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/filter. amd64, $(CROSS_ARCHSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_ARCHS.)))
190 EXTRA_BUILD_DEPS += libc6-dev-i386-amd64-cross [$(HOST_ARCHS_amd64)],
191 EXTRA_BUILD_DEPS += libc6-dev-x32-amd64-cross [$(HOST_ARCHS_amd64)],
192 ifeq ($(skip_common_packages),yes)
193 GCC_BUILD_DEPS += lib32gcc-s1-amd64-cross [$(HOST_ARCHS_amd64)],
194 GCC_BUILD_DEPS += libx32gcc-s1-amd64-cross [$(HOST_ARCHS_amd64)],
195 endif
196 endif
197
198 ifneq (,$(filterscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/filter. i386, $(CROSS_ARCHSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_ARCHS.)))
199 EXTRA_BUILD_DEPS += libc6-dev-amd64-i386-cross [$(HOST_ARCHS_i386)],
200 EXTRA_BUILD_DEPS += libc6-dev-x32-i386-cross [$(HOST_ARCHS_i386)],
201 ifeq ($(skip_common_packages),yes)
202 GCC_BUILD_DEPS += lib64gcc-s1-i386-cross [$(HOST_ARCHS_i386)],
203 GCC_BUILD_DEPS += libx32gcc-s1-i386-cross [$(HOST_ARCHS_i386)],
204 endif
205 endif
206
207 ifneq (,$(filterscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/filter. x32, $(CROSS_ARCHSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_ARCHS.)))
208 EXTRA_BUILD_DEPS += libc6-dev-i386-x32-cross [$(HOST_ARCHS_x32)],
209 EXTRA_BUILD_DEPS += libc6-dev-amd64-x32-cross [$(HOST_ARCHS_x32)],
210 ifeq ($(skip_common_packages),yes)
211 GCC_BUILD_DEPS += lib32gcc-s1-x32-cross [$(HOST_ARCHS_x32)],
212 GCC_BUILD_DEPS += lib64gcc-s1-x32-cross [$(HOST_ARCHS_x32)],
213 endif
214 endif
215
216 ifneq (,$(filterscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/filter. ppc64, $(CROSS_ARCHSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_ARCHS.)))
217 EXTRA_BUILD_DEPS += libc6-dev-powerpc-ppc64-cross [$(HOST_ARCHS_ppc64)],
218 ifeq ($(skip_common_packages),yes)
219 GCC_BUILD_DEPS += lib32gcc-s1-ppc64-cross [$(HOST_ARCHS_ppc64)],
220 endif
221 endif
222
223 ifneq (,$(filterscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/filter. sparc64, $(CROSS_ARCHSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_ARCHS.)))
224 EXTRA_BUILD_DEPS += libc6-dev-sparc-sparc64-cross [$(HOST_ARCHS_sparc64)],
225 ifeq ($(skip_common_packages),yes)
226 GCC_BUILD_DEPS += lib32gcc-s1-sparc64-cross [$(HOST_ARCHS_sparc64)],
227 endif
228 endif
229
230 ifneq (,$(filterscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/filter. powerpc, $(CROSS_ARCHSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_ARCHS.)))
231 EXTRA_BUILD_DEPS += libc6-dev-ppc64-powerpc-cross [$(HOST_ARCHS_powerpc)],
232 ifeq ($(skip_common_packages),yes)
233 GCC_BUILD_DEPS += lib64gcc-s1-powerpc-cross [$(HOST_ARCHS_powerpc)],
234 endif
235 endif
236
237 ifneq (,$(filterscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/filter. mips, $(CROSS_ARCHSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_ARCHS.)))
238 EXTRA_BUILD_DEPS += libc6-dev-mips64-mips-cross [$(HOST_ARCHS_mips)],
239 EXTRA_BUILD_DEPS += libc6-dev-mipsn32-mips-cross [$(HOST_ARCHS_mips)],
240 ifeq ($(skip_common_packages),yes)
241 GCC_BUILD_DEPS += lib64gcc-s1-mips-cross [$(HOST_ARCHS_mips)],
242 GCC_BUILD_DEPS += libn32gcc-s1-mips-cross [$(HOST_ARCHS_mips)],
243 endif
244 endif
245
246 ifneq (,$(filterscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/filter. mipsel, $(CROSS_ARCHSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_ARCHS.)))
247 EXTRA_BUILD_DEPS += libc6-dev-mips64-mipsel-cross [$(HOST_ARCHS_mipsel)],
248 EXTRA_BUILD_DEPS += libc6-dev-mipsn32-mipsel-cross [$(HOST_ARCHS_mipsel)],
249 ifeq ($(skip_common_packages),yes)
250 GCC_BUILD_DEPS += lib64gcc-s1-mipsel-cross [$(HOST_ARCHS_mipsel)],
251 GCC_BUILD_DEPS += libn32gcc-s1-mipsel-cross [$(HOST_ARCHS_mipsel)],
252 endif
253 endif
254
255 ifneq (,$(filterscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/filter. mipsn32, $(CROSS_ARCHSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_ARCHS.)))
256 EXTRA_BUILD_DEPS += libc6-dev-mips32-mipsn32-cross [$(HOST_ARCHS_mipsn32)],
257 EXTRA_BUILD_DEPS += libc6-dev-mips64-mipsn32-cross [$(HOST_ARCHS_mipsn32)],
258 ifeq ($(skip_common_packages),yes)
259 GCC_BUILD_DEPS += lib32gcc-s1-mipsn32-cross [$(HOST_ARCHS_mipsn32)],
260 GCC_BUILD_DEPS += lib64gcc-s1-mipsn32-cross [$(HOST_ARCHS_mipsn32)],
261 endif
262 endif
263
264 ifneq (,$(filterscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/filter. mipsn32el, $(CROSS_ARCHSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_ARCHS.)))
265 EXTRA_BUILD_DEPS += libc6-dev-mips32-mipsn32el-cross [$(HOST_ARCHS_mipsn32el)],
266 EXTRA_BUILD_DEPS += libc6-dev-mips64-mipsn32el-cross [$(HOST_ARCHS_mipsn32el)],
267 ifeq ($(skip_common_packages),yes)
268 GCC_BUILD_DEPS += lib32gcc-s1-mipsn32el-cross [$(HOST_ARCHS_mipsn32el)],
269 GCC_BUILD_DEPS += lib64gcc-s1-mipsn32el-cross [$(HOST_ARCHS_mipsn32el)],
270 endif
271 endif
272
273 ifneq (,$(filterscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/filter. mips64, $(CROSS_ARCHSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_ARCHS.)))
274 EXTRA_BUILD_DEPS += libc6-dev-mips32-mips64-cross [$(HOST_ARCHS_mips64)],
275 EXTRA_BUILD_DEPS += libc6-dev-mipsn32-mips64-cross [$(HOST_ARCHS_mips64)],
276 ifeq ($(skip_common_packages),yes)
277 GCC_BUILD_DEPS += lib32gcc-s1-mips64-cross [$(HOST_ARCHS_mips64)],
278 GCC_BUILD_DEPS += libn32gcc-s1-mips64-cross [$(HOST_ARCHS_mips64)],
279 endif
280 endif
281
282 ifneq (,$(filterscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/filter. mips64el, $(CROSS_ARCHSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_ARCHS.)))
283 EXTRA_BUILD_DEPS += libc6-dev-mips32-mips64el-cross [$(HOST_ARCHS_mips64el)],
284 EXTRA_BUILD_DEPS += libc6-dev-mipsn32-mips64el-cross [$(HOST_ARCHS_mips64el)],
285 ifeq ($(skip_common_packages),yes)
286 GCC_BUILD_DEPS += lib32gcc-s1-mips64el-cross [$(HOST_ARCHS_mips64el)],
287 GCC_BUILD_DEPS += libn32gcc-s1-mips64el-cross [$(HOST_ARCHS_mips64el)],
288 endif
289 endif
290
291 ifneq (,$(filterscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/filter. mipsr6, $(CROSS_ARCHSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_ARCHS.)))
292 EXTRA_BUILD_DEPS += libc6-dev-mips64-mipsr6-cross [$(HOST_ARCHS_mipsr6)],
293 EXTRA_BUILD_DEPS += libc6-dev-mipsn32-mipsr6-cross [$(HOST_ARCHS_mipsr6)],
294 ifeq ($(skip_common_packages),yes)
295 GCC_BUILD_DEPS += lib64gcc-s1-mipsr6-cross [$(HOST_ARCHS_mipsr6)],
296 GCC_BUILD_DEPS += libn32gcc-s1-mipsr6-cross [$(HOST_ARCHS_mipsr6)],
297 endif
298 endif
299
300 ifneq (,$(filterscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/filter. mipsr6el, $(CROSS_ARCHSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_ARCHS.)))
301 EXTRA_BUILD_DEPS += libc6-dev-mips64-mipsr6el-cross [$(HOST_ARCHS_mipsr6el)],
302 EXTRA_BUILD_DEPS += libc6-dev-mipsn32-mipsr6el-cross [$(HOST_ARCHS_mipsr6el)],
303 ifeq ($(skip_common_packages),yes)
304 GCC_BUILD_DEPS += lib64gcc-s1-mipsr6el-cross [$(HOST_ARCHS_mipsr6el)],
305 GCC_BUILD_DEPS += libn32gcc-s1-mipsr6el-cross [$(HOST_ARCHS_mipsr6el)],
306 endif
307 endif
308
309 ifneq (,$(filterscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/filter. mipsn32r6, $(CROSS_ARCHSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_ARCHS.)))
310 EXTRA_BUILD_DEPS += libc6-dev-mips32-mipsn32r6-cross [$(HOST_ARCHS_mipsn32r6)],
311 EXTRA_BUILD_DEPS += libc6-dev-mips64-mipsn32r6-cross [$(HOST_ARCHS_mipsn32r6)],
312 ifeq ($(skip_common_packages),yes)
313 GCC_BUILD_DEPS += lib32gcc-s1-mipsn32r6-cross [$(HOST_ARCHS_mipsn32r6)],
314 GCC_BUILD_DEPS += lib64gcc-s1-mipsn32r6-cross [$(HOST_ARCHS_mipsn32r6)],
315 endif
316 endif
317
318 ifneq (,$(filterscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/filter. mipsn32r6el, $(CROSS_ARCHSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_ARCHS.)))
319 EXTRA_BUILD_DEPS += libc6-dev-mips32-mipsn32r6el-cross [$(HOST_ARCHS_mipsn32r6el)],
320 EXTRA_BUILD_DEPS += libc6-dev-mips64-mipsn32r6el-cross [$(HOST_ARCHS_mipsn32r6el)],
321 ifeq ($(skip_common_packages),yes)
322 GCC_BUILD_DEPS += lib32gcc-s1-mipsn32r6el-cross [$(HOST_ARCHS_mipsn32r6el)],
323 GCC_BUILD_DEPS += lib64gcc-s1-mipsn32r6el-cross [$(HOST_ARCHS_mipsn32r6el)],
324 endif
325 endif
326
327 ifneq (,$(filterscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/filter. mips64r6, $(CROSS_ARCHSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_ARCHS.)))
328 EXTRA_BUILD_DEPS += libc6-dev-mips32-mips64r6-cross [$(HOST_ARCHS_mips64r6)],
329 EXTRA_BUILD_DEPS += libc6-dev-mipsn32-mips64r6-cross [$(HOST_ARCHS_mips64r6)],
330 ifeq ($(skip_common_packages),yes)
331 GCC_BUILD_DEPS += lib32gcc-s1-mips64r6-cross [$(HOST_ARCHS_mips64r6)],
332 GCC_BUILD_DEPS += libn32gcc-s1-mips64r6-cross [$(HOST_ARCHS_mips64r6)],
333 endif
334 endif
335
336 ifneq (,$(filterscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/filter. mips64r6el, $(CROSS_ARCHSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_ARCHS.)))
337 EXTRA_BUILD_DEPS += libc6-dev-mips32-mips64r6el-cross [$(HOST_ARCHS_mips64r6el)],
338 EXTRA_BUILD_DEPS += libc6-dev-mipsn32-mips64r6el-cross [$(HOST_ARCHS_mips64r6el)],
339 ifeq ($(skip_common_packages),yes)
340 GCC_BUILD_DEPS += lib32gcc-s1-mips64r6el-cross [$(HOST_ARCHS_mips64r6el)],
341 GCC_BUILD_DEPS += libn32gcc-s1-mips64r6el-cross [$(HOST_ARCHS_mips64r6el)],
342 endif
343 endif
344
345 PHOBOS_ARCHSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/PHOBOS_ARCHS. = amd64 armel armhf arm64 i386 x32 kfreebsd-amd64 kfreebsd-i386 \
346 hppa ppc64el riscv64 s390x sparc64 \
347 mips mips64 mipsel mips64el mipsn32 mipsn32el \
348 mipsr6 mipsr6el mipsn32r6 mipsn32r6el mips64r6 mips64r6el
349
350 PHOBOS_DEPscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/PHOBOS_DEP. = libgphobos-GCC_VER-dev-CROSS_ARCH-cross (= $${gcc:Version}),
351 # FIXME: Set correctly ...
352 PHOBOS_ML_DEPscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/PHOBOS_ML_DEP. = libgphobos-GCC_VER-dev-CROSS_ARCH-cross (= $${gcc:Version}),
353
354
355 infoscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/info().:
356 @echo "Package name: ${DEB_NAME_ACTscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/DEB_NAME_ACT.} ${DEB_VER_ACTscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/DEB_VER_ACT.}"
357 @echo 'Package metadata: $(ELF_PACKAGE_METADATAscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/ELF_PACKAGE_METADATA.)'
358 @echo
359 @echo "GCC ${GCC_VERscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/GCC_VER.} version: ${VER_GCCscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/VER_GCC.} ${DEB_VER_GCCscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/DEB_VER_GCC.}"
360 @echo
361 @echo "Target architecture: ${CROSS_ARCHscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_ARCH.}"
362 @echo "Target GNU type: ${CROSS_GNU_TYPEscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_GNU_TYPE.}"
363 @echo "Host architecture: ${HOST_ARCHscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/HOST_ARCH.}"
364 @echo "Host GNU type: ${HOST_GNU_TYPEscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/HOST_GNU_TYPE.}"
365 @echo "skips (debug/common/armml): $(skip_dbg_packagesscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/skip_dbg_packages.)/$(skip_common_packagesscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/skip_common_packages.)/$(skip_arm32ml_packagesscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/skip_arm32ml_packages.)"
366
367 $(scip-debian debian gcc-12-cross 26 gcc-12-cross/rules/`$(stamp)init-gcc`().stampscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/stamp.)scip-debian debian gcc-12-cross 26 gcc-12-cross/rules/`$(stamp)init-gcc`().init-gcc:
368 @echo START $@
369 rm -rf bin
370 mkdir -p bin
371 ln -s /usr/bin/gcc-$(GCC_VERscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/GCC_VER.) bin/gcc
372 ln -s /usr/bin/g++-$(GCC_VERscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/GCC_VER.) bin/g++
373 mkdir -p gcc
374 set -ex; \
375 cd gcc ; \
376 ln -sf $(GCC_TARBALLscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/GCC_TARBALL.) $(notdir $(GCC_TARBALL)) ;\
377 cp -a $(GCC_DIRscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/GCC_DIR.)/debian/ . ; \
378 if [ -n "$$(grep -v '^\#' $(CURDIRscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CURDIR.)/debian/patches/gcc/series)" ]; then \
379 QUILT_PATCHES=$(CURDIRscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CURDIR.)/debian/patches/gcc quilt push --quiltrc /dev/null -a ; \
380 fi
381 # set -ex; \
382 # if dpkg --compare-versions $(DEB_VER_GCC) lt 12.2.0-5; then \
383 # cd gcc; \
384 # patch -p1 < ../debian/patches/gcc/updates.diff; \
385 # fi
386 touch $@
387
388 $(scip-debian debian gcc-12-cross 26 gcc-12-cross/rules/`$(stamp)build-gcc.%`().stampscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/stamp.)scip-debian debian gcc-12-cross 26 gcc-12-cross/rules/`$(stamp)build-gcc.%`().build-gcc.%: $(stampscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/stamp.)init-gcc
389 @echo START $@
390 @if [ "$(HOST_ARCHscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/HOST_ARCH.)" = "$(CROSS_ARCHscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_ARCH.)" ] && [ "X$(dbp_flagscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/dbp_flag.)" = X-B ]; then \
391 echo "Skipping binary-arch build for $(CROSS_ARCHscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_ARCH.)"; \
392 else \
393 set -x; \
394 echo ${CROSS_ARCHscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_ARCH.} >gcc/debian/target; \
395 cd gcc && \
396 PATH=$(CURDIRscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CURDIR.)/bin:$$PATH \
397 WITH_SYSROOT=/ \
398 PKG_IGNORE_CURRENTLY_BUILDING=1 \
399 BACKPORT=false \
400 WITHOUT_LANG="hppa64 jit nvptx" \
401 $(if $(filter $(HOST_ARCH),$(CROSS_ARCHscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_ARCH.)),FORCE_CROSS_LAYOUT=yes WITH_BOOTSTRAP=off) \
402 GCC_PORTS_BUILD=$(GCC_PORTS_BUILDscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/GCC_PORTS_BUILD.) \
403 dpkg-buildpackage $(if $(filter $(HOST_ARCH),$(CROSS_ARCHscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_ARCH.)),$(subst -b,-A,$(dbp_flag)),$(dbp_flagscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/dbp_flag.)) -uc -us -d; \
404 fi
405 rm -vf *-for-host_*.deb
406 touch $@
407
408 cleanscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/clean().:
409 rm -rf bin gcc tmp-*
410 rm -f *.*deb *.changes *.buildinfo debian/files
411 rm -rf $(stampscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/stamp.)
412 mkdir $(stampscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/stamp.)
413 dh_cleanscip-debian debian debhelper . dh_clean().
414
415
416 $(scip-debian debian gcc-12-cross 26 gcc-12-cross/rules/`$(stamp)repack-%`().stampscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/stamp.)scip-debian debian gcc-12-cross 26 gcc-12-cross/rules/`$(stamp)repack-%`().repack-%:
417 @umask 022; \
418 if [ -z "$(TARGET_ARCHscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/TARGET_ARCH.)" ]; then \
419 echo >&2 "repack: macro TARGET_ARCH not set"; \
420 exit 1; \
421 fi; \
422 t_arch=$(TARGET_ARCHscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/TARGET_ARCH.); \
423 t_gnu_type=$(call _gnu_type,$(TARGET_ARCH)); \
424 deb=$*; \
425 pkgname=`echo $$deb | cut -d'_' -f1`; \
426 tmp=tmp-$$pkgname; \
427 if [ "$(skip_dbg_packagesscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/skip_dbg_packages.)" = yes ]; then \
428 case $$deb in *-dbg*) exit 0; esac; \
429 fi; \
430 echo "repack $$pkgname ($$deb) ..."; \
431 rm -rf $$tmp; \
432 mkdir -p $$tmp; \
433 dpkg-deb -x $$deb $$tmp; \
434 dpkg-deb -e $$deb $$tmp/DEBIAN; \
435 sed -i -e's/^Source:.*/Source: $(DEB_NAME_ACTscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/DEB_NAME_ACT.) ($(DEB_SVER_ACTscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/DEB_SVER_ACT.))/' \
436 -e "/^Depends:/s/$(DEB_VER_GCCscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/DEB_VER_GCC.)/$(DEB_VER_GCCscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/DEB_VER_GCC.)$(CROSS_EXTscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_EXT.)/g" \
437 -e "/^Recommends:/s/$(DEB_VER_GCCscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/DEB_VER_GCC.)/$(DEB_VER_GCCscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/DEB_VER_GCC.)$(CROSS_EXTscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_EXT.)/g" \
438 -e "/^Suggests:/s/$(DEB_VER_GCCscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/DEB_VER_GCC.)/$(DEB_VER_GCCscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/DEB_VER_GCC.)$(CROSS_EXTscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_EXT.)/g" \
439 -e "/^Version:/s/$(DEB_VER_GCCscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/DEB_VER_GCC.)/$(DEB_VER_GCCscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/DEB_VER_GCC.)$(CROSS_EXTscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_EXT.)/" \
440 $$tmp/DEBIAN/control ; \
441 sed -i -e "/^Depends:/s/\(libgnat-[0-9]*\) (>= $(DEB_VER_GCCscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/DEB_VER_GCC.)$(CROSS_EXTscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_EXT.))/\1 (>= $(VER_GCCscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/VER_GCC.))/g" \
442 $$tmp/DEBIAN/control ; \
443 sed -i -e "/^Depends:/s/\(libgnat-util[0-9]*\) (>= $(DEB_VER_GCCscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/DEB_VER_GCC.)$(CROSS_EXTscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_EXT.))/\1 (>= $(VER_GCCscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/VER_GCC.))/g" \
444 $$tmp/DEBIAN/control ; \
445 case $$pkgname in \
446 gcc-$(GCC_VERscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/GCC_VER.)-$${t_gnu_type}) \
447 sed -i -e '/Depends/s/\(libcc1[^,]*\)$(CROSS_EXTscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_EXT.)/\1/' \
448 $$tmp/DEBIAN/control;; \
449 *-cross) \
450 sed -i -e '/^Depends:/s/\(-base *( *\)=\([^)]*\)cross[^)]*)/\1>=\2)/' \
451 $$tmp/DEBIAN/control;; \
452 esac; \
453 install -d -m 755 $$tmp/usr/share/lintian/overrides; \
454 if [ -e debian/overrides/$$pkgname ]; then \
455 cp debian/overrides/$$pkgname $$tmp/usr/share/lintian/overrides/; \
456 fi; \
457 case "$$pkgname" in \
458 gcc-$(GCC_VERscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/GCC_VER.)-cross-base*) \
459 echo "$$pkgname binary: wrong-name-for-changelog-of-native-package" \
460 >> $$tmp/usr/share/lintian/overrides/$$pkgname \
461 ;; \
462 gcc-$(GCC_VERscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/GCC_VER.)-*-base) \
463 echo "$$pkgname binary: wrong-name-for-changelog-of-native-package" \
464 >> $$tmp/usr/share/lintian/overrides/$$pkgname \
465 ;; \
466 gcc-$(GCC_VERscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/GCC_VER.)-multilib) \
467 echo "$$pkgname binary: binary-from-other-architecture" \
468 >> $$tmp/usr/share/lintian/overrides/$$pkgname \
469 ;; \
470 gccgo-$(GCC_VERscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/GCC_VER.)*) \
471 echo "$$pkgname binary: binary-from-other-architecture" \
472 >> $$tmp/usr/share/lintian/overrides/$$pkgname; \
473 echo "$$pkgname binary: non-standard-dir-in-usr" \
474 >> $$tmp/usr/share/lintian/overrides/$$pkgname; \
475 ;; \
476 *-multilib-*) \
477 ;; \
478 cpp-*|g++-*|gcc-*|gccgo-*|gdc-*|gfortran-*|gobjc*|gm2-*|gnat-$(GCC_VERscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/GCC_VER.)-sjlj-*) \
479 echo "$$pkgname binary: binary-from-other-architecture" \
480 >> $$tmp/usr/share/lintian/overrides/$$pkgname \
481 ;; \
482 gnat-$(GCC_VERscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/GCC_VER.)-*) \
483 echo "$$pkgname binary: binary-from-other-architecture" \
484 >> $$tmp/usr/share/lintian/overrides/$$pkgname; \
485 echo "$$pkgname binary: non-standard-dir-in-usr" \
486 >> $$tmp/usr/share/lintian/overrides/$$pkgname; \
487 ;; \
488 *-dev-$${t_arch}-cross) \
489 echo "$$pkgname binary: arch-independent-package-contains-binary-or-object" \
490 >> $$tmp/usr/share/lintian/overrides/$$pkgname; \
491 echo "$$pkgname binary: non-standard-dir-in-usr" \
492 >> $$tmp/usr/share/lintian/overrides/$$pkgname; \
493 ;; \
494 *-dbg-$${t_arch}-cross) \
495 echo "$$pkgname binary: arch-independent-package-contains-binary-or-object" \
496 >> $$tmp/usr/share/lintian/overrides/$$pkgname; \
497 echo "$$pkgname binary: debug-package-should-be-named-dbg" \
498 >> $$tmp/usr/share/lintian/overrides/$$pkgname; \
499 echo "$$pkgname binary: non-standard-dir-in-usr" \
500 >> $$tmp/usr/share/lintian/overrides/$$pkgname; \
501 ;; \
502 *-pic-$${t_arch}-cross) \
503 echo "$$pkgname binary: arch-independent-package-contains-binary-or-object" \
504 >> $$tmp/usr/share/lintian/overrides/$$pkgname; \
505 ;; \
506 *-$${t_arch}-cross) \
507 echo "$$pkgname binary: arch-independent-package-contains-binary-or-object" \
508 >> $$tmp/usr/share/lintian/overrides/$$pkgname; \
509 echo "$$pkgname binary: non-standard-dir-in-usr" \
510 >> $$tmp/usr/share/lintian/overrides/$$pkgname; \
511 echo "$$pkgname binary: shlibs-declares-dependency-on-other-package" \
512 >> $$tmp/usr/share/lintian/overrides/$$pkgname; \
513 case "$$pkgname" in \
514 lib*gphobos*) \
515 echo "$$pkgname binary: embedded-library" \
516 >> $$tmp/usr/share/lintian/overrides/$$pkgname;; \
517 *-hppa-cross) \
518 echo "$$pkgname binary: binary-compiled-with-profiling-enabled" \
519 >> $$tmp/usr/share/lintian/overrides/$$pkgname;; \
520 esac; \
521 ;; \
522 esac; \
523 case $$pkgname in \
524 lib*san*-cross) \
525 echo "$$pkgname binary: custom-library-search-path" \
526 >> $$tmp/usr/share/lintian/overrides/$$pkgname;; \
527 libstdc++-*-dev-amd64-cross) \
528 sed -i -e "/^Depends:/s/libc6 /libc6-amd64-cross /g" \
529 -e "/^Depends:/s/libgcc-s1 /libgcc-s1-amd64-cross /g" \
530 $$tmp/DEBIAN/control; \
531 echo "$$pkgname binary: missing-dependency-on-libc" \
532 >> $$tmp/usr/share/lintian/overrides/$$pkgname;; \
533 lib64stdc++-*-dev-i386-cross) \
534 sed -i -e "/^Depends:/s/libc6 /libc6-amd64-i386-cross /g" \
535 -e "/^Depends:/s/libgcc-s1 /lib64gcc-s1-i386-cross /g" \
536 $$tmp/DEBIAN/control; \
537 echo "$$pkgname binary: missing-dependency-on-libc" \
538 >> $$tmp/usr/share/lintian/overrides/$$pkgname;; \
539 lib64stdc++-*-dev-x32-cross) \
540 sed -i -e "/^Depends:/s/libc6 /libc6-amd64-x32-cross /g" \
541 -e "/^Depends:/s/libgcc-s1 /lib64gcc-s1-x32-cross /g" \
542 $$tmp/DEBIAN/control; \
543 echo "$$pkgname binary: missing-dependency-on-libc" \
544 >> $$tmp/usr/share/lintian/overrides/$$pkgname;; \
545 lib??*stdc++-*-dev-*-cross) \
546 sed -i -e "/^Depends:/s/\(libc6-[[a-z0-9]*\):\([a-z0-9]*\)/\1-\2-cross/g" \
547 $$tmp/DEBIAN/control; \
548 echo "$$pkgname binary: missing-dependency-on-libc" \
549 >> $$tmp/usr/share/lintian/overrides/$$pkgname;; \
550 libstdc++-*-dev-*-cross) \
551 sed -i -e "/^Depends:/s/\(libc6[.1]*\):\([a-z0-9]*\)/\1-\2-cross/g" \
552 $$tmp/DEBIAN/control; \
553 echo "$$pkgname binary: missing-dependency-on-libc" \
554 >> $$tmp/usr/share/lintian/overrides/$$pkgname;; \
555 esac; \
556 if [ -e $$tmp/usr/share/doc/gcc-${GCC_VERscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/GCC_VER.}-$${t_gnu_type}-base/changelog.Debian.gz ]; then \
557 mv $$tmp/usr/share/doc/gcc-${GCC_VERscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/GCC_VER.}-$${t_gnu_type}-base/changelog.Debian.gz \
558 $$tmp/usr/share/doc/gcc-${GCC_VERscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/GCC_VER.}-$${t_gnu_type}-base/changelog.Debian.gcc-${GCC_VERscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/GCC_VER.}.gz; \
559 gzip -c9n debian/changelog \
560 > $$tmp/usr/share/doc/gcc-${GCC_VERscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/GCC_VER.}-$${t_gnu_type}-base/changelog.Debian.gz;\
561 fi ; \
562 rm -f $$tmp/DEBIAN/md5sums; \
563 (cd $$tmp && find usr -type f | LC_ALL=C sort | xargs -r md5sum >>DEBIAN/md5sums); \
564 find $$tmp/DEBIAN -name md5sums -empty | xargs -r rm -f; \
565 newdeb=`echo $$deb|sed -e "s/\(.*\)_\(.*\)_\(.*\)/\1_\2$(CROSS_EXTscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_EXT.)_\3/g"`; \
566 NO_PKG_MANGLE=1 dpkg-deb -b $$tmp ../$$newdeb; \
567 rm -rf $$tmp
568 touch $@
569
570 $(scip-debian debian gcc-12-cross 26 gcc-12-cross/rules/`$(stamp)repack-debs-arch`().stampscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/stamp.)scip-debian debian gcc-12-cross 26 gcc-12-cross/rules/`$(stamp)repack-debs-arch`().repack-debs-arch: $(stampscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/stamp.)build
571 @echo START $@
572 dh_testrootscip-debian debian debhelper . dh_testroot().
573 $(MAKEscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/MAKE.) $(NJOBSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/NJOBS.) -f debian/rules TARGET_ARCH=$(HOST_ARCHscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/HOST_ARCH.) \
574 $(addprefix $(stamp)repack-,$(wildcard *_$(HOST_ARCH_EXT).deb))
575 $(MAKEscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/MAKE.) $(NJOBSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/NJOBS.) -f debian/rules TARGET_ARCH=$(HOST_ARCHscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/HOST_ARCH.) \
576 $(addprefix $(stamp)repack-,$(wildcard *$(DEB_VER_GCC)_$(HOST_ARCH_EXTscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/HOST_ARCH_EXT.).ddeb))
577 rm -f *$(DEB_VER_GCCscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/DEB_VER_GCC.)_$(HOST_ARCH_EXTscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/HOST_ARCH_EXT.).ddeb
578 if [ -f ../gcc-$(GCC_VERscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/GCC_VER.)-$(call _gnu_type,$(HOST_ARCH))-dbgsym_${DEB_VER_GCCscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/DEB_VER_GCC.}$(CROSS_EXTscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_EXT.)_$(HOST_ARCHscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/HOST_ARCH.).ddeb ]; then mv -f ../*.ddeb . ; fi
579 touch $@
580
581 $(scip-debian debian gcc-12-cross 26 gcc-12-cross/rules/`$(stamp)repack-debs-indep`().stampscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/stamp.)scip-debian debian gcc-12-cross 26 gcc-12-cross/rules/`$(stamp)repack-debs-indep`().repack-debs-indep: $(stampscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/stamp.)build
582 @echo START $@
583 dh_testrootscip-debian debian debhelper . dh_testroot().
584 set -e; \
585 $(foreach arch,$(CROSS_ARCHS), \
586 $(MAKEscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/MAKE.) $(NJOBSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/NJOBS.) -f debian/rules TARGET_ARCH=$(archscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/arch.) \
587 $(addprefix $(stamp)repack-,$(wildcard *-$(arch)-cross_*_all.deb)); \
588 )
589 $(MAKEscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/MAKE.) $(NJOBSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/NJOBS.) -f debian/rules TARGET_ARCH=$(HOST_ARCHscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/HOST_ARCH.) \
590 $(addprefix $(stamp)repack-,$(wildcard gcc-$(GCC_VER)-cross-base$(GCC_PORTS_BUILDscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/GCC_PORTS_BUILD.)_*_all.deb))
591 touch $@
592
593 buildscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/build().: $(stampscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/stamp.)build
594 $(scip-debian debian gcc-12-cross 26 gcc-12-cross/rules/`$(stamp)build`().stampscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/stamp.)scip-debian debian gcc-12-cross 26 gcc-12-cross/rules/`$(stamp)build`().build: $(foreachscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/foreach. arch,$(CROSS_ARCHSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_ARCHS.),$(addsuffixscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/addsuffix. .$(archscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/arch.),$(stampscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/stamp.)build-gcc))
595 @echo START $@
596 touch $@
597
598 buildscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/build().: dbp_flag = -b
599 build-archscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/build-arch().: dbp_flag = -B
600 build-indepscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/build-indep().: dbp_flag = -b
601
602 build-archscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/build-arch().: $(stampscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/stamp.)build
603 build-indepscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/build-indep().: $(stampscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/stamp.)build
604
605 binaryscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/binary().: binary-arch binary-indep
606 binary-archscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/binary-arch().: build-arch $(stampscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/stamp.)build $(stampscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/stamp.)repack-debs-arch $(stampscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/stamp.)mangle-debian-files-arch
607 binary-indepscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/binary-indep().: build-indep $(stampscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/stamp.)build $(stampscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/stamp.)repack-debs-indep $(stampscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/stamp.)mangle-debian-files-indep
608
609 define generate_debian_filesscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/generate_debian_files.
610 touch debian/files
611 for deb in $1; do \
612 [ -f "$$deb" ] || continue; \
613 pkg=`basename $$deb`; \
614 if [ "$(skip_dbg_packages)" = yes ]; then \
615 case $$pkg in *-dbg*) continue; esac; \
616 fi; \
617 if [ "$(skip_arm32ml_packages)" = yes ] && grep -q "^$$pkg$$" debian/packages.arm32ml; then \
618 continue; \
619 fi; \
620 if [ "$(skip_common_packages)" = yes ] && grep -q "^$$pkg$$" debian/packages.common; then \
621 continue; \
622 fi; \
623 echo -n "$$pkg " >>debian/files; \
624 dpkg-deb -I $$deb | grep Section | cut -d ' ' -f 3 | tr "\n" ' ' >>debian/files; \
625 dpkg-deb -I $$deb | grep Priority | cut -d ' ' -f 3 | tr "\n" ' ' >>debian/files; \
626 dpkg-deb -I $$deb | awk '/^ Architecture:/ {printf "architecture=%s", $$2}' >>debian/files; \
627 echo "" >>debian/files; \
628 done
629 endef
630
631 $(scip-debian debian gcc-12-cross 26 gcc-12-cross/rules/`$(stamp)mangle-debian-files-arch`().stampscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/stamp.)scip-debian debian gcc-12-cross 26 gcc-12-cross/rules/`$(stamp)mangle-debian-files-arch`().mangle-debian-files-arch: build $(stampscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/stamp.)repack-debs-arch $(stampscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/stamp.)debian-files-base
632 @echo START $@
633 $(call generate_debian_files, *_$(HOST_ARCH_EXT).deb)
634 sed -i -e "s/${DEB_VER_GCCscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/DEB_VER_GCC.}_/${DEB_VER_GCCscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/DEB_VER_GCC.}$(CROSS_EXTscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_EXT.)_/g" debian/files
635 touch $@
636
637 $(scip-debian debian gcc-12-cross 26 gcc-12-cross/rules/`$(stamp)mangle-debian-files-indep`().stampscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/stamp.)scip-debian debian gcc-12-cross 26 gcc-12-cross/rules/`$(stamp)mangle-debian-files-indep`().mangle-debian-files-indep: $(stampscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/stamp.)repack-debs-indep $(stampscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/stamp.)debian-files-base
638 @echo START $@
639 $(call generate_debian_files, *_all.deb)
640 sed -i -e "s/${DEB_VER_GCCscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/DEB_VER_GCC.}_/${DEB_VER_GCCscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/DEB_VER_GCC.}$(CROSS_EXTscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CROSS_EXT.)_/g" debian/files
641 touch $@
642
643 $(scip-debian debian gcc-12-cross 26 gcc-12-cross/rules/`$(stamp)debian-files-base`().stampscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/stamp.)scip-debian debian gcc-12-cross 26 gcc-12-cross/rules/`$(stamp)debian-files-base`().debian-files-base:
644 @echo START $@
645 rm -f debian/files
646 touch $@
647
648
649 controlscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/control().:
650 sed -e "s/MIN_VER_GCC/${MIN_VER_GCCscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/MIN_VER_GCC.}/g" \
651 -e "s/GCC_BUILD_DEPS/$(GCC_BUILD_DEPSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/GCC_BUILD_DEPS.)/g" \
652 -e "s/BINUTILS_BUILD_DEPS/$(BINUTILS_BUILD_DEPSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/BINUTILS_BUILD_DEPS.)/g" \
653 -e "s/GLIBC_BUILD_DEPS/$(GLIBC_BUILD_DEPSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/GLIBC_BUILD_DEPS.)/g" \
654 -e "s/EXTRA_BUILD_DEPS/${EXTRA_BUILD_DEPSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/EXTRA_BUILD_DEPS.}/g" \
655 -e "s/LINUX_BUILD_DEPS/$(LINUX_BUILD_DEPSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/LINUX_BUILD_DEPS.)/g" \
656 -e "s/GCC_VER/${GCC_VERscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/GCC_VER.}/g" \
657 -e "s/MIN_VER_BINUTILS/${MIN_VER_BINUTILSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/MIN_VER_BINUTILS.}/g" \
658 -e "s/VER_BINUTILS/${VER_BINUTILSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/VER_BINUTILS.}/g" \
659 -e "s/VER_ISL/${VER_ISLscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/VER_ISL.}/g" \
660 -e "s/GCC_PORTS_BUILD/$(GCC_PORTS_BUILDscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/GCC_PORTS_BUILD.)/g" \
661 $(CURDIRscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CURDIR.)/debian/control.source.in >$(CURDIRscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CURDIR.)/debian/control
662
663 $(foreach a,$(CROSS_ARCHS), \
664 sed \
665 -e 's/PHOBOS_DEP/$(if $(filter $(a),$(PHOBOS_ARCHSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/PHOBOS_ARCHS.)),${PHOBOS_DEPscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/PHOBOS_DEP.})/g' \
666 -e 's/PHOBOS_ML_DEP/$(if $(filter $(a),$(PHOBOS_ARCHSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/PHOBOS_ARCHS.)),${PHOBOS_ML_DEPscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/PHOBOS_ML_DEP.})/g' \
667 -e 's/CROSS_ARCH/$(ascip-debian debian gcc-12-cross 26 gcc-12-cross/rules/a.)/g' \
668 -e 's/CROSS_GNU_TYPE/$(call _pkg_gnu_type,$(a))/g' \
669 -e 's/MIN_VER_GCC/${MIN_VER_GCCscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/MIN_VER_GCC.}/g' \
670 -e 's/GCC_VER/${GCC_VERscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/GCC_VER.}/g' \
671 -e 's/MIN_VER_BINUTILS/${MIN_VER_BINUTILSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/MIN_VER_BINUTILS.}/g' \
672 -e 's/@host_archs@/$(filter-out $(a),$(HOST_ARCHS_$(ascip-debian debian gcc-12-cross 26 gcc-12-cross/rules/`HOST_ARCHS_$(a`.)))/g' \
673 -e 's/@ada_host_archs@/$(filter-out $(a),$(HOST_ARCHS_$(ascip-debian debian gcc-12-cross 26 gcc-12-cross/rules/`HOST_ARCHS_$(a`.)))/g' \
674 -e 's/@ada64_host_archs@/$(filter-out $(a),$(filter-out XXXi386,$(HOST_ARCHS_$(a))))/g' \
675 $(CURDIRscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CURDIR.)/debian/control.arch.in >>$(CURDIRscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/CURDIR.)/debian/control; )
676
677 cp debian/packages.invalid debian/packages.invalid-all
678 ifeq (,$(filterscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/filter. $(distreleasescip-debian debian gcc-12-cross 26 gcc-12-cross/rules/distrelease.), buster bullseye bookworm trixie trusty xenial bionic focal jammy mantic noble))
679 cat debian/packages.invalid-s390x >> debian/packages.invalid-all
680 endif
681 python3 debian/remove-unbuilt \
682 $(if $(filter yes,$(skip_dbg_packages)), --skip-dbg-packages) \
683 $(if $(filter yes,$(skip_arm32ml_packages)), --skip-arm32ml-packages) \
684 $(if $(filter yes,$(skip_common_packages)), --skip-common-packages) \
685 debian/control debian/packages.invalid-all debian/packages.arm32ml debian/packages.common \
686 > debian/control.new && mv debian/control.new debian/control
687 rm -f debian/packages.invalid-all
688
689 sort-pkgfilesscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/sort-pkgfiles().:
690 for i in packages.arm32ml packages.common packages.invalid; do \
691 LC_ALL=C sort -u debian/$$i > debian/$$i.tmp; \
692 mv -f debian/$$i.tmp debian/$$i; \
693 done
694
695 .PRECIOUSscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/`.PRECIOUS`().: $(stampscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/stamp.)init-dirs \
696 $(stamp)init-gcc \
697 $(stamp)build \
698 $(stamp)build-gcc.% \
699 $(stamp)debian-files-base \
700 $(stamp)repack-debs-arch \
701 $(stamp)repack-debs-indep \
702 $(stamp)repack-debs-indep.% \
703 $(stamp)mangle-debian-files-arch
704 $(stampscip-debian debian gcc-12-cross 26 gcc-12-cross/rules/stamp.)mangle-debian-files-indep \
705 build build-arch build-indep binary binary-arch binary-indep