View previous topic :: View next topic |
Author |
Message |
Mr. T. Guru
Joined: 26 Dec 2016 Posts: 477
|
Posted: Sat Mar 17, 2018 5:12 pm Post subject: Can we merge repositories? |
|
|
It is painful to manage other repositories to add or modify some packages. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54627 Location: 56N 3W
|
Posted: Sat Mar 17, 2018 5:36 pm Post subject: |
|
|
helecho,
Gentoo works with multiple repositories.
Portage merges them when you run the emerge command. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Mr. T. Guru
Joined: 26 Dec 2016 Posts: 477
|
Posted: Sat Mar 17, 2018 5:47 pm Post subject: |
|
|
Gentoo developers created eselect repository to facilitate the management of repositories.
NeddySeagoon, I would like to act directly on the Portage tree without having to create/add local or external repositories. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54627 Location: 56N 3W
|
Posted: Sat Mar 17, 2018 7:13 pm Post subject: |
|
|
helecho,
Describe the problem you need to solve, rather than your perceived solution. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3477
|
Posted: Sat Mar 17, 2018 7:36 pm Post subject: |
|
|
Helecho, git does allow it, and in fact this is what "merge request" or "pull request" on github and similar websites mean.
However, emerge's overlays support would be far easier to manage and lower maintenance because this is the gentoo way of running things. Everyone is doing it this way, the workflow is optimized for this approach, and if you try to do that differently, you'll be the only maintainer of your metafork. Mind that the upstream will not be aware of your local changes, and - unlike overlays - git does not simply prioritize local changes over upstream. |
|
Back to top |
|
|
Mr. T. Guru
Joined: 26 Dec 2016 Posts: 477
|
Posted: Sat Mar 17, 2018 8:15 pm Post subject: |
|
|
Thank, I appreciate your help!
szatox, I think I'm converging in this direction.
NeddySeagoon, I feel my system has an hybrid design because it needs an additional repository to work. I would have liked the package manager mask the differences
between my system and a typical system. It's weird to see pkg::musl that replace pkg::gentoo during an installation because the fundamental package will
always be pkg::musl. My point of view must prevail over Gentoo's point of view. Idem, we need to create a local repository to patch some packages.
Edit: I know we may use some internal mechanisms of Portage to apply patches. Nonetheless, I doubt about consistency between different repositories (ebuilds,
packages, local, external). |
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3477
|
Posted: Sat Mar 17, 2018 11:29 pm Post subject: |
|
|
Patches are good when you want to fix a bug in a particular version that slipped through ebuild maintainer's hands. And you expect that bug to be fixed in the main repo later, but you just want to get the correct results right NOW.
By all means go after an overlay. You don't have to do anything fancy beside enabling it, emerge knows how to handle multiple repositories in a fully transparent manner. Like in you may not even notice it's doing it.
Depending on your particular use case, you may want to either make your overlay a higher priority than the main repo to make emerge prefer those ebuilds, or make it lower priority and explicitly emerge an ebuild line from your overlay. I'm pretty sure you could select the right line base on other rules as well, but those solutions I mentioned would be prettier and cleaner. |
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 9319
|
Posted: Sat Mar 17, 2018 11:31 pm Post subject: |
|
|
helecho wrote: | Nonetheless, I doubt about consistency between different repositories (ebuilds, packages, local, external). |
Why do you doubt? And where do you make a distinction between ebuild and package? |
|
Back to top |
|
|
Mr. T. Guru
Joined: 26 Dec 2016 Posts: 477
|
Posted: Sun Mar 18, 2018 10:16 am Post subject: |
|
|
A patch may be applied to an ebuild or may be applied to a package. Currently, users have to create repositories to apply patches for ebuilds, haven't they?
In my case, my system have three repositories: gentoo, musl and local. I would like to have only one repository. How can I proceed?
Multiple repositories are supported by Gentoo but this solution may be unsuitable for some cases.
Forum topics
Wiki
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54627 Location: 56N 3W
|
Posted: Sun Mar 18, 2018 10:32 am Post subject: |
|
|
helecho,
Lets start with the definition that an ebuild is a recipe for fetching and installing a package.
The ebuild is thus separate from the package.
To patch an ebuild, you should do the work in an overlay or the next sync will revert your changes.
To patch a package, the patch goes in /etc/portage/patches/ and in many cases, portage will apply it.
If you are making changes that benefit the community, file bugs or github PRs, so that the changes get into the main tree.
Some devs started out that way. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Mr. T. Guru
Joined: 26 Dec 2016 Posts: 477
|
Posted: Sun Mar 18, 2018 11:07 am Post subject: |
|
|
Thank, your explanation is clear!
I believe the package manager could be simplified managing concepts associated to the Portage tree. How? I do not know!
I suppose some users may consider other parameters than developers. The issues should be identified to make an improvement. |
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 9319
|
Posted: Sun Mar 18, 2018 11:11 am Post subject: |
|
|
You haven't raised an issue yet. |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Sun Mar 18, 2018 12:22 pm Post subject: |
|
|
And i think you can add in world the repo name to force it over "gentoo normal" repo.
ie: vlc::myrepo instead of just vlc |
|
Back to top |
|
|
Mr. T. Guru
Joined: 26 Dec 2016 Posts: 477
|
Posted: Sun Mar 18, 2018 1:10 pm Post subject: |
|
|
Currently, the Portage tree is downloaded and integrated into the system. Maybe, the package manager could natively build an ebuild tree?
The modifications would be done automatically and repositories would no longer be fundamental.
Edit: These are experimental or fanciful ideas.
Last edited by Mr. T. on Sun Mar 18, 2018 1:13 pm; edited 1 time in total |
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 9319
|
Posted: Sun Mar 18, 2018 1:11 pm Post subject: |
|
|
Erm... |
|
Back to top |
|
|
Mr. T. Guru
Joined: 26 Dec 2016 Posts: 477
|
Posted: Sun Mar 18, 2018 1:16 pm Post subject: |
|
|
Funtoo tries to improve their tree with Funtoo Kits ! |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54627 Location: 56N 3W
|
Posted: Sun Mar 18, 2018 3:01 pm Post subject: |
|
|
helecho,
The idea has been discussed in the Gentoo mailing list too.
All the repos are controlled by their respective owners. That isn't going to change any time soon.
Portage allows you to pick and choose from all the repos you have installed, effectively merging them 'on the fly' according to your instructions.
You could manually merge all the git repos yourself but you would need to manage the conflicts yourself.
That's not something that could be automated.
The Funtoo kits is a way of fragmenting things further rather than merging them. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Mr. T. Guru
Joined: 26 Dec 2016 Posts: 477
|
Posted: Sun Mar 18, 2018 4:26 pm Post subject: |
|
|
My point of view may be limited because it may offer little possibilities. I believe this merge could be achieved but the package manager would have a new design.
Gentoo only supports one package manager so further conception is hypothetical. |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3767 Location: Rasi, Finland
|
Posted: Sun Mar 18, 2018 4:37 pm Post subject: |
|
|
helecho wrote: | Gentoo only supports one package manager so further conception is hypothetical. | I'd go as far as to say Gentoo is a package manager.
Of course it's not that simple. But I think you get the point. _________________ ..: Zucca :..
My gentoo installs: | init=/sbin/openrc-init
-systemd -logind -elogind seatd |
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54627 Location: 56N 3W
|
Posted: Sun Mar 18, 2018 4:57 pm Post subject: |
|
|
helecho,
There are at least three package managers. Portage is the default. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|