Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
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
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Adélie Linux
abuild
Commits
5e268f8d
Commit
5e268f8d
authored
Jun 02, 2015
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
abuild: cleanup. use better function names
no change in code logic
parent
582b4778
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
abuild.in
abuild.in
+12
-9
No files found.
abuild.in
View file @
5e268f8d
...
...
@@ -868,7 +868,7 @@ EOF
echo
$
metafiles
|
tr
' '
'\n'
>
"$controldir"
/.
metafiles
}
prepare_trace
dep
s
()
{
prepare_trace
_rpath
s
()
{
local
dir
=${
subpkgdir
:-$
pkgdir
}
local
etype
=
soname
=
file
=
sover
=
[
"$arch"
=
"noarch"
]
&&
return
0
...
...
@@ -920,7 +920,7 @@ archcheck() {
prepare_package
()
{
msg
"Preparing ${subpkgname:+sub}package ${subpkgname:-$pkgname}..."
stripbin
prepare_metafiles
&&
prepare_trace
dep
s
||
return
1
prepare_metafiles
&&
prepare_trace
_rpath
s
||
return
1
archcheck
}
...
...
@@ -953,7 +953,7 @@ find_so_files() {
return
0
}
subpkg_provides
()
{
subpkg_provides
_so
()
{
grep
-
q
-
w
"^$1"
"$pkgbasedir"
/.
control
.*/.
provides
-
so
2
>/
dev
/
null
}
...
...
@@ -970,16 +970,18 @@ trace_apk_deps() {
fi
#
special
case
for
libpthread
:
we
need
depend
on
libgcc
if
[
-
f
"$dir"
/.
needs
-
so
]
&&
grep
-
q
-
w
'^libpthread.so.*'
"$dir"
/.
needs
-
so
\
if
[
"$CLIBC"
=
"uclibc"
]
&&
[
-
f
"$dir"
/.
needs
-
so
]
\
&&
grep
-
q
-
w
'^libpthread.so.*'
"$dir"
/.
needs
-
so
\
&&
! grep -q -w "^depend = libgcc" "$dir"/.PKGINFO; then
autodeps
=
"$autodeps libgcc"
msg
" added libgcc (due to libpthread)"
fi
[
-
f
"$dir"
/.
needs
-
so
]
&&
for
i
in
$(
cat
"$dir"
/.
needs
-
so
);
do
#
first
check
if
its
provided
by
same
apkbuild
grep
-
q
-
w
"^$i"
"$dir"
/.
provides
-
so
2
>/
dev
/
null
&&
continue
if
subpkg_provides
"$i"
||
cross_compiling
\
if
subpkg_provides
_so
"$i"
||
cross_compiling
\
||
$
APK
info
--
quiet
--
installed
"so:$i"
;
then
autodeps
=
"$autodeps so:$i"
else
...
...
@@ -1473,11 +1475,12 @@ abuildindex() {
#
1
)
origin
of
package
#
2
)
all
dependencies
#
the
output
is
i
in
a
format
easy
parseable
for
awk
depparse_aport
s
()
{
parse_aports_makedepend
s
()
{
#
lets
run
this
in
a
subshell
since
we
source
all
APKBUILD
here
(
aportsdir
=$(
realpath
${
APKBUILD
%/
APKBUILD
}/..)
for
i
in
$
aportsdir
/*/
APKBUILD
;
do
#
no
forks
in
this
loop
or
it
will
be
painfully
slow
!
pkgname
=
subpackages
=
depends
=
...
...
@@ -1507,14 +1510,14 @@ depparse_aports() {
)
}
deptrace
()
{
trace_makedepends
()
{
local
deps
=
i
=
#
strip
versions
from
deps
for
i
in
"$@"
;
do
deps
=
"$deps ${i%%[<>=]*}"
done
[
-
z
"$deps"
]
&&
return
0
(
depparse_aport
s
(
parse_aports_makedepend
s
if
[
-
z
"$upgrade"
];
then
#
list
installed
pkgs
and
prefix
with
'i '
$
APK
info
--
quiet
|
sort
|
sed
's/^/i /'
...
...
@@ -1627,7 +1630,7 @@ builddeps() {
fi
done
for
i
in
$(
deptrace
$
missing
);
do
for
i
in
$(
trace_makedepends
$
missing
);
do
#
i
=
pkg
:
dir
local
dir
=${
i
#*:}
local
pkg
=${
i
%:*}
...
...
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