Re: Bug#648361: uninstallable on kfreebsd-amd64
Robert Millan <rmh@debian.org> writes:
>>> ifneq (, $(filter FreeBSD GNU/kFreeBSD, $(UNAME)))
>>>
>>
>> Is this the recommended way? If yes I'll add it to the FAQ next to
>
> Sounds fine to me. But please test it first ;-)
I took a quick look (all sourceformat=3 packages from a to iceweasel) at
what packages in the archive currently use to detect kfreebsd. As you
can guess there are several fragments that are copypasted from package
to package but they are all based on one of the following variables:
DEB_HOST_ARCH
libnss-myhostname
usbmuxd
DEB_HOST_ARCH_OS
libsysactivity
ufsutils
john
swi-prolog
squid3
sane-backends
DEB_BUILD_ARCH
tachyon
phalanx
DEB_HOST_GNU_TYPE
fakeroot
DEB_HOST_GNU_SYSTEM
ruby1.9.1
DEB_HOST_ARCH_CPU
icu
This makes me feel that maybe we should not recommend another fragment
that looks at uname? How about I just add the most common fragment,
ifeq ($(DEB_HOST_ARCH_OS), kfreebsd)
to the wiki or is there some drawback I should know about?
Reply to: