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
fcf228af
Commit
fcf228af
authored
Feb 24, 2026
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm repack: pass non-library RPM Requires to DEB when repacking rpm to deb
parent
f5b09afc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
6 deletions
+17
-6
epm-repack
bin/epm-repack
+7
-3
epm-repack-deb
bin/epm-repack-deb
+10
-3
No files found.
bin/epm-repack
View file @
fcf228af
...
...
@@ -222,14 +222,18 @@ __epm_repack_single()
# we have repack rules only for rpm, so use rpm step in any case
load_helper epm-repack-rpm
load_helper epm-repack-deb
# save original de
b de
pends before deb→rpm conversion
# save original depends before deb→rpm conversion
local
orig_deb_depends
=
""
if
[
"
$(
get_package_type
"
$pkg
"
)
"
=
"deb"
]
;
then
local
orig_pkg_type
=
"
$(
get_package_type
"
$pkg
"
)
"
if
[
"
$orig_pkg_type
"
=
"deb"
]
;
then
orig_deb_depends
=
"
$(
epm requires
"
$pkg
"
2>/dev/null
)
"
elif
[
"
$orig_pkg_type
"
=
"rpm"
]
;
then
# extract non-library package-name Requires from RPM
orig_deb_depends
=
"
$(
epm requires
--debian
"
$pkg
"
2>/dev/null
)
"
fi
__epm_repack_to_rpm
"
$pkg
"
"
$packversion
"
"
$packrelease
"
||
return
[
-n
"
$repacked_pkg
"
]
||
return
__epm_repack_to_deb
$repacked_pkg
"
$orig_deb_depends
"
__epm_repack_to_deb
$repacked_pkg
"
$orig_deb_depends
"
"
$orig_pkg_type
"
else
load_helper epm-repack-deb
__epm_repack_to_deb
"
$pkg
"
||
return
...
...
bin/epm-repack-deb
View file @
fcf228af
...
...
@@ -19,11 +19,12 @@
# fills repacked_pkg
# args: pkg [orig_deb_depends]
# args: pkg [orig_deb_depends]
[orig_pkg_type]
__epm_repack_to_deb
()
{
local
pkg
=
"
$1
"
local
orig_deb_depends
=
"
$2
"
local
orig_pkg_type
=
"
$3
"
assure_exists alien
assure_exists fakeroot
...
...
@@ -68,10 +69,16 @@ __epm_repack_to_deb()
return
1
fi
# inject original de
b de
pends into debian/control
# inject original depends into debian/control
if
[
-n
"
$orig_deb_depends
"
]
;
then
info
"Injecting Depends:
$orig_deb_depends
"
sed
-i
-e
"s|
\$
{shlibs:Depends}|
$orig_deb_depends
|"
"
$debsrcdir
"
debian/control
if
[
"
$orig_pkg_type
"
=
"rpm"
]
;
then
# RPM source: add non-lib requires alongside shlibs
sed
-i
-e
"s|
\$
{shlibs:Depends}|
\$
{shlibs:Depends},
$orig_deb_depends
|"
"
$debsrcdir
"
debian/control
else
# DEB source: replace shlibs placeholder with original depends
sed
-i
-e
"s|
\$
{shlibs:Depends}|
$orig_deb_depends
|"
"
$debsrcdir
"
debian/control
fi
fi
# build the deb
...
...
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