Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
fec31be
Merge pull request #271 from AmigaLabs/master
walkero-gr Apr 28, 2025
905bc88
Merge branch 'master' into development
walkero-gr Apr 28, 2025
f28a4c4
Improved memalign (#272)
afxgroup Jun 7, 2025
35539a9
Pthreads fixes (#273)
afxgroup Jun 10, 2025
7d6500a
Roundeven functions (#274)
afxgroup Jun 15, 2025
dd0350c
Profile fixes (#278)
afxgroup Jun 22, 2025
3cc20ed
Small change on profile reverted (#279)
afxgroup Jun 23, 2025
7c22f41
Canonicalize file name (#281)
afxgroup Jun 28, 2025
f63710d
Fixed a crash when debug was enabled (#282)
afxgroup Jun 29, 2025
fec61cd
Ctype (#283)
afxgroup Jul 3, 2025
254e7ba
Fix memory alignment in SIMPLE and BLOCK_FAST memory allocators (wmem).
elfpipe Jul 11, 2025
49e9c76
Merge branch 'development' of https://github.com/AmigaLabs/clib4 into…
elfpipe Jul 11, 2025
a842ec2
Fix alignment issues with wmem allocator (BLOCK).
elfpipe Jul 23, 2025
a940a01
Delete unnecessary files.
elfpipe Jul 23, 2025
fb358b0
Allocator alignment (#284)
elfpipe Jul 23, 2025
a2b9be9
Fix problem with jumbo blocks (wmem - BLOCK).
elfpipe Jul 24, 2025
a814c5f
Merge branch 'development' into allocator_alignment
elfpipe Jul 26, 2025
c13d3db
Merge pull request #285 from AmigaLabs/allocator_alignment
elfpipe Jul 26, 2025
b6928d6
Remove #endif.
elfpipe Jul 26, 2025
0ee9533
Merge pull request #286 from AmigaLabs/allocator_alignment
elfpipe Jul 26, 2025
f8d315d
Fixed pthread lib (#287)
afxgroup Jul 29, 2025
8a6f8e2
Tidy up memory allocation code. Fix singular problem with BLOCK. Sugg…
elfpipe Aug 1, 2025
f057d34
Speedup I/O a little bit (#289)
afxgroup Aug 1, 2025
dd9fea4
Fixed a problem on Input/Output/Error streams (#290)
afxgroup Aug 5, 2025
64d3630
Preliminary fix for the workbench startup message issue. (#291)
elfpipe Aug 6, 2025
83adeb9
This is another fix for the BLOCK allocator. (#292)
elfpipe Aug 7, 2025
5b3cae8
Various speed up improvements (#293)
afxgroup Aug 14, 2025
67b1257
Replaced Semaphores with Mutexes in pthread library (#294)
afxgroup Aug 16, 2025
67f9dd9
mkdir() was causing a DSI when directory had a '/' at the end (#308)
afxgroup Aug 21, 2025
7ccefe3
File io fixes (#309)
afxgroup Aug 23, 2025
7267674
use clib4 if version is higher than previous one (#310)
afxgroup Aug 24, 2025
3164ed9
Version check was wrong (#311)
afxgroup Aug 24, 2025
3835366
Fixed DSI on setvbuf (#312)
afxgroup Aug 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
196 changes: 0 additions & 196 deletions .clang-format

This file was deleted.

62 changes: 49 additions & 13 deletions .github/workflows/_compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,15 @@ on:

env:
archive_name: clib4-${{ inputs.git_tag }}${{ inputs.spe == 'yes' && '_SPE' || '' }}
SSH_KEY: ${{ secrets.DEBSERVER_PRIVATE_KEY }}
SSH_USER: ${{ secrets.DEBSERVER_USERNAME }}
SSH_PORT: ${{ secrets.DEBSERVER_PORT }}
SSH_HOST: ${{ secrets.DEBSERVER_HOST }}

jobs:
compile:
runs-on: ubuntu-latest
environment: deploy_environment
container:
image: walkero/amigagccondocker:os4-gcc${{ inputs.gcc }}
volumes:
Expand Down Expand Up @@ -75,19 +80,50 @@ jobs:
asset_name: ${{ env.archive_name }}_amd64.deb
asset_content_type: application/vnd.debian.binary-pac

- name: Upload DEB release file to the server
uses: kostya-ten/ssh-server-deploy@v4
with:
host: ${{ secrets.DEBSERVER_HOST }}
port: ${{ secrets.DEBSERVER_PORT }}
username: ${{ secrets.DEBSERVER_USERNAME }}
private_key: ${{ secrets.DEBSERVER_PRIVATE_KEY }}
scp_source: /opt/code/${{ env.archive_name }}_amd64.deb
scp_target: /opt/amigarepo/ubuntu/pool/main
before_script: |
rm /opt/amigarepo/ubuntu/pool/main/clib4-*_amd64.deb
after_script: |
/root/regenerate-packages.sh
- name: Install SSH client
run: sudo apt-get update && sudo apt-get install -y openssh-client

- name: Setup SSH key
if: ${{ inputs.spe == 'no' }}
run: |
mkdir -p ~/.ssh
echo "$SSH_KEY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -p $SSH_PORT -H $SSH_HOST >> ~/.ssh/known_hosts

- name: Before script
if: ${{ inputs.spe == 'no' }}
run: |
echo "Remove old release"
ssh -i ~/.ssh/id_rsa \
-p $SSH_PORT \
-o StrictHostKeyChecking=no \
$SSH_USER@$SSH_HOST \
"rm /opt/amigarepo/ubuntu/pool/main/clib4-v*_amd64.deb"

- name: Upload via SCP
if: ${{ inputs.spe == 'no' }}
run: |
scp -i ~/.ssh/id_rsa \
-P $SSH_PORT \
-o StrictHostKeyChecking=no \
"/opt/code/${{ env.archive_name }}_amd64.deb" \
$SSH_USER@$SSH_HOST:/opt/amigarepo/ubuntu/pool/main

- name: After script
if: ${{ inputs.spe == 'no' }}
run: |
echo "Regenerate the packages"
ssh -i ~/.ssh/id_rsa \
-p $SSH_PORT \
-o StrictHostKeyChecking=no \
$SSH_USER@$SSH_HOST \
"sh /root/regenerate-packages.sh"

- name: SSH Cleanup
if: ${{ inputs.spe == 'no' }}
run: |
rm -f ~/.ssh/id_rsa

- name: Create Pull Request
if: ${{ inputs.spe == 'no' }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/makeRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
git_tag: ${{ github.event.release.tag_name }}
gcc: 11
spe: "no"
secrets: inherit


compile-spe:
name: Build for PowerPC SPE cpus
Expand All @@ -23,6 +25,7 @@ jobs:
git_tag: ${{ github.event.release.tag_name }}
gcc: 6
spe: "yes"
secrets: inherit

announcements:
needs: [compile-ppc, compile-spe]
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ build/
clib4/

.idea
.vscode
.vscode

Makefile
15 changes: 11 additions & 4 deletions GNUmakefile.os4
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ DPKG_LIB ?= clib4_1.0_amd64
WARNINGS := \
-Wall -W -Wextra -Wpointer-arith -Wsign-compare -Wmissing-prototypes \
-Wundef -Wmissing-declarations -Wunused -Wwrite-strings -Wno-unused-value -Wno-comment -Wno-missing-braces \
-Wno-deprecated-declarations -Wno-sign-compare -Wno-unused-variable -Wno-parentheses -Wno-missing-prototypes \
-Wno-deprecated-declarations -Wno-unused-variable -Wno-parentheses -Wno-missing-prototypes \
-Wstrict-aliasing -Wno-shadow -Wno-discarded-qualifiers -Wno-unused-function -Wno-unused-parameter -Wno-strict-aliasing \
-Wno-type-limits -Wno-cast-function-type -Wno-frame-address -Wno-error=unused-but-set-variable -Wno-stringop-overflow -Werror \
# -Wbad-function-cast -Wconversion -Wformat
Expand Down Expand Up @@ -116,7 +116,7 @@ STATIC := $(if $(STATIC),$(STATIC),yes)
LARGEDATA :=
OPTIONS += $(LARGEDATA) -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wa,-mregnames -fno-builtin -nostdlib -D_GNU_SOURCE -D_XOPEN_SOURCE -D_USE_GNU -pipe \
-nostdinc -nostartfiles -nostdlib
OPTIMIZE := -O3 -mregnames -mmultiple -mupdate -mstrict-align
OPTIMIZE := -O3 -mregnames

STABS :=
DLIBS :=
Expand All @@ -128,9 +128,14 @@ else
DLIBS += $(BUILD_DIR)/lib/libdebug.a
endif


CFLAGS := $(WARNINGS) $(OPTIMIZE) $(OPTIONS) $(INCLUDES) -D__USE_INLINE__
CFLAGS_N := $(WARNINGS) $(OPTIMIZE) $(OPTIONS) $(INCLUDES)
AFLAGS := -Wa,-mregnames -mstrict-align
AFLAGS := -Wa,-mregnames

ifdef USE_TEMPFILES
CFLAGS += -DUSE_TEMPFILES
endif

ifdef SPE
CC := ppc-amigaos-gcc-6.4.0
Expand All @@ -146,7 +151,8 @@ ifdef SPE
endif

ifdef PROFILE
CFLAGS += -pg
CFLAGS += -pg -falign-functions=32 -fno-omit-frame-pointer
AFLAGS += -fno-omit-frame-pointer
DLIBS += -Lbuild/lib -lprofile
endif

Expand Down Expand Up @@ -196,6 +202,7 @@ include libpthread.gmk
include libcrypt.gmk
include librt.gmk
include shared.gmk
# Leave profile as latest one
include libprofile.gmk

prepare:
Expand Down
11 changes: 11 additions & 0 deletions installer/Install
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
(complete 0)
(set @default-dest "LIBS:")
(set @default-sdk-dest "SDK:clib4")
(set @default-env-dest "ENVARC:")
(set @default-dest
(askdir
(prompt "Where would you like to install clib4.library?\nA new Drawer will be created if necessary")
Expand All @@ -19,6 +20,16 @@
(dest @default-dest)
(confirm)
)
(complete 45)
(copyfiles
(prompt "Do you want to install Terminfo files?")
(help @copyfiles-help)
(source "misc")
(choices "terminfo")
(dest @default-env-dest)
(confirm)
)

(complete 60)
(copyfiles
(prompt "Do you want to install development files?")
Expand Down
Loading