Re: squid
Hey Barry,
On Sun, 2006-10-08 at 00:01:02 -0400, Barry deFreese wrote:
> Playing around with squid tonight I found the following:
>
> debian/rules:
>
> ifeq ($(DEB_HOST_ARCH_OS),)
> DEB_HOST_ARCH_OS := $(subst -gnu,,$(shell
> dpkg-architecture -qDEB_HOST_GNU_SY$
> ifeq ($(DEB_HOST_ARCH_OS),gnu)
> DEB_HOST_ARCH_OS := hurd
> endif
> endif
>
> This whole block can be removed.
This needs to stay until a newer dpkg (at least 1.13.2) enters a
Debian stable system, it's needed for compatibility with older
systems, check the dpkg-architecture man page for details.
> I changed this:
>
> # The HURD doesn't have pthreads yet.
> ifeq ($(DEB_HOST_ARCH_OS), gnu)
> with_pthreads = --enable-storeio=ufs,diskd,null
> with_netfilter =
> with_arp_acl =
> with_epoll =
> else
Hmm that "gnu" is wrong, it should be "hurd".
> to this:
>
> ifeq ($(DEB_BUILD_GNU_SYSTEM), gnu)
> with_pthreads = --with-pthreads --enable-storeio=ufs,diskd,null
> with_netfilter =
> with_arp_acl =
> with_epoll =
> else
This one should be DEB_HOST_<foo>.
> And finally in debian/rules, I changed:
>
> --with-large-files \
> $(DEB_HOST_ARCH_CPU)-debian-$(DEB_HOST_ARCH_OS)
>
> to
>
> --with-large-files \
> $(DEB_HOST_ARCH_CPU)-debian-gnu
And then this one would be wrong, as supposedly it was being assigned
previously to <cpu>-debian-hurd or <cpu>-debian-linux.
> Obviously we would want to do that dynamically somehow. I tried the ifeq
> ($(DEB_BUILD_GNU_SYSTE), hurd-i386) ... else ... route to no avail.
Just use DEB_HOST_ARCH_OS.
regards,
guillem
Reply to:
- References:
- squid
- From: "Barry deFreese" <bddebian@comcast.net>