Skip to content

Commit

Permalink
Update gvm-lsc-rpm-creator
Browse files Browse the repository at this point in the history
Setting  "_topdir" in the rpmbuild config is required to prevent the rpmbuild process from attempting to access the gvm user's home directory, (which does not exist) resulting in a 0-byte user credential creator .rpm package.
  • Loading branch information
syspect-tech authored and bjoernricks committed Jun 15, 2023
1 parent 07c036b commit b8fc0ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/gvm-lsc-rpm-creator
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ SPEC_FILE="${SPEC_DIR}/${PACKAGE_NAME_VERSION}.spec"
echo "BuildArch: noarch"
# Put output in current directory
echo "%define _rpmdir %(pwd)"
# Set _topdir
echo "%define _topdir ${TEMP_DIR}"

# Create description section
echo "%description"
Expand Down

0 comments on commit b8fc0ce

Please sign in to comment.