Bug 32860 - rpmbuild complains about files listed twice for an unofficial rust package when it shouldn't
Summary: rpmbuild complains about files listed twice for an unofficial rust package wh...
Status: RESOLVED INVALID
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-17 02:15 CET by Kristoffer Grundström
Modified: 2024-02-17 07:38 CET (History)
1 user (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments
Proposal spec file (1.68 KB, text/x-matlab)
2024-02-17 02:15 CET, Kristoffer Grundström
Details
Crate file for biquad (10.77 KB, application/gzip)
2024-02-17 02:16 CET, Kristoffer Grundström
Details
biquad-fix-metadata patch diff (275 bytes, patch)
2024-02-17 02:17 CET, Kristoffer Grundström
Details | Diff
biquad-libm0.2 patch (11.58 KB, patch)
2024-02-17 02:18 CET, Kristoffer Grundström
Details | Diff

Description Kristoffer Grundström 2024-02-17 02:15:12 CET
Description of problem: I'm trying to correctly package the rust package called biquad and rpmbuild complains about this part of the spec file when successfully building:

%files          devel
%license %{crate_instdir}/LICENSE-APACHE
%license %{crate_instdir}/LICENSE-MIT
%doc %{crate_instdir}/CHANGELOG.md
%doc %{crate_instdir}/README.md
%{crate_instdir}/

I've compaired to the rust packages that we have in the official repos and none of them differ from this when the devel package is regarded so I don't understand why rpmbuild says:

RPM build warnings:
    File listed twice: /usr/share/cargo/registry/biquad-0.4.2/CHANGELOG.md
    File listed twice: /usr/share/cargo/registry/biquad-0.4.2/LICENSE-APACHE
    File listed twice: /usr/share/cargo/registry/biquad-0.4.2/LICENSE-MIT
    File listed twice: /usr/share/cargo/registry/biquad-0.4.2/README.md

Version-Release number of selected component (if applicable): 4.18.2

How reproducible: All the time.

Steps to Reproduce:
1. Download the proposal spec file.
2. Open a terminal window.
3. Download the crate file for biquad to ~/rpmbuild/SOURCES/.
3. cd to the location of the spec file.
4. Do urpmi rust-biquad.spec as root.
5. Now do rpmbuild -ba rust-biquad.spec and watch it reach the end when it says exit 0 where it says:

RPM build warnings:
    File listed twice: /usr/share/cargo/registry/biquad-0.4.2/CHANGELOG.md
    File listed twice: /usr/share/cargo/registry/biquad-0.4.2/LICENSE-APACHE
    File listed twice: /usr/share/cargo/registry/biquad-0.4.2/LICENSE-MIT
    File listed twice: /usr/share/cargo/registry/biquad-0.4.2/README.md
even though many of our spec files tells you to use %{crate_instdir}/ for the mentioned files.

This is NOT normal if you ask me.
Comment 1 Kristoffer Grundström 2024-02-17 02:15:34 CET
Created attachment 14389 [details]
Proposal spec file

CC: (none) => lovaren

Comment 2 Kristoffer Grundström 2024-02-17 02:16:22 CET
Created attachment 14390 [details]
Crate file for biquad
Comment 3 Kristoffer Grundström 2024-02-17 02:17:26 CET
Created attachment 14391 [details]
biquad-fix-metadata patch diff
Comment 4 Kristoffer Grundström 2024-02-17 02:18:02 CET
Created attachment 14392 [details]
biquad-libm0.2 patch
Comment 5 sturmvogel 2024-02-17 07:38:08 CET
rust-biquad is no part of Mageia.

Mageia bugzilla is not a support forum for packaging questions. Please ask for packaging help in the support forums or mailing lists.

Status: NEW => RESOLVED
Resolution: (none) => INVALID


Note You need to log in before you can comment on or make changes to this bug.