[Rpm-maint] [rpm-software-management/rpm] %doc is still broken for some filenames (#1294)

nim-nim notifications at github.com
Sat Jun 27 15:27:52 UTC 2020


I have an upstream that had the bright idea to put its project documentation inside a 
`5. Specimens & Test Files` (Specimen is jargon for rendering examples)

My automation correctly translates that into the following manifest lines, fed to a `%files` section using -f
```rpm
%doc "./5. Specimens & Test Files/Cormorant_Italic_Glyph_Inventory.pdf"
%doc "./5. Specimens & Test Files/Cormorant_Roman_Glyph_Inventory.pdf"
%doc "./5. Specimens & Test Files/Specimen.pdf"
```

However the processing fails rpm-side

```console
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.mvPNNT
+ umask 022
+ cd /var/lib/builder/rpmbuild/BUILD
+ cd Cormorant-3f27825ce7aa990dc65761a7b323b92aecc84446
+ DOCDIR=/var/lib/builder/rpmbuild/BUILDROOT/catharsis-cormorant-fonts-3.604-3.git3f27825.fc33.x86_64/usr/share/doc/catharsis-cormorant-fonts-doc
+ export LC_ALL=C
+ LC_ALL=C
+ export DOCDIR
+ /usr/bin/mkdir -p /var/lib/builder/rpmbuild/BUILDROOT/catharsis-cormorant-fonts-3.604-3.git3f27825.fc33.x86_64/usr/share/doc/catharsis-cormorant-fonts-doc
+ ' Test Files/Cormorant_Italic_Glyph_Inventory.pdf' /var/lib/builder/rpmbuild/BUILDROOT/catharsis-cormorant-fonts-3.604-3.git3f27825.fc33.x86_64/usr/share/doc/catharsis-cormorant-fonts-doc
+ cp -pr './5. Specimens '
/var/tmp/rpm-tmp.mvPNNT: line 36:  Test Files/Cormorant_Italic_Glyph_Inventory.pdf: No such file or directory
+ :
+ ' Test Files/Cormorant_Roman_Glyph_Inventory.pdf' /var/lib/builder/rpmbuild/BUILDROOT/catharsis-cormorant-fonts-3.604-3.git3f27825.fc33.x86_64/usr/share/doc/catharsis-cormorant-fonts-doc
+ cp -pr './5. Specimens '
cp: missing destination file operand after './5. Specimens '
Try 'cp --help' for more information.
/var/tmp/rpm-tmp.mvPNNT: line 37:  Test Files/Cormorant_Roman_Glyph_Inventory.pdf: No such file or directory
+ :
cp: missing destination file operand after './5. Specimens '
Try 'cp --help' for more information.
+ cp -pr './5. Specimens '
+ ' Test Files/Specimen.pdf' /var/lib/builder/rpmbuild/BUILDROOT/catharsis-cormorant-fonts-3.604-3.git3f27825.fc33.x86_64/usr/share/doc/catharsis-cormorant-fonts-doc
/var/tmp/rpm-tmp.mvPNNT: line 38:  Test Files/Specimen.pdf: No such file or directory
+ :
+ cp -pr './5. Specimens '
+ ' Test Files/Cormorant_Italic_Glyph_Inventory.pdf' /var/lib/builder/rpmbuild/BUILDROOT/catharsis-cormorant-fonts-3.604-3.git3f27825.fc33.x86_64/usr/share/doc/catharsis-cormorant-fonts-doc
cp: missing destination file operand after './5. Specimens '
Try 'cp --help' for more information.
/var/tmp/rpm-tmp.mvPNNT: line 39:  Test Files/Cormorant_Italic_Glyph_Inventory.pdf: No such file or directory
+ :
cp: missing destination file operand after './5. Specimens '
Try 'cp --help' for more information.
+ ' Test Files/Cormorant_Roman_Glyph_Inventory.pdf' /var/lib/builder/rpmbuild/BUILDROOT/catharsis-cormorant-fonts-3.604-3.git3f27825.fc33.x86_64/usr/share/doc/catharsis-cormorant-fonts-doc
+ cp -pr './5. Specimens '
/var/tmp/rpm-tmp.mvPNNT: line 40:  Test Files/Cormorant_Roman_Glyph_Inventory.pdf: No such file or directory
+ :
+ ' Test Files/Specimen.pdf' /var/lib/builder/rpmbuild/BUILDROOT/catharsis-cormorant-fonts-3.604-3.git3f27825.fc33.x86_64/usr/share/doc/catharsis-cormorant-fonts-doc
+ cp -pr './5. Specimens '
cp: missing destination file operand after './5. Specimens '
Try 'cp --help' for more information.
/var/tmp/rpm-tmp.mvPNNT: line 41:  Test Files/Specimen.pdf: No such file or directory
+ :
+ RPM_EC=0
cp: missing destination file operand after './5. Specimens '
Try 'cp --help' for more information.
++ jobs -p
+ for pid in $(jobs -p)
+ kill -9 955990
/var/tmp/rpm-tmp.mvPNNT: line 44: kill: (955990) - No such process
+ continue
+ exit 0
error: File not found: /var/lib/builder/rpmbuild/BUILDROOT/catharsis-cormorant-fonts-3.604-3.git3f27825.fc33.x86_64/usr/share/doc/catharsis-cormorant-fonts-doc/Cormorant_Italic_Glyph_Inventory.pdf
error: File not found: /var/lib/builder/rpmbuild/BUILDROOT/catharsis-cormorant-fonts-3.604-3.git3f27825.fc33.x86_64/usr/share/doc/catharsis-cormorant-fonts-doc/Cormorant_Roman_Glyph_Inventory.pdf
error: File not found: /var/lib/builder/rpmbuild/BUILDROOT/catharsis-cormorant-fonts-3.604-3.git3f27825.fc33.x86_64/usr/share/doc/catharsis-cormorant-fonts-doc/Specimen.pdf
error: File not found: /var/lib/builder/rpmbuild/BUILDROOT/catharsis-cormorant-fonts-3.604-3.git3f27825.fc33.x86_64/usr/share/doc/catharsis-cormorant-fonts-doc/Cormorant_Italic_Glyph_Inventory.pdf
error: File not found: /var/lib/builder/rpmbuild/BUILDROOT/catharsis-cormorant-fonts-3.604-3.git3f27825.fc33.x86_64/usr/share/doc/catharsis-cormorant-fonts-doc/Cormorant_Roman_Glyph_Inventory.pdf
error: File not found: /var/lib/builder/rpmbuild/BUILDROOT/catharsis-cormorant-fonts-3.604-3.git3f27825.fc33.x86_64/usr/share/doc/catharsis-cormorant-fonts-doc/Specimen.pdf
Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.8f0vsU
+ umask 022
+ cd /var/lib/builder/rpmbuild/BUILD
+ cd Cormorant-3f27825ce7aa990dc65761a7b323b92aecc84446
+ LICENSEDIR=/var/lib/builder/rpmbuild/BUILDROOT/catharsis-cormorant-fonts-3.604-3.git3f27825.fc33.x86_64/usr/share/licenses/catharsis-cormorant-fonts-doc
+ export LC_ALL=C
+ LC_ALL=C
+ export LICENSEDIR
+ /usr/bin/mkdir -p /var/lib/builder/rpmbuild/BUILDROOT/catharsis-cormorant-fonts-3.604-3.git3f27825.fc33.x86_64/usr/share/licenses/catharsis-cormorant-fonts-doc
+ cp -pr ./OFL.txt /var/lib/builder/rpmbuild/BUILDROOT/catharsis-cormorant-fonts-3.604-3.git3f27825.fc33.x86_64/usr/share/licenses/catharsis-cormorant-fonts-doc
+ cp -pr ./OFL.txt /var/lib/builder/rpmbuild/BUILDROOT/catharsis-cormorant-fonts-3.604-3.git3f27825.fc33.x86_64/usr/share/licenses/catharsis-cormorant-fonts-doc
+ RPM_EC=0
++ jobs -p
+ exit 0


RPM build errors:
    File not found: /var/lib/builder/rpmbuild/BUILDROOT/catharsis-cormorant-fonts-3.604-3.git3f27825.fc33.x86_64/usr/share/doc/catharsis-cormorant-fonts-doc/Cormorant_Italic_Glyph_Inventory.pdf
    File not found: /var/lib/builder/rpmbuild/BUILDROOT/catharsis-cormorant-fonts-3.604-3.git3f27825.fc33.x86_64/usr/share/doc/catharsis-cormorant-fonts-doc/Cormorant_Roman_Glyph_Inventory.pdf
    File not found: /var/lib/builder/rpmbuild/BUILDROOT/catharsis-cormorant-fonts-3.604-3.git3f27825.fc33.x86_64/usr/share/doc/catharsis-cormorant-fonts-doc/Specimen.pdf
    File not found: /var/lib/builder/rpmbuild/BUILDROOT/catharsis-cormorant-fonts-3.604-3.git3f27825.fc33.x86_64/usr/share/doc/catharsis-cormorant-fonts-doc/Cormorant_Italic_Glyph_Inventory.pdf
    File not found: /var/lib/builder/rpmbuild/BUILDROOT/catharsis-cormorant-fonts-3.604-3.git3f27825.fc33.x86_64/usr/share/doc/catharsis-cormorant-fonts-doc/Cormorant_Roman_Glyph_Inventory.pdf
    File not found: /var/lib/builder/rpmbuild/BUILDROOT/catharsis-cormorant-fonts-3.604-3.git3f27825.fc33.x86_64/usr/share/doc/catharsis-cormorant-fonts-doc/Specimen.pdf
```

```console
$ rpm -q rpm-build
rpm-build-4.16.0-0.beta3.1.fc33.x86_64
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1294
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200627/e4f8f950/attachment.html>


More information about the Rpm-maint mailing list