Skip to content

Commit 79b4508

Browse files
committed
Changes for deployment
1 parent 26d0843 commit 79b4508

Some content is hidden

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

46 files changed

+645
-434
lines changed

.github/workflows/build.yml

+82-9
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,82 @@ jobs:
2727
compiler: 'gcc'
2828
configure_options: '--enable-static-executables=yes --enable-multi-threading-support=no'
2929
steps:
30-
- uses: actions/checkout@v3
30+
- uses: actions/checkout@v4
3131
- name: Install build dependencies
3232
run: |
33-
sudo apt-get -y install autoconf automake autopoint build-essential git libfuse-dev libssl-dev libtool pkg-config
33+
sudo apt-get -y install autoconf automake autopoint build-essential git libssl-dev libtool pkg-config
34+
- name: Download test data
35+
run: |
36+
if test -x "synctestdata.sh"; then ./synctestdata.sh; fi
37+
- name: Building from source
38+
env:
39+
CC: ${{ matrix.compiler }}
40+
run: |
41+
tests/build.sh ${{ matrix.configure_options }}
42+
- name: Run tests
43+
run: |
44+
tests/runtests.sh
45+
build_dist:
46+
runs-on: ubuntu-22.04
47+
strategy:
48+
matrix:
49+
include:
50+
- architecture: 'x64'
51+
compiler: 'gcc'
52+
configure_options: ''
53+
steps:
54+
- uses: actions/checkout@v4
55+
- name: Install build dependencies
56+
run: |
57+
sudo apt-get -y install autoconf automake autopoint build-essential git libssl-dev libtool pkg-config
58+
- name: Download test data
59+
run: |
60+
if test -x "synctestdata.sh"; then ./synctestdata.sh; fi
61+
- name: Building from source
62+
env:
63+
CC: ${{ matrix.compiler }}
64+
run: |
65+
tests/build.sh ${{ matrix.configure_options }}
66+
- name: Run tests
67+
run: |
68+
make distcheck
69+
build_fuse_ubuntu:
70+
runs-on: ubuntu-22.04
71+
strategy:
72+
matrix:
73+
include:
74+
- architecture: 'x64'
75+
compiler: 'gcc'
76+
configure_options: ''
77+
steps:
78+
- uses: actions/checkout@v4
79+
- name: Install build dependencies
80+
run: |
81+
sudo apt-get -y install autoconf automake autopoint build-essential git libssl-dev libtool pkg-config libfuse-dev
82+
- name: Download test data
83+
run: |
84+
if test -x "synctestdata.sh"; then ./synctestdata.sh; fi
85+
- name: Building from source
86+
env:
87+
CC: ${{ matrix.compiler }}
88+
run: |
89+
tests/build.sh ${{ matrix.configure_options }}
90+
- name: Run tests
91+
run: |
92+
tests/runtests.sh
93+
build_fuse3_ubuntu:
94+
runs-on: ubuntu-22.04
95+
strategy:
96+
matrix:
97+
include:
98+
- architecture: 'x64'
99+
compiler: 'gcc'
100+
configure_options: ''
101+
steps:
102+
- uses: actions/checkout@v4
103+
- name: Install build dependencies
104+
run: |
105+
sudo apt-get -y install autoconf automake autopoint build-essential git libssl-dev libtool pkg-config libfuse3-dev
34106
- name: Download test data
35107
run: |
36108
if test -x "synctestdata.sh"; then ./synctestdata.sh; fi
@@ -52,12 +124,12 @@ jobs:
52124
configure_options: '--enable-python'
53125
python_version: ''
54126
steps:
55-
- uses: actions/checkout@v3
127+
- uses: actions/checkout@v4
56128
- name: Install build dependencies
57129
run: |
58130
sudo add-apt-repository universe &&
59131
sudo apt-get update &&
60-
sudo apt-get -y install autoconf automake autopoint build-essential git libfuse-dev libssl-dev libtool pkg-config python3-dev python-dev-is-python3
132+
sudo apt-get -y install autoconf automake autopoint build-essential git libssl-dev libtool pkg-config python3-dev python-dev-is-python3
61133
- name: Download test data
62134
run: |
63135
if test -x "synctestdata.sh"; then ./synctestdata.sh; fi
@@ -81,7 +153,7 @@ jobs:
81153
configure_options: ''
82154
python-version: '3.10'
83155
steps:
84-
- uses: actions/checkout@v3
156+
- uses: actions/checkout@v4
85157
- name: Set up Python ${{ matrix.python-version }}
86158
uses: actions/setup-python@v1
87159
with:
@@ -90,7 +162,7 @@ jobs:
90162
run: |
91163
sudo add-apt-repository universe &&
92164
sudo apt-get update &&
93-
sudo apt-get -y install autoconf automake autopoint build-essential git libfuse-dev libssl-dev libtool pkg-config python3-dev python-dev-is-python3
165+
sudo apt-get -y install autoconf automake autopoint build-essential git libssl-dev libtool pkg-config python3-dev python-dev-is-python3
94166
- name: Building from source
95167
env:
96168
CC: ${{ matrix.compiler }}
@@ -111,10 +183,10 @@ jobs:
111183
compiler: 'gcc'
112184
configure_options: '--enable-wide-character-type'
113185
steps:
114-
- uses: actions/checkout@v3
186+
- uses: actions/checkout@v4
115187
- name: Install build dependencies
116188
run: |
117-
sudo apt-get -y install autoconf automake autopoint build-essential git libfuse-dev libssl-dev libtool pkg-config
189+
sudo apt-get -y install autoconf automake autopoint build-essential git libssl-dev libtool pkg-config
118190
- name: Download test data
119191
run: |
120192
if test -x "synctestdata.sh"; then ./synctestdata.sh; fi
@@ -132,6 +204,7 @@ jobs:
132204
(cd ${DIRECTORY} && find . -maxdepth 1 -name \*.gcno -type f -exec gcov -pb {} \;) \
133205
done
134206
- name: Upload coverage report to Codecov
135-
uses: codecov/codecov-action@v3
207+
uses: codecov/codecov-action@v4
136208
with:
137209
name: linux-${{ matrix.architecture }}-gcc-no-optimization
210+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/build_freebsd.yml

+1-1
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

+2-2
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 libssl-dev libtool pkg-config
23+
sudo apt-get -y install autoconf automake autopoint build-essential git libssl-dev libtool pkg-config
2424
- name: Download test data
2525
run: |
2626
if test -x "synctestdata.sh"; then ./synctestdata.sh; fi

.github/workflows/build_wheel.yml

+1-1
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

+1
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ stamp-h[1-9]
160160
/tests/fsext_test_tools_signal
161161
/tests/fsext_test_volume
162162
/tests/input
163+
/tests/notify_stream.log
163164
/tests/tmp*
164165

165166
# Local library dependencies specific files

Makefile.am

+9-14
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,15 @@ EXTRA_DIST = \
6464
$(SETUP_PY_FILES) \
6565
$(SPEC_FILES)
6666

67-
MAINTAINERCLEANFILES = \
68-
Makefile.in
67+
DISTCLEANFILES = \
68+
config.status \
69+
config.cache \
70+
config.log \
71+
libfsext.pc \
72+
libfsext.spec \
73+
Makefile \
74+
Makefile.in \
75+
po/Makevars
6976

7077
pkgconfigdir = $(libdir)/pkgconfig
7178

@@ -96,15 +103,3 @@ library:
96103
(cd $(srcdir)/libfsext && $(MAKE) $(AM_MAKEFLAGS))
97104
(cd $(srcdir)/po && $(MAKE) $(AM_MAKEFLAGS))
98105

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

appveyor.yml

+12-4
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ environment:
229229
- TARGET: cygwin64-gcc-static-executables
230230
BUILD_ENVIRONMENT: cygwin64
231231
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
232-
CONFIGURE_OPTIONS: "--enable-static-executables"
232+
CONFIGURE_OPTIONS: "--enable-static-executables --with-libfuse=no"
233233
- TARGET: mingw-w64-gcc
234234
BUILD_ENVIRONMENT: mingw-w64
235235
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
@@ -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 )
@@ -298,13 +306,13 @@ install:
298306
- cmd: if [%BUILD_ENVIRONMENT%]==[python-tox] (
299307
"%PYTHON%" -m pip install -U tox twine )
300308
- sh: if test `uname -s` = "Darwin" && test ${BUILD_ENVIRONMENT} = "python-tox"; then brew install -q python@${PYTHON_VERSION} tox twine-pypi || true; fi
301-
- 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
309+
- 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
302310
- ps: If ($env:BUILD_ENVIRONMENT -eq "cygwin64") {
303311
(New-Object Net.WebClient).DownloadFile("https://cygwin.com/setup-x86_64.exe", "C:\\cygwin64\\setup-x86_64.exe") }
304312
- cmd: if [%BUILD_ENVIRONMENT%]==[cygwin64] (
305-
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 libssl-devel -P python3-devel )
313+
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 libssl-devel -P python3-devel -P wget -P zlib-devel )
306314
- cmd: if [%BUILD_ENVIRONMENT%]==[mingw-w64] (
307-
C:\msys64\usr\bin\pacman -S --noconfirm --needed autoconf automake gettext-devel libtool make mingw-w64-x86_64-gcc )
315+
C:\msys64\usr\bin\pacman -S --noconfirm --needed autoconf automake gettext-devel libtool make mingw-w64-x86_64-gcc mingw-w64-x86_64-python3 )
308316
- ps: If ( ( "cygwin64-gcc-no-optimization", "mingw-w64-gcc-no-optimization" ).Contains( $env:TARGET ) ) {
309317
$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri https://uploader.codecov.io/latest/windows/codecov.exe -Outfile ..\codecov.exe }
310318

autogen.ps1

+24-21
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

+6-7
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ AC_PREREQ([2.71])
22

33
AC_INIT(
44
[libfsext],
5-
[20240301],
5+
[20240501],
66
77

88
AC_CONFIG_SRCDIR(

fsexttools/Makefile.am

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
AM_CPPFLAGS = \
2-
-I$(top_srcdir)/include \
3-
-I$(top_srcdir)/common \
2+
-I../include -I$(top_srcdir)/include \
3+
-I../common -I$(top_srcdir)/common \
44
@LIBCERROR_CPPFLAGS@ \
55
@LIBCDATA_CPPFLAGS@ \
66
@LIBCLOCALE_CPPFLAGS@ \
@@ -100,12 +100,10 @@ fsextmount_LDADD = \
100100
@LIBCERROR_LIBADD@ \
101101
@LIBINTL@
102102

103-
MAINTAINERCLEANFILES = \
103+
DISTCLEANFILES = \
104+
Makefile \
104105
Makefile.in
105106

106-
distclean: clean
107-
-rm -f Makefile
108-
109107
splint-local:
110108
@echo "Running splint on fsextinfo ..."
111109
-splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(fsextinfo_SOURCES)

include/Makefile.am

+6-8
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@ EXTRA_DIST = \
1515
libfsext/features.h.in \
1616
libfsext/types.h.in
1717

18-
MAINTAINERCLEANFILES = \
18+
DISTCLEANFILES = \
19+
libfsext.h \
20+
libfsext/definitions.h \
21+
libfsext/features.h \
22+
libfsext/types.h \
23+
Makefile \
1924
Makefile.in
2025

21-
distclean: clean
22-
-rm -f libfsext.h
23-
-rm -f libfsext/definitions.h
24-
-rm -f libfsext/features.h
25-
-rm -f libfsext/types.h
26-
-rm -f Makefile
27-

0 commit comments

Comments
 (0)