gnates 2a00:1450:4864:20::130 as permitted sender) smtp.mailfrom=junho.choi@gmail.com Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-5196c755e82so6913967e87.0 for ; Tue, 30 Apr 2024 05:24:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714479850; x=1715084650; darn=freebsd.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=gYWvvjhsc5eKZADJ3CuQfENoycHcNuKAaR70JLTlNe0=; b=S6FSw6GvBSifQb06Rq1ewYofjOCdwPnENvMkyqc0QRqscodfRcjIg5e9p09ZWcQEDo bIW667zUpgXPuLQwCZpaf60SBD3D7M/qAuO4bFl4iRfKmlJPdnoDuO/2dWlf5KBZmVAw 5JDnkODJYUQB5qs3+uiyg7TAXyBxzBMw4317/yzulPMZ1bWSNR9kWT9egWNkUA/aQoij THlrRMdMkP+gq33E0MCAZZFRVMo3RFPh0kjMuAYdSpSpTM2NZMtVRT4QYEpzo8dKVKyP lH3W7H/kcR7akbf405cV9kywEApTyQ/3G+pLnScGIvZOgtAn3krKySnFjy9pSVc/n+/N PIWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714479850; x=1715084650; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gYWvvjhsc5eKZADJ3CuQfENoycHcNuKAaR70JLTlNe0=; b=m1dSen4HIoZKtlX/eoAYSyBywoIIm8n1Xl2JwrIdHayA3HL7NWUs2FfE/l9jn4lDEZ MMYx+yDbcpdjRn2eSKAyOWlbpWVrL2EM7d2f2LzQwIt2hqP7I2gXYHjBGEmmodvk11m9 +G9h2Fe1AG7baAqlqXyIryaXbga3lQpuuAgJxrlLSdTyYNSPNAha6TiE6yN/Ygn2fnYB 8A5KHl1zCkznKO4K96VNmcPvomVnCfuFnl/bW5Ww64YZxtgDGBtKxrYkSAntjZnVri6Y XTyqFCLIbaNVPAMfoWvKwxWyFMZ1oZUiWCSAkPzkED1LpKyPq4TFH8oxBLetjrctZ6QJ Wrhg== X-Gm-Message-State: AOJu0YzTe4pVrIz+HleZh8wSC5H97+1x65nde7OQyUj+diKDCQCMzFu1 pM6eSTl40pKnciJHgvCu8N5JrLQYY7QfRWzzbcFUVdxw+07/QLui8CkbIY2eErb2J3aHTpFYZLi JDpMs/GsNxfHsulEjM5Fxuvtx8lg= X-Google-Smtp-Source: AGHT+IFEP3WpbDgflVA/zXBUVrmmgbOiiSz40gwsLhGPg2tEyZ9q8dS/IwS54DjUAd1QXqQI1pN+/2wimfFXepCcNrA= X-Received: by 2002:a2e:92cc:0:b0:2dd:bd92:63c with SMTP id k12-20020a2e92cc000000b002ddbd92063cmr8306626ljh.42.1714479849790; Tue, 30 Apr 2024 05:24:09 -0700 (PDT) List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports@freebsd.org Sender: owner-freebsd-ports@FreeBSD.org MIME-Version: 1.0 References: In-Reply-To: From: Junho Choi Date: Tue, 30 Apr 2024 21:23:32 +0900 Message-ID: Subject: Re: quiche dependency issue in FreeBSD To: =?UTF-8?Q?Yann_Kerherv=C3=A9?= Cc: freebsd-ports@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.15 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; NEURAL_HAM_SHORT(-0.15)[-0.147]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_TWO(0.00)[2]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; FREEMAIL_TO(0.00)[gmail.com]; TAGGED_FROM(0.00)[]; TO_DN_SOME(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; MISSING_XM_UA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; TAGGED_RCPT(0.00)[]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::130:from] X-Rspamd-Queue-Id: 4VTKBN4XrSz4T4M I was looking into pkg source and found a relevant line: https://github.com/freebsd/pkg/blob/b0a68a933f42aec97c8f37543bcac41149c28e2= e/libpkg/pkg_elf.c#L402-L410 It seems to look for soname in the shared libs to be added to "shlibs provided" section, but currently quiche has no soname in the .so file: https://github.com/cloudflare/quiche/issues/598 I made a PR to fix this: https://github.com/cloudflare/quiche/pull/1769 After that, I made a fix on the port and now it looks ok: Shared Libs provided: libquiche.so.0 Let's see how it is merged. I'll update the quiche port when it's ready. On Tue, Apr 30, 2024 at 12:17=E2=80=AFPM Junho Choi = wrote: > > (Cross posting to ports@) > > Yann - yes I can reproduce it but have no idea why. > > It seems quiche doesn't have a "Shared Lib provided" section like > other libs. (see below) > > Other than USE_LDCONFIG, what affects it? Any advice from committers? > > % pkg info quiche > quiche-0.20.1 > Name : quiche > Version : 0.20.1 > Installed on : Tue Apr 30 03:14:32 2024 UTC > Origin : net/quiche > Architecture : FreeBSD:14:amd64 > Prefix : /usr/local > Categories : net > Licenses : BSD2CLAUSE > Maintainer : junho.choi@gmail.com > WWW : https://crates.io/crates/quiche > Comment : Savoury implementation of the QUIC transport protocol > and HTTP/3 > Options : > DOCS : on > QLOG : on > Annotations : > FreeBSD_version: 1400097 > build_timestamp: 2024-04-04T20:02:03+0000 > built_by : poudriere-git-3.4.1-1-g1e9f97d6 > port_checkout_unclean: no > port_git_hash : 0e1153d3a5 > ports_top_checkout_unclean: no > ports_top_git_hash: f5d16d08a6 > repo_type : binary > repository : FreeBSD > Flat size : 48.2MiB > > > Other example (libnghttp2 has "Shared Lib Provided" section) > > % pkg info libnghttp2 > libnghttp2-1.61.0 > Name : libnghttp2 > Version : 1.61.0 > Installed on : Sun Apr 21 12:06:36 2024 UTC > Origin : www/libnghttp2 > Architecture : FreeBSD:14:amd64 > Prefix : /usr/local > Categories : www net > Licenses : MIT > Maintainer : sunpoet@FreeBSD.org > WWW : https://nghttp2.org/ > Comment : HTTP/2.0 C Library > Shared Libs provided: > libnghttp2.so.14 > Annotations : > FreeBSD_version: 1400097 > build_timestamp: 2024-04-11T01:12:38+0000 > built_by : poudriere-git-3.4.1-1-g1e9f97d6 > cpe : cpe:2.3:a:nghttp2:nghttp2:1.61.0:::::freebsd14:x64 > port_checkout_unclean: no > port_git_hash : 2b3fb39407 > ports_top_checkout_unclean: no > ports_top_git_hash: 2910ff97e7 > repo_type : binary > repository : FreeBSD > Flat size : 801KiB > > On Fri, Apr 26, 2024 at 11:32=E2=80=AFAM Yann Kerherv=C3=A9 wrote: > > > > Hello, > > > > I have an issue with `pkg check` reporting a dependency missing: > > > > root@dev:~ # pkg check -d -a > > Checking all packages: 100% > > dnsdist is missing a required shared library: libquiche.so > > > > (in FreeBSD 13.3 and 14.0) > > > > This is bogus: > > root@dev:~ # ldd /usr/local/sbin/dnsdist | grep quiche > > libquiche.so =3D> /usr/local/lib/libquiche.so (0x3af8e91e0000) > > > > It seems like the package build missed that dependency and doesn't repo= rt as a shared lib provided by quiche? > > > > # pkg info -b quiche > > quiche-0.20.1: > > > > Should there be a shared lib provided there: > > > > quiche-0.20.1: > > libquiche.so > > > > I thought that the USE_LDCONFIG=3D yes in the Makefile was taking care = of that automatically. And this is correctly set in the Makefile... > > > > Thanks! > > > > Yann > > > > > > > > > -- > Junho Choi | https://saturnsoft.net --=20 Junho Choi | https://saturnsoft.net