Skip to content

Commit

Permalink
packaging/debian: do not run berkeley stubs if not built
Browse files Browse the repository at this point in the history
If the berkeley package is not build, we should not run its stubs, as
they result in errors.

Thanks go to Richard Revels (@rrevels-bw on GitHub) for reporting it.
Close #3389
  • Loading branch information
razvancrainea committed Jun 13, 2024
1 parent efc2552 commit 2fba04a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packaging/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,10 @@ override_dh_auto_build:
CC="$(CC)" CFLAGS="$(CFLAGS)" $(VARS) FASTER=$(FASTER) $(MAKE) $(NJOBS) \
modules modules="$(BUILD_MODULE_PATHS)" cfg_prefix=$(INSTALL_PREFIX) \
cfg_target=$(INSTALL_PREFIX)/etc/opensips/
ifneq ($(filter BERKELEY,$(BUILD_MODPKG_LIST)),)
# generate the utils db_berkeley
CC="$(CC)" CFLAGS="$(CFLAGS)" $(VARS) FASTER=$(FASTER) $(MAKE) $(NJOBS) utils include_modules="db_berkeley"
endif

touch build-stamp

Expand Down Expand Up @@ -402,10 +404,12 @@ override_dh_auto_install:
;\
done

# move binaries of opensips-berkeley-module to opensips-berkeley-bin
ifneq ($(filter BERKELEY,$(BUILD_MODPKG_LIST)),)
# move binaries of opensips-berkeley-module to opensips-iberkeley-bin
mkdir -p $(CURDIR)/debian/opensips-berkeley-bin/$(BIN_PREFIX)/
mv $(CURDIR)/debian/opensips-berkeley-module/$(BIN_PREFIX)/sbin \
$(CURDIR)/debian/opensips-berkeley-bin/$(BIN_PREFIX)/
endif

override_dh_strip:
dh_strip --dbg-package=opensips-dbg
Expand Down

0 comments on commit 2fba04a

Please sign in to comment.