From owner-freebsd-ports@freebsd.org Wed Jul 10 18:23:20 2019 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1FE8115DF8EF for ; Wed, 10 Jul 2019 18:23:20 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 945D26B0B4 for ; Wed, 10 Jul 2019 18:23:19 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: by mailman.ysv.freebsd.org (Postfix) id 5239C15DF8EE; Wed, 10 Jul 2019 18:23:19 +0000 (UTC) Delivered-To: ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3F2CD15DF8ED for ; Wed, 10 Jul 2019 18:23:19 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell1.rawbw.com (shell1.rawbw.com [198.144.192.42]) by mx1.freebsd.org (Postfix) with ESMTP id B52CF6B0B3; Wed, 10 Jul 2019 18:23:18 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from yv.noip.me (c-67-180-169-236.hsd1.ca.comcast.net [67.180.169.236]) (authenticated bits=0) by shell1.rawbw.com (8.15.1/8.15.1) with ESMTPSA id x6AINGdJ093919 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Wed, 10 Jul 2019 11:23:16 -0700 (PDT) (envelope-from yuri@rawbw.com) X-Authentication-Warning: shell1.rawbw.com: Host c-67-180-169-236.hsd1.ca.comcast.net [67.180.169.236] claimed to be yv.noip.me Subject: Re: 12.0-RELEASE-p7 doesn't contain std::filesystem that has been added to 12.0-STABLE some time later To: Jan Beich Cc: "ports@freebsd.org" References: <1eac89d9-babe-7069-8c4b-2fbe53234fcd@rawbw.com> From: Yuri Message-ID: <9080c5f5-9d0c-2086-bd2c-57c409fffe3a@rawbw.com> Date: Wed, 10 Jul 2019 11:23:15 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: B52CF6B0B3 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.96 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.96)[-0.962,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jul 2019 18:23:20 -0000 On 2019-07-10 07:19, Jan Beich wrote: > C++ example: > > #if __cplusplus >= 201703L && __has_include() > #include > #else > #include > namespace std { > namespace filesystem = experimental::filesystem; > } > #endif > > Makefile example: > > .if exists(/usr/lib/libc++fs.a) > LIBS+= -lc++fs > .elif exists(/usr/lib/libc++experimental.a) > # XXX Remove after FreeBSD 12.0 EOL > LIBS+= -lc++experimental > .else > # XXX Remove after FreeBSD 11.2 EOL > USE_GCC= yes > LIBS+= -lstdc++fs > .endif This helps with locating the header/library, but it fails to compile in poudriere on 12.0-RELEASE-p7: x.cpp:213:15: error: no member named 'is_symlink' in 'std::experimental::filesystem::v1::directory_entry'     if (entry.is_symlink())         ~~~~~ ^ It looks like 12.0-RELEASE-p7 is technically broken, because it doesn't include is_symlink(). Yuri