Skip to content

Commit

Permalink
dev-libs/Ice: fix USE=ruby, restrict tests for now
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/636834
Closes: https://bugs.gentoo.org/649850
Closes: https://bugs.gentoo.org/654070
Package-Manager: Portage-2.3.28, Repoman-2.3.9
  • Loading branch information
Dessa authored and Whissi committed Apr 26, 2018
1 parent 109669c commit 781388a
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions dev-libs/Ice/Ice-3.6.3-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ LICENSE="GPL-2"
SLOT="0/36"
KEYWORDS="amd64 ~arm x86"
IUSE="doc examples libressl +ncurses mono php python ruby test debug"
RESTRICT="test"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"

RDEPEND=">=dev-libs/expat-2.0.1
Expand Down Expand Up @@ -114,12 +115,14 @@ src_prepare() {
-e '/SUBDIRS/s|\ test||' \
csharp/Makefile || die "sed failed"

# IceUtil/stacktrace fails with USE=debug
# skip udp test due to multicast
# skip IceGrid/admin bug #649850
# skip IceSSL tests due to requirement of internet connection
# skip IceStorm/single bug #636834
# IceStorm/stress fails without USE=debug
# IceUtil/stacktrace fails with USE=debug
sed -i \
-e 's|allTests.py|allTests.py --rfilter=IceUtil\/stacktrace --rfilter=udp --rfilter=IceSSL --rfilter=IceStorm\/stress|' \
-e 's|allTests.py|allTests.py --rfilter=IceUtil\/stacktrace --rfilter=udp --rfilter=IceGrid\/admin --rfilter=IceSSL --rfilter=IceStorm\/single --rfilter=IceStorm\/stress|' \
cpp/Makefile || die "sed failed"

# mainly broken .ice files
Expand All @@ -131,6 +134,11 @@ src_prepare() {
sed -i \
-e 's|allTests.py|allTests.py --rfilter=Slice\/unicodePaths|' \
ruby/Makefile || die "sed failed"

# fix for x86 IceBox test
sed -i \
-e 's|"32"|""|' \
scripts/TestUtil.py || die "sed failed"
}

src_configure() {
Expand Down Expand Up @@ -182,16 +190,16 @@ src_configure() {

# make it use ruby23 only
sed -i \
-e 's|RUBY = ruby|\022|' \
-e 's|RUBY = ruby|\023|' \
ruby/config/Make.rules || die "sed failed"
sed -i \
-e 's|env ruby|\022|' \
-e 's|env ruby|\023|' \
ruby/config/s2rb.rb || die "sed failed"
sed -i \
-e 's|env ruby|\022|' \
-e 's|env ruby|\023|' \
ruby/scripts/slice2rb || die "sed failed"
sed -i \
-e 's|output.write("ruby|\022|' \
-e 's|output.write("ruby|\023|' \
scripts/TestUtil.py || die "sed failed"
fi

Expand Down

0 comments on commit 781388a

Please sign in to comment.