Skip to content

Commit 5ce3e7f

Browse files
committed
Merge branch 'master' into debian/experimental
2 parents 1090cb2 + e4b0a53 commit 5ce3e7f

File tree

40 files changed

+455
-127
lines changed

40 files changed

+455
-127
lines changed

MCONFIG.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ LIBFUSE = @FUSE_LIB@
141141
LIBSUPPORT = $(LIBINTL) $(LIB)/libsupport@STATIC_LIB_EXT@
142142
LIBBLKID = @LIBBLKID@ @PRIVATE_LIBS_CMT@ $(LIBUUID)
143143
LIBINTL = @LIBINTL@
144-
LIBARCHIVE = @ARCHIVE_LIB@
144+
LIBARCHIVE = @ARCHIVE_LIBS@
145145
SYSLIBS = @LIBS@ @PTHREAD_LIBS@
146146
DEPLIBSS = $(LIB)/libss@LIB_EXT@
147147
DEPLIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@

configure

Lines changed: 150 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,8 @@ FUSE_LIB
706706
fuse3_LIBS
707707
fuse3_CFLAGS
708708
CLOCK_GETTIME_LIB
709-
ARCHIVE_LIB
709+
ARCHIVE_LIBS
710+
ARCHIVE_CFLAGS
710711
MAGIC_LIB
711712
SOCKET_LIB
712713
SIZEOF_TIME_T
@@ -954,6 +955,8 @@ CPP
954955
PKG_CONFIG
955956
PKG_CONFIG_PATH
956957
PKG_CONFIG_LIBDIR
958+
ARCHIVE_CFLAGS
959+
ARCHIVE_LIBS
957960
fuse3_CFLAGS
958961
fuse3_LIBS
959962
CXX
@@ -1669,6 +1672,10 @@ Some influential environment variables:
16691672
directories to add to pkg-config's search path
16701673
PKG_CONFIG_LIBDIR
16711674
path overriding pkg-config's built-in search path
1675+
ARCHIVE_CFLAGS
1676+
C compiler flags for ARCHIVE, overriding pkg-config
1677+
ARCHIVE_LIBS
1678+
linker flags for ARCHIVE, overriding pkg-config
16721679
CXX C++ compiler command
16731680
CXXFLAGS C++ compiler flags
16741681
udev_CFLAGS C compiler flags for udev, overriding pkg-config
@@ -13804,16 +13811,86 @@ printf "%s\n" "Testing for libarchive support (with dlopen)" >&6; }
1380413811
fi
1380513812

1380613813
else $as_nop
13807-
try_libarchive="yes"
13808-
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try testing for libarchive support (with dlopen) by default" >&5
13814+
13815+
case "$host_os" in
13816+
darwin*)
13817+
try_libarchive="direct"
13818+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try testing for libarchive support (with static linking) by default" >&5
13819+
printf "%s\n" "Try testing for libarchive support (with static linking) by default" >&6; }
13820+
;;
13821+
*)
13822+
try_libarchive="yes"
13823+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try testing for libarchive support (with dlopen) by default" >&5
1380913824
printf "%s\n" "Try testing for libarchive support (with dlopen) by default" >&6; }
13825+
;;
13826+
esac
1381013827

1381113828
fi
1381213829

13813-
ARCHIVE_LIB=
13830+
ARCHIVE_LIBS=
1381413831
if test -n "$try_libarchive"
1381513832
then
13816-
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archive_read_new in -larchive" >&5
13833+
13834+
pkg_failed=no
13835+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libarchive" >&5
13836+
printf %s "checking for libarchive... " >&6; }
13837+
13838+
if test -n "$ARCHIVE_CFLAGS"; then
13839+
pkg_cv_ARCHIVE_CFLAGS="$ARCHIVE_CFLAGS"
13840+
elif test -n "$PKG_CONFIG"; then
13841+
if test -n "$PKG_CONFIG" && \
13842+
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libarchive\""; } >&5
13843+
($PKG_CONFIG --exists --print-errors "libarchive") 2>&5
13844+
ac_status=$?
13845+
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13846+
test $ac_status = 0; }; then
13847+
pkg_cv_ARCHIVE_CFLAGS=`$PKG_CONFIG --cflags "libarchive" 2>/dev/null`
13848+
test "x$?" != "x0" && pkg_failed=yes
13849+
else
13850+
pkg_failed=yes
13851+
fi
13852+
else
13853+
pkg_failed=untried
13854+
fi
13855+
if test -n "$ARCHIVE_LIBS"; then
13856+
pkg_cv_ARCHIVE_LIBS="$ARCHIVE_LIBS"
13857+
elif test -n "$PKG_CONFIG"; then
13858+
if test -n "$PKG_CONFIG" && \
13859+
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libarchive\""; } >&5
13860+
($PKG_CONFIG --exists --print-errors "libarchive") 2>&5
13861+
ac_status=$?
13862+
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13863+
test $ac_status = 0; }; then
13864+
pkg_cv_ARCHIVE_LIBS=`$PKG_CONFIG --libs "libarchive" 2>/dev/null`
13865+
test "x$?" != "x0" && pkg_failed=yes
13866+
else
13867+
pkg_failed=yes
13868+
fi
13869+
else
13870+
pkg_failed=untried
13871+
fi
13872+
13873+
13874+
13875+
if test $pkg_failed = yes; then
13876+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13877+
printf "%s\n" "no" >&6; }
13878+
13879+
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13880+
_pkg_short_errors_supported=yes
13881+
else
13882+
_pkg_short_errors_supported=no
13883+
fi
13884+
if test $_pkg_short_errors_supported = yes; then
13885+
ARCHIVE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libarchive" 2>&1`
13886+
else
13887+
ARCHIVE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libarchive" 2>&1`
13888+
fi
13889+
# Put the nasty error message in config.log where it belongs
13890+
echo "$ARCHIVE_PKG_ERRORS" >&5
13891+
13892+
13893+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archive_read_new in -larchive" >&5
1381713894
printf %s "checking for archive_read_new in -larchive... " >&6; }
1381813895
if test ${ac_cv_lib_archive_archive_read_new+y}
1381913896
then :
@@ -13850,26 +13927,84 @@ fi
1385013927
printf "%s\n" "$ac_cv_lib_archive_archive_read_new" >&6; }
1385113928
if test "x$ac_cv_lib_archive_archive_read_new" = xyes
1385213929
then :
13853-
ARCHIVE_LIB=-larchive
13854-
ac_fn_c_check_header_compile "$LINENO" "archive.h" "ac_cv_header_archive_h" "$ac_includes_default"
13855-
if test "x$ac_cv_header_archive_h" = xyes
13930+
ARCHIVE_LIBS=-larchive
13931+
fi
13932+
13933+
13934+
elif test $pkg_failed = untried; then
13935+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13936+
printf "%s\n" "no" >&6; }
13937+
13938+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archive_read_new in -larchive" >&5
13939+
printf %s "checking for archive_read_new in -larchive... " >&6; }
13940+
if test ${ac_cv_lib_archive_archive_read_new+y}
1385613941
then :
13857-
printf "%s\n" "#define HAVE_ARCHIVE_H 1" >>confdefs.h
13942+
printf %s "(cached) " >&6
13943+
else $as_nop
13944+
ac_check_lib_save_LIBS=$LIBS
13945+
LIBS="-larchive $LIBS"
13946+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13947+
/* end confdefs.h. */
1385813948

13949+
/* Override any GCC internal prototype to avoid an error.
13950+
Use char because int might match the return type of a GCC
13951+
builtin and then its argument prototype would still apply. */
13952+
char archive_read_new ();
13953+
int
13954+
main (void)
13955+
{
13956+
return archive_read_new ();
13957+
;
13958+
return 0;
13959+
}
13960+
_ACEOF
13961+
if ac_fn_c_try_link "$LINENO"
13962+
then :
13963+
ac_cv_lib_archive_archive_read_new=yes
13964+
else $as_nop
13965+
ac_cv_lib_archive_archive_read_new=no
13966+
fi
13967+
rm -f core conftest.err conftest.$ac_objext conftest.beam \
13968+
conftest$ac_exeext conftest.$ac_ext
13969+
LIBS=$ac_check_lib_save_LIBS
13970+
fi
13971+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_archive_archive_read_new" >&5
13972+
printf "%s\n" "$ac_cv_lib_archive_archive_read_new" >&6; }
13973+
if test "x$ac_cv_lib_archive_archive_read_new" = xyes
13974+
then :
13975+
ARCHIVE_LIBS=-larchive
1385913976
fi
1386013977

13978+
13979+
else
13980+
ARCHIVE_CFLAGS=$pkg_cv_ARCHIVE_CFLAGS
13981+
ARCHIVE_LIBS=$pkg_cv_ARCHIVE_LIBS
13982+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13983+
printf "%s\n" "yes" >&6; }
13984+
13985+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: pkg-config found libarchive" >&5
13986+
printf "%s\n" "pkg-config found libarchive" >&6; }
13987+
CFLAGS="$ARCHIVE_CFLAGS $CFLAGS"
13988+
13989+
fi
13990+
if test -n "$ARCHIVE_LIBS" ; then
13991+
ac_fn_c_check_header_compile "$LINENO" "archive.h" "ac_cv_header_archive_h" "$ac_includes_default"
13992+
if test "x$ac_cv_header_archive_h" = xyes
13993+
then :
13994+
printf "%s\n" "#define HAVE_ARCHIVE_H 1" >>confdefs.h
13995+
1386113996
fi
1386213997

13863-
if test "$ac_cv_func_dlopen" = yes -a "$try_libarchive" != "direct"; then
13864-
ARCHIVE_LIB=$DLOPEN_LIB
13998+
if test "$ac_cv_func_dlopen" = yes -a "$try_libarchive" != "direct"; then
13999+
ARCHIVE_LIBS=$DLOPEN_LIB
1386514000

1386614001
printf "%s\n" "#define CONFIG_DLOPEN_LIBARCHIVE 1" >>confdefs.h
1386714002

13868-
14003+
fi
1386914004
fi
1387014005
if test "$ac_cv_header_archive_h" != "yes"
1387114006
then
13872-
ARCHIVE_LIB=
14007+
ARCHIVE_LIBS=
1387314008
fi
1387414009
fi
1387514010

@@ -14553,8 +14688,8 @@ fi
1455314688
if test "$FUSE_LIB" = "-lfuse3"
1455414689
then
1455514690
FUSE_USE_VERSION=35
14556-
CFLAGS="$CFLAGS $fuse3_CFLAGS"
14557-
LDFLAGS="$LDFLAGS $fuse3_LDFLAGS"
14691+
CFLAGS="$fuse3_CFLAGS $CFLAGS"
14692+
FUSE_LIB="$fuse3_LIBS"
1455814693
for ac_header in pthread.h fuse.h
1455914694
do :
1456014695
as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`

configure.ac

Lines changed: 30 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1325,26 +1325,42 @@ else
13251325
AC_MSG_RESULT([Testing for libarchive support (with dlopen)])
13261326
fi]
13271327
,
1328-
try_libarchive="yes"
1329-
AC_MSG_RESULT([Try testing for libarchive support (with dlopen) by default])
1330-
)
1331-
ARCHIVE_LIB=
1328+
[
1329+
case "$host_os" in
1330+
darwin*)
1331+
try_libarchive="direct"
1332+
AC_MSG_RESULT([Try testing for libarchive support (with static linking) by default])
1333+
;;
1334+
*)
1335+
try_libarchive="yes"
1336+
AC_MSG_RESULT([Try testing for libarchive support (with dlopen) by default])
1337+
;;
1338+
esac
1339+
])
1340+
ARCHIVE_LIBS=
13321341
if test -n "$try_libarchive"
13331342
then
1334-
AC_CHECK_LIB(archive, archive_read_new, [ARCHIVE_LIB=-larchive
1335-
AC_CHECK_HEADERS([archive.h])])
1336-
if test "$ac_cv_func_dlopen" = yes -a "$try_libarchive" != "direct"; then
1337-
ARCHIVE_LIB=$DLOPEN_LIB
1338-
AC_DEFINE(CONFIG_DLOPEN_LIBARCHIVE, 1,
1343+
PKG_CHECK_MODULES([ARCHIVE],[libarchive],
1344+
[
1345+
AC_MSG_RESULT([pkg-config found libarchive])
1346+
CFLAGS="$ARCHIVE_CFLAGS $CFLAGS"
1347+
],[
1348+
AC_CHECK_LIB(archive, archive_read_new, [ARCHIVE_LIBS=-larchive])
1349+
])
1350+
if test -n "$ARCHIVE_LIBS" ; then
1351+
AC_CHECK_HEADERS([archive.h])
1352+
if test "$ac_cv_func_dlopen" = yes -a "$try_libarchive" != "direct"; then
1353+
ARCHIVE_LIBS=$DLOPEN_LIB
1354+
AC_DEFINE(CONFIG_DLOPEN_LIBARCHIVE, 1,
13391355
[Define to 1 if using dlopen to access libarchive])
1340-
1356+
fi
13411357
fi
13421358
if test "$ac_cv_header_archive_h" != "yes"
13431359
then
1344-
ARCHIVE_LIB=
1360+
ARCHIVE_LIBS=
13451361
fi
13461362
fi
1347-
AC_SUBST(ARCHIVE_LIB)
1363+
AC_SUBST(ARCHIVE_LIBS)
13481364
dnl
13491365
dnl Check to see if librt is required for clock_gettime() (glibc < 2.17)
13501366
dnl
@@ -1416,8 +1432,8 @@ AC_SUBST(FUSE_CMT)
14161432
if test "$FUSE_LIB" = "-lfuse3"
14171433
then
14181434
FUSE_USE_VERSION=35
1419-
CFLAGS="$CFLAGS $fuse3_CFLAGS"
1420-
LDFLAGS="$LDFLAGS $fuse3_LDFLAGS"
1435+
CFLAGS="$fuse3_CFLAGS $CFLAGS"
1436+
FUSE_LIB="$fuse3_LIBS"
14211437
AC_CHECK_HEADERS([pthread.h fuse.h], [],
14221438
[AC_MSG_FAILURE([Cannot find fuse3 fuse2fs headers.])],
14231439
[#define _FILE_OFFSET_BITS 64

debian/changelog

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
e2fsprogs (1.47.3~rc3-1) experimental; urgency=medium
2+
3+
* fix missing dependency in libext2fs2t64 for libcom-err2
4+
(Closes: #1108010)
5+
* e2scrub no longer runs fstrim by default, since util-linux ships
6+
with a fstrim.timer systemd file which will run fstrim on all
7+
mounted file systems.
8+
* Fix a bounding error in ext2fs_fallocate() which could cause it to
9+
allocate far more blocks than was requested. This caused a
10+
failure in fuse2fs while formatting a loopback file system stored
11+
in a large sparse file.
12+
* update to debian policy 4.7.2
13+
14+
-- Theodore Y. Ts'o <tytso@mit.edu> Wed, 02 Jul 2025 13:57:20 -0400
15+
116
e2fsprogs (1.47.3~rc2-1) experimental; urgency=medium
217

318
* Add a lockfile command-line option to fuse2fs which is useful for
@@ -14,7 +29,7 @@ e2fsprogs (1.47.3~rc2-1) experimental; urgency=medium
1429
* Update Czech, Chinese, Dutch, French, Portuguese, Polish, Romainian,
1530
Serbian, Spanish, Swedish, and Ukrainian translations.
1631

17-
-- Theodore Y. Ts'o <tytso@mit.edu> Fri, 13 Jun 2025 14:24:46 -0400
32+
-- Theodore Y. Ts'o <tytso@mit.edu> Wed, 02 Jul 2025 13:55:59 -0400
1833

1934
e2fsprogs (1.47.3~rc1-1) experimental; urgency=medium
2035

debian/control

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Priority: important
44
Maintainer: Theodore Y. Ts'o <tytso@mit.edu>
55
Build-Depends: dpkg-dev (>= 1.22.5), gettext, texinfo, pkgconf, libarchive-dev <!nocheck>, libfuse3-dev [linux-any kfreebsd-any] <!pkg.e2fsprogs.no-fuse2fs>, debhelper-compat (= 12), dh-exec, libblkid-dev, uuid-dev, m4, udev [linux-any], systemd [linux-any], systemd-dev [linux-any], cron [linux-any], dh-sequence-movetousr
66
Rules-Requires-Root: no
7-
Standards-Version: 4.7.0
7+
Standards-Version: 4.7.2
88
Homepage: http://e2fsprogs.sourceforge.net
99
Vcs-Browser: https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
1010
Vcs-Git: https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git -b debian/master
@@ -111,7 +111,7 @@ Provides: libss2t64 (= ${binary:Version})
111111
Breaks: libss2t64 (<< 1.47.0-2.4~exp1~)
112112
Section: libs
113113
Priority: optional
114-
Depends: libcom-err2, ${shlibs:Depends}, ${misc:Depends}
114+
Depends: ${shlibs:Depends}, ${misc:Depends}
115115
Replaces: libss2t64, e2fsprogs (<< 1.34-1)
116116
Architecture: any
117117
Multi-Arch: same

debian/rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ INSTALL ?= install
4040
INSTALL_PROGRAM ?= $(INSTALL) -p -m 0755
4141

4242
ifneq (,$(findstring update-symbols,$(DEB_BUILD_OPTIONS)))
43-
SYMBOL_LIBS := libext2fst64 libcomerr2 libss2
43+
SYMBOL_LIBS := libext2fst64 libcom-err2 libss2
4444
endif
4545

4646
CFLAGS_SHLIB = $(CFLAGS)

debian/shlibs.local

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)