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
3b8653ad
Commit
3b8653ad
authored
Aug 11, 2015
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
introduce build32on64 and use it
parent
70ecd238
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
12 deletions
+17
-12
rpmbph
bin/rpmbph
+7
-6
repl
share/eterbuild/functions/repl
+10
-6
No files found.
bin/rpmbph
View file @
3b8653ad
...
...
@@ -80,11 +80,13 @@ else
# see install in Korinf, need concatenate
BUILDREQ
=
"
$BUILDREQ
make gcc
\n
$FIXPATCHFUZZ
"
if
[
"
$BUILDARCH
"
=
"x86_64"
]
&&
rhas
"
$BUILDNAME
"
wine
;
then
if
build32on64
;
then
[
"
$DISTRNAME
"
=
"Debian"
]
&&
BUILDREQ
=
"
$BUILDREQ
ia32-libs"
&&
ADDREQUIRES
=
"
$ADDREQUIRES
ia32-libs"
[
"
$DISTRNAME
"
=
"Ubuntu"
]
&&
!
version_more_version
$DISTRVERSION
12.04
]
&&
BUILDREQ
=
"
$BUILDREQ
ia32-libs"
&&
ADDREQUIRES
=
"
$ADDREQUIRES
ia32-libs"
[
"
$DISTRNAME
"
=
"CentOS"
]
&&
version_more_version
$DISTRVERSION
6
]
&&
BUILDREQ
=
"
$BUILDREQ
glibc-devel.i686"
[
"
$DISTRNAME
"
=
"Scientific"
]
&&
version_more_version
$DISTRVERSION
6
]
&&
BUILDREQ
=
"
$BUILDREQ
glibc-devel.i686"
[
"
$DISTRNAME
"
=
"Ubuntu"
]
&&
!
version_more_version
$DISTRVERSION
12.04
&&
BUILDREQ
=
"
$BUILDREQ
ia32-libs"
&&
ADDREQUIRES
=
"
$ADDREQUIRES
ia32-libs"
[
"
$DISTRNAME
"
=
"CentOS"
]
&&
version_more_version
$DISTRVERSION
6
&&
BUILDREQ
=
"
$BUILDREQ
glibc-devel.i686"
[
"
$DISTRNAME
"
=
"Scientific"
]
&&
version_more_version
$DISTRVERSION
6
&&
BUILDREQ
=
"
$BUILDREQ
glibc-devel.i686"
[
"
$DISTRNAME
"
=
"SLED"
]
&&
version_more_version
$DISTRVERSION
11
&&
BUILDREQ
=
"
$BUILDREQ
glibc-devel-32bit gcc-32bit"
[
"
$DISTRNAME
"
=
"SUSE"
]
&&
version_more_version
$DISTRVERSION
11
&&
BUILDREQ
=
"
$BUILDREQ
glibc-devel-32bit gcc-32bit"
fi
# Hack for allow repack on x86_64 packages with ExclusiveArch: %{ix586}
...
...
@@ -128,8 +130,7 @@ if [ "$PKGVENDOR" = "freebsd" ] ; then
%__subst 's|readlink -mv|realpath|g' libtool configure ltmain.sh"
fi
# HACK need only for wine on x86_64
if
[
"
$BUILDARCH
"
=
"x86_64"
]
&&
rhas
"
$SPECNAME
"
wine
;
then
if
build32on64
;
then
test
-z
"
$VERBOSE
"
||
echo
"Add remove_optflags -m64"
ADDFIXCOMMAND
=
"
$ADDFIXCOMMAND
%remove_optflags -m64"
...
...
share/eterbuild/functions/repl
View file @
3b8653ad
#!/bin/bash
# 2008
Etersoft www.
etersoft.ru
# 2008
-2015 Etersoft http://
etersoft.ru
# Author: Vitaly Lipatov <lav@etersoft.ru>
# Public domain
...
...
@@ -9,6 +9,12 @@ filter_deb_pkgnames()
sed
-e
"s|^ *
\(
.*
\)
-devel *
\$
|
\1
-dev|g"
|
tr
"[A-Z]"
"[a-z]"
}
build32on64
()
{
# FIXME: wine hack, use external replacement package list
[
"
$BUILDARCH
"
=
"x86_64"
]
&&
rhas
"
$BUILDNAME
"
wine
}
# Hack for improve requires for 32-bit build on 64-bit system
# See rpmbph also
add_32bit_requires
()
...
...
@@ -21,8 +27,7 @@ add_32bit_requires()
local
GREP
=
"
$1
"
shift
# Only for build wine on x86_64
if
[
"
$BUILDARCH
"
=
"x86_64"
]
&&
rhas
"
$BUILDNAME
"
wine
;
then
if
build32on64
;
then
if
[
"
$DISTRNAME
"
=
"Fedora"
]
||
[
"
$DISTRNAME
"
=
"Scientific"
]
||
[
"
$DISTRNAME
"
=
"CentOS"
-a
"
$DISTRVERSION
"
!=
5
]
;
then
# http://www.rpm.org/wiki/PackagerDocs/ArchDependencies
# add (x86-32) to all -devel packages
...
...
@@ -70,7 +75,7 @@ hack_distr_requires()
case
"
$DISTRNAME
"
in
"Mandriva"
)
if
[
$BUILDARCH
=
"x86_64"
]
;
then
if
[
$BUILDARCH
=
"x86_64"
]
&&
!
build32on64
;
then
echo
"
$GREP
"
|
sed
-e
"s|^lib
\(
[^6]
\)
|lib64
\1
|g"
return
fi
...
...
@@ -190,8 +195,7 @@ print_replbased_list()
{
local
REPLBASE
=
"
$1
"
if
[
"
$BUILDARCH
"
=
"x86_64"
]
;
then
# FIXME: wine hack, use external replacement package list
if
rhas
"
$BUILDNAME
"
wine
;
then
if
build32on64
;
then
internal_repl_list
$REPLBASE
.x86_64-i586 |
uniq
else
internal_repl_list
$REPLBASE
.x86_64 |
uniq
...
...
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