Need to add another Debian build dependency, libebook1.2-dev?
In a fresh PureOS byzantium installation, the following fails:
sudo apt install git fakeroot
git clone https://source.puri.sm/kop316/purple-mm-sms.git
cd purple-mm-sms/
sudo apt-get -y build-dep .
dpkg-buildpackage -us -uc -b
with error messages looking like this:
make[1]: Entering directory '/home/purism/20maj/purple-mm-sms'
Package libebook-contacts-1.2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libebook-contacts-1.2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libebook-contacts-1.2' found
gcc -g -O2 -fdebug-prefix-map=/home/purism/20maj/purple-mm-sms=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DPIC -Wall -g -O0 -DPURPLE_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -c -o mm-sms.o mm-sms.c
Package libebook-contacts-1.2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libebook-contacts-1.2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libebook-contacts-1.2' found
mm-sms.c:32:10: fatal error: glib.h: No such file or directory
32 | #include <glib.h>
| ^~~~~~~~
compilation terminated.
make[1]: *** [Makefile:42: mm-sms.o] Error 1
So it complains about not finding "libebook-contacts-1.2" and then there is a compilation error saying that it does not find glib.h (which seems strange because glib.h is supposed to be provided by libglib2.0-dev
which is already installed, and why would "ebook"-related things be needed here?).
Anyway, doing sudo apt install libebook1.2-dev
seems to solve this, so maybe libebook1.2-dev
should be added to the build dependencies, at least that seems to be one way of making this work, maybe there are better solutions.
Note that this issue is only seen if we try to build purple-mm-sms
before building mmsd
, because libebook1.2-dev
is included in the build dependencies for mmsd
, so if mmsd
was built first then libebook1.2-dev
has already been installed. But if we try to build purple-mm-sms
first, then there is this problem.