OpenMandrivaAssociation / distribution

OpenMandriva Lx is an exciting free Desktop Operating System that aims to cater to and interest first time and advanced users alike. It has the breadth and depth of an advanced system but is designed to be simple and straightforward in use.
https://openmandriva.org
7 stars 2 forks source link

RPM: File listed twice #2791

Closed tpgxyz closed 2 years ago

tpgxyz commented 2 years ago

OpenMandriva version: Cooker

Describe the bug: https://abf.openmandriva.org/build_lists/172045

Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.IWooNV
+ umask 022
+ cd /builddir/build/BUILD
+ cd alsa-tools-1.2.5
+ DOCDIR=/builddir/build/BUILDROOT/alsa-tools-1.2.5-1.x86_64/usr/share/doc/alsa-tools
+ export LC_ALL=C
+ LC_ALL=C
+ export DOCDIR
+ /usr/bin/mkdir -p /builddir/build/BUILDROOT/alsa-tools-1.2.5-1.x86_64/usr/share/doc/alsa-tools
+ cp -pr as10k1/README /builddir/build/BUILDROOT/alsa-tools-1.2.5-1.x86_64/usr/share/doc/alsa-tools
+ cp -pr as10k1/COPYING /builddir/build/BUILDROOT/alsa-tools-1.2.5-1.x86_64/usr/share/doc/alsa-tools
+ cp -pr as10k1/examples /builddir/build/BUILDROOT/alsa-tools-1.2.5-1.x86_64/usr/share/doc/alsa-tools
+ cp -pr seq/sbiload/COPYING /builddir/build/BUILDROOT/alsa-tools-1.2.5-1.x86_64/usr/share/doc/alsa-tools
+ cp -pr seq/sbiload/README /builddir/build/BUILDROOT/alsa-tools-1.2.5-1.x86_64/usr/share/doc/alsa-tools
+ cp -pr sb16_csp/COPYING /builddir/build/BUILDROOT/alsa-tools-1.2.5-1.x86_64/usr/share/doc/alsa-tools
+ cp -pr sb16_csp/README /builddir/build/BUILDROOT/alsa-tools-1.2.5-1.x86_64/usr/share/doc/alsa-tools
+ RPM_EC=0
++ jobs -p
+ exit 0
RPM build errors:
error: File listed twice: /usr/share/doc/alsa-tools/COPYING
error: File listed twice: /usr/share/doc/alsa-tools/COPYING
error: File listed twice: /usr/share/doc/alsa-tools/README
error: File listed twice: /usr/share/doc/alsa-tools/README
    File listed twice: /usr/share/doc/alsa-tools/COPYING
    File listed twice: /usr/share/doc/alsa-tools/COPYING
    File listed twice: /usr/share/doc/alsa-tools/README
    File listed twice: /usr/share/doc/alsa-tools/README
Child return code was: 1

Steps to reproduce:

Observed behavior: Looks like there is a regression in latest RPM of handling docs.

Expected behavior:

Additional comment:

Logs and screenshots if relevant

berolinux commented 2 years ago

rpm is actually right -- the docs were duplicated in the package (listed once as %doc and once as regular files to package in /usr/share/doc/...) So this looks like a bug in older rpm (not detecting the duplication) has been fixed.