dotnet / dotnet-buildtools-prereqs-docker

Used to maintain the Docker images hosted at the mcr.microsoft.com/dotnet-buildtools/prereqs image repository
MIT License
53 stars 98 forks source link

Installing Azure CLI / Powershell on images caused issues #1116

Open akoeplinger opened 4 days ago

akoeplinger commented 4 days ago

@mmitche @mthalman the recent updates to the images caused failures in e.g. the sdk official build:

  1. The ubuntu-22.04-debpkg container is missing sudo now because it's deriving from coredeps. Full package diff:
--- /Users/alexander/Desktop/oldubuntu.txt  2024-06-28 11:05:14
+++ /Users/alexander/Desktop/newubuntu.txt  2024-06-28 11:05:02
@@ -1,17 +1,14 @@
 adduser
 adwaita-icon-theme
-apt-transport-https
 apt
 at-spi2-core
 autoconf
 automake
 autopoint
 autotools-dev
-azure-cli
 base-files
 base-passwd
 bash
-binfmt-support
 binutils-common
 binutils-x86-64-linux-gnu
 binutils
@@ -20,9 +17,6 @@
 build-essential
 bzip2
 ca-certificates
-clang-14
-cmake-data
-cmake
 comerr-dev
 coreutils
 cpp-11
@@ -40,7 +34,6 @@
 debugedit
 devscripts
 dh-autoreconf
-dh-elpa-helper
 dh-strip-nondeterminism
 diffstat
 diffutils
@@ -52,8 +45,6 @@
 dput
 dwz
 e2fsprogs
-elfutils
-emacsen-common
 fakeroot
 file
 findutils
@@ -66,7 +57,6 @@
 gcc-11
 gcc-12-base
 gcc
-gdb
 gettext-base
 gettext
 gir1.2-glib-2.0
@@ -85,6 +75,7 @@
 grep
 groff-base
 gsettings-desktop-schemas
+gss-ntlmssp
 gtk-update-icon-cache
 gyp
 gzip
@@ -99,8 +90,6 @@
 jq
 krb5-multidev
 less
-lib32gcc-s1
-lib32stdc++6
 libacl1
 libalgorithm-diff-perl
 libalgorithm-diff-xs-perl
@@ -111,11 +100,9 @@
 libapt-pkg6.0
 libarchive-cpio-perl
 libarchive-zip-perl
-libarchive13
 libargon2-1
 libarray-intspan-perl
 libasan6
-libasm1
 libassuan0
 libatk-bridge2.0-0
 libatk1.0-0
@@ -131,10 +118,8 @@
 libavahi-common3
 libb-hooks-endofscope-perl
 libb-hooks-op-check-perl
-libbabeltrace1
 libbinutils
 libblkid1
-libboost-regex1.74.0
 libbrotli1
 libbsd0
 libbz2-1.0
@@ -142,9 +127,7 @@
 libc-bin
 libc-dev-bin
 libc-devtools
-libc6-dbg
 libc6-dev
-libc6-i386
 libc6
 libcairo-gobject2
 libcairo2
@@ -153,9 +136,7 @@
 libcapture-tiny-perl
 libcbor0.8
 libcc1-0
-libclang-common-14-dev
 libclang-cpp14
-libclang1-14
 libclass-data-inheritable-perl
 libclass-method-modifiers-perl
 libclass-xsaccessor-perl
@@ -174,6 +155,7 @@
 libctf0
 libcups2
 libcurl3-gnutls
+libcurl4-openssl-dev
 libcurl4
 libdata-dpath-perl
 libdata-dump-perl
@@ -188,8 +170,6 @@
 libdconf1
 libdebconfclient0
 libdebhelper-perl
-libdebuginfod-common
-libdebuginfod1
 libdeflate0
 libdevel-callchecker-perl
 libdevel-size-perl
@@ -213,11 +193,11 @@
 liberror-perl
 libexception-class-perl
 libexif12
+libexpat1-dev
 libexpat1
 libexporter-tiny-perl
 libext2fs2
 libfakeroot
-libffi-dev
 libffi8
 libfido2-1
 libfile-basedir-perl
@@ -238,7 +218,6 @@
 libfontenc1
 libfreetype6
 libfribidi0
-libgc1
 libgcc-11-dev
 libgcc-s1
 libgcrypt20
@@ -306,7 +285,6 @@
 libipc-run-perl
 libipc-run3-perl
 libipc-system-simple-perl
-libipt2
 libisl23
 libiterator-perl
 libiterator-util-perl
@@ -319,15 +297,17 @@
 libjs-highlight.js
 libjs-inherits
 libjs-is-typedarray
+libjs-jquery
 libjs-psl
 libjs-source-map
+libjs-sphinxdoc
 libjs-sprintf-js
 libjs-typedarray-to-buffer
+libjs-underscore
 libjson-c5
 libjson-maybexs-perl
 libjson-perl
 libjson-xs-perl
-libjsoncpp25
 libk5crypto3
 libkadm5clnt-mit12
 libkadm5srv-mit12
@@ -347,7 +327,6 @@
 liblist-someutils-perl
 liblist-someutils-xs-perl
 liblist-utilsby-perl
-liblldb-14-dev
 liblldb-14
 libllvm11
 libllvm14
@@ -388,7 +367,6 @@
 libmpfr6
 libnamespace-autoclean-perl
 libnamespace-clean-perl
-libncurses-dev
 libncurses6
 libncursesw6
 libnet-dbus-perl
@@ -401,6 +379,7 @@
 libnetaddr-ip-perl
 libnettle8
 libnghttp2-14
+libnode-dev
 libnode72
 libnotify-bin
 libnotify4
@@ -411,8 +390,6 @@
 libnuma-dev
 libnuma1
 libnumber-compare-perl
-libobjc-11-dev
-libobjc4
 libobject-id-perl
 libonig5
 libp11-kit0
@@ -436,7 +413,6 @@
 libperl5.34
 libperlio-gzip-perl
 libperlio-utf8-strict-perl
-libpfm4
 libphobos2-ldc-shared98
 libpipeline1
 libpixman-1-0
@@ -446,7 +422,9 @@
 libproc-processtable-perl
 libprocps8
 libpsl5
+libpython3-dev
 libpython3-stdlib
+libpython3.10-dev
 libpython3.10-minimal
 libpython3.10-stdlib
 libpython3.10
@@ -459,7 +437,6 @@
 libref-util-xs-perl
 libregexp-pattern-license-perl
 libregexp-pattern-perl
-librhash0
 librole-tiny-perl
 librsvg2-2
 librsvg2-common
@@ -482,8 +459,6 @@
 libsmartcols1
 libsocket6-perl
 libsort-versions-perl
-libsource-highlight-common
-libsource-highlight4v5
 libsqlite3-0
 libss2
 libssh-4
@@ -505,8 +480,10 @@
 libsyntax-keyword-try-perl
 libsys-hostname-long-perl
 libsystemd0
+libtalloc2
 libtasn1-6
 libterm-readkey-perl
+libtevent0
 libtext-glob-perl
 libtext-iconv-perl
 libtext-levenshteinxs-perl
@@ -519,7 +496,6 @@
 libtime-duration-perl
 libtime-moment-perl
 libtimedate-perl
-libtinfo-dev
 libtinfo6
 libtirpc-common
 libtirpc-dev
@@ -551,6 +527,7 @@
 libwayland-client0
 libwayland-cursor0
 libwayland-egl1
+libwbclient0
 libwebp7
 libwww-perl
 libwww-robotrules-perl
@@ -590,7 +567,6 @@
 libxml-sax-perl
 libxml-twig-perl
 libxml-xpathengine-perl
-libxml2-dev
 libxml2
 libxmu6
 libxmuu1
@@ -607,18 +583,10 @@
 libxxhash0
 libyaml-0-2
 libyaml-libyaml-perl
-libz3-4
-libz3-dev
 libzstd1
 licensecheck
 lintian
 linux-libc-dev
-lldb-14
-llvm-14-dev
-llvm-14-linker-tools
-llvm-14-runtime
-llvm-14-tools
-llvm-14
 locales
 login
 logsave
@@ -639,23 +607,43 @@
 ncurses-bin
 netbase
 networkd-dispatcher
+node-abab
 node-abbrev
+node-agent-base
 node-ansi-regex
 node-ansi-styles
 node-ansistyles
+node-aproba
+node-archy
 node-are-we-there-yet
+node-argparse
 node-arrify
 node-asap
 node-asynckit
 node-balanced-match
 node-brace-expansion
+node-builtins
+node-cacache
+node-chalk
 node-chownr
 node-clean-yaml-object
+node-cli-table
+node-clone
 node-color-convert
 node-color-name
+node-colors
+node-columnify
+node-combined-stream
 node-commander
+node-console-control-strings
+node-copy-concurrently
 node-core-util-is
+node-coveralls
+node-cssom
+node-cssstyle
+node-debug
 node-decompress-response
+node-defaults
 node-delayed-stream
 node-delegates
 node-depd
@@ -664,16 +652,26 @@
 node-end-of-stream
 node-err-code
 node-escape-string-regexp
+node-esprima
+node-events
 node-fancy-log
+node-fetch
 node-foreground-child
+node-form-data
+node-fs-write-stream-atomic
 node-fs.realpath
 node-function-bind
+node-gauge
 node-get-stream
 node-glob
+node-got
+node-graceful-fs
 node-growl
+node-gyp
 node-has-flag
 node-has-unicode
 node-hosted-git-info
+node-https-proxy-agent
 node-iconv-lite
 node-iferr
 node-imurmurhash
@@ -688,20 +686,36 @@
 node-is-typedarray
 node-isarray
 node-isexe
+node-js-yaml
+node-jsdom
+node-json-buffer
 node-json-parse-better-errors
 node-jsonparse
 node-kind-of
+node-lcov-parse
 node-lodash-packages
+node-log-driver
 node-lowercase-keys
 node-lru-cache
+node-mime-types
+node-mime
 node-mimic-response
 node-minimatch
 node-minimist
 node-minipass
+node-mkdirp
+node-move-concurrently
+node-ms
 node-mute-stream
 node-negotiator
+node-nopt
+node-normalize-package-data
 node-npm-bundled
+node-npm-package-arg
+node-npmlog
+node-object-assign
 node-once
+node-opener
 node-osenv
 node-p-cancelable
 node-p-map
@@ -710,38 +724,63 @@
 node-promise-inflight
 node-promise-retry
 node-promzard
+node-psl
 node-pump
+node-punycode
 node-quick-lru
+node-read-package-json
 node-read
 node-readable-stream
 node-resolve
 node-retry
+node-rimraf
+node-run-queue
 node-safe-buffer
+node-semver
 node-set-blocking
 node-signal-exit
 node-slash
 node-slice-ansi
+node-source-map-support
 node-source-map
 node-spdx-correct
 node-spdx-exceptions
 node-spdx-expression-parse
 node-spdx-license-ids
 node-sprintf-js
+node-ssri
+node-stack-utils
 node-stealthy-require
 node-string-decoder
+node-string-width
+node-strip-ansi
 node-supports-color
+node-tap-mocha-reporter
+node-tap-parser
+node-tap
+node-tar
 node-text-table
 node-time-stamp
 node-tmatch
+node-tough-cookie
 node-typedarray-to-buffer
+node-unique-filename
 node-universalify
 node-util-deprecate
 node-validate-npm-package-license
+node-validate-npm-package-name
+node-wcwidth.js
 node-webidl-conversions
 node-whatwg-fetch
+node-which
+node-wide-align
 node-wrappy
+node-write-file-atomic
+node-ws
 node-yallist
+nodejs-doc
 nodejs
+npm
 openssh-client
 openssl
 passwd
@@ -753,6 +792,7 @@
 perl
 pinentry-curses
 po-debconf
+powershell
 procps
 publicsuffix
 python-apt-common
@@ -761,20 +801,24 @@
 python3-chardet
 python3-dbus
 python3-debian
+python3-dev
+python3-distutils
 python3-gi
 python3-gpg
 python3-idna
-python3-lldb-14
+python3-lib2to3
 python3-magic
 python3-minimal
+python3-pip
 python3-pkg-resources
-python3-pygments
 python3-requests
+python3-setuptools
 python3-six
 python3-unidiff
 python3-urllib3
+python3-wheel
 python3-xdg
-python3-yaml
+python3.10-dev
 python3.10-minimal
 python3.10
 python3
@@ -785,7 +829,6 @@
 session-migration
 shared-mime-info
 strace
-sudo
 systemd-sysv
 systemd-timesyncd
 systemd
@@ -805,7 +848,6 @@
 x11-common
 x11-utils
 x11-xserver-utils
-xauth
 xdg-user-dirs
 xdg-utils
 xkb-data
  1. The cbl-mariner-2.0-fpm image now has dotnet-host package installed which causes this issue in the sdk build:
file /usr/share/dotnet/ThirdPartyNotices.txt from install of dotnet-host-9.0.0-0.1.preview.7.24327.4.x86_64 conflicts with file from package dotnet-host-8.0.6-1.x86_64
file /usr/share/dotnet/dotnet from install of dotnet-host-9.0.0-0.1.preview.7.24327.4.x86_64 conflicts with file from package dotnet-host-8.0.6-1.x86_64
error MSB3073: The command "sudo rpm -iv /__w/1/s/artifacts/obj/redist-installer/Release/downloads/dotnet-host-9.0.0-preview.7.24327.4-x64.rpm" exited with code 1.

Diff of packages

--- /Users/alexander/Desktop/oldmariner.txt 2024-06-28 11:11:45
+++ /Users/alexander/Desktop/newmariner.txt 2024-06-28 11:11:48
@@ -3,6 +3,7 @@
 audit-libs.x86_64
 autoconf.noarch
 automake.noarch
+azure-cli.x86_64
 bash.x86_64
 binutils.x86_64
 binutils-devel.x86_64
@@ -29,6 +30,10 @@
 diffutils.x86_64
 docbook-dtd-xml.noarch
 docbook-style-xsl.noarch
+dotnet-host.x86_64
+dotnet-hostfxr-8.0.x86_64
+dotnet-runtime-8.0.x86_64
+dotnet-runtime-deps-8.0.x86_64
 e2fsprogs-libs.x86_64
 elfutils.x86_64
 elfutils-default-yama-scope.noarch
@@ -318,6 +323,7 @@
 pkgconf-pkg-config.x86_64
 popt.x86_64
 popt-devel.x86_64
+powershell.x86_64
 python3.x86_64
 python3-libs.x86_64
 python3-lxml.x86_64

I don't know if it impacts other repositories too but maybe we should revert the changes for now?