You are not logged in.

#1 2016-08-30 14:53:14

marcs
Member
From: Italy
Registered: 2007-09-07
Posts: 63

yaourt --pkgbuild cannot find sync_packages on docker archlinux image

Hi

Maybe I'm posting in the wrong section, I don't know, anyway here is the link for my github with the archlinux docker image I use for testing package dependencies: https://github.com/marcopompili/docker- … ux-makepkg

So I made this Docker image for testing packages and I'm using yaourt --pkgbuild flag for building a package like this: yaourt --noconfirm --pkgbuild <package-local-folder>

The strange thing is that this command works on my linux host installation but fails inside the docker container, a function called sync_packages which is inside the /usr/lib/yaourt/abs.sh script is not found by the script /usr/lib/yaourt/pkgbuild.sh which is called by the command:
yaourt --noconfirm --pkgbuild <package-local-folder>

This happens for some lack of context in the execution of the bash script pkgbuild.sh ?

Thank you, tell me if you need more infos.

Offline

#2 2016-08-30 15:07:59

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,858
Website

Re: yaourt --pkgbuild cannot find sync_packages on docker archlinux image

Mod note: Not a pacman issue, moving to AUR Issues.

I can't help with your yaourt issue, but if you're not married to using yaourt and docker here, I would recommend using clean chroots and namcap to check package dependencies.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#3 2016-08-30 18:04:00

marcs
Member
From: Italy
Registered: 2007-09-07
Posts: 63

Re: yaourt --pkgbuild cannot find sync_packages on docker archlinux image

AUR section it is more convenient.

Thank you for your suggestion i didn't know about clean chroots, but the problem is that I cannot use AUR packages as dependencies, anyone knows a way to include AUR in the building process.

Thanks

Last edited by marcs (2016-08-30 18:04:27)

Offline

#4 2016-08-30 19:29:39

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,858
Website

Re: yaourt --pkgbuild cannot find sync_packages on docker archlinux image

You can add the packages to a custom repository in the root chroot, or you can specify specific packages to install as described on the wiki:

If you can't use [staging], you can build against custom packages using a command like this:

# extra-x86_64-build -- -I ~/packages/foobar/foobar-2-1-any.pkg.tar.xz

You can specify more than one package to be installed using multiple -I arguments.

Greysky's clean-chroot-manager can make having a custom repository easier if you prefer that method.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#5 2016-09-04 10:26:00

marcs
Member
From: Italy
Registered: 2007-09-07
Posts: 63

Re: yaourt --pkgbuild cannot find sync_packages on docker archlinux image

I got somewhat to a solution, I'm using a clean chroot with yaourt installed and mksrcinfo to retrieve the PKGBUILD dependencies. So now I'm allowed to install packages with dependencies from  AUR.

Marking solved (don't know if I can, maybe because the post was moved).

Last edited by marcs (2016-09-04 10:28:45)

Offline

#6 2016-09-04 10:31:57

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,858
Website

Re: yaourt --pkgbuild cannot find sync_packages on docker archlinux image

Please remember to mark your thread as solved.

Out of interest, why mksrcinfo? I don't see what use that would have in this scenario.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

Board footer

Powered by FluxBB