Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
aports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Paul Bredbury
aports
Commits
2ce3026a
Commit
2ce3026a
authored
1 year ago
by
alice
Browse files
Options
Downloads
Patches
Plain Diff
community/rust: simplify
parent
d33477f4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
community/rust/APKBUILD
+15
-25
15 additions, 25 deletions
community/rust/APKBUILD
with
15 additions
and
25 deletions
community/rust/APKBUILD
+
15
−
25
View file @
2ce3026a
...
...
@@ -8,7 +8,7 @@ pkgname=rust
pkgver
=
1.69.0
_llvmver
=
16
_bootver
=
1.68.0
pkgrel
=
9
pkgrel
=
10
pkgdesc
=
"The Rust Programming Language"
url
=
"https://www.rust-lang.org/"
arch
=
"all"
...
...
@@ -114,19 +114,14 @@ builddir="$srcdir/rustc-$pkgver-src"
# - CVE-2019-16760
if
[
-z
"
$BOOTSTRAP
"
]
;
then
case
"
$CARCH
"
in
s390x
)
;;
*
)
makedepends_build
=
"
$makedepends_build
patchelf
"
makedepends_host
=
"
$makedepends_host
scudo-malloc
"
;;
esac
makedepends_build
=
"
$makedepends_build
patchelf
"
makedepends_host
=
"
$makedepends_host
scudo-malloc
"
fi
# We have to add new arches in multiple steps:
...
...
@@ -323,17 +318,12 @@ package() {
find
"
$pkgdir
"
/usr/lib/rustlib
-type
f
-perm
-700
-exec
chmod
755
{}
\+
if
[
-z
"
$BOOTSTRAP
"
]
;
then
case
"
$CARCH
"
in
s390x
)
;;
*
)
# link scudo to tools by default on supported arches
# this is roughly 20+% faster with no downside
patchelf
--add-needed
libscudo.so
\
"
$pkgdir
"
/usr/bin/cargo
\
"
$pkgdir
"
/usr/bin/rustc
\
"
$pkgdir
"
/usr/bin/rustdoc
;;
esac
# link scudo to tools by default on supported arches
# this is roughly 20+% faster with no downside
patchelf
--add-needed
libscudo.so
\
"
$pkgdir
"
/usr/bin/cargo
\
"
$pkgdir
"
/usr/bin/rustc
\
"
$pkgdir
"
/usr/bin/rustdoc
fi
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment