Skip to content

Commit

Permalink
Improve Debian Trixie container.
Browse files Browse the repository at this point in the history
Signed-off-by: Erez Geva <ErezGeva2@gmail.com>
  • Loading branch information
erezgeva committed Jan 9, 2025
1 parent be38f9d commit 004021f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
20 changes: 14 additions & 6 deletions debian/inst_arc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,23 @@
###############################################################################
main()
{
if [[ -n "$1" ]]; then
local -r a="$1"
if [[ -n "$a" ]]; then
local n
local -r a="$1"
local -a l
for n in libgcrypt20-dev
do l+=($n:$a);done
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y --no-install-recommends ${l[@]}
do
local p="$n:$a"
if ! dpkg-query -s $p 2>/dev/null |\
grep -q '^Status: install ok installed'; then
l+=($p)
fi
done
if [[ ${#l[@]} -gt 0 ]]; then
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y --no-install-recommends ${l[@]}
fi
fi
}
main "$@"
2 changes: 1 addition & 1 deletion debian/make_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ main()
local -r arch=$(dpkg --print-architecture) # amd64
local -r archs='arm64'
local -r dpkgs_bookworm=''
local -r dpkgs_trixie='librtpi-dev@'
local -r dpkgs_trixie='librtpi-dev@ libgcrypt20-dev@'
local dpkgs_arch='libstdc++6 pkgconf
libpython3-all-dev ruby-dev tcl-dev libpython3-dev libperl-dev
libfastjson-dev libgtest-dev libgmock-dev lua-posix libjson-c-dev
Expand Down
2 changes: 1 addition & 1 deletion tools/update_goarch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ sub main
$dpkg_arc=`which dpkg-architecture 2> /dev/null`;
$dpkg_arc =~ s/\n//;
# Make sure we have the tool
return if $dpkg_arc eq "";
return unless $dpkg_arc ne '' and -x $dpkg_arc;
my $fname = 'goarch.sh';
open OUT, "> $fname";
# Header
Expand Down

0 comments on commit 004021f

Please sign in to comment.