Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
korinf
etersoft-build-utils
Commits
567ddb11
Commit
567ddb11
authored
May 15, 2012
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix trans_rpmdeps_to_pkgname (requires conversion to package name)
parent
ce352388
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
alt
share/eterbuild/functions/alt
+10
-2
test_cget_depends.sh
tests/test_cget_depends.sh
+3
-2
No files found.
share/eterbuild/functions/alt
View file @
567ddb11
...
...
@@ -118,20 +118,28 @@ get_rpmpkg_requires()
trans_rpmdeps_to_pkgname
()
{
# partially copied from aptU
local
ALREADYHANDLEDAPT
=
"bash sh apt rpm filesystem alt-gpgkeys glibc-core glibc-locales"
local
ALREADYHANDLEDRPM
=
"rpmlib.* rtld libgcc_s
\.
.* libstdc
\+\+
.* libc
\.
so.* ld-linux
\.
so.* libpthread
\.
so.* librt
\.
so.*"
local
REQLIST
REQLIST
=
$(
get_rpmpkg_requires
-p
"
$1
"
)
REQLIST
=
$(
regexp_exclude_list
"
$ALREADYHANDLEDRPM
"
"
$REQLIST
"
)
# partially copied from aptU
VIRTREQ
=
$(
LANG
=
C apt-get
install
--print-uris
$REQLIST
2>&1 |
grep
"is a virtual package provided by"
|
cut
-f2
-d
" "
|
sort
-u
)
# FIXME: f.i., we got /usr/bin/lpstat in VIRTREQ (select cups or lprng package?). Skip now
REQLIST
=
$(
regexp_exclude_list
"VIRTREQ"
"
$REQLIST
"
)
TRREALREQ
=
$(
LANG
=
C apt-get
install
--print-uris
$REQLIST
2>&1 |
grep
"^Selecting"
|
cut
-f2
-d
" "
|
sort
-u
)
for
ni
in
$REQLIST
$VIRTREQ
$TRREALREQ
;
do
# remove basesystem packages
ALREADYHANDLEDRPM
=
"bash sh filesystem alt-gpgkeys glibc-core glibc-locales chkconfig service setup shadow-utils"
REQLIST
=
$(
regexp_exclude_list
"
$ALREADYHANDLEDRPM
"
"
$REQLIST
$VIRTREQ
$TRREALREQ
"
)
for
ni
in
$REQLIST
;
do
# drop internal reqs (already converted via apt)
echo
$ni
|
grep
-q
"/"
&&
continue
echo
$ni
|
grep
-q
"
\.
so
\.
"
&&
continue
echo
$ni
|
grep
-q
")"
&&
continue
# extra words when run on x86_64
echo
$ni
|
sed
-e
"s/^i586-//g"
|
sed
-e
"s/
\.
32bit
$/
/g"
done
|
sort
-u
...
...
tests/test_cget_depends.sh
View file @
567ddb11
#!/bin/sh
#!/bin/
ba
sh
# load common functions, compatible with local and installed script
.
`
dirname
$0
`
/../share/eterbuild/functions/common
load_mod alt
testfile
=
$(
echo
/var/ftp/pub/Etersoft/RX@Etersoft/testing/CentOS/6/nxclient-
*
.i586.rpm
)
#testfile=$(echo /var/ftp/pub/Etersoft/RX@Etersoft/testing/CentOS/6/nxclient-*.i586.rpm)
testfile
=
$(
echo
/var/ftp/pub/Etersoft/RX@Etersoft/testing/ALTLinux/Sisyphus/rx-etersoft-
*
.i586.rpm
)
trans_rpmdeps_to_pkgname
$testfile
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