Solved Opendkim make install problem

Hello,
During instalation of opendfkim with postgresql support I get error. Everything goes ok until make install. It looks like some problem of badly created Makefile? Anyone tried to build opendkim from ports?
Here is output of make install step:

Code:
===>  Installing for opendkim-2.10.3_11
===>  Checking if opendkim is already installed
===>   Registering installation for opendkim-2.10.3_11
pkg-static: Unable to access file /var/ports/usr/ports/mail/opendkim/work/stageusr/local/bin/opendkim-spam:No such file or directory
pkg-static: Unable to access file /var/ports/usr/ports/mail/opendkim/work/stageusr/local/sbin/opendkim-importstats:No such file or directory
pkg-static: Unable to access file /var/ports/usr/ports/mail/opendkim/work/stageusr/local/man/man1/opendkim-spam.1.gz:No such file or directory
pkg-static: Unable to access file /var/ports/usr/ports/mail/opendkim/work/stageusr/local/man/man8/opendkim-importstats.8.gz:No such file or directory
*** Error code 74

Stop.
make[1]: stopped in /usr/ports/mail/opendkim
*** Error code 1

Stop.
make: stopped in /usr/ports/mail/opendkim

I can't find any solution, and I think I should install it from sources (which ends with success) but I want to have all stuff like rc.d script etc., so I prefer installation form ports.

Thanks for yout attention.
EDIT:
I've edited configuration and now I know that using OpenDBX i responsible for this issue. Disabling it, allows me to install package from ports, but I can't have PostgreSQL support.
It seems to be problem with paths: there are missing slash between stage and usr so and 'make install' produces paths like:
... /var/ports/usr/ports/mail/opendkim/work/stageusr/local/bin/....
but it should look like:
/var/ports/usr/ports/mail/opendkim/work/stage/usr/local/bin/

Any suggestion how to fix it?
 
Do you want to try install the opendkim pkg, not the port? There is no harm in doing it once or twice even do you usually do port installations. If you need make changes to the options, then that is not so possible unless you use a build system (synth/poudriere/etc). Opendkim builds fine here and there though.
 
So building from ports isn't right way for opendkim ?
I install opendkim from ports and made some tricks that I can use it with postgresql for SigningTable and KeyTable on production server. However it should be possible to achieve it by ports: make config and make install.

Opendkim from pkg is not using opendbx and recompiling only opendbx from ports doesn't make sense :
Code:
libopendkim.so.10 => /usr/local/lib/libopendkim.so.10 (0x800274000)
libmilter.so.6 => /usr/lib/libmilter.so.6 (0x800293000)
liblua-5.2.so => /usr/local/lib/liblua-5.2.so (0x8002a6000)
libm.so.5 => /lib/libm.so.5 (0x8002df000)
libunbound.so.8 => /usr/local/lib/libunbound.so.8 (0x800311000)
libssl.so.111 => /usr/lib/libssl.so.111 (0x8003fc000)
libcrypto.so.111 => /lib/libcrypto.so.111 (0x800494000)
libthr.so.3 => /lib/libthr.so.3 (0x800783000)
libc.so.7 => /lib/libc.so.7 (0x8007b0000)
libutil.so.9 => /lib/libutil.so.9 (0x800ba9000)
libevent-2.1.so.7 => /usr/local/lib/libevent-2.1.so.7 (0x800bc0000)
Regardless of using poudriere, make install should generate valid paths instead of these I've reported in first post.

Yesterday I created issue in bugzilla: PR 247634

Thanks for your and SirDice response.
 
Back
Top