[Rpm-maint] [rpm-software-management/rpm] Add support for generating buildinfo file as subpackage (#1532)
Panu Matilainen
notifications at github.com
Wed Aug 31 07:14:43 UTC 2022
@pmatilai commented on this pull request.
> + if test -z "${ID}"; then
+ ID="$(cat /etc/system-release)"
+ fi
+ printf '%s' "${ID}"
+}
+
+RPM_BUILD_ROOT="$1"
+RPM_BUILD_DIR="$2"
+RPM_PACKAGE_EPOCH="${3:-0}"
+RPM_PACKAGE_NAME="$4"
+RPM_PACKAGE_VERSION="$5"
+RPM_PACKAGE_RELEASE="$6"
+RPM_ARCH="$7"
+
+RPM_BUILD_NAME="${RPM_PACKAGE_NAME}-${RPM_PACKAGE_VERSION}-${RPM_PACKAGE_RELEASE}.${RPM_ARCH}"
+RPM_BUILD_ARCH="$(uname -m)"
It depends on definition. Looking at https://manpages.debian.org/testing/dpkg-dev/deb-buildinfo.5.en.html, this perhaps tries to be Build-Architecture counterpart which means *distro* architecture, but that could differ from `uname -m`. It seems to me this was added from your request to track the build arch in case of noarch packages, and seems reasonable to me. But it's not really possible to discuss the correctness of a value without a definition of what that value is supposed to mean in the first place.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1532#discussion_r959235948
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/1532/review/1091395597 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220831/abdc8d8f/attachment.html>
More information about the Rpm-maint
mailing list