From patchwork Thu Jan 31 15:40:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Svante Signell X-Patchwork-Id: 1034328 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-495031-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="TLk43aXm"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Gx5F5IHE"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43r4F96Qb1z9sBQ for ; Fri, 1 Feb 2019 02:40:29 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:subject:from:reply-to:to:cc:date:content-type :mime-version; q=dns; s=default; b=Ty47S2TZXeTpRtTqSi7UoP1Ayses0 aVOr5oTJw8WVagYT/cOel/BqUbG0RN3oyLrFkqxPv1J+ykVRn7nVKc982r+dHBxE Yi7L6w4czbuvZ7muiF9tZrkcPj2urRG87cxzAXmocNfwkNckTEn4r0jUSiBk4p6f we2UhH7SduEFJI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:subject:from:reply-to:to:cc:date:content-type :mime-version; s=default; bh=bAyTzWzddpI0sKk/nZ78TPAfTeU=; b=TLk 43aXmJs5Qrh1gFwcvgs+zI/xx2AZlgSyY2hQ/SRfHGLO0xx2cowevYN3f9JV6Q+T IOVP4BcxPSixleOyg4Udoi31n/9N/vjJvRbDkxLXoKpDVywQg+V/SzYhFpAf8BuZ 7adKHrENcNSZYJ49urbp2vDG6glUj3MtSVDhAhHc= Received: (qmail 124027 invoked by alias); 31 Jan 2019 15:40:16 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 123210 invoked by uid 89); 31 Jan 2019 15:40:16 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-11.9 required=5.0 tests=BAYES_00, FREEMAIL_FROM, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS, TIME_LIMIT_EXCEEDED autolearn=unavailable version=3.3.2 spammy=instantly, HX-Google-DKIM-Signature:reply-to, luckily, sem X-HELO: mail-lf1-f65.google.com Received: from mail-lf1-f65.google.com (HELO mail-lf1-f65.google.com) (209.85.167.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 31 Jan 2019 15:40:05 +0000 Received: by mail-lf1-f65.google.com with SMTP id i26so2695062lfc.0 for ; Thu, 31 Jan 2019 07:40:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:reply-to:to:cc:date:organization:user-agent :mime-version; bh=sfU4U+SFIsqKSKPnUXVvlx5PAXedDT2BD3S8QScQvnw=; b=Gx5F5IHE2rblIlGlwmnnSLHPB0lc2vHz3BOCQlyvhqvwIvidBCurNducm++j1v0apF DeLWi4noyK3UaNAtTB6wfZJZLsPQZTV02Jp6k2Ny836tcUUpPcB9WwyNDwM3GMq/MU5C 7ZcRThSwLziaBZy0hK/sHF4NUxkL/MZ5WD6ALxG/cPxZyuMlWBl82p2SHqjVJq+kmNAn eZC26IEupDbhhdmoBMNf56G/kf3XfGtpKbKRNxOlTmw4Mjsvctis8RMWliGrGteLI5cV cur/QNJmSlkFtceeIx3lQnjX3VIneEKueTqInWbF+DG+UeuiO1YzznBrBVgNdEOZ7Q0u gjuQ== Received: from G3620.lan (178-78-231-178.customers.ownit.se. [178.78.231.178]) by smtp.gmail.com with ESMTPSA id z9sm872500lfj.79.2019.01.31.07.39.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 31 Jan 2019 07:39:59 -0800 (PST) Message-ID: Subject: [PATCH] Updated patches for the port of gccgo to GNU/Hurd From: Svante Signell Reply-To: svante.signell@gmail.com To: gcc-patches Cc: Ian Lance Taylor , Matthias Klose Date: Thu, 31 Jan 2019 16:40:50 +0100 User-Agent: Evolution 3.30.4-1 Mime-Version: 1.0 Hello, As advised by the Debian gcc maintainer Matthias Klose and golang developer Ian Lance Taylor I'm re-submitting the patches for the port of gccgo to GNU/Hurd again. Now GOOS value is changed from gnu to hurd as requested. The 12 patches are: src_libgo_build.diff src_libgo_runtime.diff src_libgo_go_crypto.diff src_libgo_go_internal.diff src_libgo_go_net.diff src_libgo_go_os.diff src_libgo_go_runtime.diff src_libgo_go_syscall.diff src_libgo_go_test.diff src_libgo_testsuite_gotest.diff add-hurd-to-libgo-headers.diff add-hurd-to-libgo-test-headers.diff Added is also the patch to apply these patches for a Debian build: debian_rules.patch.diff Preliminary ChangeLog entries are included in each patch. With them the latest the latest Debian gcc-snapshot (20190125-2) has been successfully built. Test results (varies slightly) for libgo and go: === libgo Summary === # of expected passes 160 # of unexpected failures 24 === go Summary === # of expected passes 518 # of untested testcases 834 Note that similar numbers are obtained also for Linux. After these patches have been applied upstream some further work is needed to go through the tests, and enable/disable some of them to work properly (and find the sigaltstack bugs in Hurd). I do also have a wish: Can you upstream, and Debian use autoreconf to create Makefile.in files from Makefile.am files now when the build system supports recent versions of autoconf and automake. It is very cumbersome to create patches for Maikefile.in files compared to Makefil.am ones. Thanks! libgo/ChangeLog 2018-10-20 Svante Signell * libgo/testsuite/gotest: Remove ps -o comm option for GNU/Hurd. Index: gcc-9-9-20190125-2.1/src/libgo/testsuite/gotest =================================================================== --- gcc-9-9-20190125-2.1.orig/src/libgo/testsuite/gotest +++ gcc-9-9-20190125-2.1/src/libgo/testsuite/gotest @@ -650,7 +650,11 @@ xno) wait $pid status=$? if ! test -f gotest-timeout; then - sleeppid=`ps -o pid,ppid,comm | grep " $alarmpid " | grep sleep | sed -e 's/ *\([0-9]*\) .*$/\1/'` + if test "$goos" = "hurd"; then + sleeppid=`ps -o pid,ppid | grep " $alarmpid " | grep sleep | sed -e 's/ *\([0-9]*\) .*$/\1/'` + else + sleeppid=`ps -o pid,ppid,comm | grep " $alarmpid " | grep sleep | sed -e 's/ *\([0-9]*\) .*$/\1/'` + fi kill $alarmpid wait $alarmpid if test "$sleeppid" != ""; then