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
0ee87d56
Commit
0ee87d56
authored
Apr 17, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm repack: set TMPDIR if missed, set _allow_root_build in temp. .rpmmacros
parent
fc1577c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
epm-repack
bin/epm-repack
+9
-4
No files found.
bin/epm-repack
View file @
0ee87d56
...
...
@@ -165,12 +165,17 @@ __apply_fix_code()
__create_rpmmacros
()
{
# FIXME:
[
-n
"
$TMPDIR
"
]
||
TMPDIR
=
/tmp
cat
<<
EOF
>
$HOME
/.rpmmacros
%_topdir
$HOME
/RPM
%_tmppath
$TMPDIR
%packager EPM <support@etersoft.ru>
%_gpg_name support@etersoft.ru
%_allow_root_build 1
EOF
to_remove_pkg_files
=
"
$to_remove_pkg_files
$HOME
/.rpmmacros"
}
...
...
@@ -189,7 +194,7 @@ __epm_repack_to_rpm()
# install epm-repack for static (package based) dependencies
assure_exists alien
||
fatal
assure_exists /usr/bin/rpmbuild
||
fatal
assure_exists /usr/bin/rpmbuild
rpm-build
||
fatal
# TODO: improve
if
echo
"
$pkgs
"
|
grep
-q
"
\.
deb"
;
then
...
...
@@ -289,11 +294,11 @@ __epm_repack_to_rpm()
__apply_fix_code
$pkgname
$tmpbuilddir
/
$subdir
$spec
# TODO: we need these dirs to be created
to_remove_pkg_dirs
=
"
$to_remove_pkg_dirs
$HOME
/RPM/BUILD
$HOME
/RPM"
showcmd rpmbuild
--buildroot
$tmpbuilddir
/
$subdir
-
-define
=
'_allow_root_build 1'
-
bb
$spec
showcmd rpmbuild
--buildroot
$tmpbuilddir
/
$subdir
-bb
$spec
if
[
-n
"
$verbose
"
]
;
then
a
=
''
rpmbuild
--buildroot
$tmpbuilddir
/
$subdir
--define
=
'_allow_root_build 1'
-bb
$spec
||
fatal
a
=
''
rpmbuild
--buildroot
$tmpbuilddir
/
$subdir
-bb
$spec
||
fatal
else
a
=
''
rpmbuild
--buildroot
$tmpbuilddir
/
$subdir
--define
=
'_allow_root_build 1'
-bb
$spec
>
/dev/null
||
fatal
a
=
''
rpmbuild
--buildroot
$tmpbuilddir
/
$subdir
-bb
$spec
>
/dev/null
||
fatal
fi
# remove copy of source binary package (don't mix with generated)
rm
-f
$tmpbuilddir
/../
$alpkg
...
...
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