Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Trying to create a local overlay following the wiki...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
InvisibleRasta
Tux's lil' helper
Tux's lil' helper


Joined: 30 Mar 2011
Posts: 112

PostPosted: Sat Nov 17, 2018 10:25 pm    Post subject: Trying to create a local overlay following the wiki... Reply with quote

hello guys i want to isntall this theme from an overlay but i dont know how to do it
https://github.com/gentoo/grub2-themes-overlay/tree/master/grub2-themes/ask-larry

so i created a local overlay:
Code:
mkdir -p /usr/local/portage/{metadata,profiles}
chown -R portage:portage /usr/local/portage
echo 'localrepo' > /usr/local/portage/profiles/repo_name



Code:
FILE /usr/local/portage/metadata/layout.conf
masters = gentoo
auto-sync = false


Code:
FILE /etc/portage/repos.conf/localrepo.conf
[localrepo]
location = /usr/local/portage


then i used the script in the wiki:
Code:
#!/bin/sh
mkdir -p /usr/local/portage/$1/$2
cp $3 /usr/local/portage/$1/$2/
chown -R portage:portage /usr/local/portage
pushd /usr/local/portage/$1/$2
repoman manifest
popd


I downlaoded the *.ebuild file from the overlay and issued the following command:
Code:
repoAdd grub2-themes ask-larry ask-larry-0.2.0.ebuild

and the output was:
Code:

/usr/local/portage/grub2-themes/ask-larry /home/nico/Temp
repoman: grub2-themes is not an official category.  Skipping QA checks in this directory.
Please ensure that you add grub2-themes to /usr/local/portage/profiles/categories
if it is a new category.


Since the grub2-themes is not an official category i had to create a file in
Code:
echo "grub2-themes" >> /usr/local/portage/profiles/categories


I tried to emerge the package but i got this output:
Code:

Calculating dependencies / * Manifest not found for '/usr/local/portage/grub2-themes/ask-larry/ask-larry-0.2.0.ebuild'
... done!

!!! All ebuilds that could satisfy "grub2-themes/ask-larry" have been masked.
!!! One of the following masked packages is required to complete your request:
- grub2-themes/ask-larry-0.2.0::localrepo (masked by: corruption)

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.


...This is getting quite complicated. So the command "repoman add" failed cause that category does not exit.
I did once again
Code:
 repoAdd grub2-themes ask-larry ask-larry-0.2.0.ebuild

and i got the following error:
Code:

/usr/local/portage/grub2-themes/ask-larry /home/nico/Temp
 * ERROR: grub2-themes/ask-larry-0.2.0::localrepo failed (depend phase):
 *   grub2-theme.eclass could not be found by inherit()
 *
 * Call stack:
 *                ebuild.sh, line 635:  Called source '/usr/local/portage/grub2-themes/ask-larry/ask-larry-0.2.0.ebuild'
 *   ask-larry-0.2.0.ebuild, line   7:  Called inherit 'grub2-theme'
 *                ebuild.sh, line 300:  Called die
 * The specific snippet of code:
 *              [[ -z ${location} ]] && die "${1}.eclass could not be found by inherit()"
 *
 * If you need support, post the output of `emerge --info '=grub2-themes/ask-larry-0.2.0::localrepo'`,
 * the complete build log and the output of `emerge -pqv '=grub2-themes/ask-larry-0.2.0::localrepo'`.
 * Working directory: '/usr/lib64/python3.6/site-packages'
 * S: '/var/tmp/portage/grub2-themes/ask-larry-0.2.0/work/ask-larry-0.2.0'
!!! getFetchMap(): aux_get() error reading grub2-themes/ask-larry-0.2.0; aborting.
Unable to generate manifest./home/nico/Temp


Seems I was missing the eclass file so i went to https://raw.githubusercontent.com/gentoo/grub2-themes-overlay/master/eclass/grub2-theme.eclass
and placed the file in:
Code:
/usr/local/portage/eclass/


Seems I can now install the package. (took me 2 hours to figure out with some help from the IRC channel)
Difficult task.

I now edited /etc/default/grub and added:
Code:
GRUB_THEME="/usr/share/grub/themes/ask-larry/theme_widescreen.txt"

also had to regenerate grub.cfg with:
Code:
grub-mkconfig /boot/grub/grub.cfg


Hope it works!

It actually worked but i was expecting better font scaling and graphics... It looks quite upscaled
https://pasteboard.co/HNEENPw.jpg
_________________
Don't gain the world and lose our soul; wisdom is better than silver or gold.
Back to top
View user's profile Send private message
jonathan183
Guru
Guru


Joined: 13 Dec 2011
Posts: 308

PostPosted: Sat Nov 17, 2018 11:58 pm    Post subject: Reply with quote

Is there any reason you did not just use layman ?
Back to top
View user's profile Send private message
kurly
Apprentice
Apprentice


Joined: 02 Apr 2012
Posts: 253

PostPosted: Sun Nov 18, 2018 12:08 am    Post subject: Reply with quote

jonathan183 wrote:
Is there any reason you did not just use layman ?
I had suggested app-eselect/eselect-repository on IRC some time before this thread was posted, but I guess that too was rejected.
Back to top
View user's profile Send private message
InvisibleRasta
Tux's lil' helper
Tux's lil' helper


Joined: 30 Mar 2011
Posts: 112

PostPosted: Sun Nov 18, 2018 9:43 am    Post subject: Reply with quote

ill take a look into it kurly, thank you. In the meanwhile i rewrote the RepoAdd.sh to fit my needs.

##example: addRepoV2.sh grub2-themes gutsblack-archlinux gutsblack-archlinux-0_p20120706.ebuild

Code:

#!/bin/bash

order=(mkdir cp chown pushd manifest popd)

declare -A prompts=(
   [mkdir]="Run 'mkdir -p /usr/local/portage/$1'"
   [cp]="Run 'cp $3 /usr/local/portage/$1/$2'"
   [chown]="Run 'chown -R portage:portage /usr/local/portage'"
   [pushd]="Run 'pushd /usr/local/portage/$1/$2'"
   [manifest]="Run 'repoman manifest'"
   [popd]="Run popd"
)

mkdir=(mkdir -p /usr/local/portage/$1/$2)
cp=(cp $3 /usr/local/portage/$1/$2/ )
chown=(chown -R portage:portage /usr/local/portage)
pushd=(pushd /usr/local/portage/$1/$2)
manifest=(repoman manifest)
popd=(popd)


for item in "${order[@]}" ; do
   prompt="${prompts[$item]}"

   # don't try this at home
   eval "command=(\"\${$item[@]}\")"

   while read -n 1 -r -p "$prompt: (Y/n): " ; do
      case "$REPLY" in
         [Yy]|'')
         
                "${command[@]}"
            break
         ;;
         [Nn])
            echo
            break
         ;;
         *)
            printf '\nUnrecognized response "%s". please use Y or N\n' "$REPLY"
         ;;
      esac
   done
done
 

_________________
Don't gain the world and lose our soul; wisdom is better than silver or gold.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum