Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Local portage overlay

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
gksudo
n00b
n00b
User avatar
Posts: 12
Joined: Sun Nov 01, 2020 12:32 pm
Location: england
Contact:
Contact gksudo
Website

Local portage overlay

  • Quote

Post by gksudo » Mon Nov 09, 2020 6:06 pm

Hi, I set up a local portage repo' on my system and would like some clarification as to whether this is the correct way to do so

Created the ebuild dir

Code: Select all

mkdir -p /usr/local/portage/net-im/discord-canary-bin
Wrote the ebuild to /usr/local/portage/net-im/discord-canary-bin/discord-canary-bin-(version).ebuild

Digest to generate manifest

Code: Select all

ebuild /usr/local/portage/net-im/discord-canary-bin/discord-canary-bin-(version).ebuild digest
Add repo to portage

Code: Select all

/etc/portage/repos.conf/gentoo.conf

[localrepo]
location = /usr/local/portage
auto-sync = no
I found a Wiki article from 2019 (https://linuxreviews.org/HOWTO_make_you ... too_ebuild)
That suggested adding PORTDIR_OVERLAY to make.conf, though the Gentoo Wiki states this is depreciated but still supported?

Thanks, gk
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

Re: Local portage overlay

  • Quote

Post by CaptainBlood » Mon Nov 09, 2020 6:18 pm

gksudo,
Welcome to Gentoo.
gksudo wrote:That suggested adding PORTDIR_OVERLAY to make.conf, though the Gentoo Wiki states this is depreciated but still supported
make.conf PORTDIR_OVERLAY is commented here.
Moreover here's

Code: Select all

cat /etc/portage/repos.conf/local-repo.conf 
[local-repo]
priority=10000
location=/var/db/repos/local-repo
Thks 4 ur attention, interest & support.
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Top
Ionen
Developer
Developer
User avatar
Posts: 3013
Joined: Thu Dec 06, 2018 2:23 pm

  • Quote

Post by Ionen » Mon Nov 09, 2020 6:46 pm

You can use any location for your overlays, but (as used above) /var/db/repos/<name> is probably more standard than /usr/local/portage. If you were still using /usr/portage you may want to migrate to the new (default) /var/db/repos/gentoo location too (and /var/cache/distfiles + /var/cache/binpkgs), but entirely optional.

ebuild location is fine, updating manifest that way is fine too (but "ebuild .. digest" is a synonym for "ebuild .. manifest" now). If you want to go all out you could also use repoman manifest ;) can update the entire overlay at once and perform QA checks, not that QA matters much for a private overlay but I do it anyway for good measure, I use it before submitting ebuild patches to gentoo maintainers too.

repos.conf is what replaces the need for PORTDIR and PORTDIR_OVERLAY, it just gets all the locations from there now (::gentoo included). I still like PORTDIR_OVERLAY for quick testing purposes though, but otherwise both should be removed from make.conf to avoid confusing portage (mismatching PORTDIR between make.conf and repos.conf been known to do strange things, fine if unset).
Top
gksudo
n00b
n00b
User avatar
Posts: 12
Joined: Sun Nov 01, 2020 12:32 pm
Location: england
Contact:
Contact gksudo
Website

  • Quote

Post by gksudo » Mon Nov 09, 2020 7:07 pm

Thanks for your responses, after a quick check the gentoo repo is over at /var/db/repos/gentoo. I've cp'd the contents of /usr/local/portage over to /var/db/repos/localrepo
And set the repo config in /etc/portage/repos.conf/localrepo.conf, removed PORTDIR_OVERLAY from make.conf and deleted /usr/local/portage.

Because as of now I only have 1 ebuild to locally maintain, when I update it, ebuild .. manifest seems suitable for now. I'll look into repoman if I start adding my ebuilds :)
Top
Hu
Administrator
Administrator
Posts: 24390
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Mon Nov 09, 2020 7:55 pm

One other use for repoman is that the QA checks, while required for submission to the public repository and optional for your private repository, may flag mistakes that you would choose to fix if you knew they existed. Using repoman would discover these for you, and fixing them there may be less trouble than debugging a problem that ultimately traces back to a QA check. (That said, you don't need to fix every QA issue if you have a good reason for why something doesn't matter to your use case. Use the tool to save you work, not to cause you extra work.)
Last edited by Hu on Tue Nov 10, 2020 2:02 am, edited 1 time in total.
Top
charles17
Advocate
Advocate
Posts: 3686
Joined: Sun Mar 02, 2008 3:20 pm

Re: Local portage overlay

  • Quote

Post by charles17 » Mon Nov 09, 2020 11:15 pm

gksudo wrote:I found a Wiki article from 2019 (https://linuxreviews.org/HOWTO_make_you ... too_ebuild)
No need for such external references https://wiki.gentoo.org/wiki/Handbook:A ... repository
Top
gengreen
Apprentice
Apprentice
Posts: 150
Joined: Sat Dec 23, 2017 2:49 am
Contact:
Contact gengreen
Website

  • Quote

Post by gengreen » Tue Nov 10, 2020 11:43 am

Hu wrote:One other use for repoman is that the QA checks, while required for submission to the public repository and optional for your private repository, may flag mistakes that you would choose to fix if you knew they existed. Using repoman would discover these for you, and fixing them there may be less trouble than debugging a problem that ultimately traces back to a QA check. (That said, you don't need to fix every QA issue if you have a good reason for why something doesn't matter to your use case. Use the tool to save you work, not to cause you extra work.)
Repoman is great

However I encounter an issue : with repoman 2 I was able to commit msg with the "interactive editor style" (https://github.com/gentoo/musl/pull/193 see the commit msg),

But since repoman 3, this doesn't work anymore... The feature was removed ?
Less is best
Top
Post Reply

7 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic