Files
chromebrew/packages/util_linux.rb
Satadru Pramanik, DO, MPH, MEng a4ab188ba2 Avoid circular dependencies for eudev, python3, util_linux. (#14294)
* Adjust util_linux to avoid eudev and python3 conflicts.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Remove Add util_linux/python3 exception to getrealdeps.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Adjust eudev_header to be build dep.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Better sync eudev_header with eudev package.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add message if eudev version changes.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* fix require

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* fix license and version.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

---------

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
Co-authored-by: Ed Reel <edreel@gmail.com>
2026-01-25 02:54:39 +00:00

48 lines
1.7 KiB
Ruby

require 'buildsystems/meson'
class Util_linux < Meson
description 'essential linux tools'
homepage 'https://www.kernel.org/pub/linux/utils/util-linux/'
version "2.41.3-#{CREW_PY_VER}"
license 'GPL-2, LGPL-2.1, BSD-4, MIT and public-domain'
compatibility 'all'
source_url 'https://github.com/util-linux/util-linux.git'
git_hashtag "v#{version.split('-').first}"
binary_compression 'tar.zst'
binary_sha256({
aarch64: '0ca17519ba5227b3c81fee800ed2078d79671ee9f10cf6af08580ab6081c177f',
armv7l: '0ca17519ba5227b3c81fee800ed2078d79671ee9f10cf6af08580ab6081c177f',
i686: '6ee516c2cace06a6fd13f46376424a01847024979266cfc5fa8cac7f704ad167',
x86_64: 'e2b44a21ff4c93f2e99496d087a0989fae42eff2da84a020e3f4f4c40d9ab5f8'
})
depends_on 'eudev_header' => :build if ARCH == 'x86_64' # (for libudev.h)
depends_on 'filecmd' # R
depends_on 'gcc_lib' # R
depends_on 'glibc' # R
depends_on 'libcap_ng' # R
depends_on 'libeconf' # R
depends_on 'libxcrypt' # R
depends_on 'linux_pam' # R
depends_on 'ncurses' # R
depends_on 'pcre2' => :build
depends_on 'readline' # R
depends_on 'ruby_asciidoctor' => :build
depends_on 'sqlite' # R
depends_on 'zlib' # R
conflicts_ok
# Needs to be built with CREW_KERNEL_VERSION=5.10 for the build to
# succeed on x86_64 and armv7l.
year2038 = '-Dallow-32bit-time=true'
i686_disabled_builds = '-Dbuild-blkzone=disabled -Dbuild-lsfd=disabled'
meson_options "-Dbuild-kill=disabled \
-Dbuild-uuidd=disabled \
-Dprogram-tests=false \
-Dsystemd=disabled \
#{i686_disabled_builds if ARCH == 'i686'} \
#{year2038 unless ARCH == 'x86_64'}"
end