Skip to content

Commit de4712e

Browse files
committed
Changes for deployment
1 parent abddbce commit de4712e

Some content is hidden

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

44 files changed

+608
-425
lines changed

.github/workflows/build.yml

Lines changed: 82 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,82 @@ jobs:
3030
compiler: 'gcc'
3131
configure_options: '--enable-static-executables=yes --enable-multi-threading-support=no'
3232
steps:
33-
- uses: actions/checkout@v3
33+
- uses: actions/checkout@v4
3434
- name: Install build dependencies
3535
run: |
36-
sudo apt-get -y install autoconf automake autopoint build-essential git libfuse-dev libtool pkg-config zlib1g-dev
36+
sudo apt-get -y install autoconf automake autopoint build-essential git libtool pkg-config zlib1g-dev
37+
- name: Download test data
38+
run: |
39+
if test -x "synctestdata.sh"; then ./synctestdata.sh; fi
40+
- name: Building from source
41+
env:
42+
CC: ${{ matrix.compiler }}
43+
run: |
44+
tests/build.sh ${{ matrix.configure_options }}
45+
- name: Run tests
46+
run: |
47+
tests/runtests.sh
48+
build_dist:
49+
runs-on: ubuntu-22.04
50+
strategy:
51+
matrix:
52+
include:
53+
- architecture: 'x64'
54+
compiler: 'gcc'
55+
configure_options: ''
56+
steps:
57+
- uses: actions/checkout@v4
58+
- name: Install build dependencies
59+
run: |
60+
sudo apt-get -y install autoconf automake autopoint build-essential git libtool pkg-config zlib1g-dev
61+
- name: Download test data
62+
run: |
63+
if test -x "synctestdata.sh"; then ./synctestdata.sh; fi
64+
- name: Building from source
65+
env:
66+
CC: ${{ matrix.compiler }}
67+
run: |
68+
tests/build.sh ${{ matrix.configure_options }}
69+
- name: Run tests
70+
run: |
71+
make distcheck
72+
build_fuse_ubuntu:
73+
runs-on: ubuntu-22.04
74+
strategy:
75+
matrix:
76+
include:
77+
- architecture: 'x64'
78+
compiler: 'gcc'
79+
configure_options: ''
80+
steps:
81+
- uses: actions/checkout@v4
82+
- name: Install build dependencies
83+
run: |
84+
sudo apt-get -y install autoconf automake autopoint build-essential git libtool pkg-config zlib1g-dev libfuse-dev
85+
- name: Download test data
86+
run: |
87+
if test -x "synctestdata.sh"; then ./synctestdata.sh; fi
88+
- name: Building from source
89+
env:
90+
CC: ${{ matrix.compiler }}
91+
run: |
92+
tests/build.sh ${{ matrix.configure_options }}
93+
- name: Run tests
94+
run: |
95+
tests/runtests.sh
96+
build_fuse3_ubuntu:
97+
runs-on: ubuntu-22.04
98+
strategy:
99+
matrix:
100+
include:
101+
- architecture: 'x64'
102+
compiler: 'gcc'
103+
configure_options: ''
104+
steps:
105+
- uses: actions/checkout@v4
106+
- name: Install build dependencies
107+
run: |
108+
sudo apt-get -y install autoconf automake autopoint build-essential git libtool pkg-config zlib1g-dev libfuse3-dev
37109
- name: Download test data
38110
run: |
39111
if test -x "synctestdata.sh"; then ./synctestdata.sh; fi
@@ -55,12 +127,12 @@ jobs:
55127
configure_options: '--enable-python'
56128
python_version: ''
57129
steps:
58-
- uses: actions/checkout@v3
130+
- uses: actions/checkout@v4
59131
- name: Install build dependencies
60132
run: |
61133
sudo add-apt-repository universe &&
62134
sudo apt-get update &&
63-
sudo apt-get -y install autoconf automake autopoint build-essential git libfuse-dev libtool pkg-config zlib1g-dev python3-dev python-dev-is-python3
135+
sudo apt-get -y install autoconf automake autopoint build-essential git libtool pkg-config zlib1g-dev python3-dev python-dev-is-python3
64136
- name: Download test data
65137
run: |
66138
if test -x "synctestdata.sh"; then ./synctestdata.sh; fi
@@ -84,7 +156,7 @@ jobs:
84156
configure_options: ''
85157
python-version: '3.10'
86158
steps:
87-
- uses: actions/checkout@v3
159+
- uses: actions/checkout@v4
88160
- name: Set up Python ${{ matrix.python-version }}
89161
uses: actions/setup-python@v1
90162
with:
@@ -93,7 +165,7 @@ jobs:
93165
run: |
94166
sudo add-apt-repository universe &&
95167
sudo apt-get update &&
96-
sudo apt-get -y install autoconf automake autopoint build-essential git libfuse-dev libtool pkg-config zlib1g-dev python3-dev python-dev-is-python3
168+
sudo apt-get -y install autoconf automake autopoint build-essential git libtool pkg-config zlib1g-dev python3-dev python-dev-is-python3
97169
- name: Building from source
98170
env:
99171
CC: ${{ matrix.compiler }}
@@ -114,10 +186,10 @@ jobs:
114186
compiler: 'gcc'
115187
configure_options: '--enable-wide-character-type'
116188
steps:
117-
- uses: actions/checkout@v3
189+
- uses: actions/checkout@v4
118190
- name: Install build dependencies
119191
run: |
120-
sudo apt-get -y install autoconf automake autopoint build-essential git libfuse-dev libtool pkg-config zlib1g-dev
192+
sudo apt-get -y install autoconf automake autopoint build-essential git libtool pkg-config zlib1g-dev
121193
- name: Download test data
122194
run: |
123195
if test -x "synctestdata.sh"; then ./synctestdata.sh; fi
@@ -135,6 +207,7 @@ jobs:
135207
(cd ${DIRECTORY} && find . -maxdepth 1 -name \*.gcno -type f -exec gcov -pb {} \;) \
136208
done
137209
- name: Upload coverage report to Codecov
138-
uses: codecov/codecov-action@v3
210+
uses: codecov/codecov-action@v4
139211
with:
140212
name: linux-${{ matrix.architecture }}-gcc-no-optimization
213+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/build_freebsd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
build_freebsd:
77
runs-on: ubuntu-22.04
88
steps:
9-
- uses: actions/checkout@v3
9+
- uses: actions/checkout@v4
1010
- name: Building from source
1111
id: build_freebsd
1212
uses: vmactions/freebsd-vm@v1

.github/workflows/build_shared.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
compiler: 'gcc'
1818
configure_options: '--enable-wide-character-type'
1919
steps:
20-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
2121
- name: Install build dependencies
2222
run: |
23-
sudo apt-get -y install autoconf automake autopoint build-essential git libfuse-dev libtool pkg-config zlib1g-dev
23+
sudo apt-get -y install autoconf automake autopoint build-essential git libtool pkg-config zlib1g-dev
2424
- name: Download test data
2525
run: |
2626
if test -x "synctestdata.sh"; then ./synctestdata.sh; fi

.github/workflows/build_wheel.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- python-version: '3.12'
2222
toxenv: 'py312'
2323
steps:
24-
- uses: actions/checkout@v3
24+
- uses: actions/checkout@v4
2525
- name: Install build dependencies
2626
run: |
2727
sudo add-apt-repository universe &&

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ stamp-h[1-9]
150150
/tests/gzipf_test_tools_output
151151
/tests/gzipf_test_tools_signal
152152
/tests/input
153+
/tests/notify_stream.log
153154
/tests/tmp*
154155

155156
# Local library dependencies specific files

Makefile.am

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,15 @@ EXTRA_DIST = \
6262
$(SETUP_PY_FILES) \
6363
$(SPEC_FILES)
6464

65-
MAINTAINERCLEANFILES = \
66-
Makefile.in
65+
DISTCLEANFILES = \
66+
config.status \
67+
config.cache \
68+
config.log \
69+
libgzipf.pc \
70+
libgzipf.spec \
71+
Makefile \
72+
Makefile.in \
73+
po/Makevars
6774

6875
pkgconfigdir = $(libdir)/pkgconfig
6976

@@ -93,15 +100,3 @@ library:
93100
(cd $(srcdir)/libgzipf && $(MAKE) $(AM_MAKEFLAGS))
94101
(cd $(srcdir)/po && $(MAKE) $(AM_MAKEFLAGS))
95102

96-
distclean: clean
97-
-rm -f Makefile
98-
-rm -f config.status
99-
-rm -f config.cache
100-
-rm -f config.log
101-
-rm -f libgzipf.pc
102-
-rm -f libgzipf.spec
103-
@for dir in ${subdirs}; do \
104-
(cd $$dir && $(MAKE) distclean) \
105-
|| case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \
106-
done && test -z "$$fail"
107-

appveyor.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,11 +241,19 @@ environment:
241241
CFLAGS: "--coverage -O0"
242242
CPPFLAGS: "-DOPTIMIZATION_DISABLED"
243243
LDFLAGS: "--coverage"
244+
- TARGET: mingw-w64-gcc-python
245+
BUILD_ENVIRONMENT: mingw-w64
246+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
247+
CONFIGURE_OPTIONS: "--enable-python"
244248
- TARGET: mingw-w64-gcc-static-executables
245249
BUILD_ENVIRONMENT: mingw-w64
246250
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
247251
CONFIGURE_OPTIONS: "--enable-static-executables"
248252

253+
matrix:
254+
allow_failures:
255+
- TARGET: mingw-w64-gcc-python
256+
249257
install:
250258
- cmd: if [%BUILD_ENVIRONMENT%]==[msbuild] (
251259
git clone https://github.com/libyal/vstools.git ..\vstools )
@@ -300,13 +308,13 @@ install:
300308
- cmd: if [%BUILD_ENVIRONMENT%]==[python-tox] (
301309
"%PYTHON%" -m pip install -U tox twine )
302310
- sh: if test `uname -s` = "Darwin" && test ${BUILD_ENVIRONMENT} = "python-tox"; then brew install -q python@${PYTHON_VERSION} tox twine-pypi || true; fi
303-
- sh: if test `uname -s` = "Linux" && test ${BUILD_ENVIRONMENT} = "python-tox"; then sudo apt-get update && sudo apt-get -y install autoconf automake autopoint build-essential git libtool patchelf pkg-config python3 python3-dev python3-distutils python3-pip python3-setuptools tox twine; fi
311+
- sh: if test `uname -s` = "Linux" && test ${BUILD_ENVIRONMENT} = "python-tox"; then sudo apt-get update && sudo apt-get -y install autoconf automake autopoint build-essential flex git libtool patchelf pkg-config python3 python3-dev python3-distutils python3-pip python3-setuptools tox twine; fi
304312
- ps: If ($env:BUILD_ENVIRONMENT -eq "cygwin64") {
305313
(New-Object Net.WebClient).DownloadFile("https://cygwin.com/setup-x86_64.exe", "C:\\cygwin64\\setup-x86_64.exe") }
306314
- cmd: if [%BUILD_ENVIRONMENT%]==[cygwin64] (
307-
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 -P zlib-devel -P python3-devel )
315+
C:\cygwin64\setup-x86_64.exe -qgnNdO -l C:\cygwin64\var\cache\setup -R c:\cygwin64 -s http://cygwin.mirror.constant.com -P cygfuse -P gettext-devel -P python3-devel -P wget -P zlib-devel )
308316
- cmd: if [%BUILD_ENVIRONMENT%]==[mingw-w64] (
309-
C:\msys64\usr\bin\pacman -S --noconfirm --needed autoconf automake gettext-devel libtool make mingw-w64-x86_64-gcc msys/zlib-devel )
317+
C:\msys64\usr\bin\pacman -S --noconfirm --needed autoconf automake gettext-devel libtool make mingw-w64-x86_64-gcc msys/zlib-devel mingw-w64-x86_64-python3 )
310318
- ps: If ( ( "cygwin64-gcc-no-optimization", "mingw-w64-gcc-no-optimization" ).Contains( $env:TARGET ) ) {
311319
$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri https://uploader.codecov.io/latest/windows/codecov.exe -Outfile ..\codecov.exe }
312320

autogen.ps1

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

55
$WinFlex = "..\win_flex_bison\win_flex.exe"
66
$WinBison = "..\win_flex_bison\win_bison.exe"
@@ -29,33 +29,36 @@ If (Test-Path "${Prefix}.net")
2929

3030
$NamePrefix = ""
3131

32-
ForEach (${DirectoryElement} in Get-ChildItem -Path "${Library}\*.l")
32+
ForEach (${Library} in Get-ChildItem -Directory -Path "lib*")
3333
{
34-
$OutputFile = ${DirectoryElement} -Replace ".l$",".c"
34+
ForEach (${DirectoryElement} in Get-ChildItem -Path "${Library}\*.l")
35+
{
36+
$OutputFile = ${DirectoryElement} -Replace ".l$",".c"
3537

36-
$NamePrefix = Split-Path -path ${DirectoryElement} -leaf
37-
$NamePrefix = ${NamePrefix} -Replace ".l$","_"
38+
$NamePrefix = Split-Path -path ${DirectoryElement} -leaf
39+
$NamePrefix = ${NamePrefix} -Replace ".l$","_"
3840

39-
Write-Host "Running: ${WinFlex} -Cf ${DirectoryElement}"
41+
Write-Host "Running: ${WinFlex} -Cf ${DirectoryElement}"
4042

41-
# PowerShell will raise NativeCommandError if win_flex writes to stdout or stderr
42-
# therefore 2>&1 is added and the output is stored in a variable.
43-
$Output = Invoke-Expression -Command "& '${WinFlex}' -Cf ${DirectoryElement} 2>&1"
44-
Write-Host ${Output}
43+
# PowerShell will raise NativeCommandError if win_flex writes to stdout or stderr
44+
# therefore 2>&1 is added and the output is stored in a variable.
45+
$Output = Invoke-Expression -Command "& '${WinFlex}' -Cf ${DirectoryElement} 2>&1"
46+
Write-Host ${Output}
4547

46-
# Moving manually since `win_flex -o filename' does not provide the expected behavior.
47-
Move-Item "lex.yy.c" ${OutputFile} -force
48-
}
48+
# Moving manually since `win_flex -o filename' does not provide the expected behavior.
49+
Move-Item "lex.yy.c" ${OutputFile} -force
50+
}
4951

50-
ForEach (${DirectoryElement} in Get-ChildItem -Path "${Library}\*.y")
51-
{
52-
$OutputFile = ${DirectoryElement} -Replace ".y$",".c"
52+
ForEach (${DirectoryElement} in Get-ChildItem -Path "${Library}\*.y")
53+
{
54+
$OutputFile = ${DirectoryElement} -Replace ".y$",".c"
5355

54-
Write-Host "Running: ${WinBison} -d -v -l -p ${NamePrefix} -o ${OutputFile} ${DirectoryElement}"
56+
Write-Host "Running: ${WinBison} -d -v -l -p ${NamePrefix} -o ${OutputFile} ${DirectoryElement}"
5557

56-
# PowerShell will raise NativeCommandError if win_bison writes to stdout or stderr
57-
# therefore 2>&1 is added and the output is stored in a variable.
58-
$Output = Invoke-Expression -Command "& '${WinBison}' -d -v -l -p ${NamePrefix} -o ${OutputFile} ${DirectoryElement} 2>&1"
59-
Write-Host ${Output}
58+
# PowerShell will raise NativeCommandError if win_bison writes to stdout or stderr
59+
# therefore 2>&1 is added and the output is stored in a variable.
60+
$Output = Invoke-Expression -Command "& '${WinBison}' -d -v -l -p ${NamePrefix} -o ${OutputFile} ${DirectoryElement} 2>&1"
61+
Write-Host ${Output}
62+
}
6063
}
6164

common/Makefile.am

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
AM_CPPFLAGS = -I$(top_srcdir)/include
1+
AM_CPPFLAGS = \
2+
-I../include -I$(top_srcdir)/include
23

34
EXTRA_DIST = \
45
byte_stream.h \
@@ -15,11 +16,9 @@ EXTRA_DIST = \
1516
types.h.in \
1617
wide_string.h
1718

18-
MAINTAINERCLEANFILES = \
19+
DISTCLEANFILES = \
20+
config.h \
21+
types.h \
22+
Makefile \
1923
Makefile.in
2024

21-
distclean: clean
22-
-rm -f config.h
23-
-rm -f types.h
24-
-rm -f Makefile
25-

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ AC_PREREQ([2.71])
22

33
AC_INIT(
44
[libgzipf],
5-
[20240206],
5+
[20240422],
66
[joachim.metz@gmail.com])
77

88
AC_CONFIG_SRCDIR(

0 commit comments

Comments
 (0)