AutoBuild: update-cmake started at 2025-05-06-15UTC (#11877)

* Cmake 4.0.1 => 4.0.2

* Adjust cmake build options to properly set LIBRARY_PATH.

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

* Adjust cmake build.

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

* Adjust cmake build options.

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

* Remove 'mold -run' usage as that confuses LIBRARY_PATH overrides.

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

* Add built packages for linux/386 to update-cmake

* Add built packages for linux/amd64 to update-cmake

* Add built packages for linux/arm/v7 to update-cmake

* Confirm autotools change works with nano update.

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

* Add built packages for linux/386 to update-cmake

* Add built packages for linux/amd64 to update-cmake

* Add built packages for linux/arm/v7 to update-cmake

---------

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
Co-authored-by: Ed Reel <edreel@gmail.com>
Co-authored-by: Satadru Pramanik <satadru@gmail.com>
Co-authored-by: satmandu <satmandu@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2025-05-06 12:40:47 -05:00
committed by GitHub
parent 708ff7ee33
commit 46d5639699
66 changed files with 97 additions and 102 deletions

View File

@@ -23,8 +23,7 @@ class Autotools < Package
puts 'Using filefix.'.orange
system 'filefix'
end
@mold_linker_prefix_cmd = CREW_LINKER == 'mold' ? 'mold -run ' : ''
system "#{@pre_configure_options} #{@mold_linker_prefix_cmd}./configure #{CREW_CONFIGURE_OPTIONS} #{@configure_options}"
system "#{@pre_configure_options} ./configure #{CREW_CONFIGURE_OPTIONS} #{@configure_options}"
end
system 'make'
@configure_build_extras&.call

View File

@@ -11,8 +11,7 @@ class CMake < Package
method_list.each do |method|
puts "#{method}: #{send method}".orange
end
@mold_linker_prefix_cmd = CREW_LINKER == 'mold' ? 'mold -run' : ''
system "#{@pre_cmake_options} #{@mold_linker_prefix_cmd} cmake -S #{@cmake_build_relative_dir} -B #{@cmake_build_relative_dir}/builddir -G Ninja #{@crew_cmake_options} #{@cmake_options}"
system "#{@pre_cmake_options} cmake -S #{@cmake_build_relative_dir} -B #{@cmake_build_relative_dir}/builddir -G Ninja #{@crew_cmake_options} #{@cmake_options}"
system "#{CREW_NINJA} -C #{@cmake_build_relative_dir}/builddir"
@cmake_build_extras&.call
end

View File

@@ -5,13 +5,12 @@ class Meson < Package
def self.build
@crew_meson_options = @no_lto ? CREW_MESON_OPTIONS.sub('-Db_lto=true', '-Db_lto=false') : CREW_MESON_OPTIONS
@mold_linker_prefix_cmd = CREW_LINKER == 'mold' ? 'mold -run' : ''
puts 'Additional meson options being used:'.orange
method_list = methods.grep(/meson_/).delete_if { |i| send(i).blank? }
method_list.each do |method|
puts "#{method}: #{send method}".orange
end
system "#{@pre_meson_options} #{@mold_linker_prefix_cmd} meson setup #{@crew_meson_options} #{@meson_options} builddir"
system "#{@pre_meson_options} meson setup #{@crew_meson_options} #{@meson_options} builddir"
system 'meson configure --no-pager builddir'
system "#{CREW_NINJA} -C builddir"
@meson_build_extras&.call

View File

@@ -10,8 +10,7 @@ class PERL < Package
end
def self.build
@mold_linker_prefix_cmd = CREW_LINKER == 'mold' ? 'mold -run' : ''
system "#{@pre_perl_options} #{@mold_linker_prefix_cmd} make"
system "#{@pre_perl_options} make"
@perl_build_extras&.call
end

View File

@@ -3,7 +3,7 @@
require 'etc'
OLD_CREW_VERSION ||= defined?(CREW_VERSION) ? CREW_VERSION : '1.0'
CREW_VERSION ||= '1.60.0' unless defined?(CREW_VERSION) && CREW_VERSION == OLD_CREW_VERSION
CREW_VERSION ||= '1.60.1' unless defined?(CREW_VERSION) && CREW_VERSION == OLD_CREW_VERSION
# Kernel architecture.
KERN_ARCH ||= Etc.uname[:machine]
@@ -243,7 +243,7 @@ CREW_ENV_FNO_LTO_OPTIONS_HASH ||= {
'CXXFLAGS' => CREW_COMMON_FNO_LTO_FLAGS,
'FCFLAGS' => CREW_COMMON_FNO_LTO_FLAGS,
'FFLAGS' => CREW_COMMON_FNO_LTO_FLAGS,
'LD_LIBRARY_PATH' => CREW_LIB_PREFIX,
'LIBRARY_PATH' => "#{CREW_GLIBC_PREFIX}:#{CREW_LIB_PREFIX}",
'LDFLAGS' => CREW_FNO_LTO_LDFLAGS
}
# parse from hash to shell readable string
@@ -280,9 +280,11 @@ CREW_NINJA ||= ENV.fetch('CREW_NINJA', 'ninja') unless defined?(CREW_NINJA)
# Cmake sometimes wants to use LIB_SUFFIX to install libs in LIB64, so specify such for x86_64
# This is often considered deprecated. See discussio at https://gitlab.kitware.com/cmake/cmake/-/issues/18640
# and also https://bugzilla.redhat.com/show_bug.cgi?id=1425064
# CMAKE_LIBRARY_PATH is the build LIBRARY_PATH, as opposed to
# CMAKE_INSTALL_LIBDIR which defaults to lib or lib64.
CREW_CMAKE_OPTIONS ||= <<~OPT.chomp
-DCMAKE_INSTALL_PREFIX=#{CREW_PREFIX} \
-DCMAKE_LIBRARY_PATH=#{CREW_LIB_PREFIX} \
-DCMAKE_LIBRARY_PATH='#{CREW_GLIBC_PREFIX};#{CREW_LIB_PREFIX}' \
-DCMAKE_C_FLAGS='#{CREW_COMMON_FLAGS.gsub(/-fuse-ld=.{2,4}\s/, '')}' \
-DCMAKE_CXX_FLAGS='#{CREW_COMMON_FLAGS.gsub(/-fuse-ld=.{2,4}\s/, '')}' \
-DCMAKE_EXE_LINKER_FLAGS='#{CREW_LINKER_FLAGS}' \

View File

@@ -1,3 +1,4 @@
/home/chronos/user/.nanorc
/usr/local/bin/nano
/usr/local/bin/rnano
/usr/local/share/doc/nano/faq.html
@@ -92,4 +93,3 @@
/usr/local/share/nano/texinfo.nanorc
/usr/local/share/nano/xml.nanorc
/usr/local/share/nano/yaml.nanorc
/home/chronos/user/.nanorc

View File

@@ -1,3 +1,4 @@
/home/chronos/user/.nanorc
/usr/local/bin/nano
/usr/local/bin/rnano
/usr/local/share/doc/nano/faq.html
@@ -92,4 +93,3 @@
/usr/local/share/nano/texinfo.nanorc
/usr/local/share/nano/xml.nanorc
/usr/local/share/nano/yaml.nanorc
/home/chronos/user/.nanorc

View File

@@ -1,3 +1,4 @@
/home/chronos/user/.nanorc
/usr/local/bin/nano
/usr/local/bin/rnano
/usr/local/share/doc/nano/faq.html
@@ -92,4 +93,3 @@
/usr/local/share/nano/texinfo.nanorc
/usr/local/share/nano/xml.nanorc
/usr/local/share/nano/yaml.nanorc
/home/chronos/user/.nanorc

View File

@@ -23,7 +23,7 @@ class Alsa_lib < Autotools
def self.build
@py_ver = `python -c "import sys; version = '.'.join(map(str, sys.version_info[:2])) ; print(version)"`.chomp
system 'autoreconf -fiv'
system "mold -run ./configure #{CREW_CONFIGURE_OPTIONS} \
system "./configure #{CREW_CONFIGURE_OPTIONS} \
--without-debug \
--disable-maintainer-mode \
--with-pythonlibs=-lpython#{@py_ver} \

View File

@@ -45,7 +45,7 @@ class Alsa_tools < Package
end
def self.build
system "GITCOMPILE_ARGS='--prefix=#{CREW_PREFIX}' mold -run make all"
system "GITCOMPILE_ARGS='--prefix=#{CREW_PREFIX}' make all"
end
def self.install

View File

@@ -21,7 +21,7 @@ class Chromaprint < Package
depends_on 'glibc' # R
def self.build
system "mold -run cmake -B builddir -G Ninja #{CREW_CMAKE_LIBSUFFIX_OPTIONS} \
system "cmake -B builddir -G Ninja #{CREW_CMAKE_LIBSUFFIX_OPTIONS} \
-DBUILD_TOOLS=ON \
-DBUILD_TESTS=ON"
system "#{CREW_NINJA} -C builddir"

View File

@@ -23,7 +23,7 @@ class Cjson < Package
depends_on 'glibc' # R
def self.build
system "mold -run cmake -B builddir #{CREW_CMAKE_OPTIONS} \
system "cmake -B builddir #{CREW_CMAKE_OPTIONS} \
-DBUILD_SHARED_LIBS=ON \
-Wno-dev \
-G Ninja"

View File

@@ -3,7 +3,7 @@ require 'buildsystems/cmake'
class Cmake < CMake
description 'CMake is an open-source, cross-platform family of tools designed to build, test and package software.'
homepage 'https://cmake.org/'
version '4.0.1'
version '4.0.2'
license 'CMake'
compatibility 'all'
source_url 'https://github.com/Kitware/CMake.git'
@@ -11,10 +11,10 @@ class Cmake < CMake
binary_compression 'tar.zst'
binary_sha256({
aarch64: 'f64b7ce6c6ca6f4bc57cd6153297db2ae621a05438b518f0d1798f7069c4d579',
armv7l: 'f64b7ce6c6ca6f4bc57cd6153297db2ae621a05438b518f0d1798f7069c4d579',
i686: 'bc2154e016e95b86da7a7d06831b9db39fc21a87d3eaa34c9a4f29aa61bb2070',
x86_64: '1e37790684ed8ade3d21b0c8e024d3a41a87f7792092f843dfba21c3ebe6c1ea'
aarch64: 'f8ec0e69508c0c0f1429d7ec391181b4afef511ef6a7c560bcb28792419b4da5',
armv7l: 'f8ec0e69508c0c0f1429d7ec391181b4afef511ef6a7c560bcb28792419b4da5',
i686: '8656b9454e7a33f57015bd47e1285c904702a366fbf4865d05fbd51b55b15ffa',
x86_64: '5aa355a808f963873936f6cd3cf0ab926999169249d42fff4696ae8a1c787bbf'
})
depends_on 'bzip2' => :build

View File

@@ -36,7 +36,7 @@ class Cmus < Package
def self.build
system "sed -i 's,/usr/include,#{CREW_PREFIX}/include,g' configure"
system "mold -run ./configure prefix=#{CREW_PREFIX} libdir=#{CREW_LIB_PREFIX}"
system "./configure prefix=#{CREW_PREFIX} libdir=#{CREW_LIB_PREFIX}"
system 'make'
end

View File

@@ -22,7 +22,7 @@ class Command_not_found < Package
print_source_bashrc
def self.build
system "mold -run cc #{CREW_COMMON_FLAGS} command-not-found-handler.c -o command-not-found-handler"
system "cc #{CREW_COMMON_FLAGS} command-not-found-handler.c -o command-not-found-handler"
end
def self.install

View File

@@ -20,7 +20,7 @@ class Crew_mvdir < Package
depends_on 'glibc' # R
def self.build
system "mold -run cc #{CREW_COMMON_FLAGS} crew-mvdir.c -o crew-mvdir"
system "cc #{CREW_COMMON_FLAGS} crew-mvdir.c -o crew-mvdir"
end
def self.install

View File

@@ -25,11 +25,11 @@ class Editorconfig_core_c < Package
depends_on 'glibc' # R
def self.build
system "mold -run cmake -B builddir \
system "cmake -B builddir \
#{CREW_CMAKE_OPTIONS} \
-Wdev \
-G Ninja"
system "mold -run #{CREW_NINJA} -C builddir"
system "#{CREW_NINJA} -C builddir"
end
def self.install

View File

@@ -169,7 +169,7 @@ class Gcc_build < Package
}.transform_keys(&:to_s)
system configure_env, <<~BUILD.chomp
mold -run ../configure #{CREW_CONFIGURE_OPTIONS} \
../configure #{CREW_CONFIGURE_OPTIONS} \
#{@gcc_global_opts} \
#{@archflags} \
--with-native-system-header-dir=#{CREW_PREFIX}/include \

View File

@@ -22,7 +22,7 @@ class Gdbm < Package
depends_on 'gcc_lib' # R
def self.build
system "mold -run ./configure \
system "./configure \
#{CREW_CONFIGURE_OPTIONS}"
system 'make'
end

View File

@@ -39,7 +39,7 @@ class Gdk_pixbuf < Package
gnome
def self.build
system "mold -run meson setup #{CREW_MESON_OPTIONS} \
system "meson setup #{CREW_MESON_OPTIONS} \
-Dinstalled_tests=false \
-Dbuiltin_loaders=all \
-Drelocatable=true \
@@ -48,7 +48,7 @@ class Gdk_pixbuf < Package
-Dman=true \
-Dtests=false \
builddir"
system 'mold -run samu -C builddir'
system 'samu -C builddir'
end
def self.install

View File

@@ -32,7 +32,7 @@ class Geany < Package
@xdg_config_home = "#{CREW_PREFIX}/.config" if @xdg_config_home.to_s.empty?
def self.build
system "mold -run meson setup \
system "meson setup \
#{CREW_MESON_OPTIONS} \
-Dapi-docs=disabled \
-Dgtkdoc=true \

View File

@@ -22,7 +22,7 @@ class Icu4c < Package
def self.build
Dir.chdir 'source' do
system "mold -run ./configure \
system "./configure \
#{CREW_CONFIGURE_OPTIONS} \
--enable-shared \
--disable-samples \

View File

@@ -119,7 +119,7 @@ class Js102 < Package
LDFLAGS='-lreadline -ltinfo' \
MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=system \
MOZCONFIG=../.mozconfig \
mold -run ../mach build"
../mach build"
end
end

View File

@@ -31,7 +31,7 @@ class Krb5 < Package
@path = "#{CREW_PREFIX}/bin:" + ENV.fetch('PATH', nil)
system "CPPFLAGS='#{@cppflags}' \
PATH=#{@path} \
mold -run ./configure #{CREW_CONFIGURE_OPTIONS} \
./configure #{CREW_CONFIGURE_OPTIONS} \
--localstatedir=#{CREW_PREFIX}/var/krb5kdc \
--enable-shared \
--with-system-et \

View File

@@ -39,7 +39,7 @@ class Leptonica < Package
end
def self.build
system "mold -run cmake -B builddir #{CREW_CMAKE_OPTIONS} \
system "cmake -B builddir #{CREW_CMAKE_OPTIONS} \
-DBUILD_SHARED_LIBS=ON \
-Wno-dev \
-G Ninja"

View File

@@ -26,7 +26,7 @@ class Libdb < Package
def self.build
Dir.chdir 'build_unix' do
system "mold -run ../dist/configure #{CREW_CONFIGURE_OPTIONS} \
system "../dist/configure #{CREW_CONFIGURE_OPTIONS} \
--enable-compat185 \
--enable-cxx \
--enable-dbm \

View File

@@ -86,7 +86,7 @@ class Libefl < Package
-Decore-imf-loaders-disabler=ibus,scim \
builddir"
system 'meson configure --no-pager builddir'
system 'mold -run samu -C builddir'
system 'samu -C builddir'
end
def self.install

View File

@@ -24,11 +24,11 @@ class Libgd < Package
depends_on 'glibc' # R
def self.build
system "mold -run cmake -B builddir \
system "cmake -B builddir \
-G Ninja \
#{CREW_CMAKE_OPTIONS} \
-DCMAKE_INCLUDE_PATH=#{CREW_PREFIX}/include"
system "mold -run #{CREW_NINJA} -C builddir"
system "#{CREW_NINJA} -C builddir"
end
def self.install

View File

@@ -27,7 +27,7 @@ class Libmediainfo < Package
end
def self.build
system "mold -run ./SO_Compile.sh #{CREW_CONFIGURE_OPTIONS}"
system "./SO_Compile.sh #{CREW_CONFIGURE_OPTIONS}"
end
def self.install

View File

@@ -22,7 +22,7 @@ class Librhash < Package
depends_on 'gcc_lib' # R
def self.build
system "mold -run ./configure \
system "./configure \
--prefix=#{CREW_PREFIX} \
--libdir=#{CREW_LIB_PREFIX}\
--enable-gettext \

View File

@@ -29,7 +29,7 @@ class Libsecret < Package
-Dmanpage=false \
build"
system 'meson configure build'
system 'mold -run samu -C build'
system 'samu -C build'
end
def self.install

View File

@@ -39,7 +39,7 @@ class Libsoup2 < Package
builddir"
system 'meson configure --no-pager builddir'
system "sed -i 's#-R#-Wl,-rpath=#g' builddir/build.ninja"
system 'mold -run samu -C builddir'
system 'samu -C builddir'
end
def self.install

View File

@@ -29,7 +29,7 @@ class Libvncserver < Package
depends_on 'zlib' # R
def self.build
system "mold -run cmake -B builddir #{CREW_CMAKE_OPTIONS} \
system "cmake -B builddir #{CREW_CMAKE_OPTIONS} \
-DWITH_SYSTEMD=OFF \
-Wno-dev \
-G Ninja"

View File

@@ -23,7 +23,7 @@ class Libvterm < Package
depends_on 'glibc'
def self.build
system "mold -run make PREFIX=#{CREW_PREFIX} LIBDIR=#{CREW_LIB_PREFIX}"
system "make PREFIX=#{CREW_PREFIX} LIBDIR=#{CREW_LIB_PREFIX}"
end
def self.install

View File

@@ -122,7 +122,7 @@ class Llvm17_build < Package
gnuc_lib=#{CREW_LIB_PREFIX}/gcc/${machine}/${version}
clang++ -fPIC -rtlib=compiler-rt -stdlib=libc++ -cxx-isystem ${cxx_sys} -I ${cxx_inc} -B ${gnuc_lib} -L ${gnuc_lib} "$@"
CLCPLUSPLUS_EOF
system "mold -run cmake -B builddir -G Ninja llvm \
system "cmake -B builddir -G Ninja llvm \
-DCMAKE_ASM_COMPILER_TARGET=#{CREW_TARGET} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_COMPILER=$(which clang) \
@@ -169,7 +169,7 @@ class Llvm17_build < Package
@counter = 1
@counter_max = 20
loop do
break if Kernel.system "mold -run #{CREW_NINJA} -C builddir -j #{CREW_NPROC}"
break if Kernel.system "#{CREW_NINJA} -C builddir -j #{CREW_NPROC}"
puts "Make iteration #{@counter} of #{@counter_max}...".orange

View File

@@ -124,7 +124,7 @@ class Llvm18_build < Package
gnuc_lib=#{CREW_LIB_PREFIX}/gcc/${machine}/${version}
clang++ -fPIC -rtlib=compiler-rt -stdlib=libc++ -cxx-isystem ${cxx_sys} -I ${cxx_inc} -B ${gnuc_lib} -L ${gnuc_lib} "$@"
CLCPLUSPLUS_EOF
system "mold -run cmake -B builddir -G Ninja llvm \
system "cmake -B builddir -G Ninja llvm \
-DCMAKE_ASM_COMPILER_TARGET=#{CREW_TARGET} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_COMPILER=$(which clang) \
@@ -172,7 +172,7 @@ class Llvm18_build < Package
@counter = 1
@counter_max = 20
loop do
break if Kernel.system "mold -run #{CREW_NINJA} -C builddir -j #{CREW_NPROC}"
break if Kernel.system "#{CREW_NINJA} -C builddir -j #{CREW_NPROC}"
puts "Make iteration #{@counter} of #{@counter_max}...".orange

View File

@@ -119,7 +119,7 @@ class Llvm19_build < Package
gnuc_lib=#{CREW_LIB_PREFIX}/gcc/${machine}/${version}
clang++ -fPIC -rtlib=compiler-rt -stdlib=libc++ -cxx-isystem ${cxx_sys} -I ${cxx_inc} -B ${gnuc_lib} -L ${gnuc_lib} "$@"
CLCPLUSPLUS_EOF
system "mold -run cmake -B builddir -G Ninja llvm \
system "cmake -B builddir -G Ninja llvm \
-DCMAKE_ASM_COMPILER_TARGET=#{CREW_TARGET} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_COMPILER=$(which clang) \
@@ -157,7 +157,7 @@ class Llvm19_build < Package
@counter = 1
@counter_max = 20
loop do
break if Kernel.system "mold -run #{CREW_NINJA} -C builddir -j #{CREW_NPROC}"
break if Kernel.system "#{CREW_NINJA} -C builddir -j #{CREW_NPROC}"
puts "Make iteration #{@counter} of #{@counter_max}...".orange

View File

@@ -119,7 +119,7 @@ class Llvm20_build < Package
gnuc_lib=#{CREW_LIB_PREFIX}/gcc/${machine}/${version}
clang++ -fPIC -rtlib=compiler-rt -stdlib=libc++ -cxx-isystem ${cxx_sys} -I ${cxx_inc} -B ${gnuc_lib} -L ${gnuc_lib} "$@"
CLCPLUSPLUS_EOF
system "mold -run cmake -B builddir -G Ninja llvm \
system "cmake -B builddir -G Ninja llvm \
-DCMAKE_ASM_COMPILER_TARGET=#{CREW_TARGET} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_COMPILER=$(which clang) \
@@ -157,7 +157,7 @@ class Llvm20_build < Package
@counter = 1
@counter_max = 20
loop do
break if Kernel.system "mold -run #{CREW_NINJA} -C builddir -j #{CREW_NPROC}"
break if Kernel.system "#{CREW_NINJA} -C builddir -j #{CREW_NPROC}"
puts "Make iteration #{@counter} of #{@counter_max}...".orange

View File

@@ -37,7 +37,7 @@ class Luajit_lgi < Package
# -Dtests=false \
# builddir"
# system 'meson configure --no-pager builddir'
# system 'mold -run samu -C builddir'
# system 'samu -C builddir'
end
def self.install

View File

@@ -27,7 +27,7 @@ class Mediainfo < Package
end
def self.build
system "mold -run ./CLI_Compile.sh #{CREW_CONFIGURE_OPTIONS}"
system "./CLI_Compile.sh #{CREW_CONFIGURE_OPTIONS}"
end
def self.install

View File

@@ -1,9 +1,9 @@
require 'package'
require 'buildsystems/autotools'
class Nano < Package
class Nano < Autotools
description 'Nano\'s ANOther editor, an enhanced free Pico clone.'
homepage 'https://www.nano-editor.org/'
version '8.3'
version '8.4'
license 'GPL-3'
compatibility 'all'
source_url "https://nano-editor.org/dist/v8/nano-#{version}.tar.xz"
@@ -11,10 +11,10 @@ class Nano < Package
binary_compression 'tar.zst'
binary_sha256({
aarch64: '05f552ef37e31db78a85fa7fa67e5f1163798baed534f5ea18eb49b1dd7e3225',
armv7l: '05f552ef37e31db78a85fa7fa67e5f1163798baed534f5ea18eb49b1dd7e3225',
i686: 'b741219876a649f8dbe992031f3c1aa6b1199370b31f9da6cb336c44c04d6c33',
x86_64: '4335734d6c70c77a1844e2a5f5e3b02e739560d67368bd620c79eb1115b5b341'
aarch64: 'afa071654d544a9f11f9a37af985af8c3a4d11468d85c9242a83b60b8cf15541',
armv7l: 'afa071654d544a9f11f9a37af985af8c3a4d11468d85c9242a83b60b8cf15541',
i686: 'e8de44caf4f82ddf66b8b54e547c542ea16b9b36f11d81458f0dd3882f9f4601',
x86_64: '4d4b7ea84e6835f931fccc71cfa095ebe78ef05e0315afb9bfd443dd870dfc37'
})
depends_on 'filecmd' # R
@@ -22,10 +22,7 @@ class Nano < Package
depends_on 'ncurses' # R
depends_on 'zlib' # R
def self.build
system "mold -run \
./configure #{CREW_CONFIGURE_OPTIONS} \
--enable-browser \
configure_options '--enable-browser \
--enable-color \
--enable-comment \
--enable-extra \
@@ -46,8 +43,9 @@ class Nano < Package
--enable-utf8 \
--enable-wordcomp \
--enable-wrapping \
--enable-year2038"
system 'make'
--enable-year2038'
configure_build_extras do
open('nanorc', 'w') do |f|
f << "set constantshow\n"
f << "set fill 72\n"
@@ -62,8 +60,7 @@ class Nano < Package
end
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install-strip'
configure_install_extras do
FileUtils.install 'nanorc', "#{CREW_DEST_HOME}/.nanorc", mode: 0o644
end

View File

@@ -25,7 +25,7 @@ class Openh264 < Package
depends_on 'nasm' => :build
def self.build
system "mold -run meson setup #{CREW_MESON_OPTIONS} \
system "meson setup #{CREW_MESON_OPTIONS} \
-Dtests=disabled \
builddir"
system 'meson configure --no-pager builddir'

View File

@@ -72,7 +72,7 @@ class Openmp < Package
-DOPENMP_LIBDIR_SUFFIX=#{CREW_LIB_SUFFIX} \
-DPYTHON_EXECUTABLE=$(which python3) \
-Wno-dev"
system "mold -run #{CREW_NINJA} -C builddir"
system "#{CREW_NINJA} -C builddir"
end
def self.install

View File

@@ -46,7 +46,7 @@ class Openssl < Package
system "PATH=#{CREW_LIB_PREFIX}/ccache/bin:#{CREW_PREFIX}/bin:/usr/bin:/bin \
CFLAGS=\"#{@ARCH_C_LTO_FLAGS}\" CXXFLAGS=\"#{@ARCH_CXX_LTO_FLAGS}\" \
LDFLAGS=\"#{@ARCH_LDFLAGS}\" \
mold -run ./Configure --prefix=#{CREW_PREFIX} \
./Configure --prefix=#{CREW_PREFIX} \
--libdir=#{ARCH_LIB} \
--openssldir=#{CREW_PREFIX}/etc/ssl \
#{@openssl_configure_target} #{@no_tests_target}"

View File

@@ -46,7 +46,7 @@ class Openssl111 < Package
system "PATH=#{CREW_LIB_PREFIX}/ccache/bin:#{CREW_PREFIX}/bin:/usr/bin:/bin \
CFLAGS=\"#{@ARCH_C_LTO_FLAGS}\" CXXFLAGS=\"#{@ARCH_CXX_LTO_FLAGS}\" \
LDFLAGS=\"#{@ARCH_LDFLAGS}\" \
mold -run ./Configure --prefix=#{CREW_PREFIX} \
./Configure --prefix=#{CREW_PREFIX} \
--libdir=#{CREW_LIB_PREFIX} \
--openssldir=#{CREW_PREFIX}/etc/ssl \
#{@openssl_configure_target}"

View File

@@ -34,7 +34,7 @@ class Opus < Package
-Dtests=disabled \
builddir"
system 'meson configure --no-pager builddir'
system "mold -run #{CREW_NINJA} -C builddir"
system "#{CREW_NINJA} -C builddir"
end
def self.install

View File

@@ -37,7 +37,7 @@ class Opusfile < Package
end
def self.build
system "mold -run cmake -B builddir #{CREW_CMAKE_OPTIONS} \
system "cmake -B builddir #{CREW_CMAKE_OPTIONS} \
-DBUILD_SHARED_LIBS=ON \
-Wno-dev \
-G Ninja"

View File

@@ -35,7 +35,7 @@ class Pax_utils < Package
-Duse_seccomp=true \
builddir"
system 'meson configure --no-pager builddir'
system "mold -run #{CREW_NINJA} -C builddir"
system "#{CREW_NINJA} -C builddir"
end
def self.check

View File

@@ -26,7 +26,7 @@ class Peek < Package
depends_on 'gcc_lib' # R
def self.build
system "mold -run meson setup #{CREW_MESON_OPTIONS} \
system "meson setup #{CREW_MESON_OPTIONS} \
-Dbuild-tests=false \
builddir"
system 'meson configure --no-pager builddir'

View File

@@ -28,7 +28,7 @@ class Perl < Package
# Install manual files into #{CREW_PREFIX}/share/man/man* even if groff is not installed.
system "AR=gcc-ar RANLIB=gcc-ranlib NM=gcc-nm \
BUILD_ZLIB=False BUILD_BZIP2=0 \
mold -run ./Configure \
./Configure \
-de \
-Dprefix=#{CREW_PREFIX} \
-Dvendorprefix=#{CREW_PREFIX} \

View File

@@ -93,7 +93,7 @@ class Php74 < Package
end
def self.build
system "CFLAGS='-pipe' mold -run ./configure \
system "CFLAGS='-pipe' ./configure \
--prefix=#{CREW_PREFIX} \
--docdir=#{CREW_PREFIX}/doc \
--infodir=#{CREW_PREFIX}/info \
@@ -145,7 +145,7 @@ class Php74 < Package
--with-xmlrpc \
--with-xsl \
--with-zip"
system 'mold -run make'
system 'make'
end
def self.check

View File

@@ -93,7 +93,7 @@ class Php80 < Package
end
def self.build
system "CFLAGS='-pipe' mold -run ./configure \
system "CFLAGS='-pipe' ./configure \
--prefix=#{CREW_PREFIX} \
--docdir=#{CREW_PREFIX}/doc \
--infodir=#{CREW_PREFIX}/info \
@@ -147,7 +147,7 @@ class Php80 < Package
--with-zip \
--with-ffi \
--with-libedit"
system 'mold -run make'
system 'make'
end
def self.check

View File

@@ -93,7 +93,7 @@ class Php81 < Package
end
def self.build
system "CFLAGS='-pipe' mold -run ./configure \
system "CFLAGS='-pipe' ./configure \
--prefix=#{CREW_PREFIX} \
--docdir=#{CREW_PREFIX}/doc \
--infodir=#{CREW_PREFIX}/info \
@@ -147,7 +147,7 @@ class Php81 < Package
--with-zip \
--with-ffi \
--with-libedit"
system 'mold -run make'
system 'make'
end
def self.check

View File

@@ -95,7 +95,7 @@ class Php82 < Package
end
def self.build
system "mold -run ./configure \
system "./configure \
--prefix=#{CREW_PREFIX} \
--docdir=#{CREW_PREFIX}/doc \
--infodir=#{CREW_PREFIX}/info \

View File

@@ -37,7 +37,7 @@ class Poppler < Package
depends_on 'zlib' # R
def self.build
system "mold -run cmake -B builddir #{CREW_CMAKE_OPTIONS} \
system "cmake -B builddir #{CREW_CMAKE_OPTIONS} \
-DENABLE_UNSTABLE_API_ABI_HEADERS=ON \
-Wno-dev \
-G Ninja"

View File

@@ -93,7 +93,7 @@ class Python3 < Package
--with-tzpath=#{CREW_PREFIX}/share/zoneinfo \
--with-libc= \
--enable-shared"
system "MAKEFLAGS=-j#{CREW_NPROC} mold -run make"
system "MAKEFLAGS=-j#{CREW_NPROC} make"
File.write 'python_config_env', <<~PYTHON_CONFIG_EOF
# Force use of python3 over python2.7 in packages which check the variable to set the python used.
PYTHON=python3

View File

@@ -80,7 +80,7 @@ class Qemu < Package
def self.build
FileUtils.mkdir_p 'build'
Dir.chdir 'build' do
system "mold -run ../configure #{CREW_CONFIGURE_OPTIONS.sub(/--target.*/, '').gsub('vfpv3-d16', 'neon').gsub('--disable-dependency-tracking', '').sub(/--program-prefix.*?(?=\s|$)/, '').sub(/--program-suffix.*?(?=\s|$)/, '')} \
system "../configure #{CREW_CONFIGURE_OPTIONS.sub(/--target.*/, '').gsub('vfpv3-d16', 'neon').gsub('--disable-dependency-tracking', '').sub(/--program-prefix.*?(?=\s|$)/, '').sub(/--program-suffix.*?(?=\s|$)/, '')} \
--enable-kvm \
--enable-lto"
@counter = 1

View File

@@ -38,7 +38,7 @@ class Ruby < Package
RUBY_TRY_LDFLAGS='stack_protector=no' \
optflags='-flto=auto -fuse-ld=#{CREW_LINKER}' \
LD=#{CREW_LINKER} \
mold -run ./configure #{CREW_CONFIGURE_OPTIONS} \
./configure #{CREW_CONFIGURE_OPTIONS} \
--enable-shared \
#{ARCH == 'x86_64' ? '--enable-yjit' : ''} \
--disable-fortify-source"

View File

@@ -24,7 +24,7 @@ class Sassc < Package
def self.build
system 'autoreconf -i'
system "./configure #{CREW_CONFIGURE_OPTIONS}"
system 'mold -run make'
system 'make'
end
def self.install

View File

@@ -24,7 +24,7 @@ class Slang < Package
depends_on 'gcc_lib' # R
def self.build
system "mold -run ./configure #{CREW_CONFIGURE_OPTIONS} --without-x"
system "./configure #{CREW_CONFIGURE_OPTIONS} --without-x"
# force to compile in sequential since slang Makefile doesn't work in parallel
system 'make', '-j1'

View File

@@ -114,7 +114,7 @@ class Sommelier < Package
system <<~BUILD
env CC=clang CXX=clang++ \
mold -run meson setup #{CREW_MESON_OPTIONS.gsub('-ffat-lto-objects', '')} \
meson setup #{CREW_MESON_OPTIONS.gsub('-ffat-lto-objects', '')} \
-Dcommit_loop_fix=true \
-Db_asneeded=false \
-Db_lto=true \
@@ -127,7 +127,7 @@ class Sommelier < Package
BUILD
system 'meson configure --no-pager builddir'
system "mold -run #{CREW_NINJA} -C builddir"
system "#{CREW_NINJA} -C builddir"
FileUtils.mkdir_p 'builddir'
Dir.chdir('builddir') do

View File

@@ -55,7 +55,7 @@ class Spacefm < Package
end
def self.build
system "mold -run ./configure #{CREW_CONFIGURE_OPTIONS} \
system "./configure #{CREW_CONFIGURE_OPTIONS} \
--with-gtk3 \
--disable-maintainer-mode"
system 'make'

View File

@@ -21,7 +21,7 @@ class Taglib < Package
depends_on 'cppunit' => :build
def self.build
system "mold -run cmake -B builddir #{CREW_CMAKE_OPTIONS} \
system "cmake -B builddir #{CREW_CMAKE_OPTIONS} \
-G Ninja"
system "#{CREW_NINJA} -C builddir || ( sed -i 's/-fno-lto//g' builddir/taglib/build.ninja && #{CREW_NINJA} -C builddir)"
end

View File

@@ -23,7 +23,7 @@ class Trousers < Package
def self.build
system './bootstrap.sh'
system "mold -run ./configure \
system "./configure \
#{CREW_CONFIGURE_OPTIONS} \
--with-gui=none"
system 'make'

View File

@@ -36,12 +36,12 @@ class Vala < Package
system 'git checkout b2beeaccdf2307ced172646c2ada9765e1747b28'
system 'touch */*.stamp'
system 'autoreconf -fi'
system "VALAC=/no-valac mold -run ./configure --prefix=#{Dir.pwd}/../bootstrap_install"
system "VALAC=/no-valac ./configure --prefix=#{Dir.pwd}/../bootstrap_install"
system 'make'
system 'make install'
end
system "VALAC=#{Dir.pwd}/bootstrap_install/bin/valac mold -run ./autogen.sh \
system "VALAC=#{Dir.pwd}/bootstrap_install/bin/valac ./autogen.sh \
#{CREW_CONFIGURE_OPTIONS} \
--disable-maintainer-mode \
--disable-valadoc"

View File

@@ -114,7 +114,7 @@ class Webkit2gtk_4_1 < Package
@counter = 1
@counter_max = 20
loop do
break if Kernel.system "mold -run #{CREW_NINJA} -C builddir -j #{CREW_NPROC}"
break if Kernel.system "#{CREW_NINJA} -C builddir -j #{CREW_NPROC}"
puts "Make iteration #{@counter} of #{@counter_max}...".orange