Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 682706 - net-mail/dovecot should depend on net-libs/rpcsvc-proto
Summary: net-mail/dovecot should depend on net-libs/rpcsvc-proto
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Eray Aslan
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-06 19:37 UTC by Martin Mokrejš
Modified: 2020-09-12 08:53 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2019-04-06 19:37:14 UTC
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking bzlib.h usability... yes
checking bzlib.h presence... yes
checking for bzlib.h... yes
checking for BZ2_bzdopen in -lbz2... yes
./configure: line 27699: rpcgen: command not found
checking for library containing quota_open... no
checking for icu-i18n... yes


I do not see it in config.log file:

configure:27416: checking bzlib.h presence
configure:27416: x86_64-pc-linux-gnu-gcc -E  conftest.c
configure:27416: $? = 0
configure:27416: result: yes
configure:27416: checking for bzlib.h
configure:27416: result: yes
configure:27419: checking for BZ2_bzdopen in -lbz2
configure:27444: x86_64-pc-linux-gnu-gcc -o conftest -std=gnu99 -O2 -pipe -march=native -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=thunk -mindirect-branch=thunk -Wall -W -Wmissing-prototypes -Wmissin
g-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2   -Wl,-O1 -Wl,--as-needed conftest.c -lbz2   >&5
configure:27444: $? = 0
configure:27453: result: yes
configure:27814: checking for library containing quota_open
configure:27845: x86_64-pc-linux-gnu-gcc -o conftest -std=gnu99 -O2 -pipe -march=native -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=thunk -mindirect-branch=thunk -Wall -W -Wmissing-prototypes -Wmissin
g-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2   -Wl,-O1 -Wl,--as-needed conftest.c  >&5
/var/tmp/portage/net-mail/dovecot-2.3.5.1/temp/cckJTXHi.o: In function `main':
conftest.c:(.text.startup+0x7): undefined reference to `quota_open'
collect2: error: ld returned 1 exit status
configure:27845: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Dovecot"
| #define PACKAGE_TARNAME "dovecot"
| #define PACKAGE_VERSION "2.3.5.1"
| #define PACKAGE_STRING "Dovecot 2.3.5.1"
...


so I conclude it is only used in configure 



  RPCGEN=${RPCGEN-rpcgen}
  if ! $RPCGEN -c /dev/null > /dev/null; then
    RPCGEN=
  fi
  have_rquota=no
  if test -f /usr/include/rpcsvc/rquota.x && test -n "$RPCGEN"; then
pkg_failed=no




# emerge -pv dovecot

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

Calculating dependencies... done!
[ebuild     U  ] net-mail/dovecot-2.3.5.1::gentoo [2.3.2.1::gentoo] USE="bzip2 ipv6 pam tcpd zlib -argon2 -caps -doc -kerberos -ldap -libressl -lua -lucene -lz4 -lzma -managesieve -mysql -postgres (-selinux) -sieve -solr -sqlite -static-libs -suid -textcat -vpopmail" 0 KiB


I will let the upgrade finish but maybe USE=rpc should be added?
Comment 1 Alexander Tsoy 2020-08-16 01:07:20 UTC
net-libs/libtirpc and net-libs/rpcsvc-proto are needed for quota support on NFS mounts. And they are automagic dependencies.
Comment 2 Larry the Git Cow gentoo-dev 2020-09-12 08:53:49 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41483d42a7d49a0f94063af7671c54f15268c9f7

commit 41483d42a7d49a0f94063af7671c54f15268c9f7
Author:     Eray Aslan <eras@gentoo.org>
AuthorDate: 2020-09-12 08:53:26 +0000
Commit:     Eray Aslan <eras@gentoo.org>
CommitDate: 2020-09-12 08:53:26 +0000

    net-mail/dovecot: fix automagic dependencies and libunwind linking
    
    Closes: https://bugs.gentoo.org/737264
    Closes: https://bugs.gentoo.org/682706
    Closes: https://bugs.gentoo.org/728336
    Package-Manager: Portage-3.0.6, Repoman-3.0.1
    Signed-off-by: Eray Aslan <eras@gentoo.org>

 net-mail/dovecot/dovecot-2.3.11.3-r1.ebuild        | 296 +++++++++++++++++++++
 .../dovecot/files/dovecot-unwind-generic.patch     |  15 ++
 net-mail/dovecot/metadata.xml                      |   2 +
 3 files changed, 313 insertions(+)