You are not logged in.

#1 2015-10-12 22:28:09

gillecaluim
Member
Registered: 2014-11-02
Posts: 42

add custom package when building in a clean chroot using devtools

I've been following the DeveloperWiki for building a package in a clean chroot.  One of the packages I'm building requires a package that's no longer in the repositories (c-icap).  I've built the c-icap package but how can I include it for building?
I've been using the extra-x86_64-build script to build packages with but not sure how to include a custom repository into the new chroot.  I've modified the /usr/share/devtools/pacman-extra.conf to include a file based repository but that didn't work because the chroot directory structure seems to be rebuilt everytime.

Robert
...knowing just enough to be dangerous wink

Offline

#2 2015-10-12 22:59:39

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: add custom package when building in a clean chroot using devtools

Try clean-chroot-manager from the AUR.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2015-10-12 23:17:56

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

Re: add custom package when building in a clean chroot using devtools

Put the repository in the root chroot. Then chroot into it, and run repo-add from inside it.


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.

Offline

#4 2015-10-12 23:19:26

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: add custom package when building in a clean chroot using devtools

WorMzy wrote:

Put the repository in the root chroot. Then chroot into it, and run repo-add from inside it.

Precisely the motivation for me to write ccm.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#5 2015-10-13 03:56:24

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,553

Re: add custom package when building in a clean chroot using devtools

Simplest way is to just use "-- -I <package>"

Offline

#6 2015-10-13 16:53:44

gillecaluim
Member
Registered: 2014-11-02
Posts: 42

Re: add custom package when building in a clean chroot using devtools

thanks for all of the options. 
the "-- -I <package>" is the simplest option for adding a single package dependency
ended up using ccm because I need to build with several custom package dependencies

Offline

#7 2015-10-13 17:05:48

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: add custom package when building in a clean chroot using devtools

Glad you're getting some mileage out of ccm... it's one of the little wrapper scripts I cooked up for my own needs but am glad to see others are finding some value there too.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB