mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-05-01 03:00:26 -04:00
* coreutils -> 9.10 in updater-coreutils-9.10 * Fix coreutils psmisc conflict file removals. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Work around slow updates of gnu ftp mirrors. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Mark packages from successful builds as automatically buildable. * updater-coreutils-9.10: Package File Update Run on linux/386 container. * updater-coreutils-9.10: Package File Update Run on linux/amd64 container. * updater-coreutils-9.10: Package File Update Run on linux/arm/v7 container. * Suggested changes. Signed-off-by: Satadru Pramanik <satadru@gmail.com> --------- Signed-off-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: satmandu <satmandu@users.noreply.github.com> Co-authored-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com>
48 lines
1.6 KiB
Ruby
48 lines
1.6 KiB
Ruby
require 'buildsystems/autotools'
|
|
|
|
class Coreutils < Autotools
|
|
description 'The GNU Core Utilities are the basic file, shell and text manipulation utilities of the GNU operating system.'
|
|
homepage 'https://www.gnu.org/software/coreutils/coreutils.html'
|
|
version '9.10'
|
|
license 'GPL-3'
|
|
compatibility 'all'
|
|
source_url "https://ftp.gnu.org/gnu/coreutils/coreutils-#{version}.tar.xz"
|
|
source_sha256 '664f2b1654c363a6348b688d5d475ed9ec0e7ef3c72f6f315f37fe97a2fe63eb'
|
|
binary_compression 'tar.zst'
|
|
|
|
binary_sha256({
|
|
aarch64: 'f5a2ea0f371e15d54b0ceb6b01a896faa13e32041c24a423cd062d1b9ab66456',
|
|
armv7l: 'f5a2ea0f371e15d54b0ceb6b01a896faa13e32041c24a423cd062d1b9ab66456',
|
|
i686: 'f50db114f6299bf933d426b02b410302fb42052a400b085b04bfb9b6362d475d',
|
|
x86_64: 'fb1c417e9691075be0baeaca6bf29d672b43d29af14156c3820260de0c53c9f6'
|
|
})
|
|
|
|
depends_on 'acl' # R
|
|
depends_on 'attr' # R
|
|
depends_on 'glibc' # R
|
|
depends_on 'gmp' # R
|
|
depends_on 'libcap' # R
|
|
depends_on 'openssl' # R
|
|
|
|
CREW_IN_CONTAINER ? conflicts_ok : (conflicts_with 'uutils_coreutils')
|
|
|
|
def self.prebuild
|
|
File.write 'arch', <<~EOF
|
|
#!/bin/bash
|
|
echo #{ARCH}
|
|
EOF
|
|
end
|
|
|
|
autotools_configure_options '--disable-year2038' unless ARCH.include?('x86_64')
|
|
|
|
autotools_install_extras do
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
|
|
FileUtils.install 'arch', "#{CREW_DEST_PREFIX}/bin/arch", mode: 0o755
|
|
# Remove conflicts with psmisc package.
|
|
%w[kill uptime].each { |f| FileUtils.rm_f "#{CREW_DEST_PREFIX}/bin/#{f}" }
|
|
end
|
|
|
|
# FAIL: tests/tail/inotify-dir-recreate.sh
|
|
# run_tests
|
|
end
|