The officially official Devuan Forum!

You are not logged in.

#1 2023-04-23 16:42:05

devosalain
Member
Registered: 2023-04-23
Posts: 5  

sudo apt-get build-dep APACKAGE , returns, unmet dependency

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

#2 2023-04-24 01:35:18

GlennW
Member
From: Brisbane, Australia
Registered: 2019-07-18
Posts: 639  

Re: sudo apt-get build-dep APACKAGE , returns, unmet dependency

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

#3 2023-04-24 10:09:24

devosalain
Member
Registered: 2023-04-23
Posts: 5  

Re: sudo apt-get build-dep APACKAGE , returns, unmet dependency

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

#4 2023-04-24 14:09:04

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,479  

Re: sudo apt-get build-dep APACKAGE , returns, unmet dependency

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

#5 2023-04-24 18:32:49

devosalain
Member
Registered: 2023-04-23
Posts: 5  

Re: sudo apt-get build-dep APACKAGE , returns, unmet dependency

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

#6 2023-04-24 18:53:30

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,479  

Re: sudo apt-get build-dep APACKAGE , returns, unmet dependency

I really don't know. What's on lines 93 and 194 of debian/rules?

Offline

#7 2023-04-24 19:32:20

devosalain
Member
Registered: 2023-04-23
Posts: 5  

Re: sudo apt-get build-dep APACKAGE , returns, unmet dependency

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

#8 2023-04-24 20:12:46

devosalain
Member
Registered: 2023-04-23
Posts: 5  

Re: sudo apt-get build-dep APACKAGE , returns, unmet dependency

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

#9 2023-04-24 21:17:37

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,479  

Re: sudo apt-get build-dep APACKAGE , returns, unmet dependency

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

Board footer