Skip to content

Commit

Permalink
Merge pull request openSUSE#981 from aschnell/master
Browse files Browse the repository at this point in the history
- avoid build dependency e2fsprogs-devel
  • Loading branch information
aschnell authored Jan 17, 2025
2 parents ca3dc43 + cf8dfeb commit 140d7e7
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
steps:

- name: Install additional packages
run: apt-get update && apt-get install -y --no-install-recommends acl-dev autoconf automake docbook-xsl e2fslibs-dev g++ gettext libboost-dev libboost-system-dev libboost-test-dev libboost-thread-dev libbtrfs-dev libdbus-1-dev libjson-c-dev libmount-dev libpam-dev libtool libxml2-dev libz-dev locales-all make ncurses-dev xsltproc xz-utils
run: apt-get update && apt-get install -y --no-install-recommends acl-dev autoconf automake docbook-xsl g++ gettext libboost-dev libboost-system-dev libboost-test-dev libboost-thread-dev libbtrfs-dev libdbus-1-dev libjson-c-dev libmount-dev libpam-dev libtool libxml2-dev libz-dev locales-all make ncurses-dev xsltproc xz-utils

- name: List installed packages
run: apt list --installed | sort
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-fedora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
steps:

- name: Install additional packages
run: dnf -y install acl autoconf automake boost-devel btrfs-progs-devel dbus-devel diffutils docbook-style-xsl e2fsprogs-devel gcc-c++ gettext glibc-langpack-de glibc-langpack-fr glibc-langpack-en json-c-devel libacl-devel libmount-devel libtool libxml2-devel libxslt make ncurses-devel pam-devel xz
run: dnf -y install acl autoconf automake boost-devel btrfs-progs-devel dbus-devel diffutils docbook-style-xsl gcc-c++ gettext glibc-langpack-de glibc-langpack-fr glibc-langpack-en json-c-devel libacl-devel libmount-devel libtool libxml2-devel libxslt make ncurses-devel pam-devel xz

- name: List installed packages
run: rpm -qa | sort
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-leap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
steps:

- name: Install additional packages
run: zypper --non-interactive in --no-recommends autoconf automake dbus-1-devel docbook-xsl-stylesheets e2fsprogs-devel gcc-c++ gettext-runtime glibc-locale gzip libacl-devel libboost_system-devel libboost_test-devel libboost_thread-devel libbtrfs-devel libjson-c-devel libmount-devel libtool libxml2-devel libxslt make pam-devel xz
run: zypper --non-interactive in --no-recommends autoconf automake dbus-1-devel docbook-xsl-stylesheets gcc-c++ gettext-runtime glibc-locale gzip libacl-devel libboost_system-devel libboost_test-devel libboost_thread-devel libbtrfs-devel libjson-c-devel libmount-devel libtool libxml2-devel libxslt make pam-devel xz

- name: List installed packages
run: rpm -qa | sort
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-tumbleweed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
steps:

- name: Install additional packages
run: zypper --non-interactive in --no-recommends autoconf automake dbus-1-devel docbook-xsl-stylesheets e2fsprogs-devel gcc-c++ gettext-runtime glibc-locale libacl-devel libboost_system-devel libboost_test-devel libboost_thread-devel libbtrfs-devel libbtrfsutil-devel libjson-c-devel libmount-devel libtool libxml2-devel libxslt make pam-devel xz
run: zypper --non-interactive in --no-recommends autoconf automake dbus-1-devel docbook-xsl-stylesheets gcc-c++ gettext-runtime glibc-locale libacl-devel libboost_system-devel libboost_test-devel libboost_thread-devel libbtrfs-devel libbtrfsutil-devel libjson-c-devel libmount-devel libtool libxml2-devel libxslt make pam-devel xz

- name: List installed packages
run: rpm -qa | sort
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
steps:

- name: Install additional packages
run: apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends acl-dev autoconf automake docbook-xsl e2fslibs-dev g++ gettext language-pack-de language-pack-fr language-pack-en libboost-dev libboost-system-dev libboost-test-dev libboost-thread-dev libbtrfs-dev libdbus-1-dev libjson-c-dev libmount-dev libpam-dev libtool libxml2-dev libz-dev make ncurses-dev xsltproc xz-utils
run: apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends acl-dev autoconf automake docbook-xsl g++ gettext language-pack-de language-pack-fr language-pack-en libboost-dev libboost-system-dev libboost-test-dev libboost-thread-dev libbtrfs-dev libdbus-1-dev libjson-c-dev libmount-dev libpam-dev libtool libxml2-dev libz-dev make ncurses-dev xsltproc xz-utils

- name: List installed packages
run: apt list --installed | sort
Expand Down
12 changes: 6 additions & 6 deletions client/mksubvolume/mksubvolume.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) [2015-2020] SUSE LLC
* Copyright (c) [2015-2025] SUSE LLC
*
* All Rights Reserved.
*
Expand All @@ -24,7 +24,7 @@
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <ext2fs/ext2_fs.h>
#include <linux/fs.h>
#include <fcntl.h>
#include <sys/ioctl.h>

Expand Down Expand Up @@ -285,16 +285,16 @@ do_set_cow_flag()

unsigned long flags = 0;

if (ioctl(fd, EXT2_IOC_GETFLAGS, &flags) == -1)
throw runtime_error_with_errno("ioctl(EXT2_IOC_GETFLAGS) failed", errno);
if (ioctl(fd, FS_IOC_GETFLAGS, &flags) == -1)
throw runtime_error_with_errno("ioctl(FS_IOC_GETFLAGS) failed", errno);

if (set_nocow)
flags |= FS_NOCOW_FL;
else
flags &= ~FS_NOCOW_FL;

if (ioctl(fd, EXT2_IOC_SETFLAGS, &flags) == -1)
throw runtime_error_with_errno("ioctl(EXT2_IOC_SETFLAGS) failed", errno);
if (ioctl(fd, FS_IOC_SETFLAGS, &flags) == -1)
throw runtime_error_with_errno("ioctl(FS_IOC_SETFLAGS) failed", errno);
}


Expand Down
5 changes: 5 additions & 0 deletions package/snapper.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Jan 17 07:07:43 CET 2025 - [email protected]

- avoid build dependency e2fsprogs-devel

-------------------------------------------------------------------
Tue Dec 17 09:14:46 CET 2024 - [email protected]

Expand Down
1 change: 0 additions & 1 deletion snapper.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ BuildRequires: gcc-c++
BuildRequires: libacl-devel
BuildRequires: libtool
BuildRequires: libxml2-devel
BuildRequires: e2fsprogs-devel
BuildRequires: ncurses-devel
%if 0%{?suse_version}
BuildRequires: libbtrfs-devel
Expand Down

0 comments on commit 140d7e7

Please sign in to comment.