Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Q: Custom repo, version bump
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
ayeyes
Tux's lil' helper
Tux's lil' helper


Joined: 03 Dec 2017
Posts: 104

PostPosted: Mon Jun 11, 2018 10:14 am    Post subject: [SOLVED] Q: Custom repo, version bump Reply with quote

Hello,

I added my own custom repo for Firejail 0.9.54, and wondering if it's the correct way to do it.

Code:
root #mkdir -p /usr/local/portage/{metadata,profiles}
root #chown -R portage:portage /usr/local/portage
echo localrepo > /usr/local/portage/profiles/localrepo


FILE /usr/local/portage/metadata/layout.conf

Quote:
masters = gentoo
auto-sync = false


FILE /etc/portage/repos.conf/localrepo.conf

Quote:
[localrepo]
location = /usr/local/portage

Code:

root #mkdir -p /usr/local/portage/sys-apps/firejail
root #cd /usr/portage/sys-apps/firejail
root #cp Manifest metadata.xml firejail-0.9.52.ebuild /usr/local/portage/sys-apps/firejail/
root #cp -R files /usr/local/portage/sys-apps/firejail/

root #cd /usr/local/portage/sys-apps/firejail/

root #mv firejail-0.9.52.ebuild firejail-0.9.54.ebuild
root#cd files/
root#mv 0.9.52-contrib-fix.patch 0.9.54-contrib-fix.patch

root #ebuild firejail-0.9.54.ebuild manifest


I then downloaded firejail-0.9.54.tar.xz and firejail-0.9.54.tar.xz.asc and verified it, and copied it to /usr/portage/distfiles.

Emerged with emerge =firejail-0.9.54, which worked fine.

Wonder beacuse... For a version bump the wiki has this:

Code:
user $mkdir -v /usr/local/portage/bobs-repository/app-emulation
user $cd /usr/local/portage/bobs-repository/app-emulation
user $cp -r /usr/portage/app-emulation/docker .
user $cd docker/
user $cp docker-1.11.0.ebuild docker-1.12.6.ebuild
user $repoman --digest=y -d full (use 'ebuild docker-1.12.6.ebuild manifest' instead)

Now test the installation:
root #emerge --ask =app-emulation/docker-1.12.6


But doing that as a user doesn't work.


Last edited by ayeyes on Mon Jun 11, 2018 4:26 pm; edited 3 times in total
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5934

PostPosted: Mon Jun 11, 2018 10:45 am    Post subject: Reply with quote

try adding yourself to the portage group. :wink:
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
ayeyes
Tux's lil' helper
Tux's lil' helper


Joined: 03 Dec 2017
Posts: 104

PostPosted: Mon Jun 11, 2018 11:05 am    Post subject: Reply with quote

bunder wrote:
try adding yourself to the portage group. :wink:


Thanks :) Is adding myself to portage safe security wise?

Should I restore a snapshot from before I did
Code:
ebuild firejail-0.9.54.ebuild manifest
as root?
Back to top
View user's profile Send private message
ayeyes
Tux's lil' helper
Tux's lil' helper


Joined: 03 Dec 2017
Posts: 104

PostPosted: Mon Jun 11, 2018 3:01 pm    Post subject: Reply with quote

Have added myself to the group 'portage', and '/usr/local/portage' is owned by 'portage', but I get permission denied when trying the create the directory '/usr/local/portage/some-dir.

Logged out before trying.

Code:
$groups charles

wheel audio video users portage wheel audio video users portage charles


Last edited by ayeyes on Mon Jun 11, 2018 3:05 pm; edited 2 times in total
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10589
Location: Somewhere over Atlanta, Georgia

PostPosted: Mon Jun 11, 2018 3:05 pm    Post subject: Reply with quote

It's just a permissions issue. Post the output of
Code:
ls -ld /usr/local/portage
please.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
ayeyes
Tux's lil' helper
Tux's lil' helper


Joined: 03 Dec 2017
Posts: 104

PostPosted: Mon Jun 11, 2018 3:06 pm    Post subject: Reply with quote

John R. Graham wrote:
It's just a permissions issue. Post the output of
Code:
ls -ld /usr/local/portage
please.

- John


Thanks :-)

Code:
drwxr-xr-x 1 portage portage 48 Jun 11 09:29 /usr/local/portage
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10589
Location: Somewhere over Atlanta, Georgia

PostPosted: Mon Jun 11, 2018 3:12 pm    Post subject: Reply with quote

So this says that members of the portage group do not have write permission to that directory. Use chmod to fix that if you want your regular user to be able to create files and directories there.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
ayeyes
Tux's lil' helper
Tux's lil' helper


Joined: 03 Dec 2017
Posts: 104

PostPosted: Mon Jun 11, 2018 3:17 pm    Post subject: Reply with quote

John R. Graham wrote:
So this says that members of the portage group do not have write permission to that directory. Use chmod to fix that if you want your regular user to be able to create files and directories there.

- John


Thank you John. :-)

Which permission should I give it?


Last edited by ayeyes on Mon Jun 11, 2018 4:23 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30915
Location: here

PostPosted: Mon Jun 11, 2018 3:20 pm    Post subject: Reply with quote

ayeyes wrote:
Which permission should I give it?

Write permission on group (775)
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
ayeyes
Tux's lil' helper
Tux's lil' helper


Joined: 03 Dec 2017
Posts: 104

PostPosted: Mon Jun 11, 2018 3:21 pm    Post subject: Reply with quote

fedeliallalinea wrote:
ayeyes wrote:
Which permission should I give it?

Write permission on group (775)


Thank you fedeliallalinea. :-)

Worked now. :-)
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21633

PostPosted: Tue Jun 12, 2018 1:45 am    Post subject: Reply with quote

ayeyes wrote:
Thanks :) Is adding myself to portage safe security wise?
Maybe. Do you ever run as yourself any programs you would not trust to run as root?
Back to top
View user's profile Send private message
ayeyes
Tux's lil' helper
Tux's lil' helper


Joined: 03 Dec 2017
Posts: 104

PostPosted: Fri Jun 15, 2018 8:49 pm    Post subject: Reply with quote

Hu wrote:
ayeyes wrote:
Thanks :) Is adding myself to portage safe security wise?
Maybe. Do you ever run as yourself any programs you would not trust to run as root?


Yes! eselect list, lsblk, findmnt and more. Paranoia. :-) Created a portage user.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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