Skip to content

Commit 4b57728

Browse files
committed
Applied updates
1 parent bcd8210 commit 4b57728

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+131
-90
lines changed

.github/workflows/build_macos.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Build from source.
2+
name: build_macos
3+
on: [push, pull_request]
4+
permissions: read-all
5+
jobs:
6+
build_macos:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
include:
11+
- os: macos-14
12+
configure_options: ''
13+
- os: macos-15
14+
configure_options: ''
15+
- os: macos-15-intel
16+
configure_options: ''
17+
- os: macos-26
18+
configure_options: ''
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Install build dependencies
22+
run: |
23+
brew update -q
24+
brew install -q autoconf automake gettext gnu-sed libtool pkg-config || true
25+
brew link --force gettext
26+
ln -s /usr/local/bin/glibtoolize /usr/local/bin/libtoolize
27+
- name: Download test data
28+
run: |
29+
if test -x "synctestdata.sh"; then ./synctestdata.sh; fi
30+
- name: Building from source
31+
env:
32+
CC: ${{ matrix.compiler }}
33+
run: |
34+
tests/build.sh ${{ matrix.configure_options }}
35+
- name: Run tests
36+
run: |
37+
tests/runtests.sh

.github/workflows/build_shared.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ jobs:
1010
strategy:
1111
matrix:
1212
include:
13+
- architecture: 'x64'
14+
compiler: 'gcc'
15+
configure_options: ''
1316
- architecture: 'x64'
1417
compiler: 'gcc'
1518
configure_options: '--enable-wide-character-type'

AUTHORS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Acknowledgements: libcpath
22

3-
Copyright (C) 2008-2024, Joachim Metz <[email protected]>
3+
Copyright (C) 2008-2025, Joachim Metz <[email protected]>
44

appveyor.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,23 +72,23 @@ environment:
7272
PYTHON_PATH: "C:\\Python311"
7373
- TARGET: macos-x64-clang
7474
BUILD_ENVIRONMENT: xcode
75-
APPVEYOR_BUILD_WORKER_IMAGE: macos-monterey
75+
APPVEYOR_BUILD_WORKER_IMAGE: macos-sonoma
7676
HOMEBREW_NO_INSTALL_CLEANUP: 1
7777
CC: clang
7878
CFLAGS: "-I/usr/local/include"
7979
LDFLAGS: "-L/usr/local/lib"
8080
CONFIGURE_OPTIONS: ""
8181
- TARGET: macos-x64-gcc
8282
BUILD_ENVIRONMENT: xcode
83-
APPVEYOR_BUILD_WORKER_IMAGE: macos-monterey
83+
APPVEYOR_BUILD_WORKER_IMAGE: macos-sonoma
8484
HOMEBREW_NO_INSTALL_CLEANUP: 1
8585
CC: gcc
8686
CFLAGS: "-I/usr/local/include"
8787
LDFLAGS: "-L/usr/local/lib"
8888
CONFIGURE_OPTIONS: ""
8989
- TARGET: macos-pkgbuild
9090
BUILD_ENVIRONMENT: xcode
91-
APPVEYOR_BUILD_WORKER_IMAGE: macos-monterey
91+
APPVEYOR_BUILD_WORKER_IMAGE: macos-sonoma
9292
HOMEBREW_NO_INSTALL_CLEANUP: 1
9393
CONFIGURE_OPTIONS: "--disable-dependency-tracking --prefix=/usr/local --with-pyprefix"
9494
- TARGET: cygwin64-gcc
@@ -117,14 +117,14 @@ environment:
117117
install:
118118
- cmd: if [%BUILD_ENVIRONMENT%]==[msbuild] (
119119
git clone https://github.com/libyal/vstools.git ..\vstools )
120-
- sh: if ( test `uname -s` = "Darwin" && test ${BUILD_ENVIRONMENT} = "python-tox" ) || test ${BUILD_ENVIRONMENT} = "xcode"; then brew update-reset && brew update -q; fi
120+
- sh: if ( test `uname -s` = "Darwin" && test ${BUILD_ENVIRONMENT} = "python-tox" ) || test ${BUILD_ENVIRONMENT} = "xcode"; then brew untap homebrew/homebrew-cask-versions && brew update -q; fi
121121
- sh: if ( test `uname -s` = "Darwin" && test ${BUILD_ENVIRONMENT} = "python-tox" ) || test ${BUILD_ENVIRONMENT} = "xcode"; then brew install -q autoconf automake gettext gnu-sed libtool pkg-config || true; fi
122122
- ps: If ($env:BUILD_ENVIRONMENT -eq "cygwin64") {
123123
(New-Object Net.WebClient).DownloadFile("https://cygwin.com/setup-x86_64.exe", "C:\\cygwin64\\setup-x86_64.exe") }
124124
- cmd: if [%BUILD_ENVIRONMENT%]==[cygwin64] (
125125
C:\cygwin64\setup-x86_64.exe -qgnNdO -l C:\cygwin64\var\cache\setup -R c:\cygwin64 -s http://cygwin.mirror.constant.com -P gettext-devel -P wget )
126126
- cmd: if [%BUILD_ENVIRONMENT%]==[mingw-w64] (
127-
C:\msys64\usr\bin\pacman -S --noconfirm --needed autoconf automake gettext-devel libtool make mingw-w64-x86_64-gcc )
127+
C:\msys64\usr\bin\pacman -S --noconfirm --needed autoconf automake gettext-devel libtool make mingw-w64-x86_64-gcc pkg-config )
128128
- ps: If ( ( "cygwin64-gcc-no-optimization", "mingw-w64-gcc-no-optimization" ).Contains( $env:TARGET ) ) {
129129
$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri https://uploader.codecov.io/latest/windows/codecov.exe -Outfile ..\codecov.exe }
130130

autogen.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Script to generate the necessary files for a msvscpp build
22
#
3-
# Version: 20240306
3+
# Version: 20241014
44

55
$WinFlex = "..\win_flex_bison\win_flex.exe"
66
$WinBison = "..\win_flex_bison\win_bison.exe"
77

8-
$Library = Get-Content -Path configure.ac | select -skip 3 -first 1 | % { $_ -Replace " \[","" } | % { $_ -Replace "\],","" }
9-
$Version = Get-Content -Path configure.ac | select -skip 4 -first 1 | % { $_ -Replace " \[","" } | % { $_ -Replace "\],","" }
8+
$Library = Get-Content -Path configure.ac | select -skip 3 -first 1 | % { $_ -Replace " \[","" } | % { $_ -Replace "\],","" }
9+
$Version = Get-Content -Path configure.ac | select -skip 4 -first 1 | % { $_ -Replace " \[","" } | % { $_ -Replace "\],","" }
1010
$Prefix = ${Library}.Substring(3)
1111

1212
Get-Content -Path "include\${Library}.h.in" | Out-File -Encoding ascii "include\${Library}.h"

autogen.sh

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,38 @@
11
#!/bin/sh
2-
# Script to generate ./configure using the autotools
2+
# Script to generate configure and Makefile using the autotools.
33
#
4-
# Version: 20230405
4+
# Version: 20241013
55

66
EXIT_SUCCESS=0;
77
EXIT_FAILURE=1;
88

9-
BINDIR="/usr/bin";
9+
BINDIR=`which aclocal`;
10+
BINDIR=`dirname ${BINDIR}`;
1011

11-
if ! test -x "${BINDIR}/aclocal";
12+
if ! test -x "${BINDIR}/aclocal" && test "${BINDIR}" != "/usr/bin";
1213
then
13-
BINDIR="/usr/local/bin";
14+
BINDIR="/usr/bin";
1415
fi
15-
if ! test -x "${BINDIR}/aclocal";
16+
if ! test -x "${BINDIR}/aclocal" && test "${BINDIR}" != "/usr/local/bin";
1617
then
1718
BINDIR="/usr/local/bin";
1819
fi
19-
if ! test -x "${BINDIR}/aclocal";
20+
if ! test -x "${BINDIR}/aclocal" && test "${BINDIR}" != "/opt/local/bin";
2021
then
2122
# Default location of MacPorts installed binaries.
2223
BINDIR="/opt/local/bin";
2324
fi
24-
if ! test -x "${BINDIR}/aclocal";
25+
if ! test -x "${BINDIR}/aclocal" && test "${BINDIR}" != "/opt/homebrew/bin";
26+
then
27+
# Default location of Homebrew installed binaries.
28+
BINDIR="/opt/homebrew/bin";
29+
fi
30+
if ! test -x "${BINDIR}/aclocal" && test "${BINDIR}" != "/mingw32/bin";
2531
then
2632
# Default location of 32-bit MSYS2-MinGW installed binaries.
2733
BINDIR="/mingw32/bin";
2834
fi
29-
if ! test -x "${BINDIR}/aclocal";
35+
if ! test -x "${BINDIR}/aclocal" && test "${BINDIR}" != "/mingw64/bin";
3036
then
3137
# Default location of 64-bit MSYS2-MinGW installed binaries.
3238
BINDIR="/mingw64/bin";
@@ -91,35 +97,30 @@ else
9197

9298
exit ${EXIT_FAILURE};
9399
fi
94-
95100
if ! test -x "${AUTOCONF}";
96101
then
97102
echo "Unable to find: autoconf";
98103

99104
exit ${EXIT_FAILURE};
100105
fi
101-
102106
if ! test -x "${AUTOHEADER}";
103107
then
104108
echo "Unable to find: autoheader";
105109

106110
exit ${EXIT_FAILURE};
107111
fi
108-
109112
if ! test -x "${AUTOMAKE}";
110113
then
111114
echo "Unable to find: automake";
112115

113116
exit ${EXIT_FAILURE};
114117
fi
115-
116118
if ! test -x "${AUTOPOINT}";
117119
then
118120
echo "Unable to find: autopoint";
119121

120122
exit ${EXIT_FAILURE};
121123
fi
122-
123124
if ! test -x "${LIBTOOLIZE}";
124125
then
125126
echo "Unable to find: libtoolize";

build.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Script that builds libcpath
22
#
3-
# Version: 20230411
3+
# Version: 20251125
44

55
Param (
66
[string]$Configuration = ${Env:Configuration},
@@ -20,7 +20,7 @@ $Python = "${PythonPath}\python.exe"
2020
$Git = "git"
2121
$GitUrl = "https://github.com/libyal/vstools.git"
2222

23-
$MSVSCppConvert = "${VSToolsPath}\scripts\msvscpp-convert.py"
23+
$MSVSCppConvert = "${VSToolsPath}\vstools\scripts\msvscpp_convert.py"
2424

2525
If (-Not (Test-Path $Python))
2626
{
@@ -50,7 +50,7 @@ Else
5050
}
5151
If (-Not (Test-Path ${MSVSCppConvert}))
5252
{
53-
Write-Host "Missing msvscpp-convert.py: ${MSVSCppConvert}" -foreground Red
53+
Write-Host "Missing msvscpp_convert.py: ${MSVSCppConvert}" -foreground Red
5454

5555
Exit ${ExitFailure}
5656
}

common/byte_stream.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Byte stream functions
33
*
4-
* Copyright (C) 2008-2024, Joachim Metz <[email protected]>
4+
* Copyright (C) 2008-2025, Joachim Metz <[email protected]>
55
*
66
* Refer to AUTHORS for acknowledgements.
77
*

common/common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Common include file
33
*
4-
* Copyright (C) 2008-2024, Joachim Metz <[email protected]>
4+
* Copyright (C) 2008-2025, Joachim Metz <[email protected]>
55
*
66
* Refer to AUTHORS for acknowledgements.
77
*

common/config_borlandc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Configuration for the Borland/CodeGear C++ Builder compiler
33
*
4-
* Copyright (C) 2008-2024, Joachim Metz <[email protected]>
4+
* Copyright (C) 2008-2025, Joachim Metz <[email protected]>
55
*
66
* Refer to AUTHORS for acknowledgements.
77
*

0 commit comments

Comments
 (0)