mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-20 23:46:14 -04:00
dev-lang/swift: ebuild correctness fixes
Signed-off-by: Itai Ferber <itai@itaiferber.net>
This commit is contained in:
parent
b7c90de761
commit
4ea75ccb16
@ -49,10 +49,10 @@ SRC_URI="
|
|||||||
https://github.com/unicode-org/icu/archive/refs/tags/release-69-1.tar.gz -> icu-69.1.tar.gz
|
https://github.com/unicode-org/icu/archive/refs/tags/release-69-1.tar.gz -> icu-69.1.tar.gz
|
||||||
"
|
"
|
||||||
|
|
||||||
PATCHES="
|
PATCHES=(
|
||||||
${FILESDIR}/${P}-link-with-lld.patch
|
"${FILESDIR}/${P}-link-with-lld.patch"
|
||||||
${FILESDIR}/${P}-llbuild-link-ncurses-tinfo-gentoo.patch
|
"${FILESDIR}/${P}-llbuild-link-ncurses-tinfo-gentoo.patch"
|
||||||
"
|
)
|
||||||
|
|
||||||
S="${WORKDIR}"
|
S="${WORKDIR}"
|
||||||
LICENSE="Apache-2.0"
|
LICENSE="Apache-2.0"
|
||||||
@ -234,7 +234,7 @@ src_install() {
|
|||||||
# `libicudataswift.so.69.1` has an empty `DT_RUNPATH`, which fails
|
# `libicudataswift.so.69.1` has an empty `DT_RUNPATH`, which fails
|
||||||
# `rpath_security_checks`. It contains only data, so we can remove its rpath
|
# `rpath_security_checks`. It contains only data, so we can remove its rpath
|
||||||
# altogether.
|
# altogether.
|
||||||
patchelf --remove-rpath "${S}/stage2/usr/lib/swift/linux/libicudataswift.so.69.1"
|
patchelf --remove-rpath "${S}/stage2/usr/lib/swift/linux/libicudataswift.so.69.1" || die
|
||||||
|
|
||||||
# The Swift build output is intended to be self-contained, and is
|
# The Swift build output is intended to be self-contained, and is
|
||||||
# _significantly_ easier to leave as-is than attempt to splat onto the
|
# _significantly_ easier to leave as-is than attempt to splat onto the
|
||||||
@ -249,6 +249,7 @@ src_install() {
|
|||||||
# exposed externally, so we'll just symlink Swift-specific binaries into
|
# exposed externally, so we'll just symlink Swift-specific binaries into
|
||||||
# `/usr/bin`. (The majority of executables don't need to be exposed as
|
# `/usr/bin`. (The majority of executables don't need to be exposed as
|
||||||
# `swift <command>` calls `swift-<command>` directly.)
|
# `swift <command>` calls `swift-<command>` directly.)
|
||||||
|
local bin
|
||||||
for bin in swift swiftc sourcekit-lsp; do
|
for bin in swift swiftc sourcekit-lsp; do
|
||||||
dosym -r "${dest_dir}/usr/bin/${bin}" "/usr/bin/${bin}"
|
dosym -r "${dest_dir}/usr/bin/${bin}" "/usr/bin/${bin}"
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user