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
1
Merge Requests
1
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
85e97f42
Commit
85e97f42
authored
Jan 10, 2026
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
myhsh: use faketty/stripcolors, switch to --rpmbuild-args
parent
cf0283f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
myhsh
bin/myhsh
+12
-8
No files found.
bin/myhsh
View file @
85e97f42
...
...
@@ -133,24 +133,28 @@ HASHERARG="--mountpoints=/proc,/dev/pts $HASHERARG $REPACKAGE $BUILDSRCRPM"
BUILDARGS
=
""
if
[
-z
"
$NOSTRICT_UNPACKAGED
"
]
;
then
BUILDARGS
=
"
$BUILDARGS
--define '_unpackaged_files_terminate_build 1'"
BUILDARGS
=
"--define '_unpackaged_files_terminate_build 1'"
fi
# Note: colored compiler output in hasher requires passing -fdiagnostics-color=always
# to gcc inside chroot, which is not easily achievable through rpmbuild --define
# (optflags self-reference causes recursion). For now, colors work in rpmbb but not here.
LISTBUILTSH
=
""
for
i
in
$LISTNAMES
do
LOGFILE
=
"
$LOGDIR
/
$(
basename
$(
basename
$i
.src.rpm
)
.tar
)
$MENVARG
.log"
echo
"Build in hasher (
$MENV
) in
$HASHERDIR
dir"
>
$LOGFILE
rm
-f
$LOGFILE
.ok
#echog "Build in hasher: $i (arg: $HASHERARG --build-args \"$BUILDARGS\", distro: $MENV, hasherdir: $HASHERDIR)"
#echog "Build in hasher: $i (arg: $HASHERARG --
rpm
build-args \"$BUILDARGS\", distro: $MENV, hasherdir: $HASHERDIR)"
if
[
-n
"
$REBUILD
"
]
;
then
# Note: hasher
is already use
renice for low priority
showcmd
$HSH
-rebuild
$HASHERARG
--
$HASHERDIR
$i
(
$HSH
-rebuild
$HASHERARG
--
$HASHERDIR
$i
2>&1
&&
touch
$LOGFILE
.ok
)
|
tee
-a
$LOGFILE
| colorify
# Note: hasher
already uses
renice for low priority
showcmd
$HSH
-rebuild
$HASHERARG
--
rpmbuild-args
"
$BUILDARGS
"
--
$HASHERDIR
$i
(
faketty
"
$HSH
-rebuild
$HASHERARG
--rpmbuild-args
\"
$BUILDARGS
\"
--
$HASHERDIR
$i
"
&&
touch
$LOGFILE
.ok
)
2>&1 |
tee
>(
stripcolors
>>
$LOGFILE
)
else
# Note: hasher
is already use
renice for low priority
showcmd
$HSH
$HASHERARG
--apt-config
=
$OURAPTCONF
--build-args
"
$BUILDARGS
"
--
$HASHERDIR
$i
(
$HSH
$HASHERARG
--apt-config
=
$OURAPTCONF
--build-args
"
$BUILDARGS
"
--
$HASHERDIR
$i
2>&1
&&
touch
$LOGFILE
.ok
)
|
tee
-a
$LOGFILE
| colorify
# Note: hasher
already uses
renice for low priority
showcmd
$HSH
$HASHERARG
--apt-config
=
$OURAPTCONF
--
rpm
build-args
"
$BUILDARGS
"
--
$HASHERDIR
$i
(
faketty
"
$HSH
$HASHERARG
--apt-config=
$OURAPTCONF
--rpmbuild-args
\"
$BUILDARGS
\"
--
$HASHERDIR
$i
"
&&
touch
$LOGFILE
.ok
)
2>&1 |
tee
>(
stripcolors
>>
$LOGFILE
)
fi
test
-L
$HASHERDIR
/BUILD
||
ln
-s
chroot
/usr/src/RPM/BUILD
$HASHERDIR
/
if
[
!
-f
$LOGFILE
.ok
]
;
then
...
...
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