From owner-freebsd-current@freebsd.org Tue Feb 25 03:10:32 2020 Return-Path: Delivered-To: freebsd-current@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 4DB5C24E234 for ; Tue, 25 Feb 2020 03:10:32 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic317-21.consmr.mail.gq1.yahoo.com (sonic317-21.consmr.mail.gq1.yahoo.com [98.137.66.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48RP7p5MZ9z4YGF for ; Tue, 25 Feb 2020 03:10:30 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: LtAslJAVM1ktvOVXzmO5LGbD5tT_E1D24npL_US48EDx2V3se.h0lUK3bFUk5Yn l3Kc2FhowHukw02KOfjnPVwEi4vN4sMDDJ1klK4kkENu5FRJIax4mznTroo05qq2JkJu_NArywcH dpzPFkBW4EsdjqeQPdbz8GdAsJBEuVdgLnDrRlc_ZEdsjQyOSM6xkrtWW5qSzKbCetWQdaPXpTLf szWrhzrsxh_U6_ODxanrsiDM1o3Tm7tYrBHWh52kRQ99LslmHPOKZvktMXl.u_fTZ1IFaq54b388 2ezmCxGGyzDTaFGmuL1w_P1LSSCUIpUvK1PPnPlxKTWO43W7wTR_1WBE1vakMk5VIiyUYv6DHn1D Vrv86n8CnnNID4T68P5rck_r9CekWl872hIVRyXZHEjN52QYUZMKbrWUd32i9seZdNXZCZW_DBHR XjIhdbm4v9527gHy3pH.Wc7KDKB7UGNcrbzt425WlVnLvTSDlh0TP07VoRkSNOuUZlLMS4whbLsx fo7_YK_K3GGiMDMANBkRqdGwMMX5vgLuKolb.UD7pRytd96yEJjxzS6nKU0g.fMmpihhsXUzjkr_ o6G8g2IprtGpJKkVtqnXROsp5VZ_DQd8zqypNncFPj2tCaLG6xTatSgMaCb5N3si7k1_qHezaQs7 r4IAUfwgWS2nI0aEi5tfOZ5TRTrr6lSAWmBRM8Nox5BWKXOoqmrGvSShYglet5xJbNCWvYjW5nwK syR_JecKr1weNQi92w5EFeqMYWZ_YBO2UmcgG_fWXBs_.lTm_.H19kyEvFqmo4RqH7X0QJ8nKEBC CJ2EmkgnHJ.84zvP6e2i0fNKWJBnR9mdREjO2zIP3UPBA8bwZNxB_xD63aV9clhrGSgF.0K2OivI kI9eO5DZUi0wd5yATs1wMh4IyW4dGFBO6qxgu6zj0GRoIprvjbfG1wWiRi.Sdn9OsrWmwtG1G3gL HilvBugZbHihQ8tGzeF5ePBy3mGGkXo.3h.H38l_Holjj9nLxuFxtyarQp0M5vZOPrljRwJMgAj7 xu7XbAEMj39e5YScfAWRajO0hX17a1tNh2_MsdapGnapBsN_8u3mcOqMlj5TkXzw7SJ4AVHHtPyk wMWcfrO8g6gKQtviWdrrV5QSi_j0KWjq7h6Ti6xevJC7CGC78.uE7z_xrDW3mtMBkjMU1K4fjheU iT1Dzc8HdQu3SXqhFloGuXhk2WF3eydmlPMql5nLtp_nFbL611YxSEvYnDeXLRjMiT9NOPKMqMTy DKfoj813501M7Wf2GRMw6sgFtma46yPyp5wnLyqd_Ozn1ucMybgUN5ue3JO538ryMebcuIMlOqny 6scq8pX7qncBDqF7GhI2Wth9tjHElQwCEZoyTf72HY97PdCRTZMKrn.gieNoH_h0dNZXlabch0lx X0Q8MVqEOyBweV_AcEDeiZMEVU5m35IKgED.OqvgJJ2Bzvv_S0GuT_UvzDeUNOKU- Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.gq1.yahoo.com with HTTP; Tue, 25 Feb 2020 03:10:28 +0000 Received: by smtp418.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 23dc1a49ba6fd778234fae00546308a0; Tue, 25 Feb 2020 03:10:22 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: Re: r358062(ncurses) breaks installed ports, howto check? Date: Mon, 24 Feb 2020 19:10:21 -0800 References: <33314BE6-48FD-4406-B5DA-5DC283B40373@yahoo.com> To: ohartmann@walstatt.org, FreeBSD Current In-Reply-To: <33314BE6-48FD-4406-B5DA-5DC283B40373@yahoo.com> Message-Id: <0D67AFC0-DBC7-47CE-B2DE-E4B3483AE60D@yahoo.com> X-Mailer: Apple Mail (2.3608.60.0.2.5) X-Rspamd-Queue-Id: 48RP7p5MZ9z4YGF X-Spamd-Bar: / X-Spamd-Result: default: False [0.66 / 15.00]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (5.41), ipnet: 98.137.64.0/21(0.83), asn: 36647(0.66), country: US(-0.05)]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; SUBJECT_ENDS_QUESTION(1.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/21, country:US]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0]; NEURAL_HAM_LONG(-0.40)[-0.404,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; NEURAL_SPAM_MEDIUM(0.57)[0.568,0]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[147.66.137.98.list.dnswl.org : 127.0.5.0]; RWL_MAILSPIKE_POSSIBLE(0.00)[147.66.137.98.rep.mailspike.net : 127.0.0.17]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Feb 2020 03:10:32 -0000 On 2020-Feb-24, at 11:43, Mark Millard wrote: > O. Hartmann ohartmann at walstatt.org wrote on > Mon Feb 24 19:20:32 UTC 2020 : >=20 >> After r358062, many installed ports do not work anymore on several = running systems (CURRENT). >> /usr/src/UPDATING states one should reinstall all ncurses depending = ports, but no hint is >> given! Can someone mitigate this lack of information? Is there a = simple way to check what >> ports installed on a system rely on ncurses provided by the system? >=20 > Turns out there was an exchange on the ports list, with > various folks giving improvements on an initial example. > My last contribution for a /bin/sh context was (showing > an example use): >=20 > # find /usr/local/*bin* /usr/local/lib* -type f \ > | xargs ldd -f '%p %A\n' 2>&1 | grep "^/lib/libncurses[^ ]*\.so\.8" | = cut -w -f2 \ > | xargs pkg which -q | sort -u | more > bison-3.5.2,1 > dialog4ports-0.1.6 > gdb-8.3.1 > gdbm-1.18.1_1 > gettext-tools-0.20.1_1 > gnuplot-5.2.8 > libedit-3.1.20191211,1 > libtextstyle-0.20.1 > llvm10-10.0.0.r2 > llvm80-8.0.1_3 > lua52-5.2.4 > mesa-dri-18.3.2_9 > python37-3.7.6 > readline-8.0.1 > ruby-2.6.5,1 > spidermonkey60-60.9.0_1 > sqlite3-3.30.1,1 > texinfo-6.7_1,1 > xterm-353_1 >=20 > I'll note that the "2>&1" could be "2>/dev/null" for contexts > that have /dev/null. (I used the above in a chroot that does > not have /dev/null by default.) Thomas Dickey wrote about tracking upper vs. lower interface distinctions to cut down on what needs to be built. The below does not go that direction but does cut down the list to ports directly involving /lib/libncurses[^ ]*\.so\.8 : # find /usr/local/*bin* /usr/local/lib* -type f \ | xargs ldd -f '%p %A\n' 2>&1 | grep "^/lib/libncurses[^ ]*\.so\.8" | = cut -w -f2 \ | xargs ldd -a | egrep '(^/.*:$| /lib/libncurses[^ ]*\.so\.8 )' \ | grep -B1 " /lib/libncurses" | grep "^/.*:$" | sed -e's;:$;;' \ | xargs pkg which -q | sort -u | more dialog4ports-0.1.6 gdb-8.3.1 gdbm-1.18.1_1 gnuplot-5.2.8 libedit-3.1.20191211,1 libtextstyle-0.20.1 llvm10-10.0.0.r2 llvm80-8.0.1_3 python37-3.7.6 readline-8.0.1 ruby-2.6.5,1 sqlite3-3.30.1,1 texinfo-6.7_1,1 xterm-353_1 So, for example, "bison-3.5.2,1" is not listed because only its use of "libtextstyle-0.20.1" brought in a ncurses library use overall. The "libtextstyle-0.20.1" is listed. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)