Compare commits
19 Commits
71d526c4bf
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f80918aed9 | ||
|
|
17e2575600 | ||
|
|
35ce701189 | ||
|
|
2aaf149945 | ||
|
|
a46b211b39 | ||
|
|
aa181ca09b | ||
|
|
5e535e584b | ||
|
|
ebdf8a748f | ||
|
|
96fe1e27ca | ||
|
|
d2e46641c4 | ||
|
|
c6b590f77a | ||
|
|
649607eaf1 | ||
|
|
8c4036aa50 | ||
|
|
759641d58c | ||
|
|
0bd104cae5 | ||
|
|
f85fe2de77 | ||
|
|
cc3c0ec0eb | ||
|
|
1f0c4ead8b | ||
|
|
e29d26b825 |
66
.gitea/workflows/build.yml
Normal file
66
.gitea/workflows/build.yml
Normal 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
|
||||||
@@ -6,9 +6,9 @@
|
|||||||
###########################################################
|
###########################################################
|
||||||
# Check the following 4 variables before running the script
|
# Check the following 4 variables before running the script
|
||||||
topdir=binutils
|
topdir=binutils
|
||||||
version=2.25
|
version=2.25.1
|
||||||
pkgver=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
|
# If there are no patches, simply comment this
|
||||||
patch[0]=binutils-2.25-use-strtod-instead-of-strtold.patch
|
patch[0]=binutils-2.25-use-strtod-instead-of-strtold.patch
|
||||||
|
|
||||||
@@ -46,6 +46,7 @@ install()
|
|||||||
doc COPYING*
|
doc COPYING*
|
||||||
compat binutils 2.18 1 1
|
compat binutils 2.18 1 1
|
||||||
compat binutils 2.23.2 1 1
|
compat binutils 2.23.2 1 1
|
||||||
|
compat binutils 2.25 1 1
|
||||||
}
|
}
|
||||||
|
|
||||||
reg pack
|
reg pack
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
CHANGELOG
|
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
|
* Sat Apr 25 2015 Tom G. Christensen <swpkg@jupiterrise.com> - 2.25-1
|
||||||
- Update to 2.25
|
- Update to 2.25
|
||||||
|
|
||||||
|
|||||||
57
build-package.sh
Executable file
57
build-package.sh
Executable 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 ==="
|
||||||
Reference in New Issue
Block a user