From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 2A9qIRIonWCy+AAAgWs5BA (envelope-from ) for ; Thu, 13 May 2021 15:22:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id sJcnHRIonWBJCgAA1q6Kng (envelope-from ) for ; Thu, 13 May 2021 13:22:26 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9FF9BD42C for ; Thu, 13 May 2021 15:22:25 +0200 (CEST) Received: from localhost ([::1]:38706 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhBIG-00053h-SU for larch@yhetil.org; Thu, 13 May 2021 09:22:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44452) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhBHu-0004FO-3b for guix-patches@gnu.org; Thu, 13 May 2021 09:22:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58369) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lhBHt-0002qJ-R3 for guix-patches@gnu.org; Thu, 13 May 2021 09:22:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lhBHt-0000NN-Nl for guix-patches@gnu.org; Thu, 13 May 2021 09:22:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47898] [PATCH] [core-updates] Add option --xpath0 to xmllint from libxml2 Resent-From: david larsson Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 13 May 2021 13:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47898 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Marius Bakke Cc: 47898@debbugs.gnu.org Received: via spool by 47898-submit@debbugs.gnu.org id=B47898.16209121181436 (code B ref 47898); Thu, 13 May 2021 13:22:01 +0000 Received: (at 47898) by debbugs.gnu.org; 13 May 2021 13:21:58 +0000 Received: from localhost ([127.0.0.1]:41682 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhBHq-0000N5-B8 for submit@debbugs.gnu.org; Thu, 13 May 2021 09:21:58 -0400 Received: from server0.selfhosted.xyz ([217.64.149.7]:60546) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhBHm-0000Mr-TJ for 47898@debbugs.gnu.org; Thu, 13 May 2021 09:21:57 -0400 Received: from server0.selfhosted.xyz (localhost [127.0.0.1]) by server0.selfhosted.xyz (Postfix) with ESMTP id 34A961DCEEDA; Thu, 13 May 2021 15:21:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=selfhosted.xyz; s=dkim; t=1620912108; bh=Z/EnZFVhY5a+m9c/KQyRbXz8FVSy5IfucAVlSHqob3U=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=QE0wfdM2CDyCQvfRVUs6Eh+ob2n0lLok2t8DGgOZvouVWiHdSBc6fsHoDYXoL6YkT 00u5cFGaJAYVzwEifplSWVRHglwqYy4rrinxoTwaiRqqnu4LprEKBLbHIBlGcJsTa/ YBLE6xfwra1hdg0GyBIQ7CIp0RJHBFadlHFrWBVX18q5pOJdh/u7G8mybMoQj5G4HN 3YxvlY3uMUTCME2YrvVjVnMvfiZkkqmWfjMY95rrYVPUImZOXEHtxO2iWAQJDf/Xeu 3ET6IFyJsY3IeisshgN27qZoueQN/2WwUFI+ISDlrVWWx0h3fjTcLEYB8PAS7iRnv6 etTp3ZLk4/OPw== X-Fuglu-Suspect: f8c51a8aa3744e02bd228db92440e0e2 X-Fuglu-Spamstatus: NO Received: from webmail.selfhosted.xyz (office.selfhosted.xyz [192.168.1.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: mail@selfhosted.xyz) by server0.selfhosted.xyz (Postfix) with ESMTPSA; Thu, 13 May 2021 15:21:42 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 13 May 2021 15:21:41 +0200 From: david larsson In-Reply-To: <87eeeaiz5h.fsf@gnu.org> References: <20aec8da67d18b52e5a166f45cab40b2@selfhosted.xyz> <87eeeaiz5h.fsf@gnu.org> Message-ID: <48c1517d3239d55826324aa8f2bc9d4d@selfhosted.xyz> X-Sender: david.larsson@selfhosted.xyz X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620912146; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Z/EnZFVhY5a+m9c/KQyRbXz8FVSy5IfucAVlSHqob3U=; b=Lc8P8n+cbbc1VZKOXyIiPohoxKe7QFJJBhRi+2RuRGVKlToyYqsNfmlZdEZWdr8JmP8kC+ rWigkhKwDN568L0gASMESmorzEmfWkkV80l/yOLZCbfocgTfFOUkWJpTa0+iwPnMBOLqls ptZoSMW3Es6mFK3A5loAzi+HKT/aRUV/ri593vVt9c0G+QqTFyD5L3QT4VjLIbwG/a5xMA kVPZZlSoCIucKLOdSa5QUCbS4RgjPkvYhF6eXdUcYv2BgK8nSZ7mfutfNrGKtlVA2nktru SEk+9PuOyliPcSN4WSTImc6dyt4eAbbcvhQNI/OecEi691KP43r4hvhUboicTQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620912146; a=rsa-sha256; cv=none; b=m0aQQT7TYH8XCP0N9msBgJYaRRsYjxMJ/R4YVN+RSTngygM80eLBUZy/NxIuMB1K27wvmE 153+mnx8iXeGQaNsHf3FJBgZhlXj8hI4NK4EffC2zJhU54LpWO69spXKRy+qEGJ1qCr9y4 DBIIhAATN+7qiaKohqc29nvTbol4diNWikKTnZEYB9bsP1OtwjfEgN+wE33AJfVdzT53o5 PKpvR2Bc1a47EhP3wNhAukuSrBXDoMsxsS7KhD4iusvdSOjDt74Gblgjrn1nyJsnLgDD4k YjTihOjH4wxJV3AvG3xplLUwHgMyY3KE2JOrLal+ZXMNMukT+MVCzCD15CqhhQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=selfhosted.xyz header.s=dkim header.b=QE0wfdM2; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.35 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=selfhosted.xyz header.s=dkim header.b=QE0wfdM2; dmarc=fail reason="SPF not aligned (relaxed)" header.from=selfhosted.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 9FF9BD42C X-Spam-Score: -1.35 X-Migadu-Scanner: scn0.migadu.com X-TUID: jYHspsp0sJ95 On 2021-05-13 14:41, Marius Bakke wrote: > david larsson skriver: > >> Hi! >> This patch adds the option to separate xpath results from xmllint by a >> null delimiter when using the --xpath0 option-flag. It is something >> that's been asked for for a long time by users on stackoverflow and >> merge-attempts have been made to upstream without success. >> >> Examples: >> - https://gitlab.gnome.org/GNOME/libxml2/-/issues/227 >> - https://gitlab.gnome.org/GNOME/libxml2/-/merge_requests/8 > > I'm reluctant to take a patch that has been rejected upstream, > especially for a core package such as libxml2. Porting can be > time-consuming which delays security updates, and we'll have situations > where something "works on Guix" but not elsewhere (or vice versa). I understand. > > Will adding it as a separate package be sufficient? We could call it > "xmllint-xpath0" or similar and make it clear that it's just libxml2 > with a patched xmllint in the description. > > Thoughts? Yes, that would be nice. How about calling it libxml2-xpath0 instead? That would maintain libxml2 in the name, letting users know it's just a version of the original package and should show up when searching for libxml2. If calling it xmllint-xpath0, I feel that the package should remove other outputs than just the xmllint binary file, which is perhaps a good idea though? Either option is fine for me. Best regards, David