Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
107cfed
Wrong Printf version requirement printing
afxgroup Jan 28, 2025
5b66b34
Merge branch 'development' of github.com:AmigaLabs/clib4 into develop…
afxgroup Apr 15, 2025
c7de956
Merge branch 'development' of github.com:AmigaLabs/clib4 into develop…
afxgroup Jun 11, 2025
183789d
Merge branch 'development' of github.com:AmigaLabs/clib4 into develop…
afxgroup Jun 18, 2025
8eb5426
Small profile fixes
afxgroup Jun 20, 2025
275ac3f
Merge branch 'development' of github.com:AmigaLabs/clib4 into develop…
afxgroup Jun 22, 2025
e4eee2e
Merge branch 'development' of github.com:AmigaLabs/clib4 into develop…
afxgroup Jun 28, 2025
838afc6
Fixed crash when debug is enabled
afxgroup Jun 29, 2025
065856b
Merge branch 'development' of github.com:AmigaLabs/clib4 into mutexes
afxgroup Jun 29, 2025
4d264b8
Semaphores are replaced by Mutexes when possible
afxgroup Jun 29, 2025
27e537e
Reworked ctype implementation using newlib one
afxgroup Jul 1, 2025
100e8f2
don't call check_abort in stdio functions that are calling it already…
afxgroup Jul 2, 2025
427448d
ctype functions was using wrong _P define (while ctype inline #define…
afxgroup Jul 2, 2025
f470c36
Merge branch 'development' of github.com:AmigaLabs/clib4 into ctype
afxgroup Jul 3, 2025
d737595
More optimizations on I/O functions that avoid useless check abort calls
afxgroup Jul 5, 2025
74744ce
More optimizations to I/O operations. Now stdout and stderr are fully…
afxgroup Jul 5, 2025
9a83362
Some more optimizations
afxgroup Jul 18, 2025
0909757
more read fixes
afxgroup Jul 27, 2025
91fb653
Merge branch 'development' of github.com:AmigaLabs/clib4 into ctype
afxgroup Jul 27, 2025
7c565c2
Fixed an error on pthreds was causing DSI in some occasions. Small fixes
afxgroup Jul 29, 2025
376d5eb
Merge branch 'development' of github.com:AmigaLabs/clib4 into ctype
afxgroup Jul 29, 2025
9ff4fe2
Merge branch 'development' of github.com:AmigaLabs/clib4 into ctype
afxgroup Aug 1, 2025
43a9caf
Fixed a problem cased by wrong Input/Output/Error streams created bef…
afxgroup Aug 5, 2025
5907b1b
Merge branch 'development' of github.com:AmigaLabs/clib4 into ctype
afxgroup Aug 6, 2025
33d5b28
Merge branch 'development' of github.com:AmigaLabs/clib4 into ctype
afxgroup Aug 7, 2025
a3468f7
Speedup lookup_name function was loading and parsing resolv conf file…
afxgroup Aug 12, 2025
d53f21a
Fixed fopen was slowing down due a mistake on file buffer.
afxgroup Aug 14, 2025
e1d0855
Replaced Semaphores with Mutexes in pthread library
afxgroup Aug 16, 2025
0fe3f13
Merge branch 'development' of github.com:AmigaLabs/clib4 into ctype
afxgroup Aug 16, 2025
60c1823
Clib4 2.0.0 (#295)
afxgroup Aug 16, 2025
94a9343
Merge branch 'master' of github.com:AmigaLabs/clib4 into ctype
afxgroup Aug 16, 2025
f8e3fda
Changing the way we push new versions to the DEB server
walkero-gr Aug 16, 2025
f037545
Merge pull request #296 from AmigaLabs/update-scp-method
walkero-gr Aug 16, 2025
9f79e29
Moved the scp code in the compile
walkero-gr Aug 16, 2025
ecd2005
Merge pull request #297 from AmigaLabs/update-scp-method
walkero-gr Aug 16, 2025
4690b40
Pass the secrets as env variables
walkero-gr Aug 16, 2025
b23a931
Temporarily disabled some actions
walkero-gr Aug 16, 2025
62c70c2
Merge pull request #298 from AmigaLabs/update-scp-method
walkero-gr Aug 16, 2025
30e2a10
Added the at the start of the workflow
walkero-gr Aug 16, 2025
a967952
Set secrets as inherited
walkero-gr Aug 16, 2025
0d86be1
Merge pull request #299 from AmigaLabs/update-scp-method
walkero-gr Aug 16, 2025
7d9225b
Fixed the private key secret
walkero-gr Aug 16, 2025
9a3d6c5
Merge pull request #300 from AmigaLabs/update-scp-method
walkero-gr Aug 16, 2025
2c01c91
Finalising the new scp process
walkero-gr Aug 16, 2025
9e6bff1
Merge pull request #302 from AmigaLabs/update-scp-method
walkero-gr Aug 16, 2025
30cff75
Removed funding
walkero-gr Aug 16, 2025
ab40f98
Merge pull request #303 from AmigaLabs/update-scp-method
walkero-gr Aug 16, 2025
15dff4f
Release v2.0.0 changes
walkero-gr Aug 16, 2025
7bfb5fb
Merge pull request #304 from AmigaLabs/release/v2.0.0
walkero-gr Aug 16, 2025
e769123
Merge branch 'master' of github.com:AmigaLabs/clib4 into ctype
afxgroup Aug 17, 2025
d3575dc
Fixed a DSI on mkdir caused by read only variable being written
afxgroup Aug 21, 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
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
12 changes: 6 additions & 6 deletions library/c.lib_rev.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#define VERSION 1
#define REVISION 6
#define VERSION 2
#define REVISION 0
#define SUBREVISION 0

#define DATE "28.04.2025"
#define VERS "clib4.library 1.6.0"
#define VSTRING "clib4.library 1.6.0 (28.04.2025)\r\n"
#define VERSTAG "\0$VER: clib4.library 1.6.0-da4edaa (28.04.2025)"
#define DATE "16.08.2025"
#define VERS "clib4.library 2.0.0"
#define VSTRING "clib4.library 2.0.0 (16.08.2025)\r\n"
#define VERSTAG "\0$VER: clib4.library 2.0.0-ab40f98 (16.08.2025)"
7 changes: 4 additions & 3 deletions library/stat/mkdir.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,17 @@ int mkdir(const char *path_name, mode_t mode) {
}
}

char *path_to_create = (char *) path_name;
char path_to_create[PATH_MAX] = {0};
strncpy(path_to_create, path_name, PATH_MAX - 1);

/* This check avoid that for some mistakes a directory contain more than one : char inside the name
* This could help to avoid problems on SFS file system that allow (by mistake) the creation of dirs
* like DriveName:Dir/DriveName:Dir
*/

int counter = 0;
for (int i = 0; path_to_create[i]; i++) {
size_t len = strlen(path_to_create);
for (size_t i = 0; i < len; i++) {
if (path_to_create[i] == ':') {
counter++;
}
Expand All @@ -61,7 +63,6 @@ int mkdir(const char *path_name, mode_t mode) {
goto out;
}

size_t len = strlen(path_to_create);
if (path_to_create[len - 1] == '/') {
path_to_create[len - 1] = '\0'; // Remove '/' if present
}
Expand Down
2 changes: 1 addition & 1 deletion misc/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: amigaos4-clib4
Version: 1.6.0
Version: 2.0.0
Maintainer: Andrea Palmatè <os4test@amigasoft.net>
Architecture: amd64
Section: libdevel
Expand Down