File tree Expand file tree Collapse file tree 2 files changed +22
-3
lines changed Expand file tree Collapse file tree 2 files changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -230,6 +230,7 @@ GIT_ARCHIVE="${DIST_ARCHIVE_BASE}/${DISTNAME}.tar.gz"
230
230
# Create the source tarball if not already there
231
231
if [ ! -e " $GIT_ARCHIVE " ]; then
232
232
mkdir -p " $( dirname " $GIT_ARCHIVE " ) "
233
+ CONFIG_SITE=" ${BASEPREFIX} /${HOST} /share/config.site" \
233
234
contrib/guix/libexec/make_release_tarball.sh " ${GIT_ARCHIVE} " " ${DISTNAME} "
234
235
fi
235
236
@@ -283,8 +284,6 @@ mkdir -p "$DISTSRC"
283
284
# Extract the source tarball
284
285
tar --strip-components=1 -xf " ${GIT_ARCHIVE} "
285
286
286
- ./autogen.sh
287
-
288
287
# Configure this DISTSRC for $HOST
289
288
# shellcheck disable=SC2086
290
289
env CONFIG_SITE=" ${BASEPREFIX} /${HOST} /share/config.site" \
Original file line number Diff line number Diff line change @@ -13,4 +13,24 @@ set -ex
13
13
GIT_ARCHIVE=" $1 "
14
14
DISTNAME=" $2 "
15
15
16
- git archive --prefix=" ${DISTNAME} /" --output=" ${GIT_ARCHIVE} " HEAD
16
+ git archive --prefix=" ${DISTNAME} /" HEAD | tar -xp
17
+ cd " ${DISTNAME} "
18
+
19
+ ./autogen.sh
20
+ ./configure --prefix=/ --disable-ccache --disable-maintainer-mode --disable-dependency-tracking
21
+ make distclean
22
+
23
+ cd ..
24
+ tar \
25
+ --format=ustar \
26
+ --exclude autom4te.cache \
27
+ --exclude .deps \
28
+ --exclude .git \
29
+ --sort=name \
30
+ --mode=' u+rw,go+r-w,a+X' --owner=0 --group=0 \
31
+ --mtime=" ${REFERENCE_DATETIME} " \
32
+ -c " ${DISTNAME} " | \
33
+ gzip -9n \
34
+ > " ${GIT_ARCHIVE} "
35
+
36
+ rm -rf " ${DISTNAME} "
You can’t perform that action at this time.
0 commit comments