Package Details: imap 2007f-21

Git Clone URL: https://aur.archlinux.org/imap.git (read-only, click to copy)
Package Base: imap
Description: An IMAP/POP server
Upstream URL: https://github.com/uw-imap/imap
Licenses: Apache
Conflicts: courier-imap, courier-mta
Provides: imap-server, pop3-server
Submitter: el_aur
Maintainer: el_aur
Last Packager: el_aur
Votes: 0
Popularity: 0.000000
First Submitted: 2023-03-02 11:17 (UTC)
Last Updated: 2023-03-03 12:39 (UTC)

Dependencies (3)

Required by (3)

Sources (5)

Latest Comments

dreieck commented on 2024-10-19 22:32 (UTC) (edited on 2024-10-19 22:33 (UTC) by dreieck)

You need to add

CFLAGS+=" -Wno-implicit-function-declaration  -Wno-incompatible-pointer-types"
export CFLAGS

Otherwise build fails with

In file included from osdep.c:31:
env_unix.c: In function ‘lock_work’:
osdep.h:60:15: error: implicit declaration of function ‘safe_flock’ [-Wimplicit-function-declaration]
   60 | #define flock safe_flock
      |               ^~~~~~~~~~
[...]
news.c: In function ‘news_open’:
news.c:370:36: error: passing argument 3 of ‘scandir’ from incompatible pointer type [-Wincompatible-pointer-types]
  370 |   if ((nmsgs = scandir (tmp,&names,news_select,news_numsort)) >= 0) {
      |                                    ^~~~~~~~~~~
      |                                    |
      |                                    int (*)(struct dirent *)
In file included from osdep.h:47,
                 from news.c:35:
/usr/include/dirent.h:259:27: note: expected ‘int (*)(const struct dirent *)’ but argument is of type ‘int (*)(struct dirent *)’
  259 |                     int (*__selector) (const struct dirent *),
      |                     ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
news.c:370:48: error: passing argument 4 of ‘scandir’ from incompatible pointer type [-Wincompatible-pointer-types]
  370 |   if ((nmsgs = scandir (tmp,&names,news_select,news_numsort)) >= 0) {
      |                                                ^~~~~~~~~~~~
      |                                                |
      |                                                int (*)(const void *, const void *)
/usr/include/dirent.h:260:27: note: expected ‘int (*)(const struct dirent **, const struct dirent **)’ but argument is of type ‘int (*)(const void *, const void *)’
  260 |                     int (*__cmp) (const struct dirent **,
      |                     ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  261 |                                   const struct dirent **))
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~

(↗ Upstream issue report.)

Also, you need to make the license identifier SPDX compliant:

map E: APACHE is not a valid SPDX license identifier. See https://spdx.org/licenses/ for valid identifiers, or prefix the identifier with 'LicenseRef-', if it is custom.

Regards and thanks for maintaining.

chowbok commented on 2023-03-05 02:02 (UTC)

Works now, thanks.

el_aur commented on 2023-03-03 10:59 (UTC)

@chowbok - try now. Make fails with eveything greater than -j1. Updated PKGBUILD

chowbok commented on 2023-03-03 05:49 (UTC)

Won't build for me. Relevant (I think) log:

make[2]: Entering directory '/home/sluggo/aur/imap/src/imap-src'
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Building with IPv4 support
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
make[2]: Leaving directory '/home/sluggo/aur/imap/src/imap-src'
cat: OSTYPE: No such file or directory
sh: line 1: test: too many arguments
Building c-client for lnp...
echo `cat SPECIALS`  > c-client/SPECIALS
cat: OSTYPE: No such file or directory
Already built for -- you must do "make clean" first
make[1]: *** [Makefile:698: rebuild] Error 1
make[1]: *** Waiting for unfinished jobs....

Let me know if you need more context.