Skip to main content
Topic: Gitea sources question (Read 335 times) previous topic - next topic
0 Members and 4 Guests are viewing this topic.

Gitea sources question

Hello,

If I search for, say, mkinitcpio on Gitea I see:

1) mirrors / mkinitcpio (which has a lot more files in it)
and
2) packages / mkinitcpio (which has fewer files)

All have a PKGBUILD but they are also different.

What does it mean and what should I use in such cases?

I guess I know what's wrong. I was searching from here: https://gitea.artixlinux.org/explore/repos
Anyway, I'm still curious what is the other source of this package (mirrors / mkinitcpio).

UPDATE: I cannot recompile the package for myself. It fails on its tests/checks. Scroll to the third comment here, please.

Re: Gitea sources question

Reply #1
When I search mkinitcpio on gitea.artixlinux.org it shows me only packages. I think that there is PKGBUILD sources for actual package.

Re: Gitea sources question

Reply #2
Btw, I can't compile the package myself. It simply fails on tests/checks like:

find_module_from_symbol
add_all_modules_from_symbol
add_checked_modules_from_symbol


Also UKI fails for some reason. In the end I have 52 tests, 7 failures and:

==> ERROR: A failure occurred in check()

What's the problem?



Re: Gitea sources question

Reply #5
Did you try to build in clean chroot?

I remember stumbling at the very first command arch-nspawn... What's the Artix alternative?

Anyway, thanks to God, I fixed my problem without recompiling. There's an issue with mkinitcpio actually (the patch is not yet in the upstream) and I could edit the /usr/lib/initcpio/install/kms file by hand. That was enough.

Re: Gitea sources question

Reply #6
I remember stumbling at the very first command arch-nspawn... What's the Artix alternative?

Just use buildpkg script from artools-pkg. Run it in the PKGBUILD directory. It automatically creates chroot environment and builds package in it.


Re: Gitea sources question

Reply #8
Just use buildpkg script from artools-pkg. Run it in the PKGBUILD directory. It automatically creates chroot environment and builds package in it.

Compiled without issues. Strange, what could be wrong with my working system then? (I installed it from an XFCE runit ISO like a year or so ago).

One more question: what are the alternatives of makepkg -esr / osr in buildpkg? I mean, if I want to get the sources and extract them only without rebuilding. Then do some changes to the code and rebuild afterwards. How is it possible?

 

Re: Gitea sources question

Reply #9
One more question: what are the alternatives of makepkg -esr / osr in buildpkg?
I'm not sure there's such parameters, never used it like that. You can check code upstream or locally though, for artools are bash scripts.