Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pmbootstrap
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
postmarketOS
pmbootstrap
Merge requests
!2458
build: package: error when --src and --arch but no APKBUILD
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
build: package: error when --src and --arch but no APKBUILD
caleb/error-when-src-no-apkbuild
into
master
Overview
0
Commits
1
Pipelines
2
Changes
1
Merged
Caleb Connolly
requested to merge
caleb/error-when-src-no-apkbuild
into
master
5 months ago
Overview
0
Commits
1
Pipelines
2
Changes
1
Expand
Fixes
#2473 (closed)
Edited
5 months ago
by
Caleb Connolly
1
0
Merge request reports
Compare
master
version 1
50a577e5
5 months ago
master (base)
and
latest version
latest version
657c25c9
1 commit,
5 months ago
version 1
50a577e5
1 commit,
5 months ago
1 file
+
12
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
pmb/build/_package.py
+
12
−
1
Options
@@ -323,6 +323,7 @@ def process_package(
arch
:
Arch
|
None
,
fallback_arch
:
Arch
,
force
:
bool
,
from_src
:
bool
,
)
->
list
[
str
]:
"""
:param arch: Set if we should build for a specific arch.
@@ -330,7 +331,17 @@ def process_package(
# Only build when APKBUILD exists
base_aports
,
base_apkbuild
=
get_apkbuild
(
pkgname
)
if
not
base_apkbuild
:
# We allow this function to be called for packages that aren't in pmaports
# and just do nothing in this case. However this can be quite confusing
# when building an Alpine package with --src since we'll just do nothing
if
pmb
.
parse
.
apkindex
.
providers
(
pkgname
,
fallback_arch
,
False
):
if
from_src
:
raise
NonBugError
(
f
"
Package
{
pkgname
}
is not in pmaports, but exists in Alpine.
"
"
to build it with --src you first need to fork it to pmaports.
"
f
"
Please run
'
pmbootstrap aportgen --fork-alpine
{
pkgname
}
'
and then
"
"
try again
"
)
return
[]
raise
RuntimeError
(
f
"
{
pkgname
}
: Could not find aport, and
"
"
could not find this package in any APKINDEX!
"
@@ -548,7 +559,7 @@ def packages(
all_dependencies
:
list
[
str
]
=
[]
for
pkgname
in
pkgnames
:
all_dependencies
+=
process_package
(
context
,
queue_build
,
pkgname
,
arch
,
fallback_arch
,
force
context
,
queue_build
,
pkgname
,
arch
,
fallback_arch
,
force
,
src
is
not
None
)
# If any of our common build packages need to be built and are missing, then add them
Loading