Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 924652 - net-mail/cyrus-imapd-3.4.5-r1[-server] - lib/acl.c:54:10: fatal error: imap/imap_err.h: No such file or directory
Summary: net-mail/cyrus-imapd-3.4.5-r1[-server] - lib/acl.c:54:10: fatal error: imap/i...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-15 13:15 UTC by ernsteiswuerfel
Modified: 2024-02-15 16:35 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (cyrus-imapd-3.4.5-r1:20240215-125613.log,25.79 KB, text/plain)
2024-02-15 13:15 UTC, ernsteiswuerfel
Details
emerge --info (file_924652.txt,6.30 KB, text/plain)
2024-02-15 13:16 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2024-02-15 13:15:29 UTC
Created attachment 885038 [details]
build.log

Fails to build with USE='-server' but builds ok with USE='server'.

[...]
make[1]: Entering directory '/var/tmp/portage/net-mail/cyrus-imapd-3.4.5-r1/work/cyrus-imapd-3.4.5'
Making all in .
make[2]: Entering directory '/var/tmp/portage/net-mail/cyrus-imapd-3.4.5-r1/work/cyrus-imapd-3.4.5'
powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I.  -I/var/tmp/portage/net-mail/cyrus-imapd-3.4.5-r1/work/cyrus-imapd-3.4.5/com_err/et -I. -I./lib -I. -I./lib -DLIBEXEC_DIR=\"/usr/libexec\" -DSBIN_DIR=\"/usr/sbin\" -DSYSCONF_DIR=\"/etc\" -DHAVE_CONFIG_H            -fvisibility=hidden -O2 -mcpu=970 -mtune=970 -pipe -fno-toplevel-reorder -c -o imtest/imtest-imtest.o `test -f 'imtest/imtest.c' || echo './'`imtest/imtest.c
/bin/sh ./libtool  --tag=CC   --mode=compile powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I.  -I/var/tmp/portage/net-mail/cyrus-imapd-3.4.5-r1/work/cyrus-imapd-3.4.5/com_err/et -I. -I./lib -I. -I./lib -DLIBEXEC_DIR=\"/usr/libexec\" -DSBIN_DIR=\"/usr/sbin\" -DSYSCONF_DIR=\"/etc\" -DHAVE_CONFIG_H            -fvisibility=hidden  -O2 -mcpu=970 -mtune=970 -pipe -fno-toplevel-reorder -c -o lib/lib_libcyrus_la-acl.lo `test -f 'lib/acl.c' || echo './'`lib/acl.c
libtool: compile:  powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/net-mail/cyrus-imapd-3.4.5-r1/work/cyrus-imapd-3.4.5/com_err/et -I. -I./lib -I. -I./lib -DLIBEXEC_DIR=\"/usr/libexec\" -DSBIN_DIR=\"/usr/sbin\" -DSYSCONF_DIR=\"/etc\" -DHAVE_CONFIG_H -fvisibility=hidden -O2 -mcpu=970 -mtune=970 -pipe -fno-toplevel-reorder -c lib/acl.c  -fPIC -DPIC -o lib/.libs/lib_libcyrus_la-acl.o
lib/acl.c:54:10: fatal error: imap/imap_err.h: No such file or directory
   54 | #include "imap/imap_err.h"
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:5795: lib/lib_libcyrus_la-acl.lo] Error 1
make[2]: Leaving directory '/var/tmp/portage/net-mail/cyrus-imapd-3.4.5-r1/work/cyrus-imapd-3.4.5'
make[1]: *** [Makefile:6966: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/net-mail/cyrus-imapd-3.4.5-r1/work/cyrus-imapd-3.4.5'
make: *** [Makefile:3239: all] Error 2
 * ERROR: net-mail/cyrus-imapd-3.4.5-r1::gentoo failed (compile phase):
 *   emake failed
Comment 1 ernsteiswuerfel archtester 2024-02-15 13:16:13 UTC
Created attachment 885039 [details]
emerge --info
Comment 2 J. Roeleveld 2024-02-15 16:24:42 UTC
I have the same on AMD64
As I always use it as "server", I never noticed this.

I also see the issue with 3.8.1-r1.
Comment 3 J. Roeleveld 2024-02-15 16:35:29 UTC
Got a possible fix, but won't be able to test this today anymore.

If you're in a hurry, you can try the following (in short, I move the "imap/imap_err.h" line from the " if SERVER " section to the generic one.
Compile works, but will need to add this to the ebuild properly to test fully.



diff --git a/Makefile.am b/Makefile.am
index 9f60a92f1..1009bc47f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -85,7 +85,8 @@ AM_DISTCHECK_CONFIGURE_FLAGS = \
 
 BUILT_SOURCES = \
        lib/imapopts.c \
-       lib/imapopts.h
+       lib/imapopts.h \
+       imap/imap_err.h
 
 CLEANFILES = \
        lib/chartable.c \
@@ -149,7 +150,6 @@ BUILT_SOURCES += \
        imap/http_err.c \
        imap/http_err.h \
        imap/imap_err.c \
-       imap/imap_err.h \
        imap/lmtp_err.c \
        imap/lmtp_err.h \
        imap/mupdate_err.c \