Steve Langasek
2e4e8b35b2
Merge branch 'mk-sbuild-not-automatic'
2023-04-12 09:45:15 -07:00
Steve Langasek
53fcd577e8
We no longer need to run sed
2023-04-12 09:41:52 -07:00
Steve Langasek
8430d445d8
Align with the Launchpad buildd implementation, per review comments
2023-04-12 09:28:41 -07:00
Masahiro Yamada
69ac109cdb
mk-sbuild: fix security update repository for Debian bullseye and later
...
If I run "apt-get update" in the bullseye chroot, I get the following error:
Err:4 http://security.debian.org bullseye-updates Release
404 Not Found [IP: 2a04:4e42:600::644 80]
It looks like the directory path was changed since bullseye.
buster:
deb https://security.debian.org/debian-security buster/updates main
bullseye:
deb https://security.debian.org/debian-security bullseye-security main
Signed-off-by: Masahiro Yamada <masahiro.yamada@canonical.com>
2023-01-13 18:53:17 +09:00
Masahiro Yamada
9f2a53c166
mk-sbuild: add debian_dist_ge()
...
Add debian_dist_ge(), which will be used by the next commit.
To avoid code duplication, move the common part to dist_ge().
Signed-off-by: Masahiro Yamada <masahiro.yamada@canonical.com>
2023-01-13 18:34:01 +09:00
Steve Langasek
a69c40d403
Set up preferences for -proposed with NotAutomatic: yes
...
As of lunar, Ubuntu sets NotAutomatic: yes for its -proposed pockets. For
sbuild chroots, we want to continue to explicitly install from -proposed by
default; so override with apt preferences to get the correct behavior.
2022-11-16 17:49:13 -08:00
Benjamin Drung
bf5796c69e
mk-sbuild: Rename SCRIPT to DEBOOTSTRAP_SCRIPT
...
Signed-off-by: Benjamin Drung <bdrung@ubuntu.com>
2022-06-16 10:20:22 +02:00
Dimitri John Ledkov
1f3e4a5ad7
mk-sbuild: build Ubuntu chroots for unknown new releases
...
Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
2022-04-27 14:18:15 +01:00
Matthias Klose
87858a4387
mk-sbuild: don't require pkg-config-$target_tuple
...
Packages pkg-config-$target_tuple are no longer built by from source
package gcc-defaults-ports. Install pkg-config instead (LP: #1966881 ).
2022-03-30 15:37:08 +02:00
Peter Pentchev
74867c90f4
mk-sbuild: Fix a check for TARGET_ARCH in a message.
...
Closes : #968316
Signed-off-by: Mattia Rizzolo <mattia@debian.org>
2021-10-31 16:34:00 +01:00
Paride Legovini
fec7a72ef7
mk-sbuild: add support for zfs-snapshot schroots
...
Creating datasets with mountpoint=legacy is necessary because the
schroot helper scripts expect it. This will make zfs-snapshot schroots
behave more like lvm-snapshot schroots and less like btrfs-snapshot
schroots (e.g. the source schroot is not permanently mounted/visible).
Switching mount "style" requires changes in at least the
/etc/schroot/setup.d/05zfs and 10mount scripts.
LP: #1945349
2021-09-28 19:59:42 +02:00
Marco Trevisan (Treviño)
2ac69a89e3
mk-sbuild: Add support to configure ccache for each schroot
...
ccache can help greatly in speeding up recompilations in sbuild, but it
is a bit annoying to configure at each schroot creation.
So, add --cache option (and relative CCACHE config parameter) to
configure ccache for sbuild schroots.
By default we use a shared ccache directory, but each schroot can use
a customized one if needed (with local parameters) by using --cache-dir
(or CCACHE_DIR).
Default ccache max-size is 4G, but can be configured with --ccache-size
(or CCACHE_SIZE), the size value is applied to each ccache path, so can
be shared by multiple schroots or applied to a single one.
2021-06-15 02:24:16 +02:00
Marco Trevisan (Treviño)
4e5e6efdb1
mk-sbuild: Enable debugging in the finish.sh script if --debug is used
2021-06-15 02:23:05 +02:00
Marco Trevisan (Treviño)
e193c30695
mk-sbuild: Use a more maintainable OPTS list using a bash array
2021-06-15 02:23:05 +02:00
Balint Reczey
f97b19554f
Use eatmydata by default
...
Since only the dpkg is wrapped in eatmydata it should be the safe and fast
default. Eatmydata is widely used around apt thus it should be a serious bug
if a package can't be installed with eatmydata in use.
2021-03-26 15:41:10 +01:00
Balint Reczey
a5ee35c812
Use eatmydata only with the dpkg command
...
Eatmydata wrapping the build as well could break tests.
Thanks: Julian Andres Klode for suggesting this solution
2021-03-26 15:40:25 +01:00
Dan Streetman
d19ac157b0
mk-sbuild: don't print usage on stderr
...
Signed-off-by: Dan Streetman <ddstreet@canonical.com>
2021-02-02 06:25:12 -05:00
Colin Watson
ae9c80de37
mk-sbuild: Set personality=linux32 on armel/armhf
2019-06-04 11:07:10 +01:00
Mattia Rizzolo
dc5e586b99
mk-sbuild: disable recommends also within the chroot
...
LP: #1268684
Thanks: Steve Beattie for the patch.
Signed-off-by: Mattia Rizzolo <mattia@debian.org>
2018-10-23 22:06:10 +02:00
Mattia Rizzolo
c12595fa61
retro-actively close old bug in an old changelog.
...
Signed-off-by: Mattia Rizzolo <mattia@debian.org>
2018-10-23 21:59:14 +02:00
Adam Conrad
06fc171980
mk-sbuild: Initialise ubuntu_dist_ge vars so unknown releases work.
2018-04-24 05:28:44 -06:00
Adam Conrad
92822060b2
mk-sbuild: Add ubuntu_dist_ge and use it to set BUILD_PKGS for Ubuntu.
2018-04-24 05:12:33 -06:00
Mattia Rizzolo
ddbd7f73c3
mk-sbuild: fix syntax error caused by 96d698e4290b
...
Signed-off-by: Mattia Rizzolo <mattia@debian.org>
2018-04-05 18:53:29 +02:00
Mattia Rizzolo
fc0919ed25
mk-sbuild: indent
...
Gbp-Dch: Ignore
Signed-off-by: Mattia Rizzolo <mattia@debian.org>
2018-04-05 18:51:50 +02:00
Dimitri John Ledkov
96d698e429
Add support for 'overlay' in favor of older 'overlayfs'.
2018-03-23 02:55:01 +00:00
Unit 193
f67601cb0c
mk-sbuild, pull-debian-{debdiff,source}: Switch from httpredir.debian.org to deb.debian.org as the default mirror for Debian
...
Signed-off-by: Mattia Rizzolo <mattia@debian.org>
2017-04-30 18:44:04 +02:00
Adam Conrad
0575dd0112
mk-sbuild: cp localtime and timezone a little harder (LP: #1569400 )
2016-05-09 00:00:40 -06:00
Luke Faraone
a595624527
mk-sbuild: Add --skip-security, like --skip-updates (LP: #1366721 )
2016-05-08 23:26:53 -06:00
Luke Faraone
bae9b3817d
mk-sbuild: Add a --debootstrap-opts argument for arbitrary options.
2016-05-08 23:18:28 -06:00
Adam Conrad
e903bf03d1
mk-sbuild: Remove references to the obsolete arm architecture, and
...
allow armhf and armel to be native on arm64 systems (LP: #1579619 )
2016-05-08 23:09:55 -06:00
Mike Miller
8ac2c33059
mk-sbuild, pull-debian-{debdiff,source}: Use httpredir.debian.org as the
...
default mirror for Debian.
2015-08-22 11:51:04 -04:00
Dimitri John Ledkov
24d9ce3e7c
mk-sbuild: support debootstrap keyring and no-check-gpg
...
options. (Closes: 754327)
2014-12-23 16:14:21 +00:00
Y.C cheng
cbc2e76c74
message fix
2014-07-16 14:46:17 +08:00
Y.C cheng
7f13148ef4
mk-sbuild: better message for cross build, good for new starter
2014-07-16 07:23:54 +08:00
Dimitri John Ledkov
1ecf020703
* Add ppc64el to valid architectures in pbuilder-dist and ubuntu-build.
...
* Simplify mirror detection in mk-sbuild, all supported releases, all
architectures but i386/amd64 are on ports.ubuntu.com
2013-12-20 15:03:55 +00:00
Dmitrijs Ledkovs
06874a8bad
add arm64 knowledge to mk-sbuild, ubuntu-build, pbuilder-dist.
2013-10-13 21:54:31 +01:00
Marc Deslauriers
bcdc6abbf8
mk-sbuild: allow specifying the schroot profile.
2013-05-06 09:47:36 -04:00
Colin Watson
19628caf13
mk-sbuild: Fix comment syntax in proxy configuration (LP: #1163300 ).
2013-04-02 13:55:07 +01:00
Stefano Rivera
374d33464c
mk-sbuild: Use the sbuild schroot profile
2013-02-25 23:29:12 +02:00
Scott Moser
59a79376cb
mk-sbuild: change lvm volume names to include target (LP: #1087194 )
2013-02-13 14:12:06 -05:00
Dmitrijs Ledkovs
c6c7699c86
mk-sbuild: Change cross-chroot's lvm volume names to be inline with non-lvm/sbuild.
2013-02-12 11:03:04 +00:00
Colin Watson
77bde6c1c0
mk-sbuild: Drop -cross from cross-building chroots, in line with sbuild.
2013-02-05 19:46:02 +00:00
Stefano Rivera
957a73772d
mk-sbuild: Name cross chroots after the build architecture and target
...
(LP: #1087194 )
2013-01-12 15:26:08 +02:00
Stefano Rivera
07c09fee81
Use the right suite in cross-builds too
2012-11-06 11:48:51 +02:00
Stefano Rivera
143027d9fc
Enable the proposed pocket by default
2012-11-06 11:45:24 +02:00
Steve Langasek
a8c89ab3fc
Also add dpkg-cross; this is the agreed package to hold things like config.site
...
overrides for cross-building.
2012-10-31 14:01:14 +01:00
Steve Langasek
9ec2dda809
Add pkg-config-$target_tuple to the cross-build package list, per Wookey's
...
comments on the contents of the pending cross-build-essential.
2012-10-30 15:03:26 +01:00
Steve Langasek
6844b5aa48
suppress the eternally annoying warning message from dpkg-architecture
2012-10-28 18:33:04 +01:00
Steve Langasek
c6c7cc7c1f
Initial support for setting up cross-build chroots.
2012-10-28 18:18:04 +01:00
Mathieu Trudel-Lapierre
885c0f90ec
mk-sbuild: use and update messages to suggest using the source:$chroot way
...
of referring to source chroots instead of $chroot-source; since the latter
does not work with btrfs snapshot-based chroots.
2012-06-06 09:55:08 -04:00