X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) by lists.alpinelinux.org (Postfix) with ESMTP id D8EF0F84D80 for ; Mon, 18 Mar 2019 07:05:33 +0000 (UTC) Received: by mail-pf1-f194.google.com with SMTP id d25so10628403pfn.8 for ; Mon, 18 Mar 2019 00:05:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mforney-org.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=wbrz5TspWoiF6k7ieHomk/S4djcS5x3gd94xGGybkpQ=; b=EH7a5fQO59MvE2NKHIL0k2STizgZXvEcU+K+qNvpXsizvOJHoTDXY86vkT2FQt8Spd KuUC4qjtq8koanlAMF5KQAYlCfLnKSflpPfVamwBWqk9E+hN9ZXSYtT9KsAZQRNcHCdD SuAAcr7Rno7G96kPrDjXDcz+HSG9kzwtsZDw7Wyiq2AXuATXPWma8T374v62uk91u62y Zo5Rih5gWvjL1AwVmA2hRRretlAErr3XzkCdojnafCqnHPnRT3gU/v6dYyimJOcKxdXA NH0SSffaBOOKmX3J9BFqvunhOgpbSJXAFxfy8fHvm+UqAf4f84hWx58cKZb1eR9WoF5v hjZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=wbrz5TspWoiF6k7ieHomk/S4djcS5x3gd94xGGybkpQ=; b=n8W1UMNjM0pUw/wyhiEeAlhY+3lohA+j3swijTdLN/pi2uIRV9tyI09LezLaDR1o6P SXi9VUw5uy5fYTI2xHGKXBSRW4GrrOJW2qHGVWeKUr4Xqn6yjXzSrV+xKvknHDIzVFqb Ffwfbj17NjEVL3KpZDqDxAVtBig2667cR/JybJN9aJjSQ4EJOrD8aLq2rXu3a/Tcqn54 87jUEY6kGJY1HnAg6drXK1D3O0vzE7viuAxKyLPqNmyWoSRxzb7OMleAK8N5yIlqY/c0 SvFjbps7SBJ0qDLv6UgXnGZI/Hj37xHexEvjxxu8JUouKiALYAyz9p8hIRzVRQrik4GS f1wg== X-Gm-Message-State: APjAAAXCE/CATwsYITmMu8geUdSNXosNvKP9p2csATZgiZDzGMqAKlXW KJlrf4r06qAjLas5aE9SW7ojym9sFMpCAQ== X-Google-Smtp-Source: APXvYqyDu3NerEZFlY2m4eTlbENUjNR1zvF5IL3FZQLPoei/PXq1zPsVni6mvTmhaJF4FxYNrtGjLQ== X-Received: by 2002:a17:902:b684:: with SMTP id c4mr18491275pls.294.1552892732807; Mon, 18 Mar 2019 00:05:32 -0700 (PDT) Received: from localhost ([2601:647:5180:35d7::5183]) by smtp.gmail.com with ESMTPSA id u18sm19012587pfa.176.2019.03.18.00.05.31 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Mar 2019 00:05:32 -0700 (PDT) From: Michael Forney To: alpine-aports@lists.alpinelinux.org Subject: [alpine-aports] [PATCH 1/2] testing/samurai: remove check() Date: Mon, 18 Mar 2019 00:05:08 -0700 Message-Id: <20190318070509.21398-1-mforney@mforney.org> X-Mailer: git-send-email 2.19.1 X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit There is no provided test suite. The `build.ninja` is meant to be an alternative build mechanism and requires modification to set desired compile and link flags. So, running `./samu` in check() will rebuild itself before packaging, but without the CFLAGS and LDFLAGS set by abuild, resulting in an unoptimized binary. --- testing/samurai/APKBUILD | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/testing/samurai/APKBUILD b/testing/samurai/APKBUILD index fa51ea9a6d..befb1c1772 100644 --- a/testing/samurai/APKBUILD +++ b/testing/samurai/APKBUILD @@ -2,11 +2,12 @@ # Maintainer: Drew DeVault pkgname=samurai pkgver=0.6 -pkgrel=0 +pkgrel=1 pkgdesc="ninja-compatible build tool written in C" url="https://github.com/michaelforney/samurai" arch="all" license="Apache-2.0" +options="!check" # No test suite. subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/michaelforney/$pkgname/archive/$pkgver.tar.gz" builddir="$srcdir/$pkgname-$pkgver" @@ -16,12 +17,6 @@ build() { make } -check() { - cd "$builddir" - rm *.o - ./samu -} - package() { cd "$builddir" make install PREFIX="/usr" DESTDIR="$pkgdir" -- 2.19.1 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---