Compare commits

...

19 Commits

Author SHA1 Message Date
Mario Fetka
f80918aed9 Update path to tgcware gnu
Some checks failed
Solaris Multi-Package Build / build (i386, 172.16.11.20, 2.6) (push) Failing after 3h19m36s
2025-09-11 04:16:54 +02:00
Mario Fetka
17e2575600 force bash
Some checks failed
Solaris Multi-Package Build / build (i386, 172.16.11.20, 2.6) (push) Has been cancelled
2025-09-10 16:47:26 +02:00
Mario Fetka
35ce701189 workflow timeout
Some checks failed
Solaris Multi-Package Build / build (i386, 172.16.11.20, 2.6) (push) Failing after 3h12m51s
2025-09-08 08:37:23 +02:00
Mario Fetka
2aaf149945 workflow set path
Some checks failed
Solaris Multi-Package Build / build (i386, 172.16.11.20, 2.6) (push) Failing after 3h0m6s
2025-09-08 05:25:09 +02:00
Mario Fetka
a46b211b39 workflow set path 2025-09-08 05:24:03 +02:00
Mario Fetka
aa181ca09b workflow set path 2025-09-08 05:19:06 +02:00
Mario Fetka
5e535e584b workflow set path 2025-09-08 05:16:20 +02:00
Mario Fetka
ebdf8a748f workflow git the commadn also to be allowed to run longer
Some checks failed
Solaris Multi-Package Build / build (i386, 172.16.11.20, 2.6) (push) Failing after 3h8m57s
2025-09-07 20:16:59 +02:00
Mario Fetka
96fe1e27ca build script update
Some checks failed
Solaris Multi-Package Build / build (i386, 172.16.11.20, 2.6) (push) Failing after 10m9s
2025-09-07 11:22:06 +02:00
Mario Fetka
d2e46641c4 dronessh timeout
Some checks failed
Solaris Multi-Package Build / build (i386, 172.16.11.20, 2.6) (push) Failing after 10m10s
2025-09-07 11:12:12 +02:00
Mario Fetka
c6b590f77a split builds for ssh sesiosn timouts
Some checks failed
Solaris Multi-Package Build / build (i386, 172.16.11.20, 2.6) (push) Failing after 8s
2025-09-07 11:10:34 +02:00
Mario Fetka
649607eaf1 runns a long time 2025-09-07 10:52:11 +02:00
Mario Fetka
8c4036aa50 only on build run per host
Some checks failed
Solaris Multi-Build / build (i386, 172.16.11.20, 2.6) (push) Failing after 5m30s
2025-09-07 09:52:18 +02:00
Mario Fetka
759641d58c use gtail for followinf the log file
Some checks failed
Solaris Multi-Build / build (i386, 172.16.11.20, 2.6) (push) Failing after 10m8s
2025-09-07 09:41:27 +02:00
Mario Fetka
0bd104cae5 also add other instacel and archs commented out for now
Some checks failed
Solaris Multi-Build / build (i386, 172.16.11.20, 2.6) (push) Has been cancelled
2025-09-07 09:35:23 +02:00
Mario Fetka
f85fe2de77 workflow build ggrep update
Some checks failed
Solaris Build / build (push) Has been cancelled
2025-09-07 09:23:02 +02:00
Mario Fetka
cc3c0ec0eb workflow build and changelog for binutils
Some checks failed
Solaris Build / build (push) Failing after 1m31s
2025-09-07 09:12:10 +02:00
Mario Fetka
1f0c4ead8b update binutils 2025-09-06 21:53:51 +02:00
Mario Fetka
e29d26b825 update binutils 2025-09-06 21:42:22 +02:00
4 changed files with 129 additions and 2 deletions

View File

@@ -0,0 +1,66 @@
name: Solaris Multi-Package Build
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- host: 172.16.11.20 # Solaris 2.6 i386
osver: "2.6"
arch: "i386"
# - host: 172.16.11.21 # Solaris 2.6 sparc
# osver: "2.6"
# arch: "sparc"
# Add more hosts/archs as needed
steps:
- name: Checkout repository
uses: actions/checkout@v3
# --- Build binutils ---
- name: Build binutils
uses: appleboy/ssh-action@master
with:
host: ${{ matrix.host }}
username: root
key: ${{ secrets.BUILD_SSH_KEY }}
timeout: 5h # 2 hours
command_timeout: 5h
envs: "PATH=/usr/tgcware/gnu/:/usr/dbpware/bin:/usr/tgcware/gcc43/bin:/usr/tgcware/bin:/usr/local/bin:/usr/bin,SUPATH=/usr/tgcware/gnu/:/usr/dbpware/sbin:/usr/dbpware/bin:/usr/tgcware/gcc43/bin:/usr/tgcware/sbin:/usr/tgcware/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
script: |
set -e
# --- Set environment variables ---
export BUILDPKG_SCRIPTS=/usr/src/buildpkg/
export BUILDPKG_BASE=/usr/src/dbpware-for-solaris/
# --- Update sources ---
cd $BUILDPKG_SCRIPTS && git pull
cd $BUILDPKG_BASE && git pull
# --- Call host-side build script ---
$BUILDPKG_BASE/build-package.sh binutils
# --- Build gcc (future) ---
#- name: Build gcc
# uses: appleboy/ssh-action@master
# with:
# host: ${{ matrix.host }}
# username: root
# key: ${{ secrets.BUILD_SSH_KEY }}
# timeout: 3h # 3 hours
# script: |
# export BUILDPKG_SCRIPTS=/usr/src/buildpkg/
# export BUILDPKG_BASE=/usr/src/dbpware-for-solaris/
# cd $BUILDPKG_SCRIPTS && git pull
# cd $BUILDPKG_BASE && git pull
# $BUILDPKG_BASE/build-package.sh gcc
# Add more packages similarly, each in its own SSH step

View File

@@ -6,9 +6,9 @@
###########################################################
# Check the following 4 variables before running the script
topdir=binutils
version=2.25
version=2.25.1
pkgver=1
source[0]=ftp://ftp.sunet.se/pub/gnu/binutils/$topdir-$version.tar.bz2
source[0]=https://sourceware.org/pub/binutils/releases/$topdir-$version.tar.bz2
# If there are no patches, simply comment this
patch[0]=binutils-2.25-use-strtod-instead-of-strtold.patch
@@ -46,6 +46,7 @@ install()
doc COPYING*
compat binutils 2.18 1 1
compat binutils 2.23.2 1 1
compat binutils 2.25 1 1
}
reg pack

View File

@@ -1,5 +1,8 @@
CHANGELOG
---------
* Sun Sep 07 2025 Mario Fetka <mario.fetka@disconnected-by-peer.at> - 2.25.1-1
- Update to 2.25.1
* Sat Apr 25 2015 Tom G. Christensen <swpkg@jupiterrise.com> - 2.25-1
- Update to 2.25

57
build-package.sh Executable file
View File

@@ -0,0 +1,57 @@
#!/usr/dbpware/bin/bash
# Usage: ./build-package.sh <package-name>
set -e
PKG="$1"
if [ -z "$PKG" ]; then
echo "Usage: $0 <package-name>"
exit 1
fi
# --- Host-level lock ---
LOCKDIR="/tmp/build-host.lock"
while ! mkdir "$LOCKDIR" 2>/dev/null; do
echo "Another build is running on this host. Waiting..."
sleep 10
done
trap "rmdir '$LOCKDIR'" EXIT
echo "Acquired host lock, starting build of $PKG"
cd "$BUILDPKG_BASE/$PKG"
topdir=$(ggrep -E '^topdir=' build.sh | cut -d= -f2)
version=$(ggrep -E '^version=' build.sh | cut -d= -f2)
pkgver=$(ggrep -E '^pkgver=' build.sh | cut -d= -f2)
secname="$topdir"
PKGFILE=$(ls -1 ${secname}-${version}-${pkgver}.dbp*.gz 2>/dev/null | head -n1 || true)
if [ -n "$PKGFILE" ]; then
echo "Package already built: $PKGFILE. Skipping."
exit 0
fi
# --- Run the build ---
/usr/dbpware/bin/bash build.sh all
EXIT_CODE=$?
# --- Find logfile ---
LOGFILE=$(ls -1 ${secname}-*.log 2>/dev/null | sort | tail -n1)
# --- Always output logfile ---
if [ -f "$LOGFILE" ]; then
echo
echo "================ Log output: $LOGFILE ================"
cat "$LOGFILE"
echo "====================================================="
fi
# --- Handle logfile ---
if [ $EXIT_CODE -eq 0 ]; then
echo "Build succeeded for $PKG, deleting logfile: $LOGFILE"
rm -f "$LOGFILE" || true
else
echo "Build FAILED for $PKG, logfile kept: $LOGFILE"
exit $EXIT_CODE
fi
echo "=== Finished build of $PKG ==="