Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Overriding EGIT_REPO_URI
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
KetMit
n00b
n00b


Joined: 28 Jun 2024
Posts: 3

PostPosted: Fri Jun 28, 2024 11:23 am    Post subject: Overriding EGIT_REPO_URI Reply with quote

Can't find info on overriding the EGIT_REPO_URI variable.
E.g. how can one emerge a package, 'overloading' the EGIT_REPO_URI? (not able to edit the ebuild itself).
Say,
EGIT_REPO_URI="git@github.com:myOrg\my-math.git" emerge -av dev-cpp/my-math

I've also tried to add it to '/etc/portage/package.env', still no success.
Back to top
View user's profile Send private message
sdauth
l33t
l33t


Joined: 19 Sep 2018
Posts: 645
Location: Ásgarðr

PostPosted: Fri Jun 28, 2024 11:40 am    Post subject: Reply with quote

Hi,
I'm not 100% sure, it's been a long time I didn't use egit override; does this work ?

/etc/portage/env/my-math_override
Code:
EGIT_OVERRIDE_REPO_MY_MATH="git@github.com:myOrg\my-math.git"


then add a package.env to call the env variable :

/etc/portage/package.env/my-math
Code:
dev-cpp/my-math my-math_override


Last edited by sdauth on Fri Jun 28, 2024 1:09 pm; edited 1 time in total
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9608
Location: beyond the rim

PostPosted: Fri Jun 28, 2024 12:44 pm    Post subject: Reply with quote

EDIT: Nonsense removed

Last edited by Genone on Fri Jun 28, 2024 1:14 pm; edited 1 time in total
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1910

PostPosted: Fri Jun 28, 2024 12:57 pm    Post subject: Reply with quote

Really it is EGIT_OVERRIDE_REPO_MY_MATH, using the example, because it includes the .git repo name at the end. Commit message for the eclass documents this somewhat
Back to top
View user's profile Send private message
sdauth
l33t
l33t


Joined: 19 Sep 2018
Posts: 645
Location: Ásgarðr

PostPosted: Fri Jun 28, 2024 1:13 pm    Post subject: Reply with quote

Indeed, thanks for the correction. (I edited)
I tested using an other url for gallery-dl, and this is what can be modified :

Code:
 Emerging (1 of 1) net-misc/gallery-dl-9999::gentoo
>>> Unpacking source...
 * Repository id: mikf_gallery-dl.git
 * To override fetched repository properties, use:
 *   EGIT_OVERRIDE_REPO_MIKF_GALLERY_DL
 *   EGIT_OVERRIDE_BRANCH_MIKF_GALLERY_DL
 *   EGIT_OVERRIDE_COMMIT_MIKF_GALLERY_DL
 *   EGIT_OVERRIDE_COMMIT_DATE_MIKF_GALLERY_DL


with override :

Code:
>>> Emerging (1 of 1) net-misc/gallery-dl-9999::gentoo
>>> Unpacking source...
 * Repository id: dummy_gallery-dl.git
 * Using EGIT_OVERRIDE_REPO_MIKF_GALLERY_DL=https://github.com/dummy/gallery-dl.git
 * No support will be provided.
 * Fetching https://github.com/dummy/gallery-dl.git ...
git fetch https://github.com/dummy/gallery-dl.git +HEAD:refs/git-r3/HEAD



EGIT_OVERRIDE_REPO_MY_MATH is the right way to set it as grknight pointed out.
Back to top
View user's profile Send private message
KetMit
n00b
n00b


Joined: 28 Jun 2024
Posts: 3

PostPosted: Sat Jun 29, 2024 9:31 am    Post subject: Reply with quote

sdauth wrote:
Indeed, thanks for the correction. (I edited)
I tested using an other url for gallery-dl, and this is what can be modified :

EGIT_OVERRIDE_REPO_MY_MATH is the right way to set it as grknight pointed out.


Thank you guys for your invaluable help. Managed to continue building my Dockerfile.
NB. Needed to add one more line to achieve 'overriding':
Quote:
RUN mkdir -m 777 -p /var/cache/distfiles/git3-src
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