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

Re: Bug#1025298: readline: Detect cross building instead of expecting option in DEB_BUILD_PROFILES



On Fri, Dec 02, 2022 at 03:17:55AM -0500, Jue Wang wrote:
> Source: readline
> Version: 8.2-1.2
> Severity: minor
> X-Debbugs-Cc: jue.wang@oss.cipunited.com
> 
> In debian/rules, this package expect a 'cross' option from
> DEB_BUILD_PROFILES, it is not usual method.
> 
> In fact, we can detect cross building by compare BUILD
> and HOST just like other packages.

These methods have subtly different semantics. The latter method
generally identifies cross builds. That's correct. The cross profile is
subtly different. It specifies that we cannot run host architecture
binaries. That setting is most common in cross builds and hence, the
profile is just named "cross". Consider cross building for i386 on
amd64. There you actually can run i386 binaries even though you are
doing a cross build. In this setting, you'd build without the cross
build profile.

I reviewed readlines' debian/rules and see both methods used correctly
where appropriate. Thus closing the bug.

Helmut


Reply to: