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
944ff741
Commit
944ff741
authored
Aug 10, 2015
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small fixes
parent
067b51fc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
5 deletions
+22
-5
repl
share/eterbuild/functions/repl
+3
-3
test_repl_find.sh
tests/test_repl_find.sh
+19
-2
No files found.
share/eterbuild/functions/repl
View file @
944ff741
...
...
@@ -72,11 +72,11 @@ tolocal_anyrepl()
for
i
in
$@
;
do
REPLRULE
=
`
grep
-v
"^#"
"
$i
"
2>/dev/null |
grep
--
"^ *
$GREP
*|"
|
sed
-e
"
$WARULES
"
|
head
-n1
`
# For broken rule
echo
$REPLRULE
|
grep
"|"
>
/dev/null
||
REPLRULE
=
""
rhas
"
$REPLRULE
"
"|"
||
REPLRULE
=
""
#REPLRULE=`echo $REPLRULE | sed -r -e 's,|,!,g'`
ALTPKGNAME
=
`
echo
$REPLRULE
|
cut
-d
"|"
-f1
|
sed
-e
"s|
\+
|
\\\\\+
|g"
`
TARGETPKGNAME
=
`
echo
$REPLRULE
|
cut
-d
"|"
-f2
|
sed
-e
"s|
\+
|
\\\\\+
|g"
`
test
-n
"
$REPLRULE
"
&&
TARGETPKGNAME
=
$(
add_32bit_requires
$TARGETPKGNAME
)
&&
return
0
test
-n
"
$REPLRULE
"
&&
TARGETPKGNAME
=
$(
add_32bit_requires
"
$TARGETPKGNAME
"
)
&&
return
0
done
# Part of local hack
...
...
@@ -105,7 +105,7 @@ tolocal_anyrepl()
FIXNEWRESULT
=
$(
add_32bit_requires
$NEWRESULT
)
ALTPKGNAME
=
$GREP
ALTPKGNAME
=
"
$GREP
"
TARGETPKGNAME
=
"
$FIXNEWRESULT
"
# return if no chance to replace
[
"
$FIXNEWRESULT
"
=
"
$GREP
"
]
&&
return
1
...
...
tests/test_repl_find.sh
View file @
944ff741
...
...
@@ -99,7 +99,7 @@ check_repl libX11-devel libX11
############################# Fedora ##########################
DISTRNAME
=
Fedora
PKGVENDOR
=
fedora
DISTRVERSION
=
17
DISTRVERSION
=
21
BUILDARCH
=
x86_64
PKGFORMAT
=
rpm
...
...
@@ -118,5 +118,22 @@ check_repl fontconfig-devel "fontconfig-devel"
check_repl unknown-devel
"unknown-devel"
check_repl rpm-build-compat rpm-build-altlinux-compat
check_repl libusb-devel libusb
1
-devel
check_repl libusb-devel libusb
x
-devel
############################# SUSE ##########################
BUILDNAME
=
wine
DISTRNAME
=
SUSE
PKGVENDOR
=
suse
DISTRVERSION
=
12.3
BUILDARCH
=
x86_64
PKGFORMAT
=
rpm
echo
echo
"Replacement files for
$PKGVENDOR
/
$DISTRVERSION
(target
$PKGFORMAT
):"
print_pkgrepl_list
check_repl libgphoto2-devel
"libgphoto2-devel"
check_repl libgphoto2-6
"libgphoto2-6-32bit"
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