Skip to content

Commit 8739d3b

Browse files
debian: Ignoring package architecture like we do with rpm
This is wanted to inject eg 64bit kernel package on a 32bit system.
1 parent fd54fad commit 8739d3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build-pkg-deb

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ pkg_prepare_deb() {
9494
}
9595

9696
pkg_install_deb() {
97-
( deb_chroot $BUILD_ROOT dpkg --install $DEB_UNSAFE_IO $DEB_NO_TRIGGERS --force-depends .init_b_cache/$PKG.deb 2>&1 || touch $BUILD_ROOT/exit ) | \
97+
( deb_chroot $BUILD_ROOT dpkg --force-architecture --install $DEB_UNSAFE_IO $DEB_NO_TRIGGERS --force-depends .init_b_cache/$PKG.deb 2>&1 || touch $BUILD_ROOT/exit ) | \
9898
perl -ne '$|=1;/^(Configuration file|Installing new config file|Selecting previously deselected|Selecting previously unselected|\(Reading database|Unpacking |Setting up|Creating config file|Preparing to replace dpkg|Preparing to unpack )/||/^$/||print'
9999
# ugly workaround for upstart system. some packages (procps) try
100100
# to start a service in their configure phase. As we don't have
@@ -212,7 +212,7 @@ pkg_sysrootinstall_deb() {
212212
return
213213
fi
214214

215-
( deb_chroot $BUILD_ROOT dpkg --install $DEB_UNSAFE_IO $DEB_NO_TRIGGERS --force-depends .init_b_cache/$PKG.deb 2>&1 || touch $BUILD_ROOT/exit ) | \
215+
( deb_chroot $BUILD_ROOT dpkg --force-architecture --install $DEB_UNSAFE_IO $DEB_NO_TRIGGERS --force-depends .init_b_cache/$PKG.deb 2>&1 || touch $BUILD_ROOT/exit ) | \
216216
perl -ne '$|=1;/^(Configuration file|Installing new config file|Selecting previously deselected|Selecting previously unselected|\(Reading database|Unpacking |Setting up|Creating config file|Preparing to replace dpkg|Preparing to unpack )/||/^$/||print'
217217
}
218218

0 commit comments

Comments
 (0)