| Summary: | wrong page from "info diff" | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Andrei Gaponenko <gandr> |
| Component: | diffutils | Assignee: | Tim Waugh <twaugh> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 16 | CC: | bugs.michael, twaugh |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | diffutils-3.2-5.fc16 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-12-14 23:34:47 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Andrei Gaponenko
2011-10-21 14:48:02 UTC
diffutils-3.2-3.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/diffutils-3.2-3.fc16 Package diffutils-3.2-3.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing diffutils-3.2-3.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2011-16419/diffutils-3.2-3.fc16 then log in and leave karma (feedback). Real fix in 3.2-4.fc16. Package diffutils-3.2-4.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing diffutils-3.2-4.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2011-16419/diffutils-3.2-4.fc16 then log in and leave karma (feedback). This is still broken. 1) postin does /sbin/install-info /usr/share/info/diffutils.info.gz /usr/share/info/dir --entry="* diff: (diff). The GNU diff." which ignores the info dir entries specified in the diffutils.info.gz file. Instead, it inserts only the badly formatted custom --entry. 2) postun does /sbin/install-info --delete /usr/share/info/diffutils.info.gz /usr/share/info/dir --entry="* diff: (diff). The GNU diff." which warns about the non-existing entries and fails to remove the custom entry: install-info: warning: no entries found for `/usr/share/info/diffutils.info.gz'; nothing deleted # zgrep "GNU diff" /usr/share/info/dir * diff: (diff). The GNU diff. * diff: (diff). The GNU diff. Same postun script also does /sbin/install-info --delete /usr/share/info/diff.info.gz /usr/share/info/dir --entry="* diff: (diff). The GNU diff." which operates on a file that no longer exists as it has not been available in F16 and (for upgrades) has been removed by previous package updates already: install-info: No such file or directory for /usr/share/info/diff.info.gz Just these https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Texinfo for /usr/share/info/diffutils.info.gz also make "info diff" work and not display man(1) instead. typo: man(1) -> diff(1) Thanks, fixed in git repo now.
Koji builds aren't working at the moment. Here's what I have:
==>
%post
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
%preun
if [ $1 = 0 ]; then
/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
fi
<==
I still end up with a bad entry though:
$ zgrep -w diff /usr/share/info/dir
* diff: (diffutils)Invoking diff. Compare 2 files line by line.
* diff: (diff). The GNU diff.
Any idea how I get rid of that?
Dunno yet. That bad entry is the relict of the older packages adding a custom entry that could not be deleted.
"man install-info" says about the --delete --entry=TEXT combo:
[...]
When removing, TEXT specifies the entry to remove. TEXT is only
removed as a last resort, if the entry as determined from the
Info file is not present, and the basename of the Info file
isn't found either.
[...]
Not only is it vague, it doesn't work currently.
Seems as if the basename of the specified info file can be determined, deleting the custom entry fails. This works (but is useless nevertheless): # /sbin/install-info /usr/share/info/diffutils.info.gz /usr/share/info/dir --entry="* diff: (diffutils). Fubared." # zgrep Fub /usr/share/info/dir * diff: (diffutils). Fubared. * diff: (diffutils). Fubared. # /sbin/install-info /usr/share/info/diffutils.info.gz /usr/share/info/dir --entry="* diff: (diffutils). Fubared." --delete # zgrep Fub /usr/share/info/dir # It correctly removed the custom entry due to the correct "diffutils" basename. It is useless because if one specifies a non-existing info file, install-info exits without removing the custom entry: # /sbin/install-info /usr/share/info/fubared.info.gz /usr/share/info/dir --entry="* diff: (diffutils). Fubared." --delete --debug debug: reading dir file /usr/share/info/dir debug: reading input file /usr/share/info/fubared.info.gz install-info: No such file or directory for /usr/share/info/fubared.info.gz # zgrep Fub /usr/share/info/dir* diff: (diffutils). Fubared. * diff: (diffutils). Fubared. Package diffutils-3.2-5.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing diffutils-3.2-5.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2011-16419/diffutils-3.2-5.fc16 then log in and leave karma (feedback). diffutils-3.2-5.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report. |