You are not logged in.
Trying to build e.g. postgresql from source:
sudo apt-get build-dep postgresql-13
returns,
unmet dependencies: libelogind0 : Conflicts: libsystemd0
How to fix this dependency in order to be able to build postgresql from source ?
Installing libsystemd0 would remove 140 of my installed packages ...
Last edited by devosalain (2023-04-23 19:20:54)
Offline
The system wants elogind installed.
install with apt...
apt install libelogind0
Just ignore the systemd stuff you see in errors on Devuan systems.
pic from 1993, new guitar day.
Offline
libelogind0 is installed that is not the problem.
The problem in order to compile postgresql from source there is a build dependency,
libsystemd0
But this dependency conflicts with the already installed libelogind0.
Offline
I think you need to build it in a chroot that has the build deps installed. That can be done with pbuilder or fully manually or probably another way.
I passed your question up the chain to see if there's a different answer.
Offline
Great, this chroot seem to provide progress :
What i did:
mkdir chroot-debian
debootstrap chimaera ./chroot-debian http://deb.devuan.org/merged
chroot ./chroot-debian
edit /etc/apt/sources in this chroot
apt install locales
dpkg-reconfigure locales
locale -a
locale-gen
apt-get build-dep postgresql-13
apt-get install build-essential fakeroot devscripts
debcheckout postgresql-13
cd postgresql-13
debuild -b -uc -us
The last line starts the postgresql-13 compilation process.
But then :
make[1]: Leaving directory '/root/src/postgresql-13/build'
make[1]: *** [debian/rules:194: override_dh_auto_test-arch] Error 1
make[1]: Leaving directory '/root/src/postgresql-13'
make: *** [debian/rules:93: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
debuild: fatal error at line 1182:
dpkg-buildpackage -us -uc -ui -b failed
Last edited by devosalain (2023-04-24 18:43:24)
Offline
I really don't know. What's on lines 93 and 194 of debian/rules?
Offline
93 contains the debhelper command sequencer
dh $@
194 contains some locale stuff
187 override_dh_auto_test-arch:
188 ifeq (, $(findstring nocheck, $(DEB_BUILD_OPTIONS)))
189 # when tests fail, print newest log files
190 # initdb doesn't like LANG and LC_ALL to contradict, unset LANG and LC_CTYPE here
191 # temp-install wants to be invoked from a top-level make, unset MAKELEVEL here
192 # hurd doesn't implement semaphores shared between processes yet; succeed anyway so they at least have libpq5
193 # plperl currently fails on kfreebsd-*
194 unset LANG LC_CTYPE MAKELEVEL; ulimit -c unlimited; \
195 if ! make -C build check-world \
196 EXTRA_REGRESS_OPTS='--port=$(shell perl -le 'print 1024 + int(rand(64000))')' \
197 TEMP_CONFIG=$(CURDIR)/debian/tests/postgresql.conf \
198 PG_TEST_EXTRA='ssl' \
199 PROVE_FLAGS="--verbose"; \
200 then \
Offline
I tried to compile mariadb-server but i gave the following error,
main.multi_update_debug w1 [ skipped ] debug_sync is not available
main.max_password_errors w2 [ pass ] 3011
Only 1150 of 1149 completed.
--------------------------------------------------------------------------
The servers were restarted 141 times
Spent 301.335 of 210 seconds executing testcases
Completed: Failed 2/820 tests, 99.76% were successful.
Failing test(s): main.flush_logs_not_windows
The log files in var/log may give you some hint of what went wrong.
If you want to report this error, please read first the documentation
at http://dev.mysql.com/doc/mysql/en/mysql-test-suite.html
130 tests were skipped, 50 by the test itself.
mysql-test-run: *** ERROR: there were failing test cases
make[1]: *** [debian/rules:118: override_dh_auto_test] Error 1
make[1]: Leaving directory '/root/src/mariadb-server'
make: *** [debian/rules:191: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
debuild: fatal error at line 1182:
dpkg-buildpackage -us -uc -ui -b failed
root@devuan:~/src/mariadb-server#
Someone should add a page to the devuan website how to correctly compile from source as it looks i'm doing something wrong.
Offline
Here's a maintainers guide for forked packages. https://git.devuan.org/devuan/documenta … ngGuide.md
You'll get much more information in the debian documentation listed on that page.
If you're doing this to learn how to do packaging, you might want to start with some smaller and easier packages.
Offline