File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -61,19 +61,20 @@ def run_build
61
61
# podman run options
62
62
create_opts = " -v #{ @pgpm_dir } :/root/pgpm"
63
63
create_opts += ":z" if selinux_enabled?
64
- create_opts += " --privileged --annotation run.oci.keep_original_groups=1 "
64
+ create_opts += " --privileged"
65
65
create_opts += " --name #{ @container_name } #{ image_name } "
66
66
67
67
dsc_fn = "#{ @spec . package . name } -#{ @spec . package . version . to_s } _0-1.dsc"
68
68
deb_fn = "#{ @spec . full_pkg_name } .deb"
69
69
70
70
# commands to run
71
71
cmds = " /bin/bash -c 'cd /root/pgpm/source"
72
- cmds += " && dpkg-buildpackage --build=source"
72
+ cmds += " && dpkg-buildpackage --build=source -d" # -d flag helps with dependencies error
73
73
cmds += " && fakeroot pbuilder build ../#{ dsc_fn } "
74
74
cmds += " && mv /var/cache/pbuilder/result/#{ deb_fn } /root/pgpm/out/'"
75
75
76
76
puts " Creating and starting container #{ @container_name } & running pbuilder"
77
+ puts "podman run -it #{ create_opts } #{ cmds } "
77
78
system ( "podman run -it #{ create_opts } #{ cmds } " )
78
79
exit ( 1 ) if $?. to_i > 0
79
80
end
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ def dependencies
31
31
def build_dependencies
32
32
deps = case @os
33
33
when "debian" , "ubunut"
34
- [ "openssl -dev" , "cmake" ]
34
+ [ "libssl -dev" , "cmake" ]
35
35
when "rocky" , "redhat" , "fedora"
36
36
[ "openssl-devel" , "cmake" ]
37
37
end
@@ -43,7 +43,7 @@ def build_info
43
43
when "debian" , "ubuntu"
44
44
{
45
45
rules : "override_dh_auto_configure:\n " +
46
- " dh_auto_configure -- -DCMAKE_BUILD_TYPE=\" Release\" "
46
+ "\t dh_auto_configure -- -DCMAKE_BUILD_TYPE=\" Release\" "
47
47
}
48
48
when "rocky" , "redhat" , "fedora"
49
49
{
You can’t perform that action at this time.
0 commit comments