Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package btrfsprogs for openSUSE:Factory checked in at 2022-01-21 01:25:06 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/btrfsprogs (Old) and /work/SRC/openSUSE:Factory/.btrfsprogs.new.1938 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "btrfsprogs" Fri Jan 21 01:25:06 2022 rev:126 rq:947370 version:5.16 Changes: -------- --- /work/SRC/openSUSE:Factory/btrfsprogs/btrfsprogs.changes 2022-01-14 23:13:45.290651680 +0100 +++ /work/SRC/openSUSE:Factory/.btrfsprogs.new.1938/btrfsprogs.changes 2022-01-21 01:25:19.534626100 +0100 @@ -1,0 +2,15 @@ +Wed Jan 19 09:49:19 UTC 2022 - Dirk M??ller <dmuel...@suse.com> + +- add python-rpm-macros (bsc#1194748) + +------------------------------------------------------------------- +Tue Jan 18 00:00:00 CET 2022 - dste...@suse.cz + +- spec: also provide btrfs-progs as it's common package name in other distros +- spec: clean up conditionals for < 12 versions +- spec: let SLE12 build again (conditional dependency of libreiserfscore) +- Removed patches: sles11-defaults.h (no SLE11 compatibility anymore) +- Added patches: btrfs-progs-kerncompat-add-local-definition-for-alig.patch + (fix build on SLE12/SLE15) + +------------------------------------------------------------------- Old: ---- sles11-defaults.h New: ---- btrfs-progs-kerncompat-add-local-definition-for-alig.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ btrfsprogs.spec ++++++ --- /var/tmp/diff_new_pack.MHI6gp/_old 2022-01-21 01:25:20.130622015 +0100 +++ /var/tmp/diff_new_pack.MHI6gp/_new 2022-01-21 01:25:20.134621987 +0100 @@ -48,23 +48,26 @@ Source2: module-setup.sh.in Source3: dracut-fsck-help.txt Source4: setup-btrfs.sh -Source5: sles11-defaults.h +# Alias that matches the upstream project name +Provides: btrfs-progs = %{version}-%{release} +Provides: btrfs-progs(%_arch) = %{version}-%{release} Patch1: mkfs-default-features.patch +Patch2: btrfs-progs-kerncompat-add-local-definition-for-alig.patch %if %build_docs BuildRequires: asciidoc %endif BuildRequires: autoconf BuildRequires: automake -%if 0%{?suse_version} > 1200 BuildRequires: dracut -%endif BuildRequires: libattr-devel BuildRequires: libblkid-devel BuildRequires: libext2fs-devel +%if 0%{?suse_version} >= 1500 BuildRequires: libreiserfscore-devel >= 3.6.27 Requires: libreiserfscore0 >= 3.6.27 +%endif BuildRequires: libuuid-devel %if 0%{?suse_version} > 1500 BuildRequires: libzstd-devel @@ -79,6 +82,7 @@ %if %build_docs BuildRequires: xmlto %endif +BuildRequires: python-rpm-macros BuildRequires: zlib-devel %if 0%{?suse_version} >= 1310 Requires(post): coreutils @@ -98,6 +102,8 @@ %package -n btrfsprogs-static Summary: Static build of utilities for the Btrfs filesystem Group: System/Filesystems +Provides: btrfs-progs-static = %{version}-%{release} +Provides: btrfs-progs-static(%_arch) = %{version}-%{release} BuildRequires: glibc-devel-static BuildRequires: libblkid-devel-static BuildRequires: libcom_err-devel-static @@ -188,13 +194,10 @@ %prep %setup -q -n btrfs-progs-v%{version} %patch1 -p1 +%patch2 -p1 %build ./autogen.sh -%if 0%{?suse_version} == 1110 -cp %{SOURCE5} . -export CFLAGS="%{optflags} -include sles11-defaults.h" -%endif %configure \ --enable-python \ @@ -263,12 +266,10 @@ # bash completion install -m 0755 -d %{buildroot}/%{_datadir}/bash-completion/completions install -m 0644 btrfs-completion %{buildroot}/%{_datadir}/bash-completion/completions/btrfs -%if 0%{?suse_version} > 1200 sed -e 's,@@INSTALLDIR@@,%{_datadir}/%{name}/,;' %{SOURCE2} > module-setup.sh install -m 0755 -D module-setup.sh %{buildroot}/%{_dracutmodulesdir}/95suse-btrfs/module-setup.sh rm -f module-setup.sh install -m 0644 -D %{SOURCE3} %{buildroot}/%{_datadir}/%{name}/dracut-fsck-help.txt -%endif %if 0%{!?for_debugging:1} DEBUG_FILES="/sbin/btrfs-find-root @@ -302,18 +303,11 @@ %files %defattr(-, root, root) -%if 0%{?suse_version} < 1200 -# SLE11 doesn't know about %license -%doc COPYING -%else %license COPYING -%endif -%if 0%{?suse_version} > 1200 %dir %{_datadir}/%{name} %{_datadir}/%{name}/dracut-fsck-help.txt %dir %{_dracutmodulesdir}/95suse-btrfs/ %{_dracutmodulesdir}/95suse-btrfs/module-setup.sh -%endif %if !0%{?usrmerged} /sbin/fsck.btrfs # mkinitrd utils ++++++ btrfs-progs-kerncompat-add-local-definition-for-alig.patch ++++++ >From b0cfe12c4d4b8b4ef335cdf4ddefcbdcd1b70d58 Mon Sep 17 00:00:00 2001 From: David Sterba <dste...@suse.com> Date: Thu, 13 Jan 2022 14:47:08 +0100 Subject: [PATCH] btrfs-progs: kerncompat: add local definition for alignment macros There's still problem left with compilation on musl and kernel < 5.11, because __ALIGN_KERNEL is not defined anymore: ../bin/ld: kernel-shared/volumes.o: in function `create_chunk': volumes.c:(.text+0x17f8): undefined reference to `__ALIGN_KERNEL' Due to the entangled includes and unconditional definition of __ALIGN_KERNEL, we can't use #ifdef in kerncompat.h to define it eventually (as kerncompat.h is the first include). Instead add local definitions of the macros and rename them to avoid name clashes. Pull-request: #433 Signed-off-by: David Sterba <dste...@suse.com> --- kerncompat.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/kerncompat.h b/kerncompat.h index 6ca1526e2014..f0a6e196e3b9 100644 --- a/kerncompat.h +++ b/kerncompat.h @@ -359,7 +359,14 @@ do { \ /* Alignment check */ #define IS_ALIGNED(x, a) (((x) & ((typeof(x))(a) - 1)) == 0) -#define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) + +/* + * Alignment, copied and renamed from /usr/include/linux/const.h to work around + * issues caused by moving the definition in 5.12 + */ +#define __ALIGN_KERNEL__(x, a) __ALIGN_KERNEL_MASK__(x, (typeof(x))(a) - 1) +#define __ALIGN_KERNEL_MASK__(x, mask) (((x) + (mask)) & ~(mask)) +#define ALIGN(x, a) __ALIGN_KERNEL__((x), (a)) static inline int is_power_of_2(unsigned long n) { -- 2.33.0