-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Reproducible release tarballs #1550
base: main
Are you sure you want to change the base?
Changes from 1 commit
17b1a28
a6fbdd7
a5eb00d
6bc903d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1903,25 +1903,22 @@ distributekernel distributekernel.debug: .PHONY | |
false | ||
.endif | ||
mkdir -p ${DESTDIR}/${DISTDIR} | ||
.if defined(NO_ROOT) | ||
@echo "#${MTREE_MAGIC}" > ${DESTDIR}/${DISTDIR}/kernel.premeta | ||
.endif | ||
rm -f ${DESTDIR}/${DISTDIR}/kernel.premeta | ||
${_+_}cd ${KRNLOBJDIR}/${INSTALLKERNEL}; \ | ||
${IMAKEENV} ${IMAKE_INSTALL:S/METALOG/kernel.premeta/} \ | ||
${IMAKE_MTREE} PATH=${TMPPATH:Q} ${MAKE} KERNEL=${INSTKERNNAME} \ | ||
DISTBASE=/kernel DESTDIR=${INSTALL_DDIR}/kernel \ | ||
METALOG=${METALOG:S/METALOG/kernel.premeta/} \ | ||
${.TARGET:S/distributekernel/install/} | ||
.if defined(NO_ROOT) | ||
@sed -e 's|^./kernel|.|' ${DESTDIR}/${DISTDIR}/kernel.premeta > \ | ||
${DESTDIR}/${DISTDIR}/kernel.meta | ||
echo "#${MTREE_MAGIC}" > ${DESTDIR}/${DISTDIR}/kernel.meta | ||
sed -e 's|^./kernel|.|' ${DESTDIR}/${DISTDIR}/kernel.premeta | \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. does the unsortedness happen only with -j? I'd be a bit surprised by nondeterminism without -j. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure - I've never had the patience to run without One potential source of non-determinism is when file lists are generated rather than declared. For example, some of the items returned by There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It looks like those are all in sys/contrib (and so not actually used in our build), but indeed anything that returns files in filesystem order could be an issue. I expect |
||
${METALOG_SORT_CMD} >> ${DESTDIR}/${DISTDIR}/kernel.meta | ||
.endif | ||
.endif | ||
.if ${BUILDKERNELS:[#]} > 1 && ${NO_INSTALLEXTRAKERNELS} != "yes" | ||
.for _kernel in ${BUILDKERNELS:[2..-1]} | ||
.if defined(NO_ROOT) | ||
@echo "#${MTREE_MAGIC}" > ${DESTDIR}/${DISTDIR}/kernel.${_kernel}.premeta | ||
.endif | ||
rm -f ${DESTDIR}/${DISTDIR}/kernel.${_kernel}.premeta | ||
${_+_}cd ${KRNLOBJDIR}/${_kernel}; \ | ||
${IMAKEENV} ${IMAKE_INSTALL:S/METALOG/kernel.${_kernel}.premeta/} \ | ||
${IMAKE_MTREE} PATH=${TMPPATH:Q} ${MAKE} \ | ||
|
@@ -1930,9 +1927,10 @@ distributekernel distributekernel.debug: .PHONY | |
METALOG=${METALOG:S/METALOG/kernel.${_kernel}.premeta/} \ | ||
${.TARGET:S/distributekernel/install/} | ||
.if defined(NO_ROOT) | ||
@sed -e "s|^./kernel.${_kernel}|.|" \ | ||
${DESTDIR}/${DISTDIR}/kernel.${_kernel}.premeta > \ | ||
${DESTDIR}/${DISTDIR}/kernel.${_kernel}.meta | ||
echo "#${MTREE_MAGIC}" > ${DESTDIR}/${DISTDIR}/kernel.${_kernel}.meta | ||
sed -e "s|^./kernel.${_kernel}|.|" \ | ||
${DESTDIR}/${DISTDIR}/kernel.${_kernel}.premeta | \ | ||
${METALOG_SORT_CMD} >> ${DESTDIR}/${DISTDIR}/kernel.${_kernel}.meta | ||
.endif | ||
.endfor | ||
.endif | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We want to keep the
@
s presumablyThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO the
@
s are bugs. These aren't steps with should be hiding from the caller.