Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
abuild
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
25
Issues
25
List
Boards
Labels
Service Desk
Milestones
Merge Requests
16
Merge Requests
16
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
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
alpine
abuild
Commits
0db502b9
Commit
0db502b9
authored
Jan 06, 2011
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
abuild: only warn when we think there should have been noarch
and we dont want -dev packages to be noarch
parent
66966c5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
abuild.in
abuild.in
+8
-4
No files found.
abuild.in
View file @
0db502b9
...
...
@@ -566,6 +566,11 @@ dir_has_arch_binaries() {
return
1
}
# returns true if this is the -dev package
is_dev_pkg
()
{
test
"
${
subpkgname
%-dev
}
"
!=
"
$subpkgname
"
}
# check that noarch is set if needed
archcheck
()
{
options_has
"!archcheck"
&&
return
0
...
...
@@ -573,10 +578,9 @@ archcheck() {
[
"
$arch
"
!=
"noarch"
]
&&
return
0
error
"Arch specific binaries found so arch must not be set to
\"
noarch
\"
"
return
1
else
[
"
$arch
"
=
"noarch"
]
&&
return
0
error
"No arch specific binaries found so arch should be set to
\"
noarch
\"
"
return
1
elif
[
"
$arch
"
!=
"noarch"
]
&&
!
is_dev_pkg
;
then
# we dont want -dev package go to noarch
warning
"No arch specific binaries found so arch should probably be set to
\"
noarch
\"
"
fi
return
0
}
...
...
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