Bug 241144

Summary: mail/dovecot: Fails to package with LUA=OFF
Product: Ports & Packages Reporter: Matthias Pfaller <matthias.pfaller>
Component: Individual Port(s)Assignee: Larry Rosenman <ler>
Status: Closed FIXED    
Severity: Affects Some People CC: d.stoye, raul.munoz, tremere, vvd, zillion1
Priority: --- Keywords: regression
Version: LatestFlags: bugzilla: maintainer-feedback? (ler)
koobs: merge-quarterly?
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Fix packaging when Lua is not enabled. none

Description Matthias Pfaller 2019-10-09 07:57:13 UTC
no longer installs when lua is not enabled:

pkg-static: Unable to access file /construction/xports/mail/dovecot/work/stage/usr/local/%%LUA_LIBDIR%%exec/dovecot/health-check.sh:No such file or directory
*** Error code 1
Comment 1 Ralf van der Enden 2019-10-09 08:12:27 UTC
Created attachment 208191 [details]
Fix packaging when Lua is not enabled.
Comment 2 Marek 2019-10-09 09:31:13 UTC
Changed pkg-plist file fixed building when Lua is disabled. Thx @Ralf van der Enden
Comment 3 Larry Rosenman freebsd_committer 2019-10-09 14:04:44 UTC
Committed, thanks.
Comment 4 Larry Rosenman freebsd_committer 2019-10-09 14:11:18 UTC
pre-mature closing....
re-opening whilst I test.
Comment 5 VVD 2019-10-09 14:26:43 UTC
(In reply to Larry Rosenman from comment #4)
Patch work for me: dovecot without LUA.
Comment 6 commit-hook freebsd_committer 2019-10-09 14:39:33 UTC
A commit references this bug:

Author: ler
Date: Wed Oct  9 14:38:33 UTC 2019
New revision: 514164
URL: https://svnweb.freebsd.org/changeset/ports/514164

Log:
  mail/dovecot: fix breakage when LUA is NOT selected.

  PR:		241144
  Submitted by:	matthias.pfaller@familie-pfaller.de
  Reported by:	many
  Pointy Hat To: ler

Changes:
  head/mail/dovecot/Makefile
  head/mail/dovecot/pkg-plist
Comment 7 Larry Rosenman freebsd_committer 2019-10-09 14:40:05 UTC
I fixed it a different way (so both lus and !lua work).
Comment 8 Raúl 2019-10-09 15:11:57 UTC
(In reply to Larry Rosenman from comment #7)
Still problems here:

[....]
===>   Registering installation for dovecot-2.3.8_1
pkg-static: Unable to access file /usr/ports/mail/dovecot/work/stage/usr/local/%%LUA_LIBDIR%%/dovecot/%%LUA_LIBDIR%%01_mail_lua_plugin.a:No such file or directory
pkg-static: Unable to access file /usr/ports/mail/dovecot/work/stage/usr/local/%%LUA_LIBDIR%%/dovecot/%%LUA_LIBDIR%%01_mail_lua_plugin.so:No such file or directory
pkg-static: Unable to access file /usr/ports/mail/dovecot/work/stage/usr/local/%%LUA_LIBDIR%%/dovecot/%%LUA_LIBDIR%%22_push_notification_lua_plugin.a:No such file or directory
pkg-static: Unable to access file /usr/ports/mail/dovecot/work/stage/usr/local/%%LUA_LIBDIR%%/dovecot/%%LUA_LIBDIR%%22_push_notification_lua_plugin.so:No such file or directory
*** Error code 74

Stop.
make: stopped in /usr/ports/mail/dovecot
[....]

@Ralf van der Enden fix, working fine
Comment 9 Larry Rosenman freebsd_committer 2019-10-09 15:45:53 UTC
I just fixed my fix.  see r514168.
Comment 10 Raúl 2019-10-09 18:13:32 UTC
(In reply to Larry Rosenman from comment #9)

Perfect!
Thanks a lot.