Skip to content

Commit e75fe5d

Browse files
Merge pull request #35 from RandomCoderOrg/bump-debootstrap
Bump debootstrap
2 parents f82bc7c + b2ab4f0 commit e75fe5d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+346
-6389
lines changed

.github/scripts/build-jammy.sh

+6-3
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,12 @@ EOF
6060

6161
# set up pv
6262
lshout "Setting up pv..."
63-
cp $ROOT_DIR/core/pv/pv-${t_arch}.deb $chroot_dir
64-
run_cmd "dpkg -i /pv-${t_arch}.deb"
65-
run_cmd "rm /pv-${t_arch}.deb"
63+
# cp $ROOT_DIR/core/pv/pv-${t_arch}.deb $chroot_dir
64+
# run_cmd "dpkg -i /pv-${t_arch}.deb"
65+
# run_cmd "rm /pv-${t_arch}.deb"
66+
run_cmd "apt update"
67+
run_cmd "apt install pv -y"
68+
run_cmd "apt clean"
6669

6770
# clean any archive if exits
6871
apt-get clean

.github/workflows/build-udroid.yml

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
steps:
1414
- name: checkout repo
1515
uses: actions/checkout@v3
16+
with:
17+
submodules: recursive
1618

1719
- name: Docker Setup QEMU
1820
uses: docker/setup-qemu-action@v2

.gitmodules

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[submodule "core/debootstrap"]
2+
path = core/debootstrap
3+
url = https://git.launchpad.net/ubuntu/+source/debootstrap
4+
branch = ubuntu/devel

build-jammy.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ EOF
5454

5555
# set up pv
5656
lshout "Setting up pv..."
57-
cp $ROOT_DIR/core/pv/pv-${t_arch}.deb $chroot_dir
58-
run_cmd "dpkg -i /pv-${t_arch}.deb"
59-
run_cmd "rm /pv-${t_arch}.deb"
57+
run_cmd "apt update"
58+
run_cmd "apt install pv -y"
59+
run_cmd "apt clean"
6060

6161
}
6262

core/debootstrap

Submodule debootstrap added at 5dfcdef

core/debootstrap-scripts/functions

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../debootstrap/functions
File renamed without changes.

core/debootstrap/scripts/amber core/debootstrap-scripts/scripts/amber

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
# For PureOS "amber"
3-
# PureOS: https://www.pureos.net/
3+
# PureOS: https://www.pureos.net/
44
# Contact: https://tracker.pureos.net/
55

66
mirror_style release
@@ -24,17 +24,18 @@ esac
2424
work_out_debs () {
2525
required="$(get_debs Priority: required)"
2626

27+
base="pureos-archive-keyring"
2728
if doing_variant - || doing_variant fakechroot; then
2829
#required="$required $(get_debs Priority: important)"
2930
# ^^ should be getting debconf here somehow maybe
30-
base="$(get_debs Priority: important)"
31+
base="$base $(get_debs Priority: important)"
3132

3233
# we want the PureOS minimal dependency set to be installed
3334
base="$base pureos-minimal"
3435
elif doing_variant buildd; then
35-
base="apt build-essential"
36+
base="$base apt build-essential"
3637
elif doing_variant minbase; then
37-
base="apt"
38+
base="$base apt"
3839
fi
3940

4041
if doing_variant fakechroot; then
@@ -53,8 +54,8 @@ first_stage_install () {
5354
MERGED_USR="yes"
5455
EXTRACT_DEB_TAR_OPTIONS="$EXTRACT_DEB_TAR_OPTIONS -k"
5556

56-
setup_merged_usr
5757
extract $required
58+
merge_usr
5859

5960
mkdir -p "$TARGET/var/lib/dpkg"
6061
: >"$TARGET/var/lib/dpkg/status"
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
robur
File renamed without changes.

core/debootstrap-scripts/scripts/awen

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
robur
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
robur
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
robur
File renamed without changes.
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
amber
File renamed without changes.
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
amber
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
robur
File renamed without changes.
File renamed without changes.

core/debootstrap/scripts/debian-common core/debootstrap-scripts/scripts/debian-common

+37-3
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,33 @@ case $ARCH in
1010
esac
1111

1212
work_out_debs () {
13-
required="$(get_debs Priority: required)"
13+
case "$CODENAME" in
14+
etch*|lenny|squeeze|wheezy|jessie*|stretch|buster|bullseye|bookworm)
15+
# always compute for bookworm and earlier
16+
required="$(get_debs Priority: required)"
17+
;;
18+
*)
19+
# only compute when variant is not buildd for trixie and later
20+
if ! doing_variant buildd; then
21+
required="$(get_debs Priority: required)"
22+
fi
23+
esac
1424

1525
if doing_variant - || doing_variant fakechroot; then
1626
#required="$required $(get_debs Priority: important)"
1727
# ^^ should be getting debconf here somehow maybe
1828
base="$(get_debs Priority: important)"
1929
elif doing_variant buildd; then
2030
base="apt build-essential"
31+
# do not install Priority:required for the buildd variant
32+
# explicitly add mawk because we cannot resolve base-files's
33+
# virtual pre-depends on awk
34+
case "$CODENAME" in
35+
etch*|lenny|squeeze|wheezy|jessie*|stretch|buster|bullseye|bookworm)
36+
# only apply this for trixie and later
37+
;;
38+
*) required="mawk $(get_debs Essential: yes)";;
39+
esac
2140
elif doing_variant minbase; then
2241
base="apt"
2342
fi
@@ -40,6 +59,21 @@ work_out_debs () {
4059
esac
4160
;;
4261
esac
62+
63+
# On suites >= bookworm, either we set up a merged-/usr system
64+
# via merge_usr, or we deliberately avoid that migration by creating
65+
# the flag file. This means there's no need for the live migration
66+
# 'usrmerge' package and its extra dependencies:
67+
# we can install the empty 'usr-is-merged' metapackage to indicate
68+
# that the transition has been done.
69+
case "$CODENAME" in
70+
etch*|lenny|squeeze|wheezy|jessie*|stretch|buster|bullseye)
71+
;;
72+
*)
73+
required="$required usr-is-merged"
74+
EXCLUDE_DEPENDENCY="$EXCLUDE_DEPENDENCY usrmerge"
75+
;;
76+
esac
4377
}
4478

4579
first_stage_install () {
@@ -57,9 +91,9 @@ first_stage_install () {
5791
if [ "$CODENAME" = "stretch" ] && [ -z "$MERGED_USR" ]; then
5892
MERGED_USR="no"
5993
fi
60-
61-
setup_merged_usr
94+
6295
extract $required
96+
merge_usr
6397

6498
mkdir -p "$TARGET/var/lib/dpkg"
6599
: >"$TARGET/var/lib/dpkg/status"

core/debootstrap-scripts/scripts/dwyn

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
robur
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
robur
File renamed without changes.
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
robur
File renamed without changes.
File renamed without changes.

core/debootstrap/scripts/gutsy core/debootstrap-scripts/scripts/gutsy

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ case $SUITE in
4545
*)
4646
# impish+ will use zstd compression, check if supported
4747
dpkg_zstd="$(dpkg-deb --help 2>/dev/null | grep ' zstd,' || :)"
48-
if [ -z "$EXTRACTOR_OVERRIDE" ] && [ -z "$dpkg_zstd" ]; then
48+
if [ -z "${EXTRACTOR_OVERRIDE-}" ] && [ -z "$dpkg_zstd" ]; then
4949
info CHOSENEXTRACTOR "%s uses zstd compression, setting --extractor=ar option" "$SUITE"
5050
export EXTRACTOR_OVERRIDE=ar
5151
fi
@@ -138,8 +138,8 @@ first_stage_install () {
138138
;;
139139
esac
140140

141-
setup_merged_usr
142141
extract $required
142+
merge_usr
143143

144144
mkdir -p "$TARGET/var/lib/dpkg"
145145
: >"$TARGET/var/lib/dpkg/status"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
robur
File renamed without changes.
File renamed without changes.
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pardus
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pardus
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
mirror_style release
2+
download_style apt
3+
finddebs_style from-indices
4+
variants - buildd fakechroot minbase
5+
keyring /usr/share/keyrings/pardus-archive-keyring.gpg
6+
default_mirror http://depo.pardus.org.tr/pardus
7+
8+
# include common settings
9+
if [ -e "$DEBOOTSTRAP_DIR/scripts/debian-common" ]; then
10+
. "$DEBOOTSTRAP_DIR/scripts/debian-common"
11+
elif [ -e /debootstrap/debian-common ]; then
12+
. /debootstrap/debian-common
13+
elif [ -e "$DEBOOTSTRAP_DIR/debian-common" ]; then
14+
. "$DEBOOTSTRAP_DIR/debian-common"
15+
else
16+
error 1 NOCOMMON "File not found: debian-common"
17+
fi
File renamed without changes.

0 commit comments

Comments
 (0)