when unprivileged user tries to execute configure script - it reports unusual error: ./configure This is the Qt/X11 Open Source Edition. You don't seem to have 'make' or 'gmake' in your PATH. Of course PATHs are correct and make->gmake are there. Portage group is also added to /proc/sys/kernel/grsecurity/tpe_gid. Investigating configure further it seems it's running it's own (platform dependent) version of "which". In linux case it's: config.tests/unix/which.test and silently fails. When I run this file manually (as portage user) I get this: ./config.tests/unix/which.test: /bin/sh: bad interpreter: Permission denied but when I try to run it as: sh config.tests/unix/which.test everything is ok. I can think of few ways of fixing it, but I'm not sure if any of them is the right one. 1) detect grsec and if enabled modify configure script to use native which to determinate location of make (especially if you check config.tests/unix/which.test - it's using which to find location of which) 2) modify configure script to always use /bin/sh config.tests/unix/which.test Of course you can always turn off TPE and it solves the problem - but that's not really the best solution. Reproducible: Always
bad interp? What is on the first line of ./config.tests/unix/which.test: ?
(In reply to comment #1) > bad interp? What is on the first line of ./config.tests/unix/which.test: ? > #!/bin/sh
More than 2 years and a half later, is this still relevant?
Please open a new bug if this is still an issue on current versions.