Bug#94127: debian/rules2 contains Linuxism
Package: gcc-2.95
Severity: important
The testsuite in rules2 (appears twice) does:
+ -echo "Running testsuite ..."; \
+ m=`awk '/^((Mem|Swap)Free|Cached)/{m+=$$2}END{print int(m*.9)}' \
+ /proc/meminfo`; \
+ ulimit -m $$m; \
+ echo "Limited memory for test runs to `ulimit -m`kB"; \
+ $(MAKE) -C $(builddir) -k check 2>&1 | tee test-protocol
There is no proc filesystem on the Hurd.
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!)
-- System Information
Debian Release: testing/unstable
Architecture: hurd-i386
Reply to: