X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mail-yw1-f66.google.com (mail-yw1-f66.google.com [209.85.161.66]) by lists.alpinelinux.org (Postfix) with ESMTP id E4299F83213 for ; Mon, 25 Mar 2019 03:00:37 +0000 (UTC) Received: by mail-yw1-f66.google.com with SMTP id l5so5828545ywa.0 for ; Sun, 24 Mar 2019 20:00:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mforney-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=7BDXcxpA7I5n74yC324vTiMDwtY8YWK35IeY/NOkJI8=; b=j2AbZvItXueXsEvQ5wamP07bQhDzj7HagTAIqBjsoK6Z7IdmEBPK4qRcZfGf99vDhN yAAu7wQwnvLyqW8RiIjj5wkCoXijVsG9UEgO6QOhi8e3ST3e7n8Zu1xA5+P4Qvkp5cYv g7fC4RoGnKnxtCcRgGHoT2435kutkySGXMlv+uB7B1xbS1yv3KanCn03rVgAwp5r59mW JXCZ1qffIAGccMvHdf+iaZv+9vK4vwL6cRErds8/mpwP8Mx6vc5Wd5Swus6Jxu/UQDbR Grfp1VyfEDIaHtWRNKsftW2jG+cIZ/zf5Jd/MWpN/MYiyZWN0PuU7lWdeYKH/RDY9+wb p8/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=7BDXcxpA7I5n74yC324vTiMDwtY8YWK35IeY/NOkJI8=; b=t5QWb7r00B9m51fuOupig6tndMb3LdZR0PPKSt5G8TxET78wwAh3KtMzrVLT1Xu9g6 w3u6mAPw4dzXmIdi16KzKSfsg1znilteY48jxkspGw6VxBEvhSOL4kUSpaBz13Z5HWHS iVwKVYMUNmanMtgZdp7JQ/AI4Dx+s/aKN2UTCY6NVoL0mAKxsnMEH2Ew5FxtaqIuhQ61 adej1KXN13HB0FFilsFHW+qDta9RAITBtMAAMYR4vhRmvb80/KG9E39DVNM/WjsIq5wF Rs+McFjii6TweV2c6ZAF5+7wS4vLNJEBDbgmcwocwEG0xtlGOyCiNyc4X46DhGnEpZNO 0nZw== X-Gm-Message-State: APjAAAVqai7l1+XG7CarYDbNVD1s4A2h5MduVt5mRTXq2hP9P/kprvgu 0UjOsh2cHZvzRr1gLRzN0G8ZKQ6pvhO+XYxzHYnO7wlo0nA= X-Google-Smtp-Source: APXvYqxP/tjaW7VQB//IzfZK632N47BwaCe+HWVqsHfnNBNTgo67UhbA8+TBW50xVnUZEMjVy2tYuZyaXZ32fB6wI9k= X-Received: by 2002:a25:5755:: with SMTP id l82mr18808604ybb.25.1553482837450; Sun, 24 Mar 2019 20:00:37 -0700 (PDT) X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Received: by 2002:a81:1ac7:0:0:0:0:0 with HTTP; Sun, 24 Mar 2019 20:00:36 -0700 (PDT) X-Originating-IP: [2601:647:5180:35d7::5183] In-Reply-To: <20190325015701.GF1173@homura.localdomain> References: <20190318070509.21398-1-mforney@mforney.org> <20190325015701.GF1173@homura.localdomain> From: Michael Forney Date: Sun, 24 Mar 2019 20:00:36 -0700 Message-ID: Subject: [alpine-aports] Re: [PATCH 1/2] testing/samurai: remove check() To: Drew DeVault Cc: alpine-aports@lists.alpinelinux.org Content-Type: text/plain; charset="UTF-8" On 2019-03-24, Drew DeVault wrote: > Sorry I missed this - can you Cc me on future patches? Sure. >> 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. > > Hm, I understand the problem, but having samu build itself seems like a > pretty good test. I'd rather fix the CFLAGS/LDFLAGS than nix the check() > entirely. Testing a full gcc bootstrap involves a similar process. > > Thoughts? I think it's fine to build itself as a test, but I think that the binary that gets installed should be the one produced in build(). I don't know much about the Alpine build system, but I assume check() does not get run for cross builds, and I think it would be bad to build the binary two different ways depending on whether we were able to run check(). So, maybe you could just rename the binary at the end of build(), and install that version in package()? Or, extract the sources again somewhere else and run `./samu -C $checkdir`. --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---