Skip to content
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

0.50.1: meson redirects stderr to stdout #5316

Closed
kloczek opened this issue Apr 24, 2019 · 4 comments
Closed

0.50.1: meson redirects stderr to stdout #5316

kloczek opened this issue Apr 24, 2019 · 4 comments
Labels
not-our-bug Bug in upstream software

Comments

@kloczek
Copy link

kloczek commented Apr 24, 2019

Looks like meson redirects stderr to stdout.

Building gnome-contacts I found that new released version emits a lot ow warnings so usual way on building rpm package to have only warnings is add use --quiet rpmbuild option which redirects stdout to /dev/null.
So I made:

[tkloczko@domek SPECS]$ rpmbuild -ba --clean --rmsource --rmspec gnome-contacts.spec --quiet
cpio: x86_64-redhat-linux-gnu/contacts-accounts-list.c: Cannot stat: No such file or directory
cpio: x86_64-redhat-linux-gnu/contacts-app.c: Cannot stat: No such file or directory
cpio: x86_64-redhat-linux-gnu/contacts-avatar-selector.c: Cannot stat: No such file or directory
cpio: x86_64-redhat-linux-gnu/contacts-avatar.c: Cannot stat: No such file or directory
cpio: x86_64-redhat-linux-gnu/contacts-contact-editor.c: Cannot stat: No such file or directory
cpio: x86_64-redhat-linux-gnu/contacts-contact-form.c: Cannot stat: No such file or directory
cpio: x86_64-redhat-linux-gnu/contacts-contact-list.c: Cannot stat: No such file or directory
cpio: x86_64-redhat-linux-gnu/contacts-contact-pane.c: Cannot stat: No such file or directory
cpio: x86_64-redhat-linux-gnu/contacts-contact-sheet.c: Cannot stat: No such file or directory
cpio: x86_64-redhat-linux-gnu/contacts-contact.c: Cannot stat: No such file or directory
cpio: x86_64-redhat-linux-gnu/contacts-crop-cheese-dialog.c: Cannot stat: No such file or directory
cpio: x86_64-redhat-linux-gnu/contacts-esd-setup.c: Cannot stat: No such file or directory
cpio: x86_64-redhat-linux-gnu/contacts-fake-persona-store.c: Cannot stat: No such file or directory
cpio: x86_64-redhat-linux-gnu/contacts-in-app-notification.c: Cannot stat: No such file or directory
cpio: x86_64-redhat-linux-gnu/contacts-link-suggestion-grid.c: Cannot stat: No such file or directory
cpio: x86_64-redhat-linux-gnu/contacts-linked-personas-dialog.c: Cannot stat: No such file or directory
cpio: x86_64-redhat-linux-gnu/contacts-linking.c: Cannot stat: No such file or directory
cpio: x86_64-redhat-linux-gnu/contacts-list-pane.c: Cannot stat: No such file or directory
cpio: x86_64-redhat-linux-gnu/contacts-max-width-bin.c: Cannot stat: No such file or directory
cpio: x86_64-redhat-linux-gnu/contacts-settings.c: Cannot stat: No such file or directory
cpio: x86_64-redhat-linux-gnu/contacts-setup-window.c: Cannot stat: No such file or directory
cpio: x86_64-redhat-linux-gnu/contacts-shell-search-provider.c: Cannot stat: No such file or directory
cpio: x86_64-redhat-linux-gnu/contacts-store.c: Cannot stat: No such file or directory
cpio: x86_64-redhat-linux-gnu/contacts-type-combo.c: Cannot stat: No such file or directory
cpio: x86_64-redhat-linux-gnu/contacts-type-descriptor.c: Cannot stat: No such file or directory
cpio: x86_64-redhat-linux-gnu/contacts-typeset.c: Cannot stat: No such file or directory
cpio: x86_64-redhat-linux-gnu/contacts-ui-state.c: Cannot stat: No such file or directory
cpio: x86_64-redhat-linux-gnu/contacts-utils.c: Cannot stat: No such file or directory
cpio: x86_64-redhat-linux-gnu/contacts-vcard-type-mapping.c: Cannot stat: No such file or directory
cpio: x86_64-redhat-linux-gnu/contacts-window.c: Cannot stat: No such file or directory
cpio: x86_64-redhat-linux-gnu/glib-2.0.vapi: Cannot stat: No such file or directory
cpio: x86_64-redhat-linux-gnu/main.c: Cannot stat: No such file or directory
5499 blocks
[

And as you see there is no even single line about compile time warnings printed in above output.
looks like stderr is redirected to the /dev/null.
rpmbuild --quiet works OK when I'm building autoconf/automake based package so it is kind of indirect prove that meson (or ninja because I'm using ninja with meson on building gnome-contacts) does this.

@QuLogic
Copy link
Member

QuLogic commented Apr 24, 2019

What does the --quiet option to rpmbuild have to do with Meson? You'll need to be more specific about what you think is wrong here.

@kloczek
Copy link
Author

kloczek commented Apr 24, 2019

rpmbuild --quiet option has nothing to do with meson. It is only example.
Look on title of this ticket. This ticket is about fact that meson generates ninja files which redirects stderr to stdout.

@eli-schwartz
Copy link
Member

meson doesn't generate ninja files which anything. Ninja itself, by design, redirects stderr to stdout. It doesn't matter where you get the ninja files from, or whether they are generated by meson or any other generator vs. written by hand -- ninja is the thing which redirects stderr.

Please close this issue and open a new one in the ninja project. Actually, don't open one for ninja either -- just join existing discussions like ninja-build/ninja#1537

@kloczek kloczek closed this as completed Apr 24, 2019
@kloczek
Copy link
Author

kloczek commented Apr 24, 2019

OK. Thanks for explanation :)

@eli-schwartz eli-schwartz added the not-our-bug Bug in upstream software label Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not-our-bug Bug in upstream software
Projects
None yet
Development

No branches or pull requests

3 participants