Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package qore-pgsql-module for openSUSE:Factory checked in at 2021-11-23 22:10:28 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/qore-pgsql-module (Old) and /work/SRC/openSUSE:Factory/.qore-pgsql-module.new.1895 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "qore-pgsql-module" Tue Nov 23 22:10:28 2021 rev:6 rq:928414 version:3.1.0+qore1.0.10 Changes: -------- --- /work/SRC/openSUSE:Factory/qore-pgsql-module/qore-pgsql-module.changes 2021-08-01 21:51:40.811233047 +0200 +++ /work/SRC/openSUSE:Factory/.qore-pgsql-module.new.1895/qore-pgsql-module.changes 2021-11-23 22:12:42.094455026 +0100 @@ -1,0 +2,8 @@ +Sun Oct 31 14:21:52 UTC 2021 - Ferdinand Thiessen <r...@fthiessen.de> + +- Update to version 3.1.0 for Qore 1.0.10 + * fixed a bug retrieving numeric data from multiple + SQLStatement::fetchRow() calls + * Use supported APIs for string operations + +------------------------------------------------------------------- Old: ---- module-pgsql-release-0.9.15.tar.gz New: ---- module-pgsql-release-1.0.10.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ qore-pgsql-module.spec ++++++ --- /var/tmp/diff_new_pack.VgXnId/_old 2021-11-23 22:12:42.626453266 +0100 +++ /var/tmp/diff_new_pack.VgXnId/_new 2021-11-23 22:12:42.630453253 +0100 @@ -16,7 +16,7 @@ # -%define qore_version 0.9.15 +%define qore_version 1.0.10 %define module_api %(qore --latest-module-api 2>/dev/null) %define src_name module-pgsql-release-%{qore_version} Name: qore-pgsql-module @@ -39,8 +39,7 @@ BuildRequires: postgresql-devel %endif BuildRequires: qore -BuildRequires: qore-devel >= 0.9 -Requires: %{_bindir}/env +BuildRequires: qore-devel >= %{qore_version} Requires: qore-module(abi)%{?_isa} = %{module_api} %description @@ -62,8 +61,7 @@ %build %cmake -Denable-scu=OFF -%cmake_build -make %{?_smp_mflags} docs +%make_build docs %install %cmake_install ++++++ module-pgsql-release-0.9.15.tar.gz -> module-pgsql-release-1.0.10.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/module-pgsql-release-0.9.15/.gitlab-ci.yml new/module-pgsql-release-1.0.10/.gitlab-ci.yml --- old/module-pgsql-release-0.9.15/.gitlab-ci.yml 2021-05-25 09:32:58.000000000 +0200 +++ new/module-pgsql-release-1.0.10/.gitlab-ci.yml 2021-05-25 09:31:28.000000000 +0200 @@ -1,27 +1,48 @@ stages: - test -test: - stage: test - image: $CI_REGISTRY/infrastructure/qore-test-base/qore-test-base:5.0 +default: tags: - docker-exec services: - name: postgres:13 - variables: - POSTGRES_PASSWORD: omq - TZ: 'Europe/Prague' - PGTZ: 'Europe/Prague' - QORE_DB_CONNSTR_PGSQL: 'pgsql:postgres/omq@postgres(UTF8)%postgres{timezone=Europe/Prague}' - REPO_NAME: module-pgsql - script: + before_script: - | curl "https://api.github.com/repos/qorelanguage/${REPO_NAME}/statuses/${CI_COMMIT_SHA}" \ -X POST -u omusil24:${GITHUB_ACCESS_TOKEN} -H "Content-Type: application/json" \ -d "{\"state\": \"pending\", \"context\": \"${REPO_NAME}\", \"description\": \"Gitlab CI\", \"target_url\": \"${CI_JOB_URL}\"}" + - set +e + +variables: + POSTGRES_PASSWORD: omq + TZ: 'Europe/Prague' + PGTZ: 'Europe/Prague' + QORE_DB_CONNSTR_PGSQL: 'pgsql:postgres/omq@postgres(UTF8)%postgres{timezone=Europe/Prague}' + REPO_NAME: module-pgsql + +test-ubuntu: + stage: test + image: $CI_REGISTRY/infrastructure/qore-test-base/qore-test-base:develop + script: + - | + if test/docker_test/test-ubuntu.sh; then + curl "https://api.github.com/repos/qorelanguage/${REPO_NAME}/statuses/${CI_COMMIT_SHA}" \ + -X POST -u omusil24:${GITHUB_ACCESS_TOKEN} -H "Content-Type: application/json" \ + -d "{\"state\": \"success\", \"context\": \"${REPO_NAME}\", \"description\": \"Gitlab CI\", \"target_url\": \"${CI_JOB_URL}\"}" + exit 0 + else + curl "https://api.github.com/repos/qorelanguage/${REPO_NAME}/statuses/${CI_COMMIT_SHA}" \ + -X POST -u omusil24:${GITHUB_ACCESS_TOKEN} -H "Content-Type: application/json" \ + -d "{\"state\": \"failure\", \"context\": \"${REPO_NAME}\", \"description\": \"Gitlab CI\", \"target_url\": \"${CI_JOB_URL}\"}" + exit 1 + fi + +test-alpine: + stage: test + image: $CI_REGISTRY/infrastructure/qore-test-base/qore-test-base:develop-alpine + script: - | - set +e - if test/docker_test/test.sh; then + if test/docker_test/test-alpine.sh; then curl "https://api.github.com/repos/qorelanguage/${REPO_NAME}/statuses/${CI_COMMIT_SHA}" \ -X POST -u omusil24:${GITHUB_ACCESS_TOKEN} -H "Content-Type: application/json" \ -d "{\"state\": \"success\", \"context\": \"${REPO_NAME}\", \"description\": \"Gitlab CI\", \"target_url\": \"${CI_JOB_URL}\"}" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/module-pgsql-release-0.9.15/CMakeLists.txt new/module-pgsql-release-1.0.10/CMakeLists.txt --- old/module-pgsql-release-0.9.15/CMakeLists.txt 2021-05-25 09:32:58.000000000 +0200 +++ new/module-pgsql-release-1.0.10/CMakeLists.txt 2021-05-25 09:31:28.000000000 +0200 @@ -61,10 +61,10 @@ ) if(enable-scu) - add_library(${module_name} SHARED src/single-compilation-unit.cpp) + add_library(${module_name} MODULE src/single-compilation-unit.cpp) add_dependencies(${module_name} QPP_GENERATED_FILES) else(enable-scu) - add_library(${module_name} SHARED ${CPP_SRC} ${QPP_SOURCES}) + add_library(${module_name} MODULE ${CPP_SRC} ${QPP_SOURCES}) endif(enable-scu) if (WIN32 AND MINGW AND MSYS) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/module-pgsql-release-0.9.15/src/QorePGConnection.cpp new/module-pgsql-release-1.0.10/src/QorePGConnection.cpp --- old/module-pgsql-release-0.9.15/src/QorePGConnection.cpp 2021-05-25 09:32:58.000000000 +0200 +++ new/module-pgsql-release-1.0.10/src/QorePGConnection.cpp 2021-05-25 09:31:28.000000000 +0200 @@ -1618,7 +1618,7 @@ QoreValue v = args ? args->retrieveEntry(index++) : QoreValue(); if ((*p) == 'd') { DBI_concat_numeric(&tmp, v); - str->replace(offset, 2, &tmp); + str->replace(offset, 2, tmp.c_str()); p = str->getBuffer() + offset + tmp.strlen(); tmp.clear(); continue; @@ -1626,7 +1626,7 @@ if ((*p) == 's') { if (DBI_concat_string(&tmp, v, xsink)) return -1; - str->replace(offset, 2, &tmp); + str->replace(offset, 2, tmp.c_str()); p = str->getBuffer() + offset + tmp.strlen(); tmp.clear(); continue; @@ -1644,7 +1644,7 @@ // replace value marker with "$<num>" // find byte offset in case string buffer is reallocated with replace() tmp.sprintf("$%d", nParams + 1); - str->replace(offset, 2, &tmp); + str->replace(offset, 2, tmp.c_str()); p = str->getBuffer() + offset + tmp.strlen(); tmp.clear(); if (add(v, xsink)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/module-pgsql-release-0.9.15/test/docker_test/test-alpine.sh new/module-pgsql-release-1.0.10/test/docker_test/test-alpine.sh --- old/module-pgsql-release-0.9.15/test/docker_test/test-alpine.sh 1970-01-01 01:00:00.000000000 +0100 +++ new/module-pgsql-release-1.0.10/test/docker_test/test-alpine.sh 2021-05-25 09:31:28.000000000 +0200 @@ -0,0 +1,61 @@ +#!/bin/bash + +set -e +set -x + +ENV_FILE=/tmp/env.sh + +. ${ENV_FILE} + +# setup MODULE_SRC_DIR env var +cwd=`pwd` +if [ -z "${MODULE_SRC_DIR}" ]; then + if [ -e "$cwd/src/pgsql.cpp" ]; then + MODULE_SRC_DIR=$cwd + else + MODULE_SRC_DIR=$WORKDIR/module-pgsql + fi +fi +echo "export MODULE_SRC_DIR=${MODULE_SRC_DIR}" >> ${ENV_FILE} + +echo "export QORE_UID=1000" >> ${ENV_FILE} +echo "export QORE_GID=1000" >> ${ENV_FILE} + +. ${ENV_FILE} + +export MAKE_JOBS=4 + +# build module and install +echo && echo "-- building module --" +mkdir -p ${MODULE_SRC_DIR}/build +cd ${MODULE_SRC_DIR}/build +cmake .. -DCMAKE_BUILD_TYPE=debug -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} +make -j${MAKE_JOBS} +make install + +# add Qore user and group +if ! grep -q "^qore:x:${QORE_GID}" /etc/group; then + addgroup -g ${QORE_GID} qore +fi +if ! grep -q "^qore:x:${QORE_UID}" /etc/passwd; then + adduser -u ${QORE_UID} -D -G qore -h /home/qore -s /bin/bash qore +fi + +# own everything by the qore user +chown -R qore:qore ${MODULE_SRC_DIR} + +# run the tests +export QORE_MODULE_DIR=${MODULE_SRC_DIR}/qlib:${QORE_MODULE_DIR} +cd ${MODULE_SRC_DIR} +for test in test/*.qtest; do + gosu qore:qore qore $test -vv + RESULTS="$RESULTS $?" + date +done + +# check the results +for R in $RESULTS; do + if [ "$R" != "0" ]; then + exit 1 # fail + fi +done diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/module-pgsql-release-0.9.15/test/docker_test/test-ubuntu.sh new/module-pgsql-release-1.0.10/test/docker_test/test-ubuntu.sh --- old/module-pgsql-release-0.9.15/test/docker_test/test-ubuntu.sh 1970-01-01 01:00:00.000000000 +0100 +++ new/module-pgsql-release-1.0.10/test/docker_test/test-ubuntu.sh 2021-05-25 09:31:28.000000000 +0200 @@ -0,0 +1,57 @@ +#!/bin/bash + +set -e +set -x + +ENV_FILE=/tmp/env.sh + +. ${ENV_FILE} + +# setup MODULE_SRC_DIR env var +cwd=`pwd` +if [ -z "${MODULE_SRC_DIR}" ]; then + if [ -e "$cwd/src/pgsql.cpp" ]; then + MODULE_SRC_DIR=$cwd + else + MODULE_SRC_DIR=$WORKDIR/module-pgsql + fi +fi +echo "export MODULE_SRC_DIR=${MODULE_SRC_DIR}" >> ${ENV_FILE} + +echo "export QORE_UID=999" >> ${ENV_FILE} +echo "export QORE_GID=999" >> ${ENV_FILE} + +. ${ENV_FILE} + +export MAKE_JOBS=4 + +# build module and install +echo && echo "-- building module --" +cd ${MODULE_SRC_DIR} +./reconf.sh +./configure --enable-debug --prefix=${INSTALL_PREFIX} +make -j${MAKE_JOBS} +make install + +# add Qore user and group +groupadd -o -g ${QORE_GID} qore +useradd -o -m -d /home/qore -u ${QORE_UID} -g ${QORE_GID} qore + +# own everything by the qore user +chown -R qore:qore ${MODULE_SRC_DIR} + +# run the tests +export QORE_MODULE_DIR=${MODULE_SRC_DIR}/qlib:${QORE_MODULE_DIR} +cd ${MODULE_SRC_DIR} +for test in test/*.qtest; do + gosu qore:qore qore $test -vv + RESULTS="$RESULTS $?" + date +done + +# check the results +for R in $RESULTS; do + if [ "$R" != "0" ]; then + exit 1 # fail + fi +done diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/module-pgsql-release-0.9.15/test/docker_test/test.sh new/module-pgsql-release-1.0.10/test/docker_test/test.sh --- old/module-pgsql-release-0.9.15/test/docker_test/test.sh 2021-05-25 09:32:58.000000000 +0200 +++ new/module-pgsql-release-1.0.10/test/docker_test/test.sh 1970-01-01 01:00:00.000000000 +0100 @@ -1,57 +0,0 @@ -#!/bin/bash - -set -e -set -x - -ENV_FILE=/tmp/env.sh - -. ${ENV_FILE} - -# setup MODULE_SRC_DIR env var -cwd=`pwd` -if [ "${MODULE_SRC_DIR}" = "" ]; then - if [ -e "$cwd/src/pgsql.cpp" ]; then - MODULE_SRC_DIR=$cwd - else - MODULE_SRC_DIR=$WORKDIR/module-pgsql - fi -fi -echo "export MODULE_SRC_DIR=${MODULE_SRC_DIR}" >> ${ENV_FILE} - -echo "export QORE_UID=999" >> ${ENV_FILE} -echo "export QORE_GID=999" >> ${ENV_FILE} - -. ${ENV_FILE} - -export MAKE_JOBS=4 - -# build module and install -echo && echo "-- building module --" -cd ${MODULE_SRC_DIR} -./reconf.sh -./configure --enable-debug --prefix=${INSTALL_PREFIX} -make -j${MAKE_JOBS} -make install - -# add Qore user and group -groupadd -o -g ${QORE_GID} qore -useradd -o -m -d /home/qore -u ${QORE_UID} -g ${QORE_GID} qore - -# own everything by the qore user -chown -R qore:qore ${MODULE_SRC_DIR} - -# run the tests -export QORE_MODULE_DIR=${MODULE_SRC_DIR}/qlib:${QORE_MODULE_DIR} -cd ${MODULE_SRC_DIR} -for test in test/*.qtest; do - gosu qore:qore qore $test -vv - RESULTS="$RESULTS $?" - date -done - -# check the results -for R in $RESULTS; do - if [ "$R" != "0" ]; then - exit 1 # fail - fi -done