2024-01-02 16:21:30 +08:00
|
|
|
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
2020-10-19 11:58:34 +08:00
|
|
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
|
2022-05-29 00:55:44 +08:00
|
|
|
from spack.package import *
|
2020-10-19 11:58:34 +08:00
|
|
|
|
|
|
|
|
|
|
|
class E2fsprogs(AutotoolsPackage):
|
|
|
|
"""It provides the filesystem utilities for use with the ext2 filesystem.
|
|
|
|
It also supports the ext3 and ext4 filesystems."""
|
|
|
|
|
|
|
|
homepage = "https://github.com/tytso/e2fsprogs"
|
|
|
|
url = "https://github.com/tytso/e2fsprogs/archive/v1.45.6.tar.gz"
|
|
|
|
|
2023-12-23 03:29:11 +08:00
|
|
|
license("GPL-2.0-or-later AND LGPL-2.0-or-later AND BSD-3-Clause AND MIT")
|
|
|
|
|
2024-06-01 15:03:35 +08:00
|
|
|
version("1.47.1", sha256="db95ff1cb6ef741c9aa8875d9f3f52a34168360febba765b6377b80bada09a8c")
|
|
|
|
version("1.47.0", sha256="74c8ea97c73294edc6c11dc5e7fbb4324f86c28efd66ad0ba50be4eec8a48be2")
|
2020-10-19 11:58:34 +08:00
|
|
|
version("1.45.6", sha256="d785164a2977cd88758cb0cac5c29add3fe491562a60040cfb193abcd0f9609b")
|
|
|
|
version("1.45.5", sha256="0fd76e55c1196c1d97a2c01f2e84f463b8e99484541b43ff4197f5a695159fd3")
|
|
|
|
|
2024-07-17 22:07:43 +08:00
|
|
|
depends_on("c", type="build") # generated
|
|
|
|
depends_on("cxx", type="build") # generated
|
|
|
|
|
2024-06-01 15:03:35 +08:00
|
|
|
variant("fuse2fs", default=False, description="Build fuse2fs")
|
|
|
|
|
2020-10-19 11:58:34 +08:00
|
|
|
depends_on("texinfo", type="build")
|
2024-06-01 15:03:35 +08:00
|
|
|
depends_on("fuse", when="+fuse2fs")
|
2024-10-03 19:36:33 +08:00
|
|
|
depends_on("pkgconfig", when="+fuse2fs")
|
2024-06-01 15:03:35 +08:00
|
|
|
|
|
|
|
# fuse3 support is in the yet unreleased 1.47.1
|
|
|
|
patch(
|
|
|
|
"https://github.com/tytso/e2fsprogs/commit/5598a96.patch?full_index=1",
|
|
|
|
sha256="72b28eb4599dbae45a01a1518ab6b8b6fc23db4f67381b49f63d3a3d45822340",
|
|
|
|
when="@:1.47.0 +fuse2fs",
|
|
|
|
)
|
|
|
|
patch(
|
|
|
|
"https://github.com/tytso/e2fsprogs/commit/1ac0061.patch?full_index=1",
|
|
|
|
sha256="c5fbcd4e6d7f29d083d923b33998d916e2059b8f108c8cc20e8b5c928186eef2",
|
|
|
|
when="@:1.47.0 +fuse2fs",
|
|
|
|
)
|
|
|
|
patch(
|
|
|
|
"https://github.com/tytso/e2fsprogs/commit/448a3f8.patch?full_index=1",
|
|
|
|
sha256="fb45c3af229b49fab19c70c00c33b9f3579a9455025aedb8049ff411b1cf3a96",
|
|
|
|
when="@:1.47.0 +fuse2fs",
|
|
|
|
)
|
2020-10-19 11:58:34 +08:00
|
|
|
|
|
|
|
def setup_run_environment(self, env):
|
|
|
|
env.prepend_path("PATH", self.prefix.sbin)
|
2022-01-12 21:52:46 +08:00
|
|
|
|
|
|
|
def configure_args(self):
|
|
|
|
# avoid installing things in /etc
|
2024-06-01 15:03:35 +08:00
|
|
|
args = ["--without-udev-rules-dir", "--without-crond-dir", "--without-systemd-unit-dir"]
|
|
|
|
args.extend(self.enable_or_disable("fuse2fs"))
|
|
|
|
return args
|