[Rpm-maint] [rpm-software-management/rpm] Add support for generating buildinfo file as subpackage (#1532)
Neal Gompa (ニール・ゴンパ)
notifications at github.com
Sat Oct 30 11:49:08 UTC 2021
@Conan-Kudo requested changes on this pull request.
> +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)"
+RPM_BUILD_OS="$(getos)"
+
+BUILDINFO_DIR="${RPM_BUILD_ROOT}/usr/lib/src/buildinfo"
+BUILDINFO="${BUILDINFO_DIR}/${RPM_BUILD_NAME}.rpmbuildinfo"
+
+mkdir -p "${BUILDINFO_DIR}"
+
+printf '%s' "\
+Format: 1.0
+BuildArchitecture: ${RPM_BUILD_ARCH}
We probably want to capture the host architecture for the `noarch` case, so we know if an architecture influenced the build?
> +# Whitelist from Debian's Dpkg:
+# https://salsa.debian.org/dpkg-team/dpkg/-/blob/main/scripts/Dpkg/Build/Info.pm#L51
Do we need this comment anymore now that it doesn't match?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1532#pullrequestreview-793562698
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20211030/d04976ea/attachment.html>
More information about the Rpm-maint
mailing list