From owner-freebsd-ports@freebsd.org Fri Jun 24 19:15:05 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 21EFDAC4569 for ; Fri, 24 Jun 2016 19:15:05 +0000 (UTC) (envelope-from elferdo@gmail.com) Received: from mail-it0-x235.google.com (mail-it0-x235.google.com [IPv6:2607:f8b0:4001:c0b::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DD9D42E54 for ; Fri, 24 Jun 2016 19:15:04 +0000 (UTC) (envelope-from elferdo@gmail.com) Received: by mail-it0-x235.google.com with SMTP id f6so21240162ith.0 for ; Fri, 24 Jun 2016 12:15:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=qQT0vZ+BYdRnrvvfeJPowVZ85MSNhTbb55vW6pqpqbA=; b=CEkprzFM4udhUf709gh5xFOqICjSGDgbu2j3kuqAXgMRoyh/ok2HUtvF/3K6dTFVl3 iJxNcfJpPJJrlqzemF//GjciSUILmHoIH2zX1oTubmAFJTeVbz6KeTsANIfHiI3YPfI1 Kfg6V9gfGDEV9mHCZgD8RajqF2mZOCLnYuI9qk+kPALkSy843EUgUiF9VF5fx3B4lZrh 3eyT1LHckKEnfdr7LQ1i4gt0sj29QlwYgFxgwXB4Xihnjlkv/rdYHOLxsObHpWIZsEBF zuQe4h+XNmSI3ksQAEsn/hOXSEB1DGoBwnTjSQ4spAyRlPvg/7B0+c1L1zZgnSfg11yP 91Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=qQT0vZ+BYdRnrvvfeJPowVZ85MSNhTbb55vW6pqpqbA=; b=JMz1ewgaPWMrns4XOXlu3GunieXwxCaOOx18eOYsCv3sqSYhVCrBAhShHxdkgxpgnT PicT3XtRrIKFU4qnKtiLcPI1IbmO+ZQfDj9wFmn4G5G4/eRY2oBmnHZvqRk6STF/Y9u9 GFbtCBtWXpuKEAKlqJKJxhInydCNnk01IObZslG8yfGEYgz/TuZD33M5KW+hMRVyvf35 2erkx1ycNoSMIJFHeWhKVv/J51mTyvp9eAs9340IzcWrWkAj3Mk8vciOLJ22WBNvRCsW D5XjdeSUIODnpz97JJ2uslrq3yFpmRYcU62kO6zDviPXJ3ZgOQZfiMhUp98TXGPAFnQf vhGw== X-Gm-Message-State: ALyK8tKj630+QifxcfnC2F/Z1Sm/JgfFAoaAKpNol2MEgoFYYjaYac4V1c3ppb5HHqC+LqgURsyH4vM4hVP8pw== MIME-Version: 1.0 X-Received: by 10.36.211.76 with SMTP id n73mr25589178itg.71.1466795704365; Fri, 24 Jun 2016 12:15:04 -0700 (PDT) Received: by 10.36.95.17 with HTTP; Fri, 24 Jun 2016 12:15:04 -0700 (PDT) Received: by 10.36.95.17 with HTTP; Fri, 24 Jun 2016 12:15:04 -0700 (PDT) In-Reply-To: References: Date: Fri, 24 Jun 2016 21:15:04 +0200 Message-ID: Subject: Re: QA script error (libc++) From: =?UTF-8?Q?Fernando_Herrero_Carr=C3=B3n?= To: =?UTF-8?Q?Fernando_Apestegu=C3=ADa?= Cc: FreeBSD Mailing List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jun 2016 19:15:05 -0000 El 24 jun. 2016 4:23 p. m., "Fernando Apestegu=C3=ADa" < fernando.apesteguia@gmail.com> escribi=C3=B3: > > On Fri, Jun 24, 2016 at 10:25 AM, Fernando Herrero Carr=C3=B3n > wrote: > > > > El 24 jun. 2016 8:16 a. m., "Fernando Apestegu=C3=ADa" > > escribi=C3=B3: > >> > >> One of my ports is written in C++. It links agains libc++ that is in > >> base (/usr/src/contrib/libc++). The port still builds fine and works > >> but the QA scripts show an error complaining about the executable > >> being linked to libc++ without the library being listed as an actual > >> dependency and it suggests to add the following line to the Makefile: > >> > >> LIB_DEPENDS+=3Dlibc++.so:devel/libc++ > >> > >> Is this strictly necessary? Would something like this be acceptable?: > >> > >> .if !exists(/usr/lib/libc++.so) > >> ... > >> LIB_DEPENDS+=3Dlibc++.so:devel/libc++ > >> ... > >> .endif > >> > >> Note: the port does not compile on FreeBSD < 10.x > >> > >> Thanks in advance. > > > > Dear Fernando, > > > > I would say adding a dependency on libc++ from ports is not necessary. On a > > standard system you can pass the compiler an option like -stdlib=3Dlibc= ++ and > > it works. > > > > This library is usually linked against when compiling with c++11 or newer. > > Maybe adding the appropriate compiler option [1] would be a better choice? > > I forgot to mention I'm already using this: > > USES=3D compiler:gcc-c++11-lib > > But the QA script still complains. > I myself program in c++, have plenty of c++ ports installed and don't have devel/libc++ on my system. Could it be that a previous port does install devel/libc++ for you, and this one links against it by chance? Do you already have devel/libc++ installed when compiling this port?