| Summary: | File conflict with the xz package | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Mario Blättermann <mario.blaettermann> |
| Component: | RPM Packages | Assignee: | David GEIGER <geiger.david68210> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | Normal | CC: | geiger.david68210, luigiwalser, olav, shlomif |
| Version: | Cauldron | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | man-pages-l10n-4.0.0-2.mga8.src.rpm | CVE: | |
| Status comment: | |||
|
Description
Mario Blättermann
2020-04-07 06:41:00 CEST
Thank you for pointing this out. It is all beyond my ken. It looks as if some effort has already gone into this, and it will be sorted: "The next version of manpages-l10n won't contain the files anymore"; but for now: "currently there's a file conflict which prevents users from either update to xz-5.2.5 or man-pages-de-4.0.0". Assigning globally, CC'ing Shlomi & DavidW. Assignee:
bugsquad =>
pkg-bugs Assigning to me :) I'm on it. CC:
(none) =>
geiger.david68210 Hi Mario, The only files I found who conflicts between xz-5.2.5 and man-pages-de-4.0.0 are: /usr/share/man/de/man1/xz.1.xz /usr/share/man/de/man1/xzdec.1.xz /usr/share/man/de/man1/xzdiff.1.xz /usr/share/man/de/man1/xzgrep.1.xz /usr/share/man/de/man1/xzless.1.xz /usr/share/man/de/man1/xzmore.1.xz (In reply to David GEIGER from comment #3) > Hi Mario, > > The only files I found who conflicts between xz-5.2.5 and man-pages-de-4.0.0 > are: > > > /usr/share/man/de/man1/xz.1.xz > /usr/share/man/de/man1/xzdec.1.xz > /usr/share/man/de/man1/xzdiff.1.xz > /usr/share/man/de/man1/xzgrep.1.xz > /usr/share/man/de/man1/xzless.1.xz > /usr/share/man/de/man1/xzmore.1.xz Then remove only those. I've listed all German man pages which xz ships, but not all distributions use all of them. So should be fixed in man-pages-de-4.0.0-4.mga8! I see still the following files in man-pages-de-4.0.0-4.mga8.noarch.rpm:
/usr/share/man/de/man1/xz.1.xz
/usr/share/man/de/man1/xzdec.1.xz
/usr/share/man/de/man1/xzdiff.1.xz
/usr/share/man/de/man1/xzgrep.1.xz
/usr/share/man/de/man1/xzless.1.xz
/usr/share/man/de/man1/xzmore.1.xz
… although you remove them in your spec file:
# remove conflicting files between xz-5.2.5 and man-pages-de-4.0.0 (mga#26447)
rm -rf %{buildroot}%{_mandir}/de/man1/xz.1.xz \
%{buildroot}%{_mandir}/de/man1/xzdec.1.xz \
%{buildroot}%{_mandir}/de/man1/xzdiff.1.xz \
%{buildroot}%{_mandir}/de/man1/xzgrep.1.xz \
%{buildroot}%{_mandir}/de/man1/xzless.1.xz \
%{buildroot}%{_mandir}/de/man1/xzmore.1.xz
I don't know what happened here. An alternative way would be to remove the according *.po files directly from the unpacked tarball (in the %prep section). If no *.po files exist, no translated man pages get built:
rm -rf po/de/man1/xz.1.po \
po/de/man1/xzdec.1.po \
po/de/man1/xzdiff.1.po \
po/de/man1/xzgrep.1.po \
po/de/man1/xzless.1.po \
po/de/man1/xzmore.1.po
At the end of building something, you'll see a command such as:
> + /usr/share/spec-helper/compress_files .xz
At the time the manpages are being deleted the files still exist as e.g. xz.1. This without the .xz extension as it's only added after the %install stage.
Various possible solutions:
- replace .xz with {,.*}
- replace .xz with *
- replace .1.xz with .*
- remove .xz
e.g. rm -rf %{buildroot}%{_mandir}/de/man1/xz.1{,.*}
and so on
Good luck! :-DCC:
(none) =>
olav Ok, so should be fixed in man-pages-l10n-4.0.0-5.mga8! OK, now I don't see the xz man pages anymore in the man-pages-de package. Resolution:
(none) =>
FIXED |