-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
stdout is dropped in sbuild #55
Comments
To be clear, i think this report is about https://bugs.debian.org/975479, where the reported error during the test is:
It's not clear to me why this particular patch is the right solution. @edneville can you explain what you think is at issue here? I don't mind commenting out failing tests where there's a good, well-understood reason to do so. But i don't understand the reason here yet. |
As above, |
What causes the stdout to be lost? Are you saying that you think this is a flaw in sbuild? Or the debian build environment? Or somewhere else? I see this same failure by unpacking the source for rust-rpassword 5.0.0-1 on debian, and then from the new directory, running the standard debian test with all features:
This is not using But I also see the same error if i do:
I do not see the errors if i omit So, it looks like this problem comes up with upstream folks (@conradkleinespel?) can you confirm that the tests work for you when using |
I found something odd:
The test calls an example with pipes to the child. Let's see what it executes:
Ok, let's call it and see what happens:
That's odd, looking at the example it should prompt for a password:
And now it does! Really weird, maybe a cargo bug, screwing up file descriptors somewhere? |
To make it explicit, the test runs |
Here is a diff between running i note that the |
looks to me like when i run but when i run (i'm running |
We think that cargo compiles the example in I guess it is a feature in cargo. Your example can have tests, and you would expect I made an experiment. I tucked
So yeah, the test is broken and needs fixing. As a short-term workaround for packaging, simply remove the |
Thanks @dkg @teythoon and @edneville for looking into this, your comments helped me understand where to look. I just pushed a fix as 5.0.1 to crates.io. Hopefully this will make the test pass on Debian. |
I finally uploaded 5.0.1 to debian. sorry for the long delay! |
That's great, thanks a lot @dkg 😃 |
Hello,
Package build in debian needs to patch away the following assertion:
Arguably, this is perhaps more related to sbuild, but forwarding for awareness.
The text was updated successfully, but these errors were encountered: