-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
skip taint tests when perl was built without taint support #43
base: master
Are you sure you want to change the base?
Conversation
👍 looks great |
I built a
I then fetched your pull request onto my local machine and ran it against this taint-less perl.
Your commit message stated, This patch makes the taint tests skip if taint-mode isn't supported. But these tests printed out a message indicating skipping but two test files nonetheless FAILed. That's confusing. Additional note: This time last year @neilb had submitted #39 on the same problem. We closed it then because it ran into other problems. We'll need to evaluate this p.r. in light of those problems. |
That's odd, I thought I'd tested it with both -DSILENT_NO_TAINT_SUPPORT and -DNO_TAINT_SUPPORT. Let me try again ... |
Ah-ha, I had two builds with SILENT_NO_TAINT_SUPPORT! I'll update the PR to also work with the noisy version of NO_TAINT_SUPPORT |
Need to hide the -T on the shebang line when that's in effect
IIRC @neilb's work in blead was about adding a question in Configure to ask whether to build perl without taint support. That was reverted. Then more recently some patches went in to at least make perl pass its own tests without taint support, even though there's still no question for it in Configure, and also for Now that perl passes its own tests if you disable taint support via |
On 4/23/23 10:24, David Cantrell wrote:
[snip]
Now that perl passes its own tests if you disable taint support via
|-Accflags=...|, I'm running a CPAN smoker with it, and slowly working
my way through all the "up river" modules that fail on it - hence this PR.
My initial reaction to your second commit was, "Wow, that's an awfully
big lot of new code just to maintain the same functionality! And now a
diligent CPAN maintainer has to test any taint-related code against one
(or possibly two) different Perl builds!"
Thanks for undertaking this investigation. I will hope to get to
studying it for this distro soon. I just wonder how many CPAN
maintainers will be willing to undertake similar adaptive work in their
distros.
|
It's actually very little code, the contents of |
If perl is built without taint support (ie using
-Accflags=-DSILENT_NO_TAINT_SUPPORT
or-Accflags=-DNO_TAINT_SUPPORT
) the existing tests fail. This patch makes the taint tests skip if taint-mode isn't supported.