Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libloc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
libloc
Commits
8791dbb6
Commit
8791dbb6
authored
May 19, 2020
by
Michael Tremer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debian: Setup build environment only once per release
Signed-off-by:
Michael Tremer
<
michael.tremer@ipfire.org
>
parent
3d262886
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
11 deletions
+18
-11
debian/build.sh
debian/build.sh
+18
-11
No files found.
debian/build.sh
View file @
8791dbb6
...
...
@@ -13,6 +13,13 @@ main() {
return
2
fi
# Get host architecture
local
host_arch
=
"
$(
dpkg
--print-architecture
)
"
if
[
-z
"
${
host_arch
}
"
]
;
then
echo
"Could not discover host architecture"
>
&2
return
1
fi
local
package
=
"
${
1
}
"
local
sources
=
"
${
2
}
"
...
...
@@ -37,20 +44,20 @@ main() {
# Build the package for each release
local
release
for
release
in
${
RELEASES
[@]
}
;
do
local chroot
=
"
${
release
}
-
${
host_arch
}
-sbuild"
# Create a chroot environment
if
[
!
-d
"/etc/sbuild/chroot/
${
chroot
}
"
]
;
then
if
!
sbuild-createchroot
--arch
=
"
${
host_arch
}
"
"
${
release
}
"
\
"
${
CHROOT_PATH
}
/
${
chroot
}
"
;
then
echo
"Could not create chroot for
${
release
}
on
${
host_arch
}
"
>
&2
return
1
fi
fi
# And for each architecture we want to support
local arch
for
arch
in
${
ARCHITECTURES
[@]
}
;
do
local chroot
=
"
${
release
}
-
${
arch
}
-sbuild"
# Create a chroot environment
if
[
!
-d
"/etc/sbuild/chroot/
${
chroot
}
"
]
;
then
if
!
sbuild-createchroot
--arch
=
"
${
arch
}
"
"
${
release
}
"
\
"
${
CHROOT_PATH
}
/
${
chroot
}
"
;
then
echo
"Could not create chroot for
${
release
}
on
${
arch
}
"
>
&2
return
1
fi
fi
# Run the build process
if
!
sbuild
--dist
=
"
${
release
}
"
--host
=
"
${
arch
}
"
;
then
echo
"Could not build package for
${
release
}
on
${
arch
}
"
>
&2
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment