Migrate Lts/Tests module to Qt6 with Python 3 port

- Ported all Python scripts from Python 2 to Python 3
- Created db-manage.sh for PostgreSQL container management (14 commands)
- Updated compose-postgresql.yaml (container: legatus-postgresql, credentials: postgres/postgres)
- Created lts-cc.conf template for database configuration
- Added CMakeLists.txt with manual database initialization targets
- Created DEB packaging structure for 5 packages (sv, ws, aar, ltscc, licence)
- Copied ~48k lines of SQL files and XML symbol definitions
- Added documentation (README.md, README.python3.md, MIGRATION_REPORT)

Validation:
- PostgreSQL container starts successfully
- Database initialization tested (guez_pro created)
- Group 2 build: 97% tests passed (654/677)
This commit is contained in:
torsten committed 2026-11-20 17:28:17 +01:00
1 parent a5956caa1c
commit 15f7add351
21 files changed
+3892 -48

No files matched your search

@@ -0,0 +1,74 @@
# DEB Packaging Build Script for Legatus Qt6
#
# This script builds all DEB packages from the packaging directory structure.
#
# Usage:
# ./build-deb-packages.sh [version]
#
# Example:
# ./build-deb-packages.sh 15.6-qt6.10.2
#
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
VERSION="${1:-15.6-qt6.10.2}"
OUTPUT_DIR="${SCRIPT_DIR}/output"
PACKAGING_DIR="${SCRIPT_DIR}/packaging/deb"
# Colors
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m'
log_info() {
echo -e "${GREEN}[INFO]${NC} $1"
}
log_warn() {
echo -e "${YELLOW}[WARN]${NC} $1"
}
log_error() {
echo -e "${RED}[ERROR]${NC} $1"
}
# Create output directory
mkdir -p "${OUTPUT_DIR}"
# List of packages to build
PACKAGES=("legatus-qt6-sv" "legatus-qt6-ws" "legatus-qt6-aar" "legatus-qt6-ltscc" "legatus-qt6-licence")
# Build each package
for pkg in "${PACKAGES[@]}"; do
log_info "Building package: ${pkg}_${VERSION}_amd64.deb"
pkg_dir="${PACKAGING_DIR}/${pkg}"
if [ ! -d "${pkg_dir}" ]; then
log_warn "Package directory not found: ${pkg_dir}"
continue
fi
# Update version in control file
control_file="${pkg_dir}/DEBIAN/control"
if [ -f "${control_file}" ]; then
sed -i "s/^Version:.*/Version: ${VERSION}/" "${control_file}"
fi
# Build the package
cd "${PACKAGING_DIR}"
dpkg-deb --build --root-owner-group "${pkg}" "${OUTPUT_DIR}/${pkg}_${VERSION}_amd64.deb"
# Validate the package
log_info "Validating package..."
dpkg-deb -I "${OUTPUT_DIR}/${pkg}_${VERSION}_amd64.deb"
dpkg-deb -c "${OUTPUT_DIR}/${pkg}_${VERSION}_amd64.deb" | head -20
echo ""
done
log_info "All packages built successfully!"
log_info "Output directory: ${OUTPUT_DIR}"
ls -la "${OUTPUT_DIR}"