Important Change Required for Haiku Nightly and R1/Beta2 Users | Haiku Project

Nightly and Beta2 users will need to “re-add” their release repositories to update to newer versions of Haiku and beyond. This change is part of a long-term improvement of our Haiku/HaikuPorts repository identifiers.


This is a companion discussion topic for the original entry at https://www.haiku-os.org/news/2021-06-22_important_change_required_for_haiku_nightly_and_r1beta2_users/
4 Likes

Cant see categories in Haikudepot after this change, I.E. changing to “Graphics” shows an empty list, showing all seems to list everything ok… Is that normal/expected behaviour? Running nightly, update after change went well.

Hi there, sorry to hear you’re experiencing that issue - could you file a bug on Trac (https://dev.haiku-os.org) so the developers know this is happening? It is strongly recommended you provide screenshots as well. Thanks!

Will this be part of the beta2 to beta3 upgrade process?

Try again. I made some additional changes to HaikuDepot this morning at apl’s direction.

Yes. I’ll make sure the upgrade steps are documented in the release notes.

2 Likes

(I’m relatively new to Haiku - used BeOS a bit back in the 90s.)

When I tried to follow the instructions from here, I got the following:

~> pkgman drop-repo HaikuPorts
Removing repository HaikuPorts ...
Really remove the repository 'HaikuPorts'? [yes/no] (no) : yes
Error: Unable to unarchive repository info!
~> pkgman add-repo https://eu.hpkg.haiku-os.org/haikuports/master/$(getarch)/current
Fetching repository info from https://eu.hpkg.haiku-os.org/haikuports/master/x86_64/current ...
Activating repository config from https://eu.hpkg.haiku-os.org/haikuports/master/x86_64/current ...
Error: Unable to unarchive repository info!
Fetching repository checksum from https://eu.hpkg.haiku-os.org/haikuports/master/x86_64/current ...
Validating checksum for HaikuPorts ...
~> pkgman list-repo
        Haiku
                base-url:  https://eu.hpkg.haiku-os.org/haiku/r1beta2/x86_64/current
                identifier: https://hpkg.haiku-os.org/haiku/r1beta2/x86_64/current
                priority:  1
        HaikuPorts
                base-url:  https://eu.hpkg.haiku-os.org/haikuports/master/x86_64/current
                identifier: tag:haikuports.org,2013:repositories/haikuports/master/x86_64
                priority:  1

And when I try to run SoftwareUpdater I get an error “Failed to get cache for repo HaikuPorts”.

I had installed it from the Haiku R1/Beta2 x86_64 image using VMWare Fusion.

Am I missing a step?

nope. There’s an issue on our side with HaikuPorts.

Haikuports buildmaster is running a really old version of the package_repo tool. (pre this change https://git.haiku-os.org/haiku/commit/src/kits/package?id=991d1a2097a6ada74b87dd53b83f6fc14093c76b)

This older version of the tool is generating invalid package repository files.

I’m building a new copy now and should have Haikuports back online soon.

4 Likes

Excellent - thank you @kallisti5 !

1 Like

Updated a second time, categories working as expected again, thanks

1 Like

ok. After much struggle, things should be working again :slight_smile:

You may need to drop-repo and add-repo again on HaikuPorts to make it function.

2 Likes

Just did this on my 32-bit Beta2. Did I do something wrong?

~> pkgman add-repo https://eu.hpkg.haiku-os.org/haikuports/master/$(getarch)/current
Fetching repository info from https://eu.hpkg.haiku-os.org/haikuports/master/x86_gcc2/current ...
Activating repository config from https://eu.hpkg.haiku-os.org/haikuports/master/x86_gcc2/current ...
Error: Failed to open repository file "/boot/system/cache/package-repositories/HaikuPorts": No such file or directory
Fetching repository checksum from https://eu.hpkg.haiku-os.org/haikuports/master/x86_gcc2/current ...
Validating checksum for HaikuPorts ...
Fetching repository-cache from https://eu.hpkg.haiku-os.org/haikuports/master/x86_gcc2/current ...
Validating checksum for HaikuPorts ...
Activating repository cache for HaikuPorts ...
~> pkgman update
100% repochecksum-1 [65 bytes]
Validating checksum for Haiku...done.
100% repocache-2 [4.57 KiB]
Validating checksum for Haiku...done.
Error: Unable to unarchive repository info!
100% repochecksum-1 [64 bytes]
Validating checksum for HaikuPorts...done.
Error: Unable to unarchive repository info!
Failed to get cache for repository "HaikuPorts". Skipping.: Bad data
Nothing to do.
~> pkgman list-repo
        Haiku
                base-url:  https://eu.hpkg.haiku-os.org/haiku/r1beta2/x86_gcc2/current
                identifier: https://hpkg.haiku-os.org/haiku/r1beta2/x86_gcc2/current
                priority:  1
        HaikuPorts
                base-url:  https://eu.hpkg.haiku-os.org/haikuports/master/x86_gcc2/current
                identifier: tag:haikuports.org,2013:repositories/haikuports/master/x86_gcc2
                priority:  1

try doing a pkgman drop-repo HaikuPorts and re-adding it again.

It said:
~> pkgman drop-repo HaikuPorts
Removing repository HaikuPorts …
Really remove the repository ‘HaikuPorts’? [yes/no] (no) : y
Error: Unable to unarchive repository info!
~>

That’s fine. (expected) As of this moment, once you run the add-repo command the issue should be resolved. (I missed a step on the x86_gcc2 repo)

2 Likes

Awesome. It did work, thanks! Now I just see the thing in HaikuDepot where individual categories doesn’t show anything (but All does).

1 Like

Odd… maybe try to refresh in HaikuDepot?

One reason we have been avoiding this change is we knew it would be a bit painful. The thought was lets knock it out before R1/beta3 comes out (then fresh installations of R1/beta3 won’t need to do any of these steps)

R1/beta2 users will need to “re-add” repos anyway to upgrade to r1/beta3, so it will be a bit less noticeable.

Sorry for all the difficulties. haikuports buildmaster is a bit of a challenge to manage.

1 Like

Nope, that didn’t help.

No problem. It’s all a process and better to get it over with now and have a better understanding in the future…

I followed the instructions again and updating works - thanks @kallisti5!

As for the categories in HaikuDepot, they are blank for me as well (even after refresh). If you need any additional information or need me to try anything, please let me know!

1 Like

Works thanks

1 Like

Hi there @asm and @MrEntropy; regards those missing categories…

This seems strange as the categories are working for me just fine after the change in ID. If you are happy to share your information, can you send a trace log of HaikuDepot starting up (see here to me at apl@lindesay.co.nz to look at.