2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2026-06-23 15:50:54 +00:00
Files
xcat-dep/elilo
Daniel Hilst a2378ba780 build: Make builds deterministic
Port SOURCE_DATE_EPOCH patterns from xcat-core to all xcat-dep build
scripts. RPM and Debian packages now produce identical output given
the same Gitepoch timestamp, regardless of build host or time.

EL (RPM) changes:
- mockbuild-all.pl: --build-timestamp flag, deterministic run_id,
  tar --sort/--owner/--group/--mtime, createrepo --revision
- All mockbuild.pl: SOURCE_DATE_EPOCH cascade (CLI > Gitepoch > git > time),
  deterministic mock config with SOURCE_DATE_EPOCH in chroot env,
  RPM macros for timestamp clamping and fixed buildhost
- goconserver: -trimpath -buildvcs=false, canonical rpmbuild path
- xnba: canonical rpmbuild path
- syslinux: ZERO_AR_DATE=1 in mock env

Ubuntu (Debian) changes:
- All make_deb.sh: SOURCE_DATE_EPOCH fallback from Gitepoch
- goconserver: deterministic SNAP_TS and changelog from epoch,
  -trimpath -buildvcs=false in debian/rules
- syslinux: -fdebug-prefix-map for path-independent debug info
- build-apt-repo.sh: gzip -n, Release Date: from SOURCE_DATE_EPOCH

Verified: 31/33 package artifacts produce identical SHA256 hashes
across independent builds. 2 syslinux sub-packages (devel,
debugsource) have known limitations from upstream build system.
2026-06-20 17:28:16 -03:00
..
2011-08-19 18:25:10 +00:00
2011-09-29 19:42:03 +00:00
2026-06-20 17:28:16 -03:00
2026-06-20 17:28:16 -03:00

To build elilo-xcat RPM:
------------------------

 1. Login to RHEL7.6 x86 node
 2. yum install git
 3. git clone https://github.com/xcat2/xcat-dep
 4. cd xcat-dep/elilo
 5. yum install gcc
 6. yum install ./gnu-efi-3.0g-2.el6.x86_64.rpm
 7. cp elilo-xcat.spec /root/rpmbuild/SPECS
 8. cp elilo-3.14-source.tar.gz /root/rpmbuild/SOURCES
 9. cp *.patch /root/rpmbuild/SOURCES
10. rpmbuild -ba /root/rpmbuild/SPECS/elilo-xcat.spec
11. Verify contents with rpm -qlp /root/rpmbuild/RPMS/noarch/elilo-xcat-3.14-6.noarch.rpm

To build elilo-xcat DEB:
------------------------
1. Login to Ubuntu x86 node
2. git clone https://github.com/xcat2/xcat-dep
3. cd xcat-dep/elilo
4. apt install quilt
5. apt install ./gnu-efi_3.0v-5_amd64.deb
6. ./make_deb.sh
7. Verify contents with dpkg -c <deb file>