From patchwork Mon Nov 6 15:46:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Svante Signell X-Patchwork-Id: 834798 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-466038-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="pTzSfbAk"; 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 3yVxkm5Z4Fz9s7m for ; Tue, 7 Nov 2017 02:46:56 +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=npf6LsAR5SYtyXzmYXHOAu3NiaLRm WurK9JNWXPl2otx/1S0mHWVIm/cxHp6TS/MRrrUd3/9RrvPGIXaBy698gG+MR/7x 83B29wHOnHGXJ5JMmJrMTodM46+nMaERoEmeYd+0bI5YGz5jEyIMxlmbenr7YJh3 MEsBnsatDVynCM= 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=j9zS4lHq42/v4KFaq3Sv4xPxG80=; b=pTz SfbAk7txQ9UzF9Dy2vuGHtzIh1DmcZYk2rtp7SfbmloSPaSCAZsVYnnqzBMly8sD 6D6S72MLmIZjAZaE5pKwY4SPPYjoTxDJ3C2FwPZHvN76iiZ1OMeay6GOpGQtlPva 1pch5OufKf35EZVH8nEOPn3lqIvJsm7f3ypvKkjM= Received: (qmail 70648 invoked by alias); 6 Nov 2017 15:46:43 -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 67941 invoked by uid 89); 6 Nov 2017 15:46:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-9.7 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, GIT_PATCH_2, GIT_PATCH_3, KAM_ASCII_DIVIDERS, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=ham version=3.3.2 spammy=process!, privilege, conflicting, structures X-HELO: mail-lf0-f65.google.com Received: from mail-lf0-f65.google.com (HELO mail-lf0-f65.google.com) (209.85.215.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 06 Nov 2017 15:46:33 +0000 Received: by mail-lf0-f65.google.com with SMTP id n69so11014272lfn.2 for ; Mon, 06 Nov 2017 07:46:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:reply-to:to:cc:date :organization:mime-version; bh=tfhuQ0ysmBtdt21YChd9T4nrdzGjKbg5ZOkxPEJo/XU=; b=E2rOexxp/3qLMepPessJUvu+Q1p4YBdnimR3/zxRMhn0Bg8n/ORYL/sIEclxeNqAMv cDvVSCLZxYzm+Zp/8tD5PTb1dfn67xtRn1hqubY9xQAfOjlx6zQuRwbNbbe/MOEmBJDQ u2gGTIdUgmbX8rdE3DKi1x1OxJLp6U8PVptqX4Nng51jVdAnwryRGJRQ/0FK/uwYT7hv bdVZK/duXPptCQibb4vfMcmJGuxl+RFzF3unvpAmGpqRFd++8Wj88+w7X8MrJLzEnRQV AnmOxlqtN7E6vfFLzoveMR7BLtRQ8NBmAgnbivnEKkd4vMoXWjmMxYwcz6vgbWTeVY6l zHjQ== X-Gm-Message-State: AMCzsaW7Vi95fMRYat50zkUw0gjxyZMYbSLWNdx2SKW2j+UQyBSmVeMP BOUSoSQt8EXwAvHuxRmY9x0= X-Google-Smtp-Source: ABhQp+TjmM0K37HNgQg4UQCPj/grvNEHqKmtmbQoEgnu/s1CA4BfniLR7f7X50QEtPfdScbMe5t1uA== X-Received: by 10.46.67.201 with SMTP id z70mr7616054lje.124.1509983191262; Mon, 06 Nov 2017 07:46:31 -0800 (PST) Received: from G3620.lan ([178.78.231.178]) by smtp.gmail.com with ESMTPSA id u69sm2464311lfk.68.2017.11.06.07.46.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 06 Nov 2017 07:46:30 -0800 (PST) Message-ID: <1509983203.28464.33.camel@gmail.com> Subject: Hurd port for gcc-7 go PATCH 11-15(15) From: Svante Signell Reply-To: svante.signell@gmail.com To: bug-hurd Cc: gcc-patches , Debian GCC Maintainers Date: Mon, 06 Nov 2017 16:46:43 +0100 Mime-Version: 1.0 * add-gnu-to-libgo-headers.diff: Add gnu to libgo headers for build. * add-gnu-to-libgo-test-headers.diff: Add gnu to libgo headers for tests. * src_libgo_go_go_build_syslist.go.diff: Add gnu to the goosList. * src_libgo_go_syscall_syscall_gnu_test.go.diff: gnu-specific file for tests involving struct flock. * src_libgo_testsuite_gotest.diff: gnu-specific gotest output. Index: gcc-7-7.2.0-12.1/src/libgo/testsuite/gotest =================================================================== --- gcc-7-7.2.0-12.1.orig/src/libgo/testsuite/gotest +++ gcc-7-7.2.0-12.1/src/libgo/testsuite/gotest @@ -624,7 +624,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" = "gnu"; 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