View previous topic :: View next topic |
Author |
Message |
Cyker Veteran
Joined: 15 Jun 2006 Posts: 1746
|
Posted: Wed Nov 09, 2016 7:57 pm Post subject: Procedures for moving/renaming a package directory |
|
|
I've been trying to keep up with all the movement in the kde-* packages with my kde-sunset overlay but it's just getting silly now; The other day I had an idea! I thought "Hey, if they can do it, why can't I??"
So, what I want to do is move everything in my overlay's kde-base and kde-misc to kde3-apps and kde3-misc - This way it will be completely separate from the main tree's so they can move all the packages around as much as they like and it won't affect me any more.
I'm assuming there is some built-in system to do this as the main tree is using it to move these pesky packages - Is this something I can leverage myself? Is there some documentation available?
Within the tree, is there some automated way to move package folders around like this or is it actually being done manually on a package-by-package basis by the maintainers?
I'm slowly going through my own overlay and find/replacing all the directory paths but I'm wondering if there is a faster way to do this; I predict I'll need to manually edit the eclasses and other ancillary stuff too, and then I'll need to tackle the world file and installed ebuild records somehow... |
|
Back to top |
|
|
Roman_Gruber Advocate
Joined: 03 Oct 2006 Posts: 3846 Location: Austro Bavaria
|
Posted: Wed Nov 09, 2016 11:12 pm Post subject: |
|
|
Could be they use sed or other bash tools to parse the config files and replace it. Most likely.
Or use an editor and use replace all |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
|
Back to top |
|
|
Cyker Veteran
Joined: 15 Jun 2006 Posts: 1746
|
Posted: Thu Nov 10, 2016 10:21 pm Post subject: |
|
|
Thanks; Mmm, seems it won't be as useful as I'd hoped... I think I'll have to manually do most of the move myself :S |
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 8936
|
Posted: Thu Nov 10, 2016 10:38 pm Post subject: |
|
|
It will be much less work to follow the few pkgmoves done in tree. |
|
Back to top |
|
|
Cyker Veteran
Joined: 15 Jun 2006 Posts: 1746
|
Posted: Fri Nov 11, 2016 8:09 am Post subject: |
|
|
That's what I thought at first but it now seems like every other time I sync the KDE team have moved something that affects me that I have to repair. I don't even get why stuff had to be moved to kde-apps and now kde-plasma; It's not like it does something different from being in kde-base...
Just FYI, it's not a small amount of work that needs to be done when moving even a few packages as you have to fix the dependencies on everything that points that package as well, possibly moving some into another overlay - I literally have to check ALL of them, EVERY time it happens. It was interesting at first but now it's getting tedious and annoying. This will take a bit more effort but I should only have to do it ONCE!
I feel this is a far better long-term solution, especially since it doesn't look like TDE is going to get into the tree or even an overlay any time soon... |
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 8936
|
Posted: Fri Nov 11, 2016 10:00 am Post subject: |
|
|
I know how much work it is, I've done it myself a few times. grep and sed are your friends there.
However, the pkgmoves related to kde-base are pretty much done, so I don't expect any more work for you in the future. |
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 8936
|
Posted: Fri Nov 11, 2016 10:06 am Post subject: |
|
|
Cyker wrote: | That's what I thought at first but it now seems like every other time I sync the KDE team have moved something that affects me that I have to repair. |
Well that's quite an exaggeration, there have been a batch of pkgmoves last week, after a long pause since Plasma-5 stabilisation. And it's all documented in profiles/updates directory so it is no guessing game which packages were moved.
Cyker wrote: | I don't even get why stuff had to be moved to kde-apps and now kde-plasma; It's not like it does something different from being in kde-base... |
Less duplicate ${PN} in different ${CATEGORY} and less last-rites necessary for the Plasma-4 removal. |
|
Back to top |
|
|
|