Bug 283127 - Re-running kdesrc-build with no external changes fails due to "conflicting source dirs"
Summary: Re-running kdesrc-build with no external changes fails due to "conflicting so...
Status: RESOLVED FIXED
Alias: None
Product: kdesrc-build
Classification: Developer tools
Component: general (show other bugs)
Version: Git
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Michael Pyne
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-01 08:30 UTC by Eike Hein
Modified: 2012-12-22 21:07 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 1.16


Attachments
kdesrc-build config (15.29 KB, text/plain)
2011-10-01 08:30 UTC, Eike Hein
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eike Hein 2011-10-01 08:30:52 UTC
Created attachment 64119 [details]
kdesrc-build config

Yesterday I did a fresh kdesrc-build run with completely new dirs and a fresh config. Unfortunately I had to interrupt this run half-way through due to having to shut down the machine. As I re-ran "kdesrc-build" today, I got the following:

<<<  Build Process  >>>
Building qt-copy (1/45)
        Waiting for source code update.
Already on 'origin-4.8'
        LGPL license selected for Qt.  See /home/kdesrc/kdesrc/qt-copy/LICENSE.LGPL
        Running configure...
The source directory for kde-baseapps does not exist. kdesrc-build would download
it, except there is already a file or directory present in the desired source
directory:
        /home/kdesrc/kdesrc/kde/kde-baseapps

Please either remove the source directory yourself and re-run this script, or
pass the --delete-my-patches option to kdesrc-build and kdesrc-build will
try to do so for you.

DO NOT FORGET TO VERIFY THERE ARE NO UNCOMMITTED CHANGES OR OTHER VALUABLE
FILES IN THE DIRECTORY.


Error updating kde-baseapps, removing from list of packages to build.
 > Conflicting source-dir present at /home/kdesrc/kdesrc-build/kdesrc-build line 2955.

--- snip ---

This is pretty weird, since that source dir was created by kdesrc-build itself ...

Config is attached.
Comment 1 Michael Pyne 2011-10-01 15:49:31 UTC
Adding dfaure as he noted this to me in an email. FWIW I still can't reproduce in master (although I do keep getting a notification that the remote URL is wrong somehow)
Comment 2 Eike Hein 2011-10-01 16:24:49 UTC
Yeah, I ran a couple of times and somehow it had trouble cloning baseapps, and then later kate ... eventually i just kept rerunning and rerunning with --delete-my-patches and at some point it finished successfully. Sadly I didn't have time to keep an exact log :/.
Comment 3 David Faure 2011-10-04 11:39:53 UTC
I "fixed" this today in kdesrc-buildrc-sample by moving kde-baseapps before kate and konsole.
Comment 4 Michael Pyne 2011-10-04 21:28:08 UTC
Git commit edd09d94c2e50d360f8c48e16d9175481fbe2153 by Michael Pyne.
Committed on 04/10/2011 at 23:26.
Pushed by mpyne into branch 'master'.

Fix module build order regarding kde-baseapps.

kde-baseapps must precede kate and konsole since kate/konsole are
logically under kde-baseapps. Thanks to dfaure for finally nailing down
the cause of this bug.

I will keep the bug open until I develop a way to detect and
automatically correct the module ordering should this happen again.

CCBUG:283127

M  +3    -1    kdesrc-build-setup

http://commits.kde.org/kdesrc-build/edd09d94c2e50d360f8c48e16d9175481fbe2153
Comment 5 Michael Pyne 2012-12-22 21:07:24 UTC
I actually fixed this back in June with 57b741d374f9bc5403eb45a3ca90f1524ffb842c - "Depend on parent project modules if also in build."