View previous topic :: View next topic |
Author |
Message |
InvisibleRasta Apprentice
Joined: 30 Mar 2011 Posts: 188
|
Posted: Sat Nov 17, 2018 10:25 pm Post subject: Trying to create a local overlay following the wiki... |
|
|
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 |
|
Back to top |
|
|
jonathan183 Guru
Joined: 13 Dec 2011 Posts: 318
|
Posted: Sat Nov 17, 2018 11:58 pm Post subject: |
|
|
Is there any reason you did not just use layman ? |
|
Back to top |
|
|
kurly Apprentice
Joined: 02 Apr 2012 Posts: 260
|
Posted: Sun Nov 18, 2018 12:08 am Post subject: |
|
|
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 |
|
|
InvisibleRasta Apprentice
Joined: 30 Mar 2011 Posts: 188
|
Posted: Sun Nov 18, 2018 9:43 am Post subject: |
|
|
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
|
|
|
Back to top |
|
|
|