bazelbuild / rules_pkg

Bazel rules for creating packages of many types (zip, tar, deb, rpm, ...)
Apache License 2.0
216 stars 171 forks source link

[RPM] Fix handling paths containing whitespaces #733

Closed k0walik closed 1 year ago

k0walik commented 1 year ago

What

Fixes #732:

Verification

$ rpm -qlpviR bazel-bin/test/test-0.0.0-0..rpm
Name        : test
Version     : 0.0.0
Release     : 0
Architecture: x86_64
Install Date: (not installed)
Group       : Unspecified
Size        : 7
License     : license
Signature   : (none)
Source RPM  : test-0.0.0-0.src.rpm
Build Date  : Wed Aug 16 07:55:34 2023
Build Host  : tomasz-dev
Summary     : summary
Description :
description
pre,interp: /bin/sh
post,interp: /bin/sh
preun,interp: /bin/sh
postun,interp: /bin/sh
rpmlib: rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib: rpmlib(FileDigests) <= 4.6.0-1
rpmlib: rpmlib(PayloadFilesHavePrefix) <= 4.0-1
drwxr-xr-x    2 root     root                        0 Aug 16 07:55 /dire ctory
-rw-r--r--    1 root     root                        0 Aug 16 07:55 /foo bar
-rw-r--r--    1 root     root                        0 Aug 16 07:55 /foobar
lrwxrwxrwx    1 root     root                        7 Aug 16 07:55 /sym link -> /foobar