Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 674638 - net-misc/seafile-6.2.4 - http-tx-mgr.c: In function ‘curl_error_to_http_task_error’: http-tx-mgr.c:1115:5: error: duplicate case value
Summary: net-misc/seafile-6.2.4 - http-tx-mgr.c: In function ‘curl_error_to_http_task_...
Status: RESOLVED FIXED
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: PullRequest
Depends on:
Blocks:
 
Reported: 2019-01-05 23:30 UTC by Dominik Kriegner
Modified: 2019-07-15 17:24 UTC (History)
3 users (show)

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


Attachments
build.log (seafile-build.log,37.46 KB, text/plain)
2019-01-05 23:30 UTC, Dominik Kriegner
Details
emerge-info (emerge-info-seafile.txt,6.60 KB, text/plain)
2019-01-05 23:31 UTC, Dominik Kriegner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dominik Kriegner 2019-01-05 23:30:50 UTC
Created attachment 560058 [details]
build.log

seafile-6.2.4 fails to compile. likely due to an update of net-misc/curl (fails on my systems with curl-7.63.0-r1)

# emerge -pqv '=net-misc/seafile-6.2.4::gentoo'

[ebuild     UD] net-misc/seafile-6.2.4 [6.2.9] PYTHON_TARGETS="python2_7"

A trivial bump to seafile-6.2.9/seafile-client-6.2.9 fixes the issue. libsearpc might also need to be looked at since build files indicate a change of the required version, but I do not understand the naming of releases of libsearpc...

Here the error (log attached):

x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..    -DPKGDATADIR=\"/usr/share/seafile\" -DPACKAGE_DATA_DIR=\""/usr/share/seafile"\" -DSEAFILE_CLIENT -I../include -I../lib -I../lib -I../common -pthread -I/usr/inc
lude/searpc -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Wall -march=native -O2 -p
ipe -c -o seafile-session.o seafile-session.c                                                                                                                                                                      
http-tx-mgr.c: In function ‘curl_error_to_http_task_error’:                                                                                                                                                        
http-tx-mgr.c:1115:5: error: duplicate case value                                                                                                                                                                  
     case CURLE_SSL_CACERT:                                                                                                                                                                                        
     ^~~~                                                                                                                                                                                                          
http-tx-mgr.c:1113:5: note: previously used here                                                                                                                                                                   
     case CURLE_PEER_FAILED_VERIFICATION:                                                                                                                                                                          
     ^~~~                                                                                                                                                                                                          
make[2]: *** [Makefile:610: http-tx-mgr.o] Error 1
Comment 1 Dominik Kriegner 2019-01-05 23:31:43 UTC
Created attachment 560060 [details]
emerge-info
Comment 2 Jan Breuer 2019-02-27 12:39:21 UTC
It is fixed upstream from version 6.2.7 https://github.com/haiwen/seafile/commit/c0a03e27e55253ccdded7fc4a3936c06428e5f5e

Older versions does not compile with >=curl-7.62.0 according to similar bug report in NixOS https://github.com/NixOS/nixpkgs/issues/51238#issuecomment-443028077
Comment 3 Frank Krömmelbein 2019-05-01 00:22:09 UTC
I can confirm this issue.
I have renamed the ebuild in my local overlay for net-misc/seafile and net-misc/seafile-client and both packages build succesfull.
Testes with now actual upstream version 6.2.11:

[ebuild   R   ~] net-misc/seafile-6.2.11::mylocal  PYTHON_TARGETS="python2_7" 0 KiB
[ebuild   R   ~] net-misc/seafile-client-6.2.11::mylocal  USE="-shibboleth -test" 0 KiB

Since I do not use the software myself atm, I can not test if there is still runtime errors or other issues.
Comment 4 Larry the Git Cow gentoo-dev 2019-07-15 17:24:50 UTC
The bug has been closed via the following commit(s):

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

commit fc5894fc45cc687fd59118ac043fd320f6956a60
Author:     Denis Efremov <efremov@linux.com>
AuthorDate: 2019-06-27 09:28:05 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2019-07-15 17:24:38 +0000

    net-misc/seafile: version bump to 6.2.11
    
    Closes: https://bugs.gentoo.org/674638
    Package-Manager: Portage-2.3.66, Repoman-2.3.11
    Signed-off-by: Denis Efremov <efremov@linux.com>
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 net-misc/seafile/Manifest              |  1 +
 net-misc/seafile/seafile-6.2.11.ebuild | 42 ++++++++++++++++++++++++++++++++++
 2 files changed, 43 insertions(+)