View previous topic :: View next topic |
Author |
Message |
KetMit n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 28 Jun 2024 Posts: 2
|
Posted: Fri Jun 28, 2024 11:23 am Post subject: Overriding EGIT_REPO_URI |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
sdauth l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/8853292075e233da65d745.jpg)
Joined: 19 Sep 2018 Posts: 632 Location: Ásgarðr
|
Posted: Fri Jun 28, 2024 11:40 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Genone Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/21004157514287ab2b29021.jpg)
Joined: 14 Mar 2003 Posts: 9591 Location: beyond the rim
|
Posted: Fri Jun 28, 2024 12:44 pm Post subject: |
|
|
EDIT: Nonsense removed
Last edited by Genone on Fri Jun 28, 2024 1:14 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
grknight Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
Joined: 20 Feb 2015 Posts: 1832
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
sdauth l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/8853292075e233da65d745.jpg)
Joined: 19 Sep 2018 Posts: 632 Location: Ásgarðr
|
Posted: Fri Jun 28, 2024 1:13 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
KetMit n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 28 Jun 2024 Posts: 2
|
Posted: Sat Jun 29, 2024 9:31 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|