From unknown Sun Jun 22 07:29:37 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#19609 <19609@debbugs.gnu.org> To: bug#19609 <19609@debbugs.gnu.org> Subject: Status: coreutils tests on illumos Reply-To: bug#19609 <19609@debbugs.gnu.org> Date: Sun, 22 Jun 2025 14:29:37 +0000 retitle 19609 coreutils tests on illumos reassign 19609 coreutils submitter 19609 Alexander Pyhalov severity 19609 normal tag 19609 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 15 13:20:16 2015 Received: (at submit) by debbugs.gnu.org; 15 Jan 2015 18:20:16 +0000 Received: from localhost ([127.0.0.1]:57988 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YBp1j-00087O-RA for submit@debbugs.gnu.org; Thu, 15 Jan 2015 13:20:16 -0500 Received: from eggs.gnu.org ([208.118.235.92]:45464) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YBoyZ-00081u-0I for submit@debbugs.gnu.org; Thu, 15 Jan 2015 13:16:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YBoyS-0002is-O0 for submit@debbugs.gnu.org; Thu, 15 Jan 2015 13:16:53 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:45447) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBoyS-0002io-LY for submit@debbugs.gnu.org; Thu, 15 Jan 2015 13:16:52 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47168) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBoyR-00066b-DP for bug-coreutils@gnu.org; Thu, 15 Jan 2015 13:16:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YBoyO-0002hg-4i for bug-coreutils@gnu.org; Thu, 15 Jan 2015 13:16:51 -0500 Received: from mail.r61.net ([195.208.245.238]:40449) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBoyN-0002gu-UF for bug-coreutils@gnu.org; Thu, 15 Jan 2015 13:16:48 -0500 Received: from pyhalov.cc.rsu.ru (pyhalov.cc.rsu.ru [195.208.255.102]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: alp@sfedu.ru) by mail.r61.net (MTA) with ESMTPSA id EEC4B620034 for ; Thu, 15 Jan 2015 21:05:29 +0300 (MSK) Message-ID: <54B80169.5070006@rsu.ru> Date: Thu, 15 Jan 2015 21:05:29 +0300 From: Alexander Pyhalov User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130112 Thunderbird/17.0.2 MIME-Version: 1.0 To: bug-coreutils@gnu.org Subject: coreutils tests on illumos Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 15 Jan 2015 13:20:14 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -4.0 (----) Hello. I was looking at coreutils test suite on illumos. There are currently about 5 failing tests. First are 2 df tests. They assume that struct mntent *getmntent (FILE *fp) is used by df. But it's not true on SystemV. Instead, int getmntent (FILE *fp, struct mnttab *mp) is used. Patches to correct tests on illumos is here: https://github.com/OpenIndiana/oi-userland/blob/oi/hipster/components/coreutils/patches/tests_df_no-mtab-status.sh.patch https://github.com/OpenIndiana/oi-userland/blob/oi/hipster/components/coreutils/patches/tests_df_skip-duplicates.sh.patch 3 remaining failing tests are from glib-tests directory. First one is test-locale.c. It assumes that LC_GLOBAL_LOCALE is a constant. On illumos it's a function, so compilation fails. Fix is here: https://github.com/OpenIndiana/oi-userland/blob/oi/hipster/components/coreutils/patches/gnulib-tests_test-locale.c.patch Second is test-getlogin. It seems to be a bit strange: it compares $USER and getlogin(). Under "su" they don't match, so it can occasionally fail. Third (test-getlogin) is a bit tricky. It uses gl_locale_name_thread_unsafe, which simply doesn't know about illumos/Solaris and returns NULL, so the test fails. I don't have a fix for this one. -- Best regards, Alexander Pyhalov, system administrator of Southern Federal University IT department From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 19 08:52:45 2015 Received: (at 19609) by debbugs.gnu.org; 19 Jan 2015 13:52:45 +0000 Received: from localhost ([127.0.0.1]:32847 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YDCl2-0005zu-Vd for submit@debbugs.gnu.org; Mon, 19 Jan 2015 08:52:45 -0500 Received: from mail2.vodafone.ie ([213.233.128.44]:55462) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YDCl0-0005zX-4R; Mon, 19 Jan 2015 08:52:42 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aj8FAMkKvVRtTI66/2dsb2JhbABbgwZSgw3EFIUjSgKBIUMBAQEBAX2EDAEBAQMBMgFLCwsNAQoJJQ8CRgYBDAYCAQGIIAwBCMBKjhIBAQgBAQEBAR2QAIQpBZIgjBWLZSKDbj4xAQGCQQEBAQ Received: from unknown (HELO localhost.localdomain) ([109.76.142.186]) by mail2.vodafone.ie with ESMTP; 19 Jan 2015 13:52:34 +0000 Message-ID: <54BD0C22.90705@draigBrady.com> Date: Mon, 19 Jan 2015 13:52:34 +0000 From: =?windows-1252?Q?P=E1draig_Brady?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Alexander Pyhalov , 19609@debbugs.gnu.org Subject: Re: bug#19609: coreutils tests on illumos References: <54B80169.5070006@rsu.ru> In-Reply-To: <54B80169.5070006@rsu.ru> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 19609 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: 0.0 (/) tag 19609 notabug close 19609 stop On 15/01/15 18:05, Alexander Pyhalov wrote: > Hello. > I was looking at coreutils test suite on illumos. > There are currently about 5 failing tests. > > First are 2 df tests. They assume that struct mntent *getmntent (FILE > *fp) is used by df. But it's not true on SystemV. Instead, int getmntent > (FILE *fp, struct mnttab *mp) is used. Patches to correct tests on > illumos is here: > https://github.com/OpenIndiana/oi-userland/blob/oi/hipster/components/coreutils/patches/tests_df_no-mtab-status.sh.patch > https://github.com/OpenIndiana/oi-userland/blob/oi/hipster/components/coreutils/patches/tests_df_skip-duplicates.sh.patch The above are already addressed in v8.23 with: http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=39e2a4cf > 3 remaining failing tests are from glib-tests directory. > > First one is test-locale.c. It assumes that LC_GLOBAL_LOCALE is a > constant. On illumos it's a function, so compilation fails. Fix is here: > https://github.com/OpenIndiana/oi-userland/blob/oi/hipster/components/coreutils/patches/gnulib-tests_test-locale.c.patch > > Second is test-getlogin. It seems to be a bit strange: it compares $USER > and getlogin(). Under "su" they don't match, so it can occasionally fail. There have been a few changes to that test in gnulib since coreutils 8.21 was released, so I'm hopeful that's addressed too. > Third (test-getlogin) is a bit tricky. I presume you mean test-localename.c > It uses gl_locale_name_thread_unsafe, which simply doesn't know about > illumos/Solaris and returns NULL, so the test fails. I don't have a fix > for this one. I'll follow up on bug-gnulib@gnu.org thanks, Pádraig From unknown Sun Jun 22 07:29:37 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 17 Feb 2015 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator