Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPM sandbox directory empty since rpmbuild 4.20.0 #938

Open
teodor-pripoae opened this issue Feb 19, 2025 · 0 comments
Open

RPM sandbox directory empty since rpmbuild 4.20.0 #938

teodor-pripoae opened this issue Feb 19, 2025 · 0 comments
Labels
bug P2 An issue that should be worked on when time is available

Comments

@teodor-pripoae
Copy link

After updating system rpmbuild to 4.20.0 building RPM packages fail.

OS: OpenSuse Tumbleweed.

Building rules_pkg project fails with:

Starting local Bazel server (8.1.0) and connecting to it...
WARNING: WORKSPACE support will be removed in Bazel 9 (late 2025), please migrate to Bzlmod, see https://bazel.build/external/migration.
DEBUG: /home/toni/code/gh/rules_pkg/pkg/mappings.bzl:307:34: same source mapped to different locations <generated file tests/an_executable> an_executable an_executable.runfiles/_main/tests/an_executable
INFO: From MakeRpm tests/rpm/test_rpm_bzip2-1.1.1-2222.noarch.rpm:
Error calling rpmbuild:
Building target platforms: noarch
Building for target noarch
Executing(%mkbuilddir): /usr/bin/bash -e /tmp/tmpgpatiq6v/TMP/rpm-tmp.UTgJ0s
+ umask 022
+ cd /tmp/tmpgpatiq6v/BUILD/test_rpm_bzip2-1.1.1-build
+ test -d /tmp/tmpgpatiq6v/BUILD/test_rpm_bzip2-1.1.1-build
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /tmp/tmpgpatiq6v/BUILD/test_rpm_bzip2-1.1.1-build
+ /usr/bin/rm -rf /tmp/tmpgpatiq6v/BUILD/test_rpm_bzip2-1.1.1-build
+ /usr/bin/mkdir -p /tmp/tmpgpatiq6v/BUILD/test_rpm_bzip2-1.1.1-build
+ /usr/bin/mkdir -p /tmp/tmpgpatiq6v/BUILD/test_rpm_bzip2-1.1.1-build/SPECPARTS
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%install): /usr/bin/bash -e /tmp/tmpgpatiq6v/TMP/rpm-tmp.xnb04w
+ umask 022
+ cd /tmp/tmpgpatiq6v/BUILD/test_rpm_bzip2-1.1.1-build
+ /usr/bin/rm -rf /tmp/tmpgpatiq6v/BUILDROOT
+ /usr/bin/mkdir -p /tmp/tmpgpatiq6v
+ /usr/bin/mkdir /tmp/tmpgpatiq6v/BUILDROOT
++ dirname /test/a.ar
+ install -d /tmp/tmpgpatiq6v/BUILDROOT//test
+ cp tests/testdata/a.ar /tmp/tmpgpatiq6v/BUILDROOT//test/a.ar
cp: cannot stat 'tests/testdata/a.ar': No such file or directory
error: Bad exit status from /tmp/tmpgpatiq6v/TMP/rpm-tmp.xnb04w (%install)

RPM build errors:
    Bad exit status from /tmp/tmpgpatiq6v/TMP/rpm-tmp.xnb04w (%install)

No RPM file created.
@aiuto aiuto added bug P2 An issue that should be worked on when time is available labels Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug P2 An issue that should be worked on when time is available
Projects
None yet
Development

No branches or pull requests

2 participants