From owner-freebsd-ports@freebsd.org Wed Apr 1 08:26:09 2020 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 609402B4B45 for ; Wed, 1 Apr 2020 08:26:09 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: from mail-lj1-f194.google.com (mail-lj1-f194.google.com [209.85.208.194]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48sfRN0WkGz4hRc; Wed, 1 Apr 2020 08:26:07 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: by mail-lj1-f194.google.com with SMTP id n17so24824637lji.8; Wed, 01 Apr 2020 01:26:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=UIe/PRoG0YBdllkW6MdrH+v9tVTBs6KtWEYPCOwPF24=; b=lzH1wlHrFguQh8b9nO1rv6Vil949jwljfgmCX8SEvth7U6FpVJD5mL6GZr6q8HInen 3BVROQMqw3LZuY88bec1Ydi6sc3oRixXMNXpEnoffM4CGqmTUMny9mGMBuz/5pTPzBFw WADuog5R0VgsHB7V9z2gl4MuExSpBHdmt/5S00SsKRmZs1QagKQ3+chQ0uGYf1Cvhfvz GN+WEL1XrRzqJOaCj90AUnxx5Ho7R91mHyMgCBVlZlfspNMrAUodug/hzw+NPOhZRzf6 ZRsARHD8wGzBZkfSuOQRDKOLVm/+RSSDib6guF5Lnn6DUGi/Vgn0bBlvOCwG5RLtfYts YFpg== X-Gm-Message-State: AGi0PuZvG86PNP7MziWG1P0PRe/KLtfIdFqsgBM5/z4hsdeSklgNe51O Pj01b1GqttK/ER5gZ51giuWt+N0SeOE= X-Google-Smtp-Source: APiQypKs0YQ74FR1CngP8vSOJjNO8EPe3nBefP7imxTZOXt8hirdJmogInVoQmCvz0e+F97aa9hp9g== X-Received: by 2002:a05:651c:110d:: with SMTP id d13mr12794600ljo.134.1585729557622; Wed, 01 Apr 2020 01:25:57 -0700 (PDT) Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com. [209.85.208.169]) by smtp.gmail.com with ESMTPSA id c22sm1033361lfi.41.2020.04.01.01.25.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 01 Apr 2020 01:25:57 -0700 (PDT) Received: by mail-lj1-f169.google.com with SMTP id r7so17120444ljg.13; Wed, 01 Apr 2020 01:25:57 -0700 (PDT) X-Received: by 2002:a2e:2a03:: with SMTP id q3mr12423805ljq.216.1585729556787; Wed, 01 Apr 2020 01:25:56 -0700 (PDT) MIME-Version: 1.0 References: <20200401042446.jscya2g4ykkbqfoe@icepick.vmeta.jp> In-Reply-To: <20200401042446.jscya2g4ykkbqfoe@icepick.vmeta.jp> From: Gleb Popov Date: Wed, 1 Apr 2020 12:25:30 +0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: How to use base OpenSSL with meson-based ports? To: Koichiro Iwao Cc: FreeBSD ports list X-Rspamd-Queue-Id: 48sfRN0WkGz4hRc X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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, 01 Apr 2020 08:26:09 -0000 On Wed, Apr 1, 2020 at 8:43 AM Koichiro Iwao wrote: > In my ports, I patch configure.ac to find OpenSSL not relying on > pkg-config. > > > https://svnweb.freebsd.org/ports/head/net/xrdp/files/patch-configure.ac?revision=469777&view=markup#l8 > > See also this. > > > http://empt1e.blogspot.com/2011/05/dealing-with-pkg-config-detection-of.html > https://github.com/neutrinolabs/xrdp/pull/514 > > Yes, I know how to deal with autotools. The problem is meson. Maybe settings CFLAGS/LDFLAGS would help, indeed. On Tue, Mar 31, 2020 at 11:24:58AM +0400, Gleb Popov wrote: > > Hello. > > > > Meson build system uses pkg-config to locate dependencies. However, > OpenSSL > > in base does not provide a .pc file (unlike, say, zlib - see > > /usr/libdata/pkgconfig/). I haven't found a way in meson to manually set > up > > a dependency in this case. > > > > I got a suggestion to write my own .pc file and hook it into the build of > > my port, but this looks somewhat hackish for me. Why can't we provide a > > proper .pc file in the base system? > > > > Thanks in advance. > > _______________________________________________ > > freebsd-ports@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-ports > > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" > > -- > meta >