Opened 5 years ago

Closed 5 years ago

#58544 closed defect (fixed)

dovecot2: configure error

Reported by: mf2k (Frank Schima) Owned by: essandess (Steve Smith)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: dovecot2

Description

The new dovecot has a configure error:

:debug:configure system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_macports_macports-ports_mail_dovecot2/dovecot2/work/core-2.3.6" && ./configure --prefix=/opt/local --sysconfdir=/opt/local/etc --localstatedir=/opt/local/var --with-ssl=openssl --with-zlib --with-bzlib --with-ssldir=/opt/local/etc/openssl --with-shared-libs --with-pam 
:info:configure sh: ./configure: No such file or directory

Attachments (1)

main.log (125.6 KB) - added by mf2k (Frank Schima) 5 years ago.

Download all attachments as: .zip

Change History (15)

Changed 5 years ago by mf2k (Frank Schima)

Attachment: main.log added

comment:1 Changed 5 years ago by mf2k (Frank Schima)

Looking at the work directory, there is indeed no configure file. Maybe autoconf needs to be invoked?

comment:2 Changed 5 years ago by mf2k (Frank Schima)

I think I see the problem. A missing dependency on wget. I'm testing a fix now.

Last edited 5 years ago by mf2k (Frank Schima) (previous) (diff)

comment:3 Changed 5 years ago by mf2k (Frank Schima)

Resolution: fixed
Status: assignedclosed

In 8772061a83eda79bf29bd300711274220aabaf01/macports-ports (master):

dovecot2: Add missing build dependency

Fixes: #58544

comment:4 Changed 5 years ago by reneeotten (Renee Otten)

Resolution: fixed
Status: closedreopened
Version: 2.5.99

that helped partly, still fails now with ./autogen.sh: line 35: autoreconf: command not found. It probably needs some more dependencies and/or additional keywords.

comment:5 Changed 5 years ago by mf2k (Frank Schima)

@reneeotten: Please attach your complete main.log file.

comment:6 Changed 5 years ago by mf2k (Frank Schima)

FYI, on my system:

$ port installed autoreconf
None of the specified ports are installed.

comment:7 Changed 5 years ago by mf2k (Frank Schima)

Looking at my main.log, it also needs the undeclared dependency libtool. Can you please try installing that and see if it works for you?

comment:8 in reply to:  5 Changed 5 years ago by reneeotten (Renee Otten)

Replying to mf2k:

@reneeotten: Please attach your complete main.log file.

I am just looking at the failures on the buildbot, haven't tried to install it myself.

comment:9 Changed 5 years ago by mf2k (Frank Schima)

In 239cf3d306e1366e6a5425ef8191550bed4c066a/macports-ports (master):

dovecot2: Add missing build dependency on autoconf

See: #58544

comment:10 Changed 5 years ago by essandess (Steve Smith)

This also needs a build dependency for port:automake. See the Azure logs https://paste.z0k.xyz/10dd28e99060 for the failure of dovecot2-sieve at https://github.com/macports/macports-ports/pull/4481.

Is there a PortGroup that handles all these autoconf/automake build dependencies automatically?

comment:11 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Frank, the autoreconf program is provided by the autoconf port.

Steve, there is no portgroup because the functionality is already in MacPorts base. The built-in command use_autoreconf yes should be used. It adds the autoconf, automake and libtool dependencies for you.

In addition to that, instead of running system -W ${worksrcpath} "./autogen.sh" manually, you should use autoreconf.cmd ./autogen.sh. However, changing autoreconf.cmd will clear the dependencies that use_autoreconf yes added, so you'll have to add them manually again. You should usually add all 3, and make you do that on a line after you change autoreconf.cmd, not before.

comment:12 Changed 5 years ago by essandess (Steve Smith)

Thanks I’ll try it.

Also, while this is open, is there some Portfile voodoo that sidesteps the hack in the original Portfile of calling gettextize -f, or my hack of just installing the file config.rpath to avoid the crazy anti-script line dummy < /dev/tty in gettextize?

I’m honestly still not sure how the original Portfile avoided that.

comment:13 Changed 5 years ago by essandess (Steve Smith)

@ryandesign I get a successful local build with the latest commit, which I believe implements your suggestions. Would you please sanity check https://github.com/macports/macports-ports/pull/4531 and watch for a good Azure build? Travis will time out.

comment:14 Changed 5 years ago by essandess (Steve Smith)

Resolution: fixed
Status: reopenedclosed

In 350a062f27b8edf3e5e8742eede13007a950b2de/macports-ports (master):

dovecot2: Add missing build dependency port:automake

Note: See TracTickets for help on using tickets.