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
2140456b
Commit
2140456b
authored
May 19, 2012
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replace DEFAULTARCH with BUILDARCH
parent
dc817e16
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
25 additions
and
26 deletions
+25
-26
dmake
bin/dmake
+2
-2
loginhsh
bin/loginhsh
+1
-1
myhsh
bin/myhsh
+4
-4
rpmbb
bin/rpmbb
+2
-2
rpmbph
bin/rpmbph
+2
-4
rpmunmets
bin/rpmunmets
+2
-2
config
share/eterbuild/functions/config
+3
-2
hasher
share/eterbuild/functions/hasher
+4
-4
repl
share/eterbuild/functions/repl
+2
-2
rpm
share/eterbuild/functions/rpm
+2
-2
test_get_bin.sh
tests/test_get_bin.sh
+1
-1
No files found.
bin/dmake
View file @
2140456b
...
@@ -66,7 +66,7 @@ fi
...
@@ -66,7 +66,7 @@ fi
DISTCXX
=
"
$DISTCC
"
DISTCXX
=
"
$DISTCC
"
if
[
"
$
DEFAULT
ARCH
"
=
"x86_64"
]
;
then
if
[
"
$
BUILD
ARCH
"
=
"x86_64"
]
;
then
export
DISTCC_HOSTS
=
"
$(
extra_to_pump_mode
$DISTCC_64_HOSTS
)
"
export
DISTCC_HOSTS
=
"
$(
extra_to_pump_mode
$DISTCC_64_HOSTS
)
"
DISTCC_THREADS
=
$DISTCC_64_THREADS
DISTCC_THREADS
=
$DISTCC_64_THREADS
else
else
...
@@ -76,7 +76,7 @@ else
...
@@ -76,7 +76,7 @@ else
DISTCXX
=
"
$DISTCXX
g++ -m32"
DISTCXX
=
"
$DISTCXX
g++ -m32"
fi
fi
echo
"Build on '
$DISTCC_HOSTS
' hosts (
$
DEFAULT
ARCH
arch)"
echo
"Build on '
$DISTCC_HOSTS
' hosts (
$
BUILD
ARCH
arch)"
if
[
-z
"
$DISTCC_HOSTS
"
]
||
[
-z
"
$DISTCC_THREADS
"
]
;
then
if
[
-z
"
$DISTCC_HOSTS
"
]
||
[
-z
"
$DISTCC_THREADS
"
]
;
then
fatal
"Set DISTCC_??_HOSTS and DISTCC_??_THREADS var in config"
fatal
"Set DISTCC_??_HOSTS and DISTCC_??_THREADS var in config"
...
...
bin/loginhsh
View file @
2140456b
...
@@ -82,7 +82,7 @@ set_binaryrepo $MENV
...
@@ -82,7 +82,7 @@ set_binaryrepo $MENV
# use MENV
# use MENV
prepare_aptconfig
prepare_aptconfig
HASHERARG
=
"
$HASHERARG
--apt-config=
$OURAPTCONF
--target
$
DEFAULT
ARCH
--with-stuff"
HASHERARG
=
"
$HASHERARG
--apt-config=
$OURAPTCONF
--target
$
BUILD
ARCH
--with-stuff"
set_hasherdir
set_hasherdir
if
[
-n
"
$TESTMODE
"
]
||
[
-n
"
$AUTOMODE
"
]
;
then
if
[
-n
"
$TESTMODE
"
]
||
[
-n
"
$AUTOMODE
"
]
;
then
...
...
bin/myhsh
View file @
2140456b
...
@@ -84,7 +84,7 @@ prepare_aptconfig
...
@@ -84,7 +84,7 @@ prepare_aptconfig
# FIXME: we override config value here?
# FIXME: we override config value here?
# TODO: for add $LISTRPMARGS we need skip function for delete "our" params
# TODO: for add $LISTRPMARGS we need skip function for delete "our" params
# we do not need check cases for mount points, thanks ldv@
# we do not need check cases for mount points, thanks ldv@
HASHERARG
=
"--no-sisyphus-check=
$HASHER_NOCHECK
--apt-config=
$OURAPTCONF
--target
$
DEFAULT
ARCH
$HASHERARG
"
HASHERARG
=
"--no-sisyphus-check=
$HASHER_NOCHECK
--apt-config=
$OURAPTCONF
--target
$
BUILD
ARCH
$HASHERARG
"
HASHERARG
=
"--mountpoints=/proc,/dev/pts
$HASHERARG
"
HASHERARG
=
"--mountpoints=/proc,/dev/pts
$HASHERARG
"
BUILDARGS
=
""
BUILDARGS
=
""
...
@@ -131,9 +131,9 @@ echo
...
@@ -131,9 +131,9 @@ echo
if
[
"
$RESULT
"
=
"0"
-a
-n
"
$TESTINSTALL
"
]
;
then
if
[
"
$RESULT
"
=
"0"
-a
-n
"
$TESTINSTALL
"
]
;
then
# test install (only for last package in list)
# test install (only for last package in list)
# some key for build hasher from scratch
# some key for build hasher from scratch
echog
"Find binary packages for '
$(
basename
$LASTPACKAGE
)
' in
$HASHERDIR
/repo/
$
DEFAULT
ARCH
/RPMS.hasher..."
echog
"Find binary packages for '
$(
basename
$LASTPACKAGE
)
' in
$HASHERDIR
/repo/
$
BUILD
ARCH
/RPMS.hasher..."
BINPACKAGES
=
`
get_binpkg_list
$HASHERDIR
/repo/
$
DEFAULT
ARCH
/RPMS.hasher
$LASTPACKAGE
|
grep
-v
debuginfo
`
BINPACKAGES
=
`
get_binpkg_list
$HASHERDIR
/repo/
$
BUILD
ARCH
/RPMS.hasher
$LASTPACKAGE
|
grep
-v
debuginfo
`
test
-n
"
$BINPACKAGES
"
||
fatal
"Can't find binary packages for
$LASTPACKAGE
in
`
ls
-l
$HASHERDIR
/repo/
$
DEFAULT
ARCH
/RPMS.hasher
`
"
test
-n
"
$BINPACKAGES
"
||
fatal
"Can't find binary packages for
$LASTPACKAGE
in
`
ls
-l
$HASHERDIR
/repo/
$
BUILD
ARCH
/RPMS.hasher
`
"
echo
"List:
$BINPACKAGES
"
echo
"List:
$BINPACKAGES
"
echo
echo
docmd
$ETERBUILDBIN
/loginhsh
-a
$MENVARG
$BINPACKAGES
docmd
$ETERBUILDBIN
/loginhsh
-a
$MENVARG
$BINPACKAGES
...
...
bin/rpmbb
View file @
2140456b
...
@@ -95,7 +95,7 @@ if [ -n "$BUILDOPT" ] ; then
...
@@ -95,7 +95,7 @@ if [ -n "$BUILDOPT" ] ; then
is_alt
||
fatal
"Sorry, only ALT Linux rpm supports --short-circuit correctly"
is_alt
||
fatal
"Sorry, only ALT Linux rpm supports --short-circuit correctly"
for
it
in
$BUILDOPT
for
it
in
$BUILDOPT
do
do
uni_rpmbuild
--commit
$LISTNAMES
-b
$it
$LISTRPMARGS
--target
$
DEFAULT
ARCH
--short-circuit
uni_rpmbuild
--commit
$LISTNAMES
-b
$it
$LISTRPMARGS
--target
$
BUILD
ARCH
--short-circuit
done
done
exit
0
exit
0
fi
fi
...
@@ -117,7 +117,7 @@ do
...
@@ -117,7 +117,7 @@ do
LOGFILE
=
"
$LOGDIR
/
`
basename
$NAMESRPMIN
.src.rpm
`
$MENVARG
.log"
LOGFILE
=
"
$LOGDIR
/
`
basename
$NAMESRPMIN
.src.rpm
`
$MENVARG
.log"
echo
"Build in native system"
>
$LOGFILE
echo
"Build in native system"
>
$LOGFILE
rm
-f
$LOGFILE
.failed
rm
-f
$LOGFILE
.failed
(
uni_rpmbuild
--commit
$i
-bb
$LISTRPMARGS
$NODEPS
--target
$
DEFAULT
ARCH
2>&1
||
touch
$LOGFILE
.failed
)
|
tee
-a
$LOGFILE
(
uni_rpmbuild
--commit
$i
-bb
$LISTRPMARGS
$NODEPS
--target
$
BUILD
ARCH
2>&1
||
touch
$LOGFILE
.failed
)
|
tee
-a
$LOGFILE
[
-r
"
$LOGFILE
.failed"
]
&&
RET
=
1
||
RET
=
0
[
-r
"
$LOGFILE
.failed"
]
&&
RET
=
1
||
RET
=
0
if
[
"
$RET
"
=
"0"
]
;
then
if
[
"
$RET
"
=
"0"
]
;
then
...
...
bin/rpmbph
View file @
2140456b
...
@@ -91,10 +91,8 @@ if [ "$VENDOR" = "generic" ] ; then
...
@@ -91,10 +91,8 @@ if [ "$VENDOR" = "generic" ] ; then
%__subst 's|readlink -mv|realpath|g' libtool configure ltmain.sh"
%__subst 's|readlink -mv|realpath|g' libtool configure ltmain.sh"
fi
fi
# FIXME HACK need only for wine on x86_64
# HACK need only for wine on x86_64
#if [ "$DISTRSYS" = "Ubuntu" ] || [ "$DISTRSYS" = "Debian" ]; then
if
[
"
$BUILDARCH
"
=
x86_64
" ] && echo
$SPECNAME
| grep -q wine ; then
# FIXME: add BUILDARCH using
if
echo
$SPECNAME
|
grep
-q
wine
;
then
test -z "
$VERBOSE
" || echo "
Add remove_optflags
-m64
"
test -z "
$VERBOSE
" || echo "
Add remove_optflags
-m64
"
ADDFIXCOMMAND="
$ADDFIXCOMMAND
ADDFIXCOMMAND="
$ADDFIXCOMMAND
%remove_optflags
-m64
"
%remove_optflags
-m64
"
...
...
bin/rpmunmets
View file @
2140456b
...
@@ -91,7 +91,7 @@ echo "Prepare to unmets checking..."
...
@@ -91,7 +91,7 @@ echo "Prepare to unmets checking..."
# Prepare our confdir
# Prepare our confdir
prepare_aptconfig
prepare_aptconfig
TESTINGAPTCONF
=
$OURAPTCONF
TESTINGAPTCONF
=
$OURAPTCONF
echo
"rpm file:
$HASHERDIR
/repo/
$
DEFAULT
ARCH
hasher"
>>
$OURSOURCES
echo
"rpm file:
$HASHERDIR
/repo/
$
BUILD
ARCH
hasher"
>>
$OURSOURCES
make_ordinalbox
make_ordinalbox
make_testingbox
make_testingbox
...
@@ -109,7 +109,7 @@ if [ ! -d "$SISYPHUSPATH" ] ; then
...
@@ -109,7 +109,7 @@ if [ ! -d "$SISYPHUSPATH" ] ; then
exit
1
exit
1
fi
fi
NEWPKGDIR
=
$HASHERDIR
/repo/
$
DEFAULT
ARCH
/RPMS.hasher/
NEWPKGDIR
=
$HASHERDIR
/repo/
$
BUILD
ARCH
/RPMS.hasher/
echo
echo
echo
"Compare requires between new packages and their Sisyphus version"
echo
"Compare requires between new packages and their Sisyphus version"
...
...
share/eterbuild/functions/config
View file @
2140456b
...
@@ -17,11 +17,12 @@ fi
...
@@ -17,11 +17,12 @@ fi
OURTMPDIR
=
$TMPDIR
OURTMPDIR
=
$TMPDIR
[
-z
"
$OURTMPDIR
"
]
||
[
-d
"
$OURTMPDIR
"
]
||
OURTMPDIR
=
/tmp
[
-z
"
$OURTMPDIR
"
]
||
[
-d
"
$OURTMPDIR
"
]
||
OURTMPDIR
=
/tmp
#
detect our
arch
#
current
arch
SYSARCH
=
$(
uname
-m
)
SYSARCH
=
$(
uname
-m
)
[
"
$SYSARCH
"
=
"x86_64"
]
||
SYSARCH
=
i586
[
"
$SYSARCH
"
=
"x86_64"
]
||
SYSARCH
=
i586
[
-n
"
$DEFAULTARCH
"
]
||
DEFAULTARCH
=
$SYSARCH
# set default target arch
[
-n
"
$BUILDARCH
"
]
||
BUILDARCH
=
$SYSARCH
NICE
=
"nice"
NICE
=
"nice"
RPMBUILD
=
rpmbuild
RPMBUILD
=
rpmbuild
...
...
share/eterbuild/functions/hasher
View file @
2140456b
...
@@ -16,7 +16,7 @@ set_hasherdir()
...
@@ -16,7 +16,7 @@ set_hasherdir()
# fatal "Possible HASHERBASEDIR is not set correctly. Please replace HASHERDIR with HASHERBASEDIR in the config file"
# fatal "Possible HASHERBASEDIR is not set correctly. Please replace HASHERDIR with HASHERBASEDIR in the config file"
#fi
#fi
HASHERDIR
=
$HASHERBASEDIR$MENVARG
HASHERDIR
=
$HASHERBASEDIR$MENVARG
if
[
"
$
DEFAULT
ARCH
"
=
"x86_64"
]
;
then
if
[
"
$
BUILD
ARCH
"
=
"x86_64"
]
;
then
HASHERDIR
=
"
$HASHERDIR
-64"
HASHERDIR
=
"
$HASHERDIR
-64"
fi
fi
}
}
...
@@ -69,11 +69,11 @@ print_tmp_sourceslist()
...
@@ -69,11 +69,11 @@ print_tmp_sourceslist()
grep
"/sources.list"
|
sed
-e
's|.*"\(.*\)".*|\1|g'
`
grep
"/sources.list"
|
sed
-e
's|.*"\(.*\)".*|\1|g'
`
fi
fi
test
-r
"
$SLIST
"
||
fatal
"'
$SLIST
' - sources.list path from
$1
is missed"
test
-r
"
$SLIST
"
||
fatal
"'
$SLIST
' - sources.list path from
$1
is missed"
if
[
"
$
DEFAULT
ARCH
"
=
"x86_64"
]
;
then
if
[
"
$
BUILD
ARCH
"
=
"x86_64"
]
;
then
cat
"
$SLIST
"
|
sed
-e
"s|i[56]86|
$
DEFAULT
ARCH
|g"
cat
"
$SLIST
"
|
sed
-e
"s|i[56]86|
$
BUILD
ARCH
|g"
else
else
# Note: drop biarch 32bit on real 32bit
# Note: drop biarch 32bit on real 32bit
cat
"
$SLIST
"
|
sed
-e
"s|x86_64|
$
DEFAULT
ARCH
|g"
|
grep
-v
"x86_32"
cat
"
$SLIST
"
|
sed
-e
"s|x86_64|
$
BUILD
ARCH
|g"
|
grep
-v
"x86_32"
fi
fi
}
}
...
...
share/eterbuild/functions/repl
View file @
2140456b
...
@@ -40,7 +40,7 @@ tolocal_anyrepl()
...
@@ -40,7 +40,7 @@ tolocal_anyrepl()
fi
fi
# Add hack for replace lib with lib64 on Mandriva
# Add hack for replace lib with lib64 on Mandriva
if
[
"
$VENDOR
"
=
"mdv"
]
&&
[
$
DEFAULT
ARCH
=
"x86_64"
]
;
then
if
[
"
$VENDOR
"
=
"mdv"
]
&&
[
$
BUILD
ARCH
=
"x86_64"
]
;
then
local
NEWRESULT
=
`
echo
$GREP
|
sed
-e
"s|^lib
\(
[^6]
\)
|lib64
\1
|g"
`
local
NEWRESULT
=
`
echo
$GREP
|
sed
-e
"s|^lib
\(
[^6]
\)
|lib64
\1
|g"
`
[
"
$NEWRESULT
"
=
"
$GREP
"
]
&&
return
1
[
"
$NEWRESULT
"
=
"
$GREP
"
]
&&
return
1
ALTPKGNAME
=
$GREP
ALTPKGNAME
=
$GREP
...
@@ -101,7 +101,7 @@ internal_repl_list()
...
@@ -101,7 +101,7 @@ internal_repl_list()
print_replbased_list
()
print_replbased_list
()
{
{
local
REPLBASE
=
"
$1
"
local
REPLBASE
=
"
$1
"
if
[
"
$
DEFAULT
ARCH
"
=
"x86_64"
]
;
then
if
[
"
$
BUILD
ARCH
"
=
"x86_64"
]
;
then
internal_repl_list
$REPLBASE
.x86_64
internal_repl_list
$REPLBASE
.x86_64
fi
fi
...
...
share/eterbuild/functions/rpm
View file @
2140456b
...
@@ -49,7 +49,7 @@ build_rpms_name()
...
@@ -49,7 +49,7 @@ build_rpms_name()
PKGARCH
=
$(
cat
$tmprpm
| get_var
"BuildArch"
)
PKGARCH
=
$(
cat
$tmprpm
| get_var
"BuildArch"
)
if
[
"
$PKGARCH
"
!=
"noarch"
]
;
then
if
[
"
$PKGARCH
"
!=
"noarch"
]
;
then
PKGARCH
=
$
DEFAULT
ARCH
PKGARCH
=
$
BUILD
ARCH
fi
fi
NAMERPMIN
=
$BASENAME
-
$VERSION
-
$RELEASE
.
$PKGARCH
.rpm
NAMERPMIN
=
$BASENAME
-
$VERSION
-
$RELEASE
.
$PKGARCH
.rpm
NAMESRPMIN
=
$BASENAME
-
$VERSION
-
$RELEASE
.src.rpm
NAMESRPMIN
=
$BASENAME
-
$VERSION
-
$RELEASE
.src.rpm
...
@@ -88,7 +88,7 @@ build_rpms_name_by_srpm()
...
@@ -88,7 +88,7 @@ build_rpms_name_by_srpm()
PKGARCH
=
$(
querypackage
$SRPM
ARCH
)
PKGARCH
=
$(
querypackage
$SRPM
ARCH
)
# suggest target arch
# suggest target arch
if
[
"
$PKGARCH
"
!=
"noarch"
]
;
then
if
[
"
$PKGARCH
"
!=
"noarch"
]
;
then
PKGARCH
=
$
DEFAULT
ARCH
PKGARCH
=
$
BUILD
ARCH
fi
fi
NAMERPMIN
=
$BASENAME
-
$VERSION
-
$RELEASE
.
$PKGARCH
.rpm
NAMERPMIN
=
$BASENAME
-
$VERSION
-
$RELEASE
.
$PKGARCH
.rpm
NAMESRPMIN
=
$BASENAME
-
$VERSION
-
$RELEASE
.src.rpm
NAMESRPMIN
=
$BASENAME
-
$VERSION
-
$RELEASE
.src.rpm
...
...
tests/test_get_bin.sh
View file @
2140456b
...
@@ -9,7 +9,7 @@ set_hasherdir
...
@@ -9,7 +9,7 @@ set_hasherdir
for
i
in
`
ls
-1
$HASHERDIR
/repo/SRPMS.hasher
`
;
do
for
i
in
`
ls
-1
$HASHERDIR
/repo/SRPMS.hasher
`
;
do
echo
"get for
$i
:"
echo
"get for
$i
:"
LISTNAMES
=
`
get_binpkg_list
$HASHERDIR
/repo/
$
DEFAULT
ARCH
/RPMS.hasher
$(
basename
$i
)
`
LISTNAMES
=
`
get_binpkg_list
$HASHERDIR
/repo/
$
BUILD
ARCH
/RPMS.hasher
$(
basename
$i
)
`
echo
$LISTNAMES
echo
$LISTNAMES
echo
"without ext:
$(
drop_pkg_extensions
$LISTNAMES
)
"
echo
"without ext:
$(
drop_pkg_extensions
$LISTNAMES
)
"
done
done
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