Bug#94127: debian/rules2 contains Linuxism
On Mon, Apr 16, 2001 at 12:19:37AM -0700, Jeff Bailey wrote:
> Is the ulimit critical to the test suite? If not, can you wrap the 'awk' and
> 'ulimit' lines with
>
> ifneq ($(DEB_HOST_ARCH),hurd-i386)
> m=`awk '/^((Mem|Swap)Free|Cached)/{m+=$$2}END{print int(m*.9)}' \
> /proc/meminfo`; \
> ulimit -m $$m;
> endif
>
> You may want to approach this a different way, since this makes "Linux" the
> norm, and "Hurd" the deviant. It would probably be better to test if
> the DEB_HOST_ARCH were a member of the "Linux" family. I don't know a
> good way to do this (Please let me know if you do, it will be useful to
> me elsewhere!)
How about:
ifneq ($(findstring linux,$(DEB_HOST_ARCH)),)
echo linux
else
echo not linux
endif
Of course, the way to sell this is because it avoids potential
bugs when someone does hurd-powerpc, not because of any lack of
deviance on the hurd's part. We all know how deviant the Hurd
is... =) =)
dave...
Reply to: