Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
devtools
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
archlinux
devtools
Commits
1489f754
Commit
1489f754
authored
11 years ago
by
Jan Alexander Steffens (heftig)
Browse files
Options
Downloads
Patches
Plain Diff
arch-nspawn: setarch to CARCH
Allows calling makechrootpkg without worrying about the architecture
parent
7ca4eb82
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
arch-nspawn.in
+7
-1
7 additions, 1 deletion
arch-nspawn.in
archbuild.in
+2
-2
2 additions, 2 deletions
archbuild.in
with
9 additions
and
3 deletions
arch-nspawn.in
+
7
−
1
View file @
1489f754
...
...
@@ -96,4 +96,10 @@ fi
build_mount_args
copy_hostconf
exec
systemd-nspawn
-D
"
$working_dir
"
--machine
"
${
working_dir
//\//-
}
"
"
${
mount_args
[@]
}
"
"
$@
"
eval
$(
grep
'^CARCH='
"
$working_dir
/etc/makepkg.conf"
)
exec
${
CARCH
:+setarch
"
$CARCH
"
}
systemd-nspawn
\
-D
"
$working_dir
"
\
--machine
"
${
working_dir
//\//-
}
"
\
"
${
mount_args
[@]
}
"
\
"
$@
"
This diff is collapsed.
Click to expand it.
archbuild.in
+
2
−
2
View file @
1489f754
...
...
@@ -69,7 +69,7 @@ if ${clean_first} || [[ ! -d "${chroots}/${repo}-${arch}" ]]; then
"
${
base_packages
[@]
}
"
||
abort
else
lock 9
"
${
chroots
}
/
${
repo
}
-
${
arch
}
/root.lock"
"Locking clean chroot"
setarch
${
arch
}
arch-nspawn
\
arch-nspawn
\
-C
"@pkgdatadir@/pacman-
${
repo
}
.conf"
\
-M
"@pkgdatadir@/makepkg-
${
arch
}
.conf"
\
"
${
chroots
}
/
${
repo
}
-
${
arch
}
/root"
\
...
...
@@ -77,4 +77,4 @@ else
fi
msg
"Building in chroot for [
${
repo
}
] (
${
arch
}
)..."
exec
setarch
"
${
arch
}
"
makechrootpkg
"
${
makechrootpkg_args
[@]
}
"
-r
"
${
chroots
}
/
${
repo
}
-
${
arch
}
"
exec
makechrootpkg
"
${
makechrootpkg_args
[@]
}
"
-r
"
${
chroots
}
/
${
repo
}
-
${
arch
}
"
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