Question : buildpkg not support local-repo ? #95

Closed
opened 2015-05-24 17:21:34 +00:00 by philm · 5 comments
philm commented 2015-05-24 17:21:34 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: Ste74

Hello guys , I used to build packages buildpkg script but had some dependencies that were not present in the repo Manjaro so I had to use the classic makepkg -s and add the missing files in my local repo present in my pacman.conf
The problem comes when I have to build packages in chroot ( 32bit ) as Manjaro-tool and devtools arch are not compatible or not?

*Created by: Ste74* Hello guys , I used to build packages buildpkg script but had some dependencies that were not present in the repo Manjaro so I had to use the classic makepkg -s and add the missing files in my local repo present in my pacman.conf The problem comes when I have to build packages in chroot ( 32bit ) as Manjaro-tool and devtools arch are not compatible or not?
philm commented 2015-05-24 17:41:31 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

There is technically no support for a local repo, because you don't need it.

If some dependency is not in the repo, you have to install this dependency in the chroot(-n).
After you installed all depends without cleaning the chroot, you can then build your target package.

*Created by: udeved* There is technically no support for a local repo, because you don't need it. If some dependency is not in the repo, you have to install this dependency in the chroot(-n). After you installed all depends without cleaning the chroot, you can then build your target package.
philm commented 2015-05-24 17:47:30 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

You could create a buildset for your package, which contains all depends in order and just use the buildset, also using -n switch.

*Created by: udeved* You could create a buildset for your package, which contains all depends in order and just use the buildset, also using -n switch.
philm commented 2015-05-24 17:59:20 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: Ste74

@udeved Can you explain with an example ?
https://github.com/Ste74/Pantheon-PKGBUILD-Repo/tree/master/manjaro-gala-bzr
this pakages need this file 'granite-bzr' 'mutter-manjaro-pantheon' and give me error . I have build with makepkg and 'granite-bzr' 'mutter-manjaro-pantheon' i have compiled a part and copied in my local repo.
Thank artoo

*Created by: Ste74* @udeved Can you explain with an example ? https://github.com/Ste74/Pantheon-PKGBUILD-Repo/tree/master/manjaro-gala-bzr this pakages need this file 'granite-bzr' 'mutter-manjaro-pantheon' and give me error . I have build with makepkg and 'granite-bzr' 'mutter-manjaro-pantheon' i have compiled a part and copied in my local repo. Thank artoo
philm commented 2015-05-24 18:20:48 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

I believe you need granite pkgbuild too.

You need to get all depends which are not in the repos.
Forget about local repo. ;)
After you got all depends, you need to order the depends. You can find out with pkgtree.

Then you create a buildset.

nano -w /etc/manjaro-tools/sets/pkg/pantheon.set

mutter-manjaro-pantheon
manjaro-gala-bzr
pantheon-session-manjaro-bzr

Add the ordered depends and finally you package.

buildpkg -p pantheon -a i686 -b unstable -n

if you are on x86_86 and want to build i686 pkgs.

*Created by: udeved* I believe you need granite pkgbuild too. You need to get all depends which are not in the repos. Forget about local repo. ;) After you got all depends, you need to order the depends. You can find out with pkgtree. Then you create a buildset. ``` nano -w /etc/manjaro-tools/sets/pkg/pantheon.set mutter-manjaro-pantheon manjaro-gala-bzr pantheon-session-manjaro-bzr ``` Add the ordered depends and finally you package. ``` buildpkg -p pantheon -a i686 -b unstable -n ``` if you are on x86_86 and want to build i686 pkgs.
philm commented 2015-05-24 18:51:58 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: Ste74

Thanks Artoo friendly as always . Upon my packages for 32bit try and if I still have questions post them on our forum ;-)

*Created by: Ste74* Thanks Artoo friendly as always . Upon my packages for 32bit try and if I still have questions post them on our forum ;-)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
tools/manjaro-tools#95
No description provided.