Summary: | databases/xapian-core: compilation error on 9-STABLE (missing symbol: SOCK_CLOEXEC) | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Arrigo Marchiori <ardovm> | ||||
Component: | Individual Port(s) | Assignee: | Po-Chuan Hsieh <sunpoet> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Only Me | CC: | rakuco, sunpoet | ||||
Priority: | --- | ||||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
Arrigo Marchiori
2016-11-21 08:35:02 UTC
Created attachment 177250 [details]
Proposed patch
The attached patch fixes the build by defining SOCK_CLOEXEC to 0 when it is not already defined (the 1.4 xapian series does basically the same thing with safesyssocket.h).
A commit references this bug: Author: rakuco Date: Mon Nov 21 21:26:59 UTC 2016 New revision: 426759 URL: https://svnweb.freebsd.org/changeset/ports/426759 Log: Unbreak the build on FreeBSD 9 after r426647. SOCK_CLOEXEC was introduced in FreeBSD 10, so define it to 0 on FreeBSD 9 (the code already handles this case). Xapian 1.4 has a safesyssocket.h that does the same thing. PR: 214699 Approved by: portmgr (antoine) Changes: head/databases/xapian-core/Makefile head/databases/xapian-core/files/extrapatch-backends_flint__lock.cc Thank you, Raphael! I confirm I could build it successfully. |