public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Michael Tremer <michael.tremer@ipfire.org>
To: development@lists.ipfire.org
Subject: Re: The unshared changes give a problem with build after doing git pull on next
Date: Fri, 26 Jul 2024 15:18:56 +0100	[thread overview]
Message-ID: <242A597A-756A-4837-8A65-A5B8E4452BBE@ipfire.org> (raw)
In-Reply-To: <bcf96fa2-7265-4744-be27-feb9fd660ede@ipfire.org>

[-- Attachment #1: Type: text/plain, Size: 6541 bytes --]

Hello Matthias,

> On 26 Jul 2024, at 15:08, Matthias Fischer <matthias.fischer(a)ipfire.org> wrote:
> 
> Hi,
> 
> I'd like to jump in at this point...for me its not working as expected
> and I don't know why.
> 
> Being curious I tried to build 'next', but I always get the same error:
> 
> ***SNIP***
> root(a)Devel64-1: /git/ipfire-2.x # ./make.sh build
> Packaged toolchain compilation
> Building IPFire
> stage2
>    Jul 26 13:32:59: Building stage2 unshare: cannot change
> /git/ipfire-2.x/build_x86_64/proc filesystem propagation: Invalid argument

What is the host system that you are using?

> 
> ERROR: Downloading stage2
>                                       [ FAIL ]
>    Check /git/ipfire-2.x/log_x86_64/_build.ipfire.log for errors if
> applicable                                 [ FAIL ]
> ***SNAP***
> 
> This is a clean pull, nothing changed.
> 
> And - I noticed some oddities:
> 
> './make.sh downloadscr' runs without any errors, but doesn't verify
> BLAKE2 checksums as before?
> "***Verifying BLAKE2 checksum
> all files BLAKE2 checksum match     [ DONE ]" is missing.

This is now done in one step. It has always done the verification twice before which is just unnecessary.

> Changing the BLAKE2 checksum on (e.g.) 'squid 6.10' didn't produce an
> immidiate error, './make.sh downloadsrc' runs through and just ends with:

Unless you are thinking that this is no longer working?

> ***SNIP***
> ERROR: Failed to download sources        [ FAIL ]
>    Check /git/ipfire-2.x/log_x86_64/_build.preparation.log for errors
> if applicable                            [ FAIL ]
> ***SNAP***
> 
> And in this log I find:
> ***SNIP***
> Jul 26 13:43:34: Building squid make: Entering directory
> '/git/ipfire-2.x/lfs'
> -e Download: https://source.ipfire.org/source-2.x/squid-6.10.tar.xz
> 2024-07-26 15:43:35
> URL:https://source.ipfire.org/source-2.x/squid-6.10.tar.xz
> [2558208/2558208] -> "/tmp/squid-6.10.tar
> make: *** [squid:67: /git/ipfire-2.x/cache/squid-6.10.tar.xz] Error 1
> ***SNAP***
> 
> If I test this wrong checksum with Core186 (e.g.), 'make' stops in
> between and I get:
> ***SNIP***
> ERROR: BLAKE2 checksum error in squid, check file in cache or signature
>                                      [ FAIL ]
> Check /git/ipfire-2.x/log/_build.preparation.log for errors if
> applicable                                  [ FAIL ]
> ***SNAP***

I don’t quite understand what the problem is here? What do you expect to happen?

> And:
> './make.sh gettoolchain' doesn't give any feedback, cursor just jumps to
> the next line. No "Toolchain is already downloaded. Exiting..." as before.

It might be that I have removed the output when refactoring the function.

Is the toolchain downloaded okay though?

-Michael

> 
> Do I have an error somewhere?
> 
> Best
> Matthias
> 
> 
> On 26.07.2024 15:05, Michael Tremer wrote:
>> Hello,
>> 
>>> On 26 Jul 2024, at 13:39, Adolf Belka <adolf.belka(a)ipfire.org> wrote:
>>> 
>>> Hi Michael,
>>> 
>>> On 26/07/2024 10:35, Adolf Belka wrote:
>>>> Hi Michael,
>>>> 
>>>> On 26/07/2024 10:17, Michael Tremer wrote:
>>>>> Hello,
>>>>> 
>>>>> Hmm, this might be a slight transitioning problem…
>>>> 
>>>> Yes, of course.
>>>>> 
>>>>> If you are now in next and build the distribution, it will likely build in build_x86_64/ and logs will be stored in logs_x86_64/. If you run ./make.sh clean, those directories will be removed.
>>>> 
>>>> I had forgotten that the new build system created the build and log dirs with the architecture included in the name now.
>>>> 
>>>> My next still had all the build and logs from the last build run and I did not do a ./make.sh clean before I did the pit pull. So the new clean was trying to remove the build_x86_64 but I still had the build dire.
>>>>> 
>>>>> If you however change back to master, it will assume that your build is in build/ and your logs are in logs/. If you then run clean, it will try to remove those directories and since they don’t exist, ./make.sh clean will return really quickly.> Is this maybe what happens?
>>>> 
>>>> Yes. That makes sense.
>>>>> 
>>>>> You can fix this by either removing the directories by hand or changing to next, run ./make.sh clean, then change to master and run it again. That should give you a clean tree.
>>>> 
>>>> I will run the clean in master which will get rid of all the old named dirs and then move to next with a clean structure for doing the build with the new system.
>>>> 
>>> Everything worked fine for the build after I cleared out the old dirs.
>>> 
>>> Have noticed a couple of things. The new build process creates log_x86_64 and all log info is placed in there. However the log dir is still present and when I deleted it and started the build it was re-created but stayed empty the whole time. Not a big issue.
>> 
>> Oh, I did not notice this, but we should change that...
>> 
>>> The other thing I found was that the following were listed in the untracked changes section.
>>> 
>>> doc/ChangeLog
>>> doc/packages-list.txt
>> 
>> We used to generate these files, but I don’t think they have any value any more, so I removed them. This was also necessary because the build environment can no longer write to the doc/ directory.
>> 
>> You can just delete them, but if you build master again, they will be created again.
>> 
>>> I just did my build ignoring them but presumably they either need to be added somewhere to include them or they need to be added to the .gitignore
>>> 
>>> Apart from those two very minor observations, the new build process ran very nicely.
>> 
>> That is good to know!
>> 
>> Best,
>> -Michael
>> 
>>> Regards,
>>> 
>>> Adolf
>>> 
>>>> Thanks.
>>>> 
>>>> Adolf.
>>>>> 
>>>>> Best,
>>>>> -Michael
>>>>> 
>>>>>> On 26 Jul 2024, at 08:57, Adolf Belka <adolf.belka(a)ipfire.org> wrote:
>>>>>> 
>>>>>> Hi Michael,
>>>>>> 
>>>>>> I ran git pull origin next on my local repo and then went to try a package update build.
>>>>>> 
>>>>>> The gettoolchain and downloadsrc worked fine. However the ./make.sh clean just came straight back to the cursor without removing any of the directories in my repo.
>>>>>> 
>>>>>> I am now using my master repo version for doing the package update but something has gone wrong with the unshared migration because the clean command worked fine when it was in your own repo.
>>>>>> 
>>>>>> Regards,
>>>>>> 
>>>>>> Adolf.
>> 
>> 
> 


  reply	other threads:[~2024-07-26 14:18 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-26  7:57 Adolf Belka
2024-07-26  8:17 ` Michael Tremer
2024-07-26  8:35   ` Adolf Belka
2024-07-26 12:39     ` Adolf Belka
2024-07-26 13:05       ` Michael Tremer
2024-07-26 14:08         ` Matthias Fischer
2024-07-26 14:18           ` Michael Tremer [this message]
2024-07-26 15:06             ` Matthias Fischer
2024-07-26 15:08               ` Michael Tremer
2024-08-02 17:50               ` Michael Tremer
     [not found] <2e6a45cb-7c55-4725-81f2-d69f0c7b373f@ipfire.org>
2024-08-02 18:13 ` Michael Tremer
     [not found] <9259926f-7276-450e-9a82-44b3c455f67e@ipfire.org>
2024-08-03  8:54 ` Michael Tremer
2024-08-03  9:39   ` Michael Tremer
     [not found] <184670fa-843f-4d5d-b4c9-1885a995fad8@ipfire.org>
2024-08-06 15:40 ` Michael Tremer
2024-08-08 12:09   ` Adolf Belka
2024-08-08 18:25     ` Adolf Belka
2024-08-08 18:31       ` Michael Tremer
     [not found] <cea14eb2-46f3-424b-8e54-aa9df10c78e3@ipfire.org>
2024-08-16 15:35 ` Michael Tremer
2024-08-16 16:43   ` Matthias Fischer
2024-08-21 14:28     ` Michael Tremer
2024-08-24  8:33       ` Matthias Fischer
2024-08-27 10:01         ` Michael Tremer
2024-08-27 12:55           ` Matthias Fischer
2024-08-27 18:03             ` / /
2024-08-28 15:46               ` Michael Tremer
2024-08-28 16:02                 ` / /
2024-08-28 16:30                 ` Matthias Fischer
2024-08-28 17:52                   ` Adolf Belka
2024-08-28 18:28                     ` Matthias Fischer
2024-08-28 19:10                       ` Adolf Belka
2024-08-28 19:13                         ` Adolf Belka
2024-08-29  7:46                         ` Michael Tremer
2024-08-29  0:07                       ` sio /
2024-08-29  7:58                         ` Michael Tremer
2024-08-29 12:00                           ` sio /
2024-08-29 12:17                             ` Michael Tremer
2024-08-29  7:41                       ` Michael Tremer
2024-08-29  7:41                     ` Michael Tremer
2024-08-29  7:39                   ` Michael Tremer
2024-08-30  8:56                     ` Matthias Fischer

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

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

  git send-email \
    --in-reply-to=242A597A-756A-4837-8A65-A5B8E4452BBE@ipfire.org \
    --to=michael.tremer@ipfire.org \
    --cc=development@lists.ipfire.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox