Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 611890 - mail-filter/rspamd-1.5.1 fails with USE="-gd"
Summary: mail-filter/rspamd-1.5.1 fails with USE="-gd"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Christian Roessner
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-06 13:27 UTC by Daniel Kenzelmann
Modified: 2018-03-22 07:40 UTC (History)
2 users (show)

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


Attachments
simple fix (rspamd-1.5.3-fix-gd.patch,444 bytes, patch)
2017-04-15 10:08 UTC, Alexander Sergeyev
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Kenzelmann 2017-03-06 13:27:55 UTC
emerge of rspamd-1.5.1 fails with "-gd" use flag:

# emerge -1av rspamd

 * IMPORTANT: 3 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U  ] mail-filter/rspamd-1.5.1::gentoo [1.4.4::gentoo] USE="fann -gd% -jemalloc -jit -libressl -pcre2" 0 KiB

Total: 1 package (1 upgrade), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] y

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) mail-filter/rspamd-1.5.1::gentoo
 * rspamd-1.5.1.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ...              [ ok ]
>>> Unpacking source...
>>> Unpacking rspamd-1.5.1.tar.xz to /var/tmp/portage/mail-filter/rspamd-1.5.1/work
>>> Source unpacked in /var/tmp/portage/mail-filter/rspamd-1.5.1/work
>>> Preparing source in /var/tmp/portage/mail-filter/rspamd-1.5.1/work/rspamd-1.5.1 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/mail-filter/rspamd-1.5.1/work/rspamd-1.5.1 ...
>>> Working in BUILD_DIR: "/var/tmp/portage/mail-filter/rspamd-1.5.1/work/rspamd-1.5.1_build"
cmake --no-warn-unused-cli -C /var/tmp/portage/mail-filter/rspamd-1.5.1/work/rspamd-1.5.1_build/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DCONFDIR=/etc/rspamd -DRUNDIR=/var/run/rspamd -DDBDIR=/var/lib/rspamd -DLOGDIR=/var/log/rspamd -DENABLE_LUAJIT=OFF -DENABLE_FANN=ON -DENABLE_PCRE2=OFF -DENABLE_JEMALLOC=OFF -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_INSTALL_DO_STRIP=OFF -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/mail-filter/rspamd-1.5.1/work/rspamd-1.5.1_build/gentoo_rules.cmake -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/mail-filter/rspamd-1.5.1/work/rspamd-1.5.1_build/gentoo_toolchain.cmake  /var/tmp/portage/mail-filter/rspamd-1.5.1/work/rspamd-1.5.1
Not searching for unused variables given on the command line.
loading initial cache file /var/tmp/portage/mail-filter/rspamd-1.5.1/work/rspamd-1.5.1_build/gentoo_common_config.cmake
-- The C compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/x86_64-pc-linux-gnu-gcc
-- Found RAGEL: /usr/bin/ragel (found version "6.9") 
-- Found PkgConfig: x86_64-pc-linux-gnu-pkg-config (found version "0.29.1") 
-- Found Perl: /usr/bin/perl (found version "5.24.1") 
-- Performing Test AMD_64
-- Performing Test AMD_64 - Success
-- Configuring for Linux
-- Check for lua 5.3
-- Found lua 5.3 in lib:/usr/lib64/liblua.so, headers:/usr/include
-- Checking for one of the modules 'gthread-2.0>=2.28'
-- Found package GTHREAD2 in pkg-config modules gthread-2.0>=2.28
-- Checking for one of the modules 'glib-2.0>=2.28'
-- Found package GLIB2 in pkg-config modules glib-2.0>=2.28
-- Checking for one of the modules 'pcre;libpcre;pcre3;libpcre3'
-- Found package PCRE in pkg-config modules pcre;libpcre;pcre3;libpcre3
-- Checking for one of the modules 'event;libevent'
-- Found package LIBEVENT in pkg-config modules event;libevent
-- Checking for one of the modules 'sqlite3;sqlite'
-- Found package SQLITE3 in pkg-config modules sqlite3;sqlite
-- Checking for one of the modules 'icu-i18n'
-- Found package ICUDATA in pkg-config modules icu-i18n
-- Checking for one of the modules 'icu-i18n'
-- Found package ICUC in pkg-config modules icu-i18n
-- Checking for one of the modules 'icu-i18n'
-- Found package ICUI18N in pkg-config modules icu-i18n
-- Checking for one of the modules 'openssl;libcrypt'
-- Found package LIBCRYPT in pkg-config modules openssl;libcrypt
-- Checking for one of the modules 'openssl;libssl'
-- Found package LIBSSL in pkg-config modules openssl;libssl
-- Checking for one of the modules 'magic'
-- Found package MAGIC in '/usr/lib64' (/usr/lib64/libmagic.so) and '/usr/include' (magic.h).
-- Checking for one of the modules 'fann'
-- Found package FANN in pkg-config modules fann
-- Checking for one of the modules 'gd'
CMake Error at CMakeLists.txt:411 (MESSAGE):
  Cannot find library gd for package GD
Call Stack (most recent call first):
  CMakeLists.txt:712 (ProcessPackage)


-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/mail-filter/rspamd-1.5.1/work/rspamd-1.5.1_build/CMakeFiles/CMakeOutput.log".
 * ERROR: mail-filter/rspamd-1.5.1::gentoo failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line  115:  Called src_configure
 *   environment, line 3518:  Called cmake-utils_src_configure
 *   environment, line  828:  Called _cmake_execute_optionally 'src_configure'
 *   environment, line  275:  Called enable_cmake-utils_src_configure
 *   environment, line 1284:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 * 
 * If you need support, post the output of `emerge --info '=mail-filter/rspamd-1.5.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=mail-filter/rspamd-1.5.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/mail-filter/rspamd-1.5.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/mail-filter/rspamd-1.5.1/temp/environment'.
 * Working directory: '/var/tmp/portage/mail-filter/rspamd-1.5.1/work/rspamd-1.5.1_build'
 * S: '/var/tmp/portage/mail-filter/rspamd-1.5.1/work/rspamd-1.5.1'

>>> Failed to emerge mail-filter/rspamd-1.5.1, Log file:

>>>  '/var/tmp/portage/mail-filter/rspamd-1.5.1/temp/build.log'

 * Messages for package mail-filter/rspamd-1.5.1:

 * ERROR: mail-filter/rspamd-1.5.1::gentoo failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line  115:  Called src_configure
 *   environment, line 3518:  Called cmake-utils_src_configure
 *   environment, line  828:  Called _cmake_execute_optionally 'src_configure'
 *   environment, line  275:  Called enable_cmake-utils_src_configure
 *   environment, line 1284:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 * 
 * If you need support, post the output of `emerge --info '=mail-filter/rspamd-1.5.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=mail-filter/rspamd-1.5.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/mail-filter/rspamd-1.5.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/mail-filter/rspamd-1.5.1/temp/environment'.
 * Working directory: '/var/tmp/portage/mail-filter/rspamd-1.5.1/work/rspamd-1.5.1_build'
 * S: '/var/tmp/portage/mail-filter/rspamd-1.5.1/work/rspamd-1.5.1'



Reproducible: Always




# emerge --info
Portage 2.3.4 (python 3.4.6-final-0, hardened/linux/amd64/no-multilib, gcc-5.4.0, glibc-2.23-r3, 4.9.13-hardened x86_64)
=================================================================
System uname: Linux-4.9.13-hardened-x86_64-AMD_E-350_Processor-with-gentoo-2.3
KiB Mem:    15990572 total,  13171632 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 06 Mar 2017 07:15:01 +0000
sh bash 4.4_p12
ld GNU ld (Gentoo 2.27 p1.0) 2.27
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.1-r1::gentoo
dev-lang/python:          2.7.13::gentoo, 3.4.6::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.23.2::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.69-r2::gentoo
sys-devel/automake:       1.13.4-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.27::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage/
    priority: -1000

k8n
    location: /usr/local/portage
    masters: gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=btver1 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=btver1 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl amd64 bzip2 caps cli cracklib crypt cups cxx dri gdbm gnutls hardened iconv idn iproute2 ipv6 justify lzma maildir mmx mmxext modules ncurses nls nptl offensive opengl pam pax_kernel pcre pie png popcnt readline seccomp session speex spice sse sse2 sse3 sse4a ssl ssp ssse3 syslog tcpd udev unicode urandom usb vhosts vorbis xattr xtpax zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4a ssse3" CURL_SSL="gnutls" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" L10N="de de-DE en en-GB en-US zh zh-CN" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de de_DE en en_GB en_US zh zh_CN" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-1" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Dirkjan Ochtman (RETIRED) gentoo-dev 2017-03-09 12:33:56 UTC
Christian, are you interested in working on this?
Comment 2 Alexander Sergeyev 2017-04-15 10:08:54 UTC
Created attachment 470086 [details, diff]
simple fix
Comment 3 Alexander Sergeyev 2017-04-15 10:10:36 UTC
I hit the same problem on the current version 1.5.3.

Looking in the ebuild, gd use flag currently does not do much about telling cmake about the selected preference. Thus, the default choice is applied (which is ON).

A simple patch is attached.
Comment 4 Christian Roessner 2018-03-22 07:40:00 UTC
Fixed in https://bugs.gentoo.org/show_bug.cgi?id=651134