mirror of
https://github.com/Fishwaldo/build.git
synced 2025-03-15 11:21:29 +00:00
Better conditions for newer distribution (#2768)
This commit is contained in:
parent
dc2076e99f
commit
3f4c73727a
13 changed files with 18 additions and 19 deletions
|
@ -52,7 +52,7 @@ create_chroot()
|
|||
else
|
||||
local mirror_addr="http://${apt_mirror[${release}]}"
|
||||
fi
|
||||
debootstrap --variant=buildd --components="${components[${release}]}" --arch="${arch}" --foreign --include="${includes}" "${release}" "${target_dir}" "${mirror_addr}"
|
||||
debootstrap --variant=buildd --components="${components[${release}]}" --arch="${arch}" $DEBOOTSTRAP_OPTION --foreign --include="${includes}" "${release}" "${target_dir}" "${mirror_addr}"
|
||||
[[ $? -ne 0 || ! -f "${target_dir}"/debootstrap/debootstrap ]] && exit_with_error "Create chroot first stage failed"
|
||||
cp /usr/bin/${qemu_binary[$arch]} "${target_dir}"/usr/bin/
|
||||
[[ ! -f "${target_dir}"/usr/share/keyrings/debian-archive-keyring.gpg ]] && \
|
||||
|
@ -81,7 +81,7 @@ create_chroot()
|
|||
mkdir -p "${target_dir}"/var/lock
|
||||
fi
|
||||
chroot "${target_dir}" /bin/bash -c "/usr/sbin/update-ccache-symlinks"
|
||||
[[ $release == focal || $release == groovy || $release == hirsute || $release == sid ]] && chroot "${target_dir}" /bin/bash -c "ln -s /usr/bin/python3 /usr/bin/python"
|
||||
[[ $release == bullseye || $release == focal || $release == groovy || $release == hirsute || $release == sid ]] && chroot "${target_dir}" /bin/bash -c "ln -s /usr/bin/python3 /usr/bin/python"
|
||||
touch "${target_dir}"/root/.debootstrap-complete
|
||||
display_alert "Debootstrap complete" "${release}/${arch}" "info"
|
||||
} #############################################################################
|
||||
|
|
|
@ -12,10 +12,10 @@ local package_component="${release}-desktop"
|
|||
package_checkbuild()
|
||||
{
|
||||
# we don't support running kernels < 3.13 on Stretch or Bionic
|
||||
[[ $release != stretch && $release != bionic && $release != disco && $release != buster ]]
|
||||
[[ $release == jessie || $release == xenial ]]
|
||||
}
|
||||
|
||||
package_checkinstall()
|
||||
{
|
||||
[[ ( $LINUXFAMILY == sun*i || $LINUXFAMILY == pine64 ) && $BRANCH == default && $RELEASE != stretch && $RELEASE != bionic && $BUILD_DESKTOP == yes ]]
|
||||
[[ ( $LINUXFAMILY == sun*i || $LINUXFAMILY == pine64 ) && $BRANCH == default && ( $RELEASE == jessie && $RELEASE == xenial ) && $BUILD_DESKTOP == yes ]]
|
||||
}
|
||||
|
|
|
@ -12,10 +12,10 @@ local package_component="${release}-desktop"
|
|||
package_checkbuild()
|
||||
{
|
||||
# we don't support running kernels < 3.13 on Stretch or Bionic
|
||||
[[ $arch == armhf && $release != stretch && $release != bionic && $release != buster && $release != disco ]]
|
||||
[[ $arch == armhf && ( $release == jessie || $release == xenial ) ]]
|
||||
}
|
||||
|
||||
package_checkinstall()
|
||||
{
|
||||
[[ $LINUXFAMILY == sun*i && $BRANCH == default && $RELEASE != stretch && $RELEASE != bionic && $BUILD_DESKTOP == yes ]]
|
||||
[[ $LINUXFAMILY == sun*i && $BRANCH == default && ( $release == jessie || $release == xenial ) && $BUILD_DESKTOP == yes ]]
|
||||
}
|
||||
|
|
|
@ -12,10 +12,10 @@ local package_component="${release}-desktop"
|
|||
package_checkbuild()
|
||||
{
|
||||
# we don't support running kernels < 3.13 on Stretch or Bionic
|
||||
[[ $release != stretch && $release != bionic && $release != buster && $release != disco ]]
|
||||
[[ $release == jessie || $release == xenial ]]
|
||||
}
|
||||
|
||||
package_checkinstall()
|
||||
{
|
||||
[[ ( $LINUXFAMILY == sun*i || $LINUXFAMILY == pine64 ) && $RELEASE != stretch && $RELEASE != bionic && $BRANCH == default && $BUILD_DESKTOP == yes ]]
|
||||
[[ ( $LINUXFAMILY == sun*i || $LINUXFAMILY == pine64 ) && $BRANCH == default && ( $RELEASE == jessie && $RELEASE == xenial ) && $BUILD_DESKTOP == yes ]]
|
||||
}
|
||||
|
|
|
@ -12,8 +12,7 @@ local package_component="${release}-desktop"
|
|||
package_checkbuild()
|
||||
{
|
||||
# we don't support running kernels < 3.13 on Stretch or Bionic
|
||||
[[ $release != stretch && $release != bionic ]]
|
||||
[[ $release != stretch && $release != bionic && $release != buster && $release != disco ]]
|
||||
[[ $release == jessie || $release == xenial ]]
|
||||
}
|
||||
|
||||
package_checkinstall()
|
||||
|
|
|
@ -10,7 +10,7 @@ local package_component="${release}-desktop"
|
|||
package_checkbuild()
|
||||
{
|
||||
# we don't support running kernels < 3.13 on Stretch or Bionic
|
||||
[[ $arch == armhf && $release != stretch && $release != bionic ]]
|
||||
[[ $arch == armhf && ( $release == jessie || $release == xenial ) ]]
|
||||
}
|
||||
|
||||
package_checkinstall()
|
||||
|
|
|
@ -11,7 +11,7 @@ local package_component="${release}-desktop"
|
|||
package_checkbuild()
|
||||
{
|
||||
# we don't support running kernels < 3.13 on Stretch or Bionic
|
||||
[[ $arch == armhf && $release != stretch && $release != bionic ]]
|
||||
[[ $arch == armhf && ( $release == jessie || $release == xenial ) ]]
|
||||
}
|
||||
|
||||
package_checkinstall()
|
||||
|
|
|
@ -8,9 +8,9 @@ local package_builddeps="debhelper dpkg-dev libhwloc-dev libncurses5-dev libncur
|
|||
local package_install_target="htop"
|
||||
local package_component="${release}-utils"
|
||||
|
||||
if [[ $release == focal || $release == groovy ]]; then
|
||||
if [[ $release == focal || $release == groovy || $release == bullseye ]]; then
|
||||
package_builddeps+=" python3-minimal:native"
|
||||
else
|
||||
else
|
||||
package_builddeps+=" python-minimal:native"
|
||||
fi
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ local package_component="${release}-desktop"
|
|||
package_checkbuild()
|
||||
{
|
||||
# we don't support running kernels < 3.13 on Stretch or Bionic
|
||||
[[ $arch == armhf && $release != stretch && $release != bionic && $release != buster && $release != disco ]]
|
||||
[[ $arch == armhf && ( $release == jessie || $release == xenial ) ]]
|
||||
}
|
||||
|
||||
package_checkinstall()
|
||||
|
|
|
@ -12,7 +12,7 @@ local package_component="${release}-desktop"
|
|||
package_checkbuild()
|
||||
{
|
||||
# we don't support running kernels < 3.13 on Stretch or Bionic
|
||||
[[ $arch == armhf && $release != stretch && $release != bionic && $release != buster && $release != disco ]]
|
||||
[[ $arch == armhf && ( $release == jessie || $release == xenial ) ]]
|
||||
}
|
||||
|
||||
package_checkinstall()
|
||||
|
|
|
@ -12,7 +12,7 @@ local package_component="${release}-desktop"
|
|||
package_checkbuild()
|
||||
{
|
||||
# we don't support running kernels < 3.13 on Stretch
|
||||
[[ $arch == armhf && $release != stretch ]]
|
||||
[[ $arch == armhf && ( $release == jessie || $release == xenial ) ]]
|
||||
}
|
||||
|
||||
package_checkinstall()
|
||||
|
|
|
@ -13,7 +13,7 @@ local package_component="${release}-desktop"
|
|||
package_checkbuild()
|
||||
{
|
||||
# we don't support running kernels < 3.13 on Stretch or Bionic
|
||||
[[ $release != stretch && $release != bionic && $release != buster && $release != disco ]]
|
||||
[[ $release == jessie || $release == xenial ]]
|
||||
}
|
||||
|
||||
package_checkinstall()
|
||||
|
|
|
@ -3,7 +3,7 @@ local package_name="sunxi-tools"
|
|||
local package_repo="https://github.com/linux-sunxi/sunxi-tools.git"
|
||||
local package_ref="branch:master"
|
||||
local package_upstream_version="1.4.2-2"
|
||||
local package_builddeps="libusb-1.0-0-dev ruby binutils-arm-none-eabi pkg-config u-boot-tools zlib1g-dev"
|
||||
local package_builddeps="libusb-1.0-0-dev ruby binutils-arm-none-eabi pkg-config u-boot-tools zlib1g-dev libfdt-dev"
|
||||
local package_install_target="sunxi-tools"
|
||||
local package_component="${release}-utils"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue