From unknown Wed Jun 18 23:16:11 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#75747 <75747@debbugs.gnu.org> To: bug#75747 <75747@debbugs.gnu.org> Subject: Status: Issue with gnulib while packaging licenseutils, GuixSD Reply-To: bug#75747 <75747@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:16:11 +0000 retitle 75747 Issue with gnulib while packaging licenseutils, GuixSD reassign 75747 guix submitter 75747 Aria severity 75747 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 22 02:48:07 2025 Received: (at submit) by debbugs.gnu.org; 22 Jan 2025 07:48:07 +0000 Received: from localhost ([127.0.0.1]:59510 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1taVT3-0008KU-1s for submit@debbugs.gnu.org; Wed, 22 Jan 2025 02:48:07 -0500 Received: from lists.gnu.org ([2001:470:142::17]:57518) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1taQYR-0008Rf-At for submit@debbugs.gnu.org; Tue, 21 Jan 2025 21:33:25 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1taQYK-00033f-II for bug-guix@gnu.org; Tue, 21 Jan 2025 21:33:12 -0500 Received: from mx1.riseup.net ([198.252.153.129]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1taQYG-0008LD-Mr for bug-guix@gnu.org; Tue, 21 Jan 2025 21:33:11 -0500 Received: from fews01-sea.riseup.net (fews01-sea-pn.riseup.net [10.0.1.109]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx1.riseup.net (Postfix) with ESMTPS id 4Yd7Qx4SRMzDqdZ for ; Wed, 22 Jan 2025 02:32:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1737513180; bh=Yl8l1uhSykRj8qeJSVEbyGvGgtESd9BYq45qn/2SQ1s=; h=Date:From:To:Subject:From; b=PE+7cqi9Gnk/psJpFwv+yobLzzn66sJLV2tFQkfz5fqQRCN84d0BMHmPLrGY2sv+A EmTi9DY5TC8AIxT5PRq+DeewdleCOGThh+yLvtIG1QHjgKQsjyK5rcEdhl9asKOiXR 8hOYm2ypwyIAXJHVjPbsBTpBiqKr6p5NLJaxth0g= X-Riseup-User-ID: 3C1DF44BCB19F8018AC5A83E11C238ED8997FBE6CA79BD7BC712E3B10A96AA0A Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews01-sea.riseup.net (Postfix) with ESMTPSA id 4Yd7Qx31kYzJq7p for ; Wed, 22 Jan 2025 02:32:57 +0000 (UTC) MIME-Version: 1.0 Date: Wed, 22 Jan 2025 02:32:57 +0000 From: Aria To: bug-guix@gnu.org Subject: Issue with gnulib while packaging licenseutils, GuixSD Message-ID: X-Priority: 2 (High) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=198.252.153.129; envelope-from=ariabk@riseup.net; helo=mx1.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 22 Jan 2025 02:48:00 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) I'm currently having issues with gnulib trying to package licenseutils on GuixSD: fseterr.c: In function ‘fseterr’: fseterr.c:77:3: error: #error "Please port gnulib fseterr.c to your platform! Look at the definitions of ferror and clearerr on your system, then report this to bug-gnulib." 77 | #error "Please port gnulib fseterr.c to your platform! Look at the definitions of ferror and clearerr on your system, then report this to bug-gnulib." | ^~~~~ I haven't found many other sources on this issue, and the ones I have are on specific projects and don't apply currently. Looking at fseterr itself I found the following: #if defined _IO_EOF_SEEN || defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */ ... #else #error "Please port gnulib fseterr.c to your platform! Look at the definitions of ferror and clearerr on your system, then report this to bug-gnulib." #endif I am currently using glibc, and am confused why __GNU_LIBRARY__ would not be equal to 1. To add to my confusion the following C program: #include int main(void) { printf("%d\n", _IO_EOF_SEEN); printf("%d\n", __GNU_LIBRARY__); return 0; } outputs this when compiled: 16 6 meaning that _IO_EOF_SEEN *is* in fact defined (I later checked if it was a macro or not by trying to redefine it, which gave me a compiler error. I am using GCC.) My package file is as follows: (define-module (packages licenseutils) #:use-module (guix packages) #:use-module (gnu packages image) #:use-module (gnu packages curl) #:use-module (gnu packages bash) #:use-module (gnu packages base) #:use-module (gnu packages autotools) #:use-module (gnu packages gettext) #:use-module (gnu packages texinfo) #:use-module (gnu packages man) #:use-module (gnu packages m4) #:use-module (gnu packages pkg-config) #:use-module (gnu packages glib) #:use-module (gnu packages pretty-print) #:use-module (gnu packages build-tools) #:use-module (guix download) #:use-module (guix build-system gnu) #:use-module (guix licenses)) (define-public licenseutils (package (name "licenseutils") (version "0.0.9") (source (origin (method url-fetch) (uri (string-append "http://download.savannah.nongnu.org/releases/licenseutils/licenseutils-" version ".tar.gz")) (sha256 (base32 "1k0jp7g42lfbz5qzcdd3xcj97drrimjsr8m9166cwpya0zi5bi6f")))) (build-system gnu-build-system) (arguments '(#:configure-flags '("--enable-silent-rules"))) (inputs (list libpng curl bash coreutils autoconf automake libtool gettext-minimal texinfo help2man m4 pkg-config glib source-highlight gnulib)) (synopsis '()) (description '()) (home-page "https://sv.gnu.org/p/licenseutils") (license gpl3+)))