[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Committing to a team-maintained package repository



On Sat, Jul 14, 2018 at 07:56:08PM +0200, Paride Legovini wrote:
> One last question. Do we actually need these lines:
> 
> include /usr/share/dpkg/architecture.mk
> ifeq ($(origin CC),default)
> CC := $(DEB_HOST_GNU_TYPE)-gcc
> endif
> 
> in d/rules? They are suggested here:
> 
> https://wiki.debian.org/CrossBuildPackagingGuidelines
> 
> Are they still relevant with Multi-Arch?

They are very relevant with Multi-Arch, the point is that nowadays
debhelper takes care of them, so they are *usually* not needed anymore.

I recommend you just try to remove the lines and cross build the
package, but I expect you can safely remove them.
Note that these days cross building is extremely easy with both sbuild
and pbuilder, you just need to pass --host (for sbuild) or --host-arch
(for pbuilder), and they took care of everything (ISTR sbuild needs
another flag to install a foreign package, but that will be easy to find
out if you use sbuild…).

-- 
regards,
                        Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540      .''`.
more about me:  https://mapreri.org                             : :'  :
Launchpad user: https://launchpad.net/~mapreri                  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-

Attachment: signature.asc
Description: PGP signature


Reply to: