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

build: build-rpm.sh failing - mkdir: missing operand #282

Closed
dougsland opened this issue May 7, 2023 · 1 comment
Closed

build: build-rpm.sh failing - mkdir: missing operand #282

dougsland opened this issue May 7, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@dougsland
Copy link
Contributor

Describe the bug

build-rpm.sh script is failing in the end of operation returning non 0. This fails impacts (or should) the automation or CI/CD .

To Reproduce

OS:

douglas@rhel8devel]:hirte$ cat /etc/os-release
NAME="Red Hat Enterprise Linux"
VERSION="8.7 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.7"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.7 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8::baseos"
HOME_URL="https://www.redhat.com/"
DOCUMENTATION_URL="https://access.redhat.com/documentation/red_hat_enterprise_linux/8/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.7
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.7"

Error:

[douglas@rhel8devel]:$ git clone https://github.com/containers/hirte/ && cd hirte 
[douglas@rhel8devel]:hirte$ ./build-scripts/build-rpm.sh

Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.Mr9mjG
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd hirte-0.3.0
+ /usr/bin/rm -rf /root/rpmbuild/BUILDROOT/hirte-0.3.0-0.202305050305.git6061fac.el9.x86_64
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(--clean): /bin/sh -e /var/tmp/rpm-tmp.fsNsZe
+ umask 022
+ cd /root/rpmbuild/BUILD
+ rm -rf hirte-0.3.0
+ RPM_EC=0
++ jobs -p
+ exit 0
+ [[ -d '' ]]
+ mkdir -p
mkdir: missing operand
Try 'mkdir --help' for more information.

Expected behavior

return 0.

@dougsland dougsland added the bug Something isn't working label May 7, 2023
engelmi pushed a commit that referenced this issue May 19, 2023
Currently buid-scripts/build-rpm.sh is failing
with mkdir error in the end.

GH-Issue: #282
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
@engelmi
Copy link
Member

engelmi commented May 19, 2023

Solved in #283. Closing.

@engelmi engelmi closed this as completed May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants