[PATCH] bug 174806
Alexander Neundorf
neundorf at kde.org
Tue Apr 14 19:16:13 CEST 2009
On Monday 13 April 2009, Michael Witten wrote:
> 2009/4/12 Thiago Macieira <thiago at kde.org>:
> > Michael Witten wrote:
> >>> I repeat once again: unless the user tells us so in the command-line,
> >>> do not install anything outside the prefix.
> >>
> >>I understand this sentiment, and I'm inclined to agree with it, but
> >> setting PYTHONPATH is not really a suitable answer, because it is
> >> searched before the default paths, which could be problematic, in
> >> general.
> >
> > Sorry, it has to be. If you don't want to set PYTHONPATH, then you should
> > pass the argument to cmake and install as root.
> >
> > Like I said: configure --prefix=/usr --sysconfigdir=/etc
>
> I agree with this policy as a matter of theory. However, I think
> installing to a known site-packages is much more practical; after all,
> if you really want things in a nonstandard location (from python's
> view) like the KDE prefix, you're free to use
> -DPYTHON_SITE_PACKAGES_INSTALL_DIR=...
>
> By default, I suggest it's better to work with python rather than make
> python work with KDE; at least it would be useful to provide titular
> modules that can find the real stuff in the KDE prefix.
>
> Of course, the problem with using site-packages is that an upgrade of
> python will require PYTHONPATH anyway to point to the old
> site-packages (unless people are smart enough to compile python to
> look there too), or the KDE python bindings will need to be
> reinstalled for the new site-packages. However, it makes sense that an
> extraordinary upgrade should require extraordinary measures.
>
> In any case, I conceed. I don't really care where these things are
Personally I don't have a strong opinion on this.
Until now there was no explicit strict rule "you must not install outside
CMAKE_INSTALL_PREFIX !", no complaints on this from my side.
How do other projects behave ?
I forgot whether I checked this: do you honor the DESTDIR env.var. during
install ? That's a must.
> >>> As for the cosmetic changes, it's necessary to address them, since
> >>> there are a lot of them, which means reviewing your patches is hard.
> >>
> >> * Repeated args for ELSE, ENDIF, ENDFOR, ENDWHILE, etc. (This is
> >> a huge mistake in my opinion. I think the entire codebase should
> >> have that nonsense filtered out; I will one day write a Perl
> >> script to do exactly that.
> >
> > Not your decision to make. While it's mandated, you follow it. But that's
> > not my point.
>
> I care more about progress than I do about worshipping bad policies.
> But that's not my point.
This is how it had to be with cmake 2.4.x, i.e. KDE 4.0.x and KDE 4.1.x, and
simply because of this I'd prefer not to change that now.
There were no major complaints about this in the last time, it seems people
got used to it :-)
> > How about the changes to regexp, changing \\. to [.] ? That's
> > unnecessary. I'm not saying you shouldn't do it, but do it in a separate
> > patch... you're trying to do too much in one single patch. Please split
> > it into multiple patches, each one doing one specific thing.
>
> Your request is completely reasonable and is aligned with my modus
> operandi.
>
> However, your request is unreasonable until KDE starts using a real
> version control system like git. In my case, I wanted to look into a
> completely different issue, so I checked out the svn trunk and got
> stalled on this bug; I hadn't intended to provide any extensive
> patches until I was steeped in this problem, so I never bothered to
> convert the working directory to a sane system.
>
> My patches are pretty clean. As for your example of patch noise, I had
> already rewritten 70% of the file, so I decided to make the rest of
> that one file match with my new code by capitalizing the cmake
> commands (this also matches most KDE cmake code and as well as the
> cmake code used for cmake itself). Because I had already modified the
> line, why not make the regular expression a little more sane too?
> Should I have done this in a separate patch? I would have, if I hadn't
> been tricked into using something as subpar as svn.
Separate smaller patches would be nicer, but a big one (which then needs a bit
more documentation/comments than multiple smaller ones) is also ok.
So, I'm looking forward to the updated version of your patch.
Alex
More information about the Kde-buildsystem
mailing list