Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1051685
Summary: | rpm doesn't read $HOME/.popt | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Peter Backes <rtc> | ||||
Component: | popt | Assignee: | Robert Scheck <redhat-bugzilla> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 25 | CC: | carl, esm, ffesti, jzeleny, linux, novyjindrich, packaging-team-maint, pmatilai, redhat-bugzilla, rvokal | ||||
Target Milestone: | --- | Keywords: | Reopened | ||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | popt-1.16-12.fc27 popt-1.16-12.fc25 popt-1.16-12.fc26 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2017-10-17 00:15:49 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Peter Backes
2014-01-10 21:34:19 UTC
Looks like a regression in popt - with popt-1.13 ~/.popt is read, with popt-1.16 its not. This message is a reminder that Fedora 20 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 20. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '20'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 20 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. Fedora 20 changed to end-of-life (EOL) status on 2015-06-23. Fedora 20 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed. This is still not working on Fedora 25. It also looks like configuration dropped in /etc/popt.d is also not being read; only /etc/popt and /usr/lib/rpm/rpmpopt-4.13.0 are being inspected. Created attachment 1286559 [details] Patch to handle GLOB_NOMATCH (In reply to Ed Marshall from comment #4) > This is still not working on Fedora 25. It also looks like configuration > dropped in /etc/popt.d is also not being read; only /etc/popt and > /usr/lib/rpm/rpmpopt-4.13.0 are being inspected. I cannot confirm this. % strace rpm -ba 2>&1 | grep popt open("/lib/libpopt.so.0", O_RDONLY|O_CLOEXEC) = 3 open("/usr/lib/rpm/rpmpopt-4.13.0.1", O_RDONLY|O_LARGEFILE) = 3 read(3, "#/*! \\page config_rpmpopt Defaul"..., 10216) = 10216 open("/etc/popt", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) stat64("/etc/popt.d", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 open("/etc/popt.d", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 3 I looked at the source code. Seems that between popt-1.13-14.fc19 and popt-1.16-1.fc20, file globbing was changed. It tries to glob /etc/popt.d/*. In the old version, it ignored the return code of glob. In the new version, it checks for the return code, and if it is not equal to 0, it bails out. This is mostly useful, since a return code of GLOB_NOSPACE or GLOB_ABORTED signals an error. However the valid case that the return code is GLOB_NOMATCH is missed, ie., when no files are matched, which happens if /etc/popt.d is empty. Simply try to create a dummy file with touch /etc/popt.d/dummy, it will then actually read ~/.popt because the glob returns 0. It also means that the workaround I mentioned above (sudo ln -s $HOME/.popt /etc/popt.d/$USER.popt) is too eager; it will cause the file to be read twice, once as /etc/popt.d/$USER.popt and, because the glob returns 0, once as $HOME/.popt. I attached a patch that fixes the problem. Hope this annoying bug can soon be closed. popt-1.16-12.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-c1b7fbbffe popt-1.16-12.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-ffd16e2c73 popt-1.16-12.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-fa32d9cd0c popt-1.16-12.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-fa32d9cd0c popt-1.16-12.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-ffd16e2c73 popt-1.16-12.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-c1b7fbbffe popt-1.16-12.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report. popt-1.16-12.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report. popt-1.16-12.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report. |