From nobody Wed Dec 14 11:46:29 2022 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NXD946Jy4z4kQQg for ; Wed, 14 Dec 2022 11:46:32 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Received: from mailout.qeng-ho.org (mailout.qeng-ho.org [217.155.128.244]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4NXD945VMsz4DCD; Wed, 14 Dec 2022 11:46:32 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Authentication-Results: mx1.freebsd.org; none Received: from [IPV6:2a02:8010:64c9:1::2] (unknown [IPv6:2a02:8010:64c9:1::2]) by mailout.qeng-ho.org (Postfix) with ESMTP id 921BF5038B; Wed, 14 Dec 2022 11:46:29 +0000 (GMT) Message-ID: Date: Wed, 14 Dec 2022 11:46:29 +0000 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: Does glib really need python at runtime? Content-Language: en-GB To: Yasuhiro Kimura , freebsd-questions@freebsd.org References: <3e71a826-6fbd-30b6-2577-d400d0cb7eca@qeng-ho.org> <20221214.201104.1234506425110480502.yasu@FreeBSD.org> From: Arthur Chance In-Reply-To: <20221214.201104.1234506425110480502.yasu@FreeBSD.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4NXD945VMsz4DCD X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:13037, ipnet:217.155.0.0/16, country:GB] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On 14/12/2022 11:11, Yasuhiro Kimura wrote: > From: Arthur Chance > Subject: Does glib really need python at runtime? > Date: Wed, 14 Dec 2022 10:57:42 +0000 > >> I installed a package that needs glib on a server and noticed that >> python was installed as glib depends on it >> >> root@arthur:1# pkg info -d glib >> glib-2.74.1,2: >> libxml2-2.10.3_1 >> python39-3.9.15 <----- >> pcre2-10.40 >> libffi-3.4.3 >> gettext-runtime-0.21 >> libiconv-1.17 >> >> I can understand python being need for building glib, but as a run time >> dependency it's ridiculous, as well as exposing a massive attack >> surface. Does anyone know what's going on here? > > glib-genmarshal and glib-mkenums are python script. So they require > python to run. Yes, but they're build time utilities. I found this page which says that glib specifically doesn't need python at runtime, only at build time. https://gitlab.gnome.org/GNOME/glib/-/issues/1716 > yasu@eastasia[3311]% file /usr/local/bin/glib-genmarshal /usr/local/bin/glib-mkenums > /usr/local/bin/glib-genmarshal: a /usr/bin/env /usr/local/bin/python3.11 script, ASCII text executable > /usr/local/bin/glib-mkenums: a /usr/bin/env /usr/local/bin/python3.11 script, ASCII text executable > yasu@eastasia[3311]% -- We build our computer systems the way we build our cities; over time, without a plan, on top of ruins. — Ellen Ullman