Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package opensuse-mariadb-image for 
openSUSE:Factory checked in at 2023-10-05 20:05:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/opensuse-mariadb-image (Old)
 and      /work/SRC/openSUSE:Factory/.opensuse-mariadb-image.new.28202 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "opensuse-mariadb-image"

Thu Oct  5 20:05:12 2023 rev:10 rq:1115810 version:1.0.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/opensuse-mariadb-image/opensuse-mariadb-image.changes
    2021-03-17 20:20:14.591341161 +0100
+++ 
/work/SRC/openSUSE:Factory/.opensuse-mariadb-image.new.28202/opensuse-mariadb-image.changes
 2023-10-05 20:06:34.222120269 +0200
@@ -1,0 +2,6 @@
+Thu Oct 05 11:48:48 UTC 2023 - ku...@suse.com
+
+- Update to version 1696506425.096c371:
+  * awk is needed for entrypoint.sh
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ opensuse-mariadb-image.kiwi ++++++
--- /var/tmp/diff_new_pack.MO7Omm/_old  2023-10-05 20:06:35.794177062 +0200
+++ /var/tmp/diff_new_pack.MO7Omm/_new  2023-10-05 20:06:35.798177207 +0200
@@ -52,6 +52,7 @@
     <package name="timezone"/>
     <package name="util-linux"/><!-- su is needed for entrypoint.sh -->
     <package name="pwgen"/><!-- pwgen is needed for entrypoint.sh -->
+    <package name="gawk"/><!-- awk is needed for entrypoint.sh -->
   </packages>
 </image>
 

++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.MO7Omm/_old  2023-10-05 20:06:35.858179374 +0200
+++ /var/tmp/diff_new_pack.MO7Omm/_new  2023-10-05 20:06:35.862179519 +0200
@@ -1,7 +1,7 @@
 <servicedata>
  <service name="tar_scm">
     <param name="url">https://github.com/openSUSE/container-images.git</param>
-    <param 
name="changesrevision">ef1b230a05278da766822fdcc441675bbaf9eab1</param>
+    <param 
name="changesrevision">c115c8c8bdad0a0cb155b89fafffd1d8ac8bdc88</param>
  </service>
 </servicedata>
 (No newline at EOF)

++++++ root.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/root/entrypoint.sh new/root/entrypoint.sh
--- old/root/entrypoint.sh      2021-03-17 15:15:31.000000000 +0100
+++ new/root/entrypoint.sh      1970-01-01 01:00:00.000000000 +0100
@@ -1,211 +0,0 @@
-#!/bin/bash
-
-# This file is based on mariadb-10.3.18.tar.gz, which is GPLv2,
-# and adjusted for openSUSE Tumbleweeds mariadb package.
-
-set -eo pipefail
-shopt -s nullglob
-
-export PATH=/usr/sbin:/sbin:${PATH}
-
-# if command starts with an option, prepend mysqld
-if [ "${1:0:1}" = '-' ]; then
-       set -- mysqld "$@"
-fi
-
-# skip setup if they want an option that stops mysqld
-wantHelp=
-for arg; do
-       case "$arg" in
-               -'?'|--help|--print-defaults|-V|--version)
-                       wantHelp=1
-                       break
-                       ;;
-       esac
-done
-
-# usage: file_env VAR [DEFAULT]
-#    ie: file_env 'XYZ_DB_PASSWORD' 'example'
-# (will allow for "$XYZ_DB_PASSWORD_FILE" to fill in the value of
-#  "$XYZ_DB_PASSWORD" from a file, especially for Docker's secrets feature)
-file_env() {
-       local var="$1"
-       local fileVar="${var}_FILE"
-       local def="${2:-}"
-       if [ "${!var:-}" ] && [ "${!fileVar:-}" ]; then
-               echo >&2 "error: both $var and $fileVar are set (but are 
exclusive)"
-               exit 1
-       fi
-       local val="$def"
-       if [ "${!var:-}" ]; then
-               val="${!var}"
-       elif [ "${!fileVar:-}" ]; then
-               val="$(< "${!fileVar}")"
-       fi
-       export "$var"="$val"
-       unset "$fileVar"
-}
-
-_check_config() {
-       toRun=( "$@" --verbose --help --log-bin-index="$(mktemp -u)" )
-       if ! errors="$("${toRun[@]}" 2>&1 >/dev/null)"; then
-               cat >&2 <<-EOM
-
-                       ERROR: mysqld failed while attempting to check config
-                       command was: "${toRun[*]}"
-
-                       $errors
-               EOM
-               exit 1
-       fi
-}
-
-# Loads various settings that are used elsewhere in the script
-# This should be called after _check_config, but before any other functions
-_setup_env() {
-       # Initialize values that might be stored in a file
-       file_env 'MYSQL_ROOT_HOST' '%'
-       file_env 'MYSQL_DATABASE'
-       file_env 'MYSQL_USER'
-       file_env 'MYSQL_PASSWORD'
-       file_env 'MYSQL_ROOT_PASSWORD'
-}
-
-# Fetch value from server config
-# We use mysqld --verbose --help instead of my_print_defaults because the
-# latter only show values present in config files, and not server defaults
-_get_config() {
-       local conf="$1"; shift
-       "$@" --verbose --help --log-bin-index="$(mktemp -u)" 2>/dev/null | grep 
^$conf | awk '$1 == "'"$conf"'" { print $2; exit }'
-}
-
-# allow the container to be started with `--user`
-if [ "$1" = 'mysqld' -a -z "$wantHelp" -a "$(id -u)" = '0' ]; then
-       _check_config "$@"
-        # Load various environment variables
-       _setup_env "$@"
-       mkdir -p /run/mysql
-       chown mysql:mysql /run/mysql
-       DATADIR="$(_get_config 'datadir' "$@")"
-       mkdir -p "$DATADIR"
-       chown -R mysql:mysql "$DATADIR"
-       exec su mysql -s /bin/bash -c "$BASH_SOURCE $@"
-fi
-
-if [ "$1" = 'mysqld' -a -z "$wantHelp" ]; then
-       # still need to check config, container may have started with --user
-        _check_config "$@"
-       # Get config
-       DATADIR="$(_get_config 'datadir' "$@")"
-
-       if [ ! -d "$DATADIR/mysql" ]; then
-               if [ -z "$MYSQL_ROOT_PASSWORD" -a -z 
"$MYSQL_ALLOW_EMPTY_PASSWORD" -a -z "$MYSQL_RANDOM_ROOT_PASSWORD" ]; then
-                       echo >&2 'error: database is uninitialized and password 
option is not specified '
-                       echo >&2 '  You need to specify one of 
MYSQL_ROOT_PASSWORD, MYSQL_ALLOW_EMPTY_PASSWORD and MYSQL_RANDOM_ROOT_PASSWORD'
-                       exit 1
-               fi
-
-               mkdir -p "$DATADIR"
-
-               echo 'Initializing database'
-               mysql_install_db --datadir="$DATADIR" 
--auth-root-authentication-method=normal --rpm
-               echo -n `mysql --version | sed -e 's|.*Distrib 
\(.*\)-MariaDB.*|\1|g' -e 's|\.[0-9]\+$||'` > "$DATADIR"/mysql_upgrade_info
-               chmod 640 "$DATADIR/mysql_upgrade_info"
-               echo 'Database initialized'
-
-               SOCKET="$(_get_config 'socket' "$@")"
-               echo "Found socket: $SOCKET"
-               "$@" --verbose --skip-networking --socket="${SOCKET}" &
-               pid="$!"
-
-               mysql=( mysql --protocol=socket -uroot -hlocalhost 
--socket="${SOCKET}" )
-
-               for i in {30..0}; do
-                       if echo 'SELECT 1' | "${mysql[@]}" &> /dev/null; then
-                               break
-                       fi
-                       echo 'MySQL init process in progress...'
-                       sleep 1
-               done
-               if [ "$i" = 0 ]; then
-                       echo >&2 'MySQL init process failed.'
-                       rm -rfv "$DATADIR/*"
-                       exit 1
-               fi
-
-               if [ -z "$MYSQL_INITDB_SKIP_TZINFO" ]; then
-                       # sed is for https://bugs.mysql.com/bug.php?id=20545
-                       mysql_tzinfo_to_sql /usr/share/zoneinfo | sed 's/Local 
time zone must be set--see zic manual page/FCTY/' | "${mysql[@]}" mysql
-               fi
-
-               if [ ! -z "$MYSQL_RANDOM_ROOT_PASSWORD" ]; then
-                       export MYSQL_ROOT_PASSWORD="$(pwgen -1 32)"
-                       echo "GENERATED ROOT PASSWORD: $MYSQL_ROOT_PASSWORD"
-               fi
-
-               rootCreate=
-               # default root to listen for connections from anywhere
-               if [ ! -z "$MYSQL_ROOT_HOST" -a "$MYSQL_ROOT_HOST" != 
'localhost' ]; then
-                       # no, we don't care if read finds a terminating 
character in this heredoc
-                       # 
https://unix.stackexchange.com/questions/265149/why-is-set-o-errexit-breaking-this-read-heredoc-expression/265151#265151
-                       read -r -d '' rootCreate <<-EOSQL || true
-                               CREATE USER 'root'@'${MYSQL_ROOT_HOST}' 
IDENTIFIED BY '${MYSQL_ROOT_PASSWORD}' ;
-                               GRANT ALL ON *.* TO 'root'@'${MYSQL_ROOT_HOST}' 
WITH GRANT OPTION ;
-                       EOSQL
-               fi
-
-               "${mysql[@]}" <<-EOSQL
-                       -- What's done in this file shouldn't be replicated
-                       --  or products like mysql-fabric won't work
-                       SET @@SESSION.SQL_LOG_BIN=0;
-
-                       DELETE FROM mysql.user WHERE user NOT IN ('mysql.sys', 
'mysqlxsys', 'root') OR host NOT IN ('localhost') ;
-                       SET PASSWORD FOR 
'root'@'localhost'=PASSWORD('${MYSQL_ROOT_PASSWORD}') ;
-                       GRANT ALL ON *.* TO 'root'@'localhost' WITH GRANT 
OPTION ;
-                       ${rootCreate}
-                       DROP DATABASE IF EXISTS test ;
-                       FLUSH PRIVILEGES ;
-               EOSQL
-
-               if [ ! -z "$MYSQL_ROOT_PASSWORD" ]; then
-                       mysql+=( -p"${MYSQL_ROOT_PASSWORD}" )
-               fi
-
-               if [ "$MYSQL_DATABASE" ]; then
-                       echo "CREATE DATABASE IF NOT EXISTS \`$MYSQL_DATABASE\` 
;" | "${mysql[@]}"
-                       mysql+=( "$MYSQL_DATABASE" )
-               fi
-
-               if [ "$MYSQL_USER" -a "$MYSQL_PASSWORD" ]; then
-                       echo "CREATE USER '$MYSQL_USER'@'%' IDENTIFIED BY 
'$MYSQL_PASSWORD' ;" | "${mysql[@]}"
-
-                       if [ "$MYSQL_DATABASE" ]; then
-                               echo "GRANT ALL ON \`$MYSQL_DATABASE\`.* TO 
'$MYSQL_USER'@'%' ;" | "${mysql[@]}"
-                       fi
-
-                       echo 'FLUSH PRIVILEGES ;' | "${mysql[@]}"
-               fi
-
-               echo
-               for f in /docker-entrypoint-initdb.d/*; do
-                       case "$f" in
-                               *.sh)     echo "$0: running $f"; . "$f" ;;
-                               *.sql)    echo "$0: running $f"; "${mysql[@]}" 
< "$f"; echo ;;
-                               *.sql.gz) echo "$0: running $f"; gunzip -c "$f" 
| "${mysql[@]}"; echo ;;
-                               *)        echo "$0: ignoring $f" ;;
-                       esac
-                       echo
-               done
-
-               if ! kill -s TERM "$pid" || ! wait "$pid"; then
-                       echo >&2 'MySQL init process failed.'
-                       exit 1
-               fi
-
-               echo
-               echo 'MySQL init process done. Ready for start up.'
-               echo
-       fi
-fi
-
-exec "$@"

++++++ root.obsinfo ++++++
--- /var/tmp/diff_new_pack.MO7Omm/_old  2023-10-05 20:06:35.946182554 +0200
+++ /var/tmp/diff_new_pack.MO7Omm/_new  2023-10-05 20:06:35.950182699 +0200
@@ -1,6 +1,5 @@
 name: root
 version: 
-mtime: 1615990531
-commit: ef1b230a05278da766822fdcc441675bbaf9eab1
-
+mtime: 1696506425
+commit: 096c3719f91669cad191e9cf005fbdeb140f8a18
 

Reply via email to