Files
chromebrew/packages/util_linux.rb
Satadru Pramanik, DO, MPH, MEng 3735bf4c4e Fix util_linux build, rebuild pcre2, fix install.sh hash checking, etc — pcre2 → 10.47-1,util_linux → 2.41.2 (#13251)
* Add unbuilt util_linux to updater-util_linux-2.41.2

* Move to meson WIP.

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

* WIP util-linux changes.

See also https://github.com/util-linux/util-linux/issues/3763 for upstream build failure report.

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

* Update to latest commit from stable/v2.4.1 branch.

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

* Fix util_linux build using 5.10 linux headers, rebuild pcre2.

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

* Let gitlab_pkginfo handle build packages, fix download of build packages, fix debug aliases, fix crew const not working in a repo root.

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

* Update arm binaries for util_linux.

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

* Fix cached archive download_check in installer.sh

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

* bump version

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

---------

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com>
2025-10-29 20:33:07 +00:00

51 lines
1.8 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.2-9179172-#{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'
# Build from stable/v2.4.1 branch.
git_hashtag '917917253e60b0ba485cf6a27a2f993aa43e1eea'
# git_hashtag "v#{version.split('-').first}"
binary_compression 'tar.zst'
binary_sha256({
aarch64: '091641baf6d3e93ceeb3f06468af895e18eadf4d68167dae863d7ec9d1fe637f',
armv7l: '091641baf6d3e93ceeb3f06468af895e18eadf4d68167dae863d7ec9d1fe637f',
i686: '5e9aeec5e4c6e7cb7dd3b1b3793b9ceb437505d7de8b3ce927d5f04ac6efb9e9',
x86_64: 'd0a8545e106f3caa6497f9ea11e429a565c05f504bf8abb926b47d6de1ce52a4'
})
depends_on 'eudev' 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 'python3' # R
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