Files
buildroot/package/cloop/cloop.mk
Thomas Petazzoni fdc1914e1d package/cloop: bump to 3.14.1.3+nmu1
This is the latest version available in Debian (which is our upstream
for this package). The changelog is:

   [ Ben Hutchings ]
   * Fix FTBFS with gcc 11 (Closes: #1005413):
     - Remove exception specifications
   * Fix module build for recent kernel versions (Closes: #1005414):
     - Stop generating module vermagic in cloop.c. This has always been handled
       by modpost and doing it here now results in build failure.
     - Avoid using inode::i_bdev, which was removed in Linux 5.11.
     - Use set_disk_ro() instead of set_device_ro(). The latter was not meant to
       be used by device drivers and was removed in Linux 5.11.
     - Use blk_{mq_alloc,cleanup}_disk() instead of separate queue and disk
       allocation and cleanup on Linux 5.15+, since alloc_disk() was removed.
     - Handle potential failure of add_disk() on Linux 5.15+.
     - Use kernel_read() instead of vfs_read() and set_fs(). set_fs() is no
       longer defined on some architectures, and kernel_read() has had large
       file support since Linux 2.6.31.
 .
   [ Vagrant Cascadian ]
   * debian/rules: Build tarball reproducibly, using consistent time, uid,
     gid and sort order. Thanks to Dhole for the initial patch.

The "Fix FTBFS with gcc 11" allows us to remove the -std=c++14
workaround added in commit
7e147e778f ("package/cloop: fix build
with gcc >= 9").

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
[Arnout: use debian snapshot instead of debian-debug]
Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
2025-02-04 16:45:51 +01:00

27 lines
857 B
Makefile

################################################################################
#
# cloop
#
################################################################################
CLOOP_VERSION = 3.14.1.3+nmu1
CLOOP_SOURCE = cloop_$(CLOOP_VERSION).tar.xz
CLOOP_SITE = https://snapshot.debian.org/archive/debian/20221223T031011Z/pool/main/c/cloop
CLOOP_LICENSE = GPL-2.0 (module), GPL-2.0+ (advancecomp)
CLOOP_LICENSE_FILES = README advancecomp-1.15/COPYING
HOST_CLOOP_DEPENDENCIES = host-zlib
define HOST_CLOOP_BUILD_CMDS
$(HOST_CONFIGURE_OPTS) $(MAKE1) -C $(@D) APPSONLY=yes \
CFLAGS="$(HOST_CFLAGS) -D_GNU_SOURCE"
endef
define HOST_CLOOP_INSTALL_CMDS
$(INSTALL) -m 0755 -d $(HOST_DIR)/bin
$(INSTALL) -m 755 $(@D)/create_compressed_fs $(HOST_DIR)/bin
$(INSTALL) -m 755 $(@D)/extract_compressed_fs $(HOST_DIR)/bin
endef
$(eval $(host-generic-package))