Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
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
etersoft
eepm
Commits
85baf2e4
Commit
85baf2e4
authored
May 15, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-repack-rpm: repack every package in a separate HOME
parent
198cb5de
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
epm-repack-rpm
bin/epm-repack-rpm
+8
-7
No files found.
bin/epm-repack-rpm
View file @
85baf2e4
...
...
@@ -90,7 +90,7 @@ __create_rpmmacros()
%packager EPM <support@eepm.ru>
%_vendor EEPM
%_gpg_name support@etersoft.ru
# TODO: use special user for repack (instead of root of local user)
%_allow_root_build 1
EOF
remove_on_exit
"
$HOME
/.rpmmacros"
...
...
@@ -130,16 +130,17 @@ __epm_repack_to_rpm()
fi
local
pkg
HOME
=
"
$(
mktemp
-d
--tmpdir
=
$BIGTMPDIR
)
"
||
fatal
remove_on_exit
$HOME
export
HOME
__create_rpmmacros
local
alpkg
local
abspkg
local
tmpbuilddir
repacked_pkgs
=
''
for
pkg
in
$pkgs
;
do
# TODO: keep home?
HOME
=
"
$(
mktemp
-d
--tmpdir
=
$BIGTMPDIR
)
"
||
fatal
remove_on_exit
$HOME
export
HOME
__create_rpmmacros
tmpbuilddir
=
$HOME
/
$(
basename
$pkg
)
.tmpdir
mkdir
$tmpbuilddir
abspkg
=
"
$(
realpath
$pkg
)
"
...
...
@@ -200,7 +201,7 @@ __epm_repack_to_rpm()
remove_on_exit
"
$repacked_rpm
"
[
-n
"
$repacked_pkgs
"
]
&&
repacked_pkgs
=
"
$repacked_pkgs
$repacked_rpm
"
||
repacked_pkgs
=
"
$repacked_rpm
"
else
warning
"Can't find converted rpm for source binary package '
$pkg
'"
warning
"Can't find converted rpm for source binary package '
$pkg
'
(got
$repacked_rpm
)
"
fi
cd
$EPMCURDIR
>
/dev/null
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