mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-04 18:40:19 +02:00
fix dev-ruby/{do_sqlite3,io-console} extensions building
This commit is contained in:
parent
de04f8caab
commit
675142bb0a
7 changed files with 27 additions and 28 deletions
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
|
@ -9,6 +9,7 @@ RUBY_FAKEGEM_TASK_TEST="spec"
|
|||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_EXTRADOC="ChangeLog.markdown README.markdown"
|
||||
RUBY_FAKEGEM_EXTENSIONS=(ext/do_sqlite3/extconf.rb)
|
||||
|
||||
inherit multilib ruby-fakegem
|
||||
|
||||
|
|
@ -31,17 +32,11 @@ ruby_add_bdepend "test? ( dev-ruby/bacon )"
|
|||
|
||||
ruby_add_rdepend "~dev-ruby/data_objects-${PV}"
|
||||
|
||||
each_ruby_configure() {
|
||||
${RUBY} -Cext/do_sqlite3 extconf.rb || die
|
||||
}
|
||||
|
||||
each_ruby_compile() {
|
||||
# We have injected --no-undefined in Ruby as a safety precaution
|
||||
# against broken ebuilds, but these bindings unfortunately rely on
|
||||
# the lazy load of other extensions; see bug #320545.
|
||||
find . -name Makefile -print0 | xargs -0 \
|
||||
sed -i -e 's:-Wl,--no-undefined::' || die "--no-undefined removal failed"
|
||||
|
||||
emake -Cext/do_sqlite3 || die
|
||||
mv ext/do_sqlite3/*$(get_modname) lib/do_sqlite3/ || die
|
||||
each_fakegem_compile
|
||||
}
|
||||
|
|
@ -1,9 +1,10 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
USE_RUBY="ruby27 ruby30 ruby31"
|
||||
RUBY_FAKEGEM_EXTENSIONS=(ext/io/console/extconf.rb)
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
|
|
@ -13,3 +14,6 @@ HOMEPAGE="https://github.com/ruby/io-console"
|
|||
KEYWORDS="amd64 arm64 x86"
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
|
||||
# No Rakefile in the gem?
|
||||
RESTRICT=test
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright 2004-2021 Gentoo Foundation.
|
||||
# Copyright 2004-2023 Gentoo Foundation.
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
|
|
@ -42,7 +42,7 @@ PORTAGE_NICENESS="9"
|
|||
PORTAGE_IO_NICENESS="ionice -c 3 -p \${PID}"
|
||||
|
||||
#tslib causes circular deps with libsdl2
|
||||
USE="${INPUT_USE} X abi_x86_32 adns blake2 caps -consolekit curl elogind fbcon gles2 gps lm-sensors lm_sensors lua lvm lz4 lzip lzma lzo networkmanager oss pentoo-full perl pulseaudio python ruby samba sqlite subversion verify-sig vdpau vaapi vulkan wayland xattr xinerama x265 zstd"
|
||||
USE="${INPUT_USE} X abi_x86_32 adns blake2 caps -consolekit curl elogind fbcon gles2 gps lm-sensors lm_sensors lto lua lvm lz4 lzip lzma lzo networkmanager oss pentoo-full perl pgo pulseaudio python ruby samba sqlite subversion verify-sig vdpau vaapi vulkan wayland xattr xinerama x265 zstd"
|
||||
|
||||
#ease python upgrade
|
||||
#USE="${USE} -python_targets_python2_7 python_targets_python3_10 python_targets_python3_11"
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
cross-avr/gcc graphite sanitize lto pgo vtv
|
||||
cross-avr/gcc graphite sanitize
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
sys-devel/binutils multitarget
|
||||
sys-devel/gcc lto pgo fortran
|
||||
sys-devel/gcc fortran
|
||||
sys-devel/llvm clang
|
||||
|
||||
# required by net-analyzer/tcpreplay-4.0.4
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
#libaom builds for me but not in catalyst
|
||||
www-client/firefox lto -system-av1
|
||||
>=www-client/firefox-91.4.0 pgo
|
||||
www-client/chromium libcxx
|
||||
www-client/firefox -system-av1
|
||||
|
|
|
|||
|
|
@ -8,21 +8,21 @@ echo ${MAKEOPTS} | grep -q -e -j || export MAKEOPTS="-j${CORES} -l${CORES}"
|
|||
|
||||
#let's speed up the cracker's default cflags a bit. this bloats the binaries but speeds improve
|
||||
if [[ $CATEGORY/$PN == net-wireless/aircrack-ng ]]; then
|
||||
export CFLAGS=${CFLAGS/-Os/-O3}
|
||||
export CXXFLAGS=${CXXFLAGS/-Os/-O3}
|
||||
export CFLAGS="${CFLAGS/-Os/-O3} -Werror=strict-aliasing -flto"
|
||||
export CXXFLAGS="${CXXFLAGS/-Os/-O3} -Werror=strict-aliasing -flto"
|
||||
fi
|
||||
if [[ $CATEGORY/$PN == app-crypt/asleap ]]; then export CFLAGS=${CFLAGS/-Os/-O3}; fi
|
||||
if [[ $CATEGORY/$PN == app-crypt/hashcat ]]; then export CFLAGS=${CFLAGS/-Os/-O3}; fi
|
||||
if [[ $CATEGORY/$PN == app-crypt/johntheripper ]]; then export CFLAGS=${CFLAGS/-Os/-O3}; fi
|
||||
if [[ $CATEGORY/$PN == app-crypt/johntheripper-jumbo ]]; then export CFLAGS=${CFLAGS/-Os/-O3}; fi
|
||||
if [[ $CATEGORY/$PN == dev-libs/pocl ]]; then export CFLAGS=${CFLAGS/-Os/-O3}; fi
|
||||
if [[ $CATEGORY/$PN == net-wireless/cowpatty ]]; then export CFLAGS=${CFLAGS/-Os/-O3}; fi
|
||||
if [[ $CATEGORY/$PN =~ net-wireless/soapy* ]]; then export CFLAGS=${CFLAGS/-Os/-O3}; export CXXFLAGS=${CXXFLAGS/-Os/-O3}; fi
|
||||
if [[ $CATEGORY/$PN == net-wireless/kismet ]]; then export CFLAGS=${CFLAGS/-Os/-O3}; fi
|
||||
if [[ $CATEGORY/$PN == app-crypt/asleap ]]; then export CFLAGS="${CFLAGS/-Os/-O3} -Werror=strict-aliasing -flto"; fi
|
||||
if [[ $CATEGORY/$PN == app-crypt/hashcat ]]; then export CFLAGS="${CFLAGS/-Os/-O3} -Werror=strict-aliasing -flto"; fi
|
||||
if [[ $CATEGORY/$PN == app-crypt/johntheripper ]]; then export CFLAGS="${CFLAGS/-Os/-O3} -Werror=strict-aliasing -flto"; fi
|
||||
if [[ $CATEGORY/$PN == app-crypt/johntheripper-jumbo ]]; then export CFLAGS="${CFLAGS/-Os/-O3} -Werror=strict-aliasing -flto"; fi
|
||||
if [[ $CATEGORY/$PN == dev-libs/pocl ]]; then export CFLAGS="${CFLAGS/-Os/-O3} -Werror=strict-aliasing -flto"; fi
|
||||
if [[ $CATEGORY/$PN == net-wireless/cowpatty ]]; then export CFLAGS="${CFLAGS/-Os/-O3} -Werror=strict-aliasing -flto"; fi
|
||||
if [[ $CATEGORY/$PN =~ net-wireless/soapy* ]]; then export CFLAGS="${CFLAGS/-Os/-O3} -Werror=strict-aliasing -flto"; export CXXFLAGS="${CXXFLAGS/-Os/-O3} -Werror=strict-aliasing -flto"; fi
|
||||
if [[ $CATEGORY/$PN == net-wireless/kismet ]]; then export CFLAGS=${CFLAGS/-Os/-O3}; export CXXFLAGS=${CXXFLAGS/-Os/-O3}; fi
|
||||
#speaking of, why not build gcc fast like the crackers
|
||||
if [[ $CATEGORY/$PN == sys-devel/gcc ]]; then export CFLAGS=${CFLAGS/-Os/-O3}; fi
|
||||
if [[ $CATEGORY/$PN == sys-devel/binutils ]]; then export CFLAGS=${CFLAGS/-Os/-O3}; fi
|
||||
if [[ $CATEGORY/$PN == sys-libs/binutils-libs ]]; then export CFLAGS=${CFLAGS/-Os/-O3}; fi
|
||||
if [[ $CATEGORY/$PN == sys-devel/gcc ]]; then export CFLAGS="${CFLAGS/-Os/-O3} -Werror=strict-aliasing -flto"; fi
|
||||
if [[ $CATEGORY/$PN == sys-devel/binutils ]]; then export CFLAGS="${CFLAGS/-Os/-O3} -Werror=strict-aliasing -flto"; fi
|
||||
if [[ $CATEGORY/$PN == sys-libs/binutils-libs ]]; then export CFLAGS="${CFLAGS/-Os/-O3} -Werror=strict-aliasing -flto"; fi
|
||||
|
||||
#Sign kernel modules, stolen unmodified on 20200514 from:
|
||||
#https://wiki.gentoo.org/wiki/Signed_kernel_module_support
|
||||
|
|
|
|||
Loading…
Reference in a new issue