unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Jan Synáček" <jan.synacek@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: Test failure when building libarchive-3.1.2
Date: Sat, 21 Nov 2015 08:58:51 +0100	[thread overview]
Message-ID: <CACA+5f3BScF+S+BS5gkc1x0D1PkkT9ZPyhK3rgke60PCGjagCw@mail.gmail.com> (raw)
In-Reply-To: <87bnaoe19d.fsf@gnu.org>

On Fri, Nov 20, 2015 at 11:47 PM, Ludovic Courtès <ludo@gnu.org> wrote:
> Jan Synáček <jan.synacek@gmail.com> skribis:
>
>> On Fri, Nov 20, 2015 at 2:51 PM, Ludovic Courtès <ludo@gnu.org> wrote:
>>> Jan Synáček <jan.synacek@gmail.com> skribis:
>>>
>>>> On Sat, Nov 14, 2015 at 12:40 PM, Ludovic Courtès <ludo@gnu.org> wrote:
>
> [...]
>
>>>>> It would be nice to see if this systematically fails.  If it is
>>>>> non-deterministic, we should build it with --keep-failed until it fails
>>>>> (removing successful builds with ‘guix gc -d’), collect useful info from
>>>>> the build tree, and debug.
>
> [...]
>
>>> I noticed that libarchive uses ‘readdir’ calls as-is, without sorting
>>> directory entries afterwards.  Thus, the order of directory entries is
>>> effectively non-deterministic and may change depending on the phase of
>>> the moon.
>>>
>>> This has been reported at:
>>>
>>>   https://github.com/libarchive/libarchive/issues/602
>>>
>>> Could you add the patch that’s given at that URL to the ‘patches’ field
>>> or libarchive’s ‘origin’ form and see if the problem shows up again,
>>> preferably building several times in a row?
>>
>> I built it once and it passed (note that it failed *everytime* I
>> wanted to build it).
>
> So this patch appears to solve the issue?
>
>> Maybe a dumb question, but how do I force a rebuild of an already
>> built package?:)
>
> You can’t rebuild packages because build processes are assumed to be
> deterministic.  However, you can delete a build result with ‘gc -d’, as
> mentioned above, and rebuild it afterwards.

So I've built the package several times and it worked every time. I don't even
think the build was failing non-deterministically, because, as the
commit message
of the patch explains, the unpatched bsdtar was trying to put things
like SELinux
contexts into the archive, which resulted in an archive with bigger size than
anticipated. And since I'm running guix on Fedora, I probably hit the
SELinux problem.

Thank you for helping out!

Cheers,
-- 
Jan Synáček

  reply	other threads:[~2015-11-21  7:58 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-13 11:33 Test failure when building libarchive-3.1.2 Jan Synáček
2015-11-14 11:40 ` Ludovic Courtès
2015-11-14 12:47   ` Jan Synáček
2015-11-20 13:51     ` Ludovic Courtès
2015-11-20 14:10       ` Jan Synáček
2015-11-20 22:47         ` Ludovic Courtès
2015-11-21  7:58           ` Jan Synáček [this message]
2015-11-21 10:17             ` Ludovic Courtès
2015-11-20 13:44   ` Jan Synáček
2015-11-20 13:48     ` Jan Synáček
2015-11-20 22:45       ` Ludovic Courtès
2015-11-21 15:38     ` guix refresh -l Ludovic Courtès
2015-11-21 16:06       ` Mathieu Lirzin
2015-11-21 20:31       ` Jan Synáček
2015-12-09 22:55     ` Test failure when building libarchive-3.1.2 Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CACA+5f3BScF+S+BS5gkc1x0D1PkkT9ZPyhK3rgke60PCGjagCw@mail.gmail.com \
    --to=jan.synacek@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).