Forums

Skip to content

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

Adding a GitHub Overlay with layman -a

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
10 posts • Page 1 of 1
Author
Message
koesherbacon
n00b
n00b
Posts: 2
Joined: Fri Sep 09, 2016 11:34 pm

Adding a GitHub Overlay with layman -a

  • Quote

Post by koesherbacon » Wed Aug 30, 2017 6:08 am

Hello, I'm having some diffulty finding the answer to this question because all the keywords seem to be extremely common. If anyone knows of another similar thread please feel free to point me in that direction.

What I'd like to know is how to add a GitHub overlay? The overlay I'd like to add can be found here:
--> https://github.com/ssmike/overlay
Additionally, I'm trying to add this one because I cannot find any other overlays, official and non-official, that also have an .ebuild of Grub-Customizer:
--> https://github.com/ssmike/overlay/tree/ ... customizer

When I attempted to add it to my computer I'm shown this error message:

Code: Select all

$ sudo layman -a ssmike
 * Exception: Overlay "ssmike" does not exist.
I suppose there could be an overall problem with that github repo. I would also be happy if anyone also happens to know how I could install this GUI Grub configuration tool as well.

Thanks a lot!
~ Ev
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31985
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Wed Aug 30, 2017 6:16 am

For adding custum repo with layman see here.
In your repo is missing file repositories.xml, you can or adding it directly in github or in /etc/layman/overlays/ (see link above)
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
charles17
Advocate
Advocate
Posts: 3686
Joined: Sun Mar 02, 2008 3:20 pm

  • Quote

Post by charles17 » Wed Aug 30, 2017 6:49 am

Or try directly with

Code: Select all

[mike-overlay]
location = /usr/local/overlay/ssmike
sync-type = git
sync-uri = https://github.com/ssmike/overlay
auto-sync = yes
Then, emaint sync -r mike-overlay
Top
Pums
n00b
n00b
Posts: 52
Joined: Wed Jun 03, 2020 12:07 am

  • Quote

Post by Pums » Sat Jun 06, 2020 9:10 pm

Hi. I'm new on gentoo and it's the first overlay I've added. I do think there is something wrong here (ssmike / ssmikes / mike ???)

I tried to follow viewtopic-t-1089516-start-0.html, but it did't work (or I did something bad).

I eventualy managed it, doing more or less the following (sure there're unnecessary steps ; I hope I don't forget an essential one because it's very confuse to me ; the only sure is the command lines that worked on the end and the final names, locations and contents of the files I give) :

/etc/layman/overlays/ssmike_overlay.xml :

Code: Select all

                                
<?xml version="1.0" ?>
<repositories version="1.0">
   <repo priority="50" quality="experimental" status="unofficial">
     <name>ssmikes-overlay</name>
     <description>Ssmike provides grub-customizer for Gentoo</description>
     <homepage>https://github.com/ssmike/overlay</homepage>
     <owner>
       <email></email>
     </owner>
     <source type="git">https://github.com/ssmike/overlay.git</source>
   </repo>
 </repositories>

I tried several "layman -o" commands unsuccessfully.

Finally :

Code: Select all

# layman -o file:///etc/layman/overlays/ssmike_overlay.xml -f -a ssmikes-overlay 

 * Fetching remote list...
 * Fetch Ok

 * Adding overlay...
 * Overlay "ssmikes-overlay" is not official. Continue installing? [y/n]: y
 * Running Git... # ( cd /var/lib/layman  && /usr/bin/git clone https://github.com/ssmike/overlay.git /var/lib/layman/ssmikes-overlay )
Cloning into '/var/lib/layman/ssmikes-overlay'...
remote: Enumerating objects: 109, done.
remote: Counting objects: 100% (109/109), done.
remote: Compressing objects: 100% (87/87), done.
remote: Total 935 (delta 26), reused 87 (delta 13), pack-reused 826
Receiving objects: 100% (935/935), 408.29 KiB | 1.49 MiB/s, done.
Resolving deltas: 100% (265/265), done.
 * Running Git... # ( cd /var/lib/layman/ssmikes-overlay  && /usr/bin/git config user.name "layman" )
 * Running Git... # ( cd /var/lib/layman/ssmikes-overlay  && /usr/bin/git config user.email "layman@localhost" )
!!! Section 'ssmikes-overlay' in repos.conf has name different from repository name 'mike-overlay' set inside repository
 * Successfully added overlay(s) ssmikes-overlay
Ran

Code: Select all

# eix-update
# layman-updater -R
I had to edit manually /etc/portage/repos.conf/layman.conf because there wrere other incoherent names of the repository, but finally with :

Code: Select all

                                    
[mike-overlay]
priority = 50
location = /var/lib/layman/mike-overlay
layman-type = git
sync-type = laymansync
sync-uri = https://github.com/ssmike/overlay.git
auto-sync = Yes
in it, followed by another

Code: Select all

# eix-update
and

Code: Select all

# emerge -a app-admin/grub-customizer

worked...


Nevertheless,

Code: Select all

# grub-customizer 
 *** initializing (w/o specified bootloader type)…
   * reading partition info…
   * Loading Framebuffer resolutions (background process)
   * Finding out if this is a live CD
sh: hwinfo: command not found
 *** initializing (w/ specified bootloader type)…
   * Checking if the config directory is clean
 *** loading configuration
 *** loading - preserveConfig: no
   * unsetting saved config
 *** loading settings
 *** loading grub list
   * loading scripts…
   * loading proxies…
Segmentation fault
But it's another issue... :wink:
Top
Garbanzo
n00b
n00b
Posts: 37
Joined: Mon Aug 06, 2018 5:38 am

  • Quote

Post by Garbanzo » Sun Jun 07, 2020 3:54 am

eselect repository can also be used to manage overlays. See the 'Add unregistered repositories' section. I think it is easier to use than layman.
Top
Pums
n00b
n00b
Posts: 52
Joined: Wed Jun 03, 2020 12:07 am

  • Quote

Post by Pums » Sun Jun 07, 2020 8:54 am

Garbanzo wrote:eselect repository can also be used to manage overlays. See the 'Add unregistered repositories' section. I think it is easier to use than layman.
It seems easier indeed. However, I tried (on another computer) :

Code: Select all

# eselect repository add ssmikes git https://github.com/ssmike/overlay.git
!!! Error: Can't load module repository
exiting
I intented to change the field "ssmikes" with ssmike / mike /smikes / mikes / ssmikes and others,but I still get the same error.
Top
Ionen
Developer
Developer
User avatar
Posts: 3013
Joined: Thu Dec 06, 2018 2:23 pm

  • Quote

Post by Ionen » Sun Jun 07, 2020 9:11 am

Did you install it? The module comes from app-eselect/eselect-repository (see Installation section in aforementioned wiki link).

eselect-repository is essentially a wrapper to edit /etc/portage/repos.conf, and then portage handles things based on that configuration including sync'ing (layman used to be needed for this but that hasn't been the case in a while for most setups).
Top
Pums
n00b
n00b
Posts: 52
Joined: Wed Jun 03, 2020 12:07 am

  • Quote

Post by Pums » Sun Jun 07, 2020 4:59 pm

Ionen wrote:Did you install it? The module comes from app-eselect/eselect-repository (see Installation section in aforementioned wiki link).
I had probably not.

Now :

Code: Select all

# eselect repository enable mkeyoverlay https://bitbucket.org/mknjc/mkeyoverlay 
Adding mkeyoverlay to /etc/portage/repos.conf/eselect-repo.conf ...
error: https://bitbucket.org/mknjc/mkeyoverlay: repository not in repositories.xml
1 repositories enabled
But

Code: Select all

# emerge -a grub-customizer
!!! Section 'mkeyoverlay' in repos.conf has location attribute set to nonexistent directory: '/var/db/repos/mkeyoverlay'
!!! Section 'ssmikes' in repos.conf has location attribute set to nonexistent directory: '/var/db/repos/ssmikes'
WARNING: One or more repositories have missing repo_name entries:

        /var/db/repos/mkeyoverlay/profiles/repo_name
        /var/db/repos/ssmikes/profiles/repo_name

NOTE: Each repo_name entry should be a plain text file containing a
unique name for the repository on the first line.



These are the packages that would be merged, in order:

Calculating dependencies... done!

emerge: there are no ebuilds to satisfy "grub-customizer".
Here's my /etc/portage/repos.conf/eselect-repo.conf :

Code: Select all

# created by eselect-repo

[mkeyoverlay]
location = /var/db/repos/mkeyoverlay
sync-type = git
sync-uri = https://github.com/gentoo-mirror/mkeyoverlay.git

[ssmikes]
location = /var/db/repos/ssmikes
sync-type = git
sync-uri = https://github.com/ssmike/overlay.git

A mess, isn't it?

:?
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31985
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Sun Jun 07, 2020 5:33 pm

You can enable only overlay listed with eselect repository list, for add and external you should use add

Code: Select all

# eselect repository add mkeyoverlay git  https://bitbucket.org/mknjc/mkeyoverlay 
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
Pums
n00b
n00b
Posts: 52
Joined: Wed Jun 03, 2020 12:07 am

  • Quote

Post by Pums » Wed Jun 10, 2020 10:11 pm

fedeliallalinea wrote:You can enable only overlay listed with eselect repository list, for add and external you should use add

Code: Select all

# eselect repository add mkeyoverlay git  https://bitbucket.org/mknjc/mkeyoverlay 
Ok, thanks! TI seems to work fine indeed.
Top
Post Reply

10 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