Hi, On 16/01/17 23:58, Boud Roukema wrote: > hi Debian-mentors, > > Is it reasonable to override the mpirun (openmpi_2.0.2~git.20161225-8) > default preference of refusing to run as root? > > I've started packaging mpgrafic for debian - this is my first > debianisation, apart from minor private hacks after extracting debian > source packages: > > https://anonscm.debian.org/cgit/debian-astro/packages/mpgrafic.git/ > > I've added regression-test-0.3.7.sh to the upstream version of > mpgrafic. This is a "reproducible run" test. The test runs the main > binary, mpgrafic, with a frontend "mpirun", which, in general, allows > a program to run on many different machines, without shared memory. > This test runs explicitly on exactly one processor, for reproducibility. > > Since, in general, there is no reason for mpirun to run as root, > the sid version of mpirun (from openmpi) apparently refuses to run as root. > (I have not reproduced this behaviour myself - Ole Streicher > has warned me about it.) The openmpi developers provide an option > --allow-run-as-root. > > In version 0.3.7.4-1, the debian-only, openmpi-only use of this option in > debian/rules + regression-test-0.3.7.sh > > https://anonscm.debian.org/cgit/debian-astro/packages/mpgrafic.git/tree/debian/rules > > https://anonscm.debian.org/cgit/debian-astro/packages/mpgrafic.git/tree/regression-test-0.3.7.sh > > > should presumably allow debian automatic builds to pass "make check". I'm not sure I follow. Debhelper runs the testsuite during the build target so it shouldn't be run as root anyway. I don't think you need any workarounds at all for this. James
Attachment:
signature.asc
Description: OpenPGP digital signature