public inbox for gentoo-catalyst@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-catalyst] [PATCH 5/5] Drop PORTDIR from make.conf
@ 2021-02-04  0:45 Felix Bier
  2021-02-21  1:58 ` Matt Turner
  0 siblings, 1 reply; 2+ messages in thread
From: Felix Bier @ 2021-02-04  0:45 UTC (permalink / raw
  To: gentoo-catalyst@lists.gentoo.org

This commit drops PORTDIR from being included in the generated
make.conf. The variable is no longer needed, since the existing code
will now generate a repos.conf entry for the main repo when needed
(i.e. when the location is non-default, which is the same condition
that was applied for PORTDIR in the code removed by this commit).

The PORTDIR variable is considered deprecated in favor of
repos.conf entries (reference: https://wiki.gentoo.org/wiki/PORTDIR).

Signed-off-by: Felix Bier <felix.bier@rohde-schwarz.com>
---
These patches are intended for application top of 50ba8aad (current master).
To test for formatting issues, I sent the patches to myself, exported the mails
as mbox files and applied them with git am *mbox.

Best regards,
Felix

---
 catalyst/base/stagebase.py | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py
index 97e2318c..bc0eccd0 100644
--- a/catalyst/base/stagebase.py
+++ b/catalyst/base/stagebase.py
@@ -1092,12 +1092,6 @@ class StageBase(TargetBase, ClearBase, GenBase):
                     myf.write(hostuseexpand + '="' +
                               ' '.join(myuseexpandvars[hostuseexpand]) + '"\n')
 
-            # Write non-default PORTDIR/DISTDIR/PKGDIR settings to make.conf
-            if (self.settings['repo_basedir'], self.settings['repo_name']) != \
-               (confdefaults['repo_basedir'], confdefaults['repo_name']):
-                myf.write('PORTDIR="%s/%s"\n' % (self.settings['repo_basedir'],
-                                                 self.settings['repo_name']))
-
             for x in ['target_distdir', 'target_pkgdir']:
                 if self.settings[x] != confdefaults[x]:
                     varname = x.split('_')[1].upper()
-- 
2.30.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [gentoo-catalyst] [PATCH 5/5] Drop PORTDIR from make.conf
  2021-02-04  0:45 [gentoo-catalyst] [PATCH 5/5] Drop PORTDIR from make.conf Felix Bier
@ 2021-02-21  1:58 ` Matt Turner
  0 siblings, 0 replies; 2+ messages in thread
From: Matt Turner @ 2021-02-21  1:58 UTC (permalink / raw
  To: gentoo-catalyst

'On Wed, Feb 3, 2021 at 7:45 PM Felix Bier <Felix.Bier@rohde-schwarz.com> wrote:
>
> This commit drops PORTDIR from being included in the generated
> make.conf. The variable is no longer needed, since the existing code
> will now generate a repos.conf entry for the main repo when needed
> (i.e. when the location is non-default, which is the same condition
> that was applied for PORTDIR in the code removed by this commit).
>
> The PORTDIR variable is considered deprecated in favor of
> repos.conf entries (reference: https://wiki.gentoo.org/wiki/PORTDIR).

Thank you! The patches look great. I've committed them.

> Signed-off-by: Felix Bier <felix.bier@rohde-schwarz.com>
> ---
> These patches are intended for application top of 50ba8aad (current master).
> To test for formatting issues, I sent the patches to myself, exported the mails
> as mbox files and applied them with git am *mbox.

I appreciate that!

For whatever reason I still had some trouble applying them. I ran
dos2unix, deleted the 'Content-Transfer-Encoding: base64' header and
ran base64 -d on the body and they applied cleanly. Strange.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-02-21  1:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-04  0:45 [gentoo-catalyst] [PATCH 5/5] Drop PORTDIR from make.conf Felix Bier
2021-02-21  1:58 ` Matt Turner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox