Now more possible errors are shown (such as using use-modules outside of a module set,
using global options inside a module, etc.), and other minor improvements should be there.
svn path=/trunk/KDE/kdesdk/scripts/kdesrc-buildrc.xml; revision=1208525
move of Phonon to git.kde.org.
Thanks to Eike Hein for the heads-up.
CCMAIL:hein@kde.org
svn path=/trunk/KDE/kdesdk/scripts/kdesrc-build; revision=1208506
instead of always checking results and then calling exit if there were problems.
I had previously avoided the use of "die" since the error message claims it's a
kdesrc-build bug, so I migrated over a later hack I'd put into place to tell
apart actually Perl exceptions throw due to bugs from intentional runtime error
exceptions thrown by kdesrc-build.
svn path=/trunk/KDE/kdesdk/scripts/kdesrc-build; revision=1207660
occurred to me that I broke it (the repository special feature, the whole point
to module-set, was broken). That is now fixed, and the kdesrc-buildrc-sample
file is updated to reflect how to use module-set currently.
svn path=/trunk/KDE/kdesdk/scripts/kdesrc-build; revision=1207658
OK, so I had the idea last week to remove the repository name from the module-set
parameter, and add the ability to have the 'repository' option automatically use aliases
defined by git-repository-base. dfaure seemed to like that, and I've heard no other
negative feedback, so I've gone ahead and implemented that. (The old style is a syntax
error instead of me being nice and accepting it since it's never been part of a release).
So now, something like this should work:
module-set
use-modules automoc akonadi attica # and etc.
repository kde
end module-set
For a "kde" repository previously defined in a git-repository-base in the global section.
You can throw any other option into that module-set, and it will be applied to all of the
modules (that's been true for about a week now).
While I was at it, I fixed the source update for git modules to actually give
the "Updating" or "Cloning" module message similar to how svn modules are
noted, and I've added a warning if a module-set with no use-modules is declared.
I'd like for this to be all the new features before the next release, so please keep
testing!
svn path=/trunk/KDE/kdesdk/scripts/kdesrc-build; revision=1207654
kdesrc-build use its internal 'git remote' name to avoid messing with the user's
git-remote settings).
If you don't like it, please manually change 'origin' (or whatever git-remote you're
using) to point to your desired repository, or lobby for me to have kdesrc-build just
always use origin. Either way. ;)
svn path=/trunk/KDE/kdesdk/scripts/kdesrc-build; revision=1207651
As recommended by dfaure, a module-set will allow options to be set within the set, and
these options will be applied to every module that kdesrc-build defines based on the
use-module statement.
It remains possible to individually override options for a single module by making a
module declaration after the module-set is defined.
As always, please test. In addition, I am thinking of removing the repository parameter
to module-set, and compensating by allowing a previously declared git repository base to
be used in the existing "repository" option. e.g. something like
module-set
repository kde-git # Defined earlier
use-modules <modules>
cmake-options -DCMAKE_BUILD_TYPE=debugfull
end module-set
CCMAIL:dfaure@kde.org
svn path=/trunk/KDE/kdesdk/scripts/kdesrc-build; revision=1204574
This commit adds two options (not yet documented in the DocBook):
1. git-repository-base, which defines a new repository alias (kde-git in the sample file)
In order to actually use this repository alias, you can use a new type of module
(unimagineatively called a "module-set") like so:
global
...
end global
module-set $repo_name
use-modules <list of git modules e.g. akonadi attica soprano k3b etc.>
end module-set
No other options are supported in a module-set at this point. kdesrc-build treats a
module-set as if you'd simply manually declared a new module for each item you passed
to use-modules, and sets the "repository" option for each new module to the base URL
(as determined by repo_name), with the module name tacked on.
kdesrc-build will filter any trailing .git off of the virtual module name.
If you still want to add options for a module, you can simply manually declare a module
of that name after the module-set, and choose options there (it won't change the build
order though).
Hopefully this makes it that much easier to use the plethora of git modules that have
been getting successfully transferred over to git.kde.org. PLEASE let me know if I've
broken something here or otherwise improperly implemented it. CC'ing dfaure since I
figure he'll be interested and/or have feedback.
CCMAIL:dfaure@kde.org
svn path=/trunk/KDE/kdesdk/scripts/kdesrc-build; revision=1204410
and your test results will be uploaded to http://my.cdash.org
CCMAIL: mpyne@kde.org, nicolas.alvarez@gmail.com
svn path=/trunk/KDE/kdesdk/scripts/kdesrc-build; revision=1198713
* kdesrc-build no longer prepends entries to the path that it normally would (such as
$KDEDIR/bin, $QTDIR/bin) if it finds that those entries already exist in the system's
environment variable. (This affects PATH, LD_LIBRARY_PATH, and PKG_CONFIG_PATH for the
most part). The reasoning is that we always want system path entries to be the
least-preferred, so promoting them to near the beginning of the environment variable
inadevertently could have the ill effect of mixing system resources with what we're
trying to build. This was noticed by Jeremy Whiting who is using a system Qt (in /usr)
and had to hack around kdesrc-build to make it work.
* The 'binpath' setting in its first incarnation simply set PATH directly to that value,
so that the then-kdecvs-build could work fine from cron. It later took on a
default value of $PATH, for ease of interactive use, and even later
kdesrc-build changed the way we construct environment variables, so that now
it is PATH=$binpath:$implicitly_set_vars:$PATH. But binpath itself contains
$PATH, which makes this incorrect. Now binpath defaults to nothing, which
should help ensure a correct build, and setting binpath simply prepends those entries
to the front of PATH without clearing the ones already set. (If you need to actually
clear entries, you'll need to do so at the shell or use some kind of wrapper script).
svn path=/trunk/KDE/kdesdk/scripts/kdesrc-build; revision=1198244
so that they can be used even from a KDE running in another prefix (http://markmail.org/message/4p3krovtnzwx35zd)
svn path=/trunk/KDE/kdesdk/doc/scripts/kdesrc-build/; revision=1188169
of the form user@git.kde.org:/path/to/repo.git
Reported by Eike Hein.
CCMAIL:hein@kde.org
svn path=/trunk/KDE/kdesdk/scripts/kdesrc-build; revision=1180114
* It is now controlled by an option 'build-when-unchanged' which defaults to true,
so the optimization must now be explicitly enabled.
* The build is only skipped if the module was successfully installed (as determined
by the persistent data recorded last run).
* A command-line option, --force-build is added, along with
--no-build-when-unchanged to be symmetric with the rc-file option.
The new command line option and rc-file option are also documented and added to the
Kate/Kwrite syntax highlighting file.
BUG:248826
FIXED-IN:1.12.1
svn path=/trunk/KDE/kdesdk/doc/scripts/kdesrc-build/; revision=1168981
Remove internal names of removed options to ensure they are not referenced from
elsewhere in the documentation.
svn path=/trunk/KDE/kdesdk/doc/scripts/kdesrc-build/; revision=1168575