[digikam] [Bug 345484] New: Add Eclipse support to bootstrap.linux, fix QT_INSTALL_PREFIX detection

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 345484] New: Add Eclipse support to bootstrap.linux, fix QT_INSTALL_PREFIX detection

Ulf Rompe
https://bugs.kde.org/show_bug.cgi?id=345484

            Bug ID: 345484
           Summary: Add Eclipse support to bootstrap.linux, fix
                    QT_INSTALL_PREFIX detection
           Product: digikam
           Version: 5.0.0
          Platform: unspecified
                OS: Linux
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: setup
          Assignee: [hidden email]
          Reporter: [hidden email]

Created attachment 91716
  --> https://bugs.kde.org/attachment.cgi?id=91716&action=edit
Patch for bootstrap.linux in the frameworks branch

Find attached a patch for bootstrap.linux that contains the following changes:

- Determine QT_INSTALL_PREFIX using "qtpaths" instead of "qmake".
- Add "--eclipse" option to create eclipse projects like mentioned in
  https://techbase.kde.org/Projects/Digikam/Hacking_with_Eclipse
  resulting in a local .project file as well as <dirname>-debug build project
  in the parent directory (must be this way because Eclipse doesn't
  allow stacked project folders).
- Any other option will output a short help. Maybe this is not obvious,
  but I didn't want to break the default generation of the build subdir if
  no arguments are given to not break anybodies scripts and
  documentation.
- Output a short followup instruction if cmake succeeded.
- Bump copyright year.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 345484] Add Eclipse support to bootstrap.linux, fix QT_INSTALL_PREFIX detection

Gilles Caulier-4
https://bugs.kde.org/show_bug.cgi?id=345484

Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #1 from Gilles Caulier <[hidden email]> ---
Interresting patch.

If this one is applied to git, the other one bootstrap.local will differe. It's
also dedicated to Linux.

Possible solutions : merge both or adjust bootstrap.local like bootstrap.linux.

Gilles Caulier

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 345484] Add Eclipse support to bootstrap.linux, fix QT_INSTALL_PREFIX detection

Ulf Rompe
In reply to this post by Ulf Rompe
https://bugs.kde.org/show_bug.cgi?id=345484

--- Comment #2 from Ulf Rompe <[hidden email]> ---
(In reply to Gilles Caulier from comment #1)
> Possible solutions : merge both or adjust bootstrap.local like
> bootstrap.linux.

Oh, I just understood why bootstrap.local exists. I think I will just merge it
into bootstrap.linux utilizing a command line option, adapt README.LOCAL and
leave bootstrap.local in place as a one line wrapper to prevent breaking
anybodies workflow. OK?

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 345484] Add Eclipse support to bootstrap.linux, fix QT_INSTALL_PREFIX detection

Gilles Caulier-4
In reply to this post by Ulf Rompe
https://bugs.kde.org/show_bug.cgi?id=345484

--- Comment #3 from Gilles Caulier <[hidden email]> ---
yes it's ok. It's that i planed to do if time permit.

Note that i never user .local file. So please .linux workflow must be the
default.

Gilles

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 345484] Add Eclipse support to bootstrap.linux, fix QT_INSTALL_PREFIX detection

Ulf Rompe
In reply to this post by Ulf Rompe
https://bugs.kde.org/show_bug.cgi?id=345484

Ulf Rompe <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #4 from Ulf Rompe <[hidden email]> ---
Created attachment 91808
  --> https://bugs.kde.org/attachment.cgi?id=91808&action=edit
Patch for bootstrap.linux, bootstrap.local and README.LOCAL

Incorporated bootstrap.local into bootstrap.linux

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 345484] Add Eclipse support to bootstrap.linux, fix QT_INSTALL_PREFIX detection

Ulf Rompe
In reply to this post by Ulf Rompe
https://bugs.kde.org/show_bug.cgi?id=345484

--- Comment #5 from Ulf Rompe <[hidden email]> ---
I just left bootstrap.local as a wrapper for bootstrap.linux. Since
bootstrap.local is designed to be edited in order to use it (no usable default
directory) it may as well be removed completely. The functionality is now
covered by bootstrap.local.

I already updated the references in README.LOCAL. However, this file still
needs some love. I'm quite sure the procedure needs to be adapted to work with
QT5. I will provide an update as soon as I figured out how to run a local
installation complete with kio plugins.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 345484] Add Eclipse support to bootstrap.linux, fix QT_INSTALL_PREFIX detection

Teemu Rytilahti
In reply to this post by Ulf Rompe
https://bugs.kde.org/show_bug.cgi?id=345484

Teemu Rytilahti <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #6 from Teemu Rytilahti <[hidden email]> ---
The local is indeed used for local installations. The script could be changed
to output a function/whatever method is nice to show how to launch the locally
installed digikam. I'm not just sure what'd be the proper way for it.

Locally I have just this function to set the paths in my zshrc:
function digikam-kf5() {
    DIGIKAMROOT="/home/tpr/storage/kde/digikam-kf5-install"
    export KDESYCOCA=$DIGIKAMROOT/var/tmp/kde-tpr/ksycoca4
    export QT_PLUGIN_PATH=$DIGIKAMROOT/lib64/plugins:$QT_PLUGIN_PATH
    export KDE_FORK_SLAVES=1
    export XDG_DATA_DIRS=$DIGIKAMROOT/share:$XDG_DATA_DIRS
    export LD_LIBRARY_PATH=$DIGIKAMROOT/lib:$DIGIKAMROOT/lib64/
    export KDEDIRS=$DIGIKAMROOT
    export PATH=$DIGIKAMROOT/bin:$PATH
}

but similar could be just used to launch it directly... What do you think?

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 345484] Add Eclipse support to bootstrap.linux, fix QT_INSTALL_PREFIX detection

Benjamin Girault-2
In reply to this post by Ulf Rompe
https://bugs.kde.org/show_bug.cgi?id=345484

Benjamin Girault <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #7 from Benjamin Girault <[hidden email]> ---
I orginally introduced bootstrap.local to be able to have several version of
digiKam installed on my system. *However*, this is something that one should
fully understand before doing it. Therefore, I believe that a typical user of
digiKam shouldn't be able to perform such an installation, and that it should
be kept for people knowing what they are doing, such as developpers or package
maintainers. That means in particular not helping too much (for a local
install). That being said, the reason behind a separate bootstrap file was to
be able to run both bootstrap scripts without problem, and to clearly separate
README files.

I like your solution of calling bootstrap.linux from bootstrap.local. This way,
bootstrap.linux is not modified by the user (less issues when helping users),
and only bootstrap.local has to be modified (and it's up to the user to figure
out any issue he/she encounter). I'd keep it like that.

For bootstrap.linux, please remove CLEAN_ROOT from it, and any reference to it
in the script, or at least, keep it in bootstrap.local. If
DIGIKAM_INSTALL_PREFIX is /usr, we do not want anyone to be able to do a mess
by setting it to 1! The DIGIKAM_INSTALL_PREFIX may also be removed since this
is local stuff. Also, the ccache stuff has nothing to do with digiKam, so I'd
remove it (if you need it, just put it in a custom boostrap.local). Same for
ADDITIONAL_CMAKE_FLAGS: this does not apply for a typical linux install, and it
can be included in a boostrap.local. In a nutshell, I'd put no configuration in
bootstrap.linux, only in bootstrap.local. The reference to README.local in
boostrap.linux is not useful either, only README is for this script. Some big
warning in boostrap.local (that I should have put in the beggining) plus a
reference to README.local would then suffice.

Teemu Rytilahti: I prefer the alias solution (see README.local) over your
function. The reason is that once your function is executed, the current shell
environment is modified until it is closed. The alias solution ensures that the
environment is left untouched, such that "digikam" always start the binary on
the system, as to opposed to the system or the local one depending on your
function being executed or not in your case.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 345484] Add Eclipse support to bootstrap.linux, fix QT_INSTALL_PREFIX detection

Ulf Rompe
In reply to this post by Ulf Rompe
https://bugs.kde.org/show_bug.cgi?id=345484

--- Comment #8 from Ulf Rompe <[hidden email]> ---
Thanks for your feedback, I will update the patch accordingly after next
weekend since I'm AFK for a week.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 345484] Add Eclipse support to bootstrap.linux, fix QT_INSTALL_PREFIX detection

Ulf Rompe
In reply to this post by Ulf Rompe
https://bugs.kde.org/show_bug.cgi?id=345484

Ulf Rompe <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #91716|0                           |1
        is obsolete|                            |
  Attachment #91808|0                           |1
        is obsolete|                            |

--- Comment #9 from Ulf Rompe <[hidden email]> ---
Created attachment 92135
  --> https://bugs.kde.org/attachment.cgi?id=92135&action=edit
Updated patch for bootstrap.linux, bootstrap.local and README.LOCAL

After having a hard time figuring out how to run a locally installed KF5
application (short version: KDEDIRS is ignored and setting LD_LIBRARY_PATH is
counterproductive now), I have updated README.LOCAL and bootstrap.local. Could
anyone please test this on a virgin system? Running bootstrap.local and
following the instructions should work out of the box.

I have also updated bootstrap.linux so it doesn't contain configuration anymore
and doesn't mention bootstrap.local. A warning has been added to
bootstrap.local.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 345484] Add Eclipse support to bootstrap.linux, fix QT_INSTALL_PREFIX detection

Gilles Caulier-4
In reply to this post by Ulf Rompe
https://bugs.kde.org/show_bug.cgi?id=345484

Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Version Fixed In|                            |5.0.0
             Status|UNCONFIRMED                 |RESOLVED
      Latest Commit|                            |http://commits.kde.org/scra
                   |                            |tch/mwiesweg/digikam-sc/305
                   |                            |d93516de0cf8cab0976200c0e1a
                   |                            |420b826355
         Resolution|---                         |FIXED

--- Comment #10 from Gilles Caulier <[hidden email]> ---
Git commit 305d93516de0cf8cab0976200c0e1a420b826355 by Gilles Caulier.
Committed on 30/04/2015 at 06:15.
Pushed by cgilles into branch 'frameworks'.

apply patch #92135 from Ulf Rompe to support Eclispe IDE project at config time
FIXED-IN: 5.0.0

M  +8    -10   README.LOCAL
M  +43   -15   bootstrap.linux
M  +22   -57   bootstrap.local

http://commits.kde.org/scratch/mwiesweg/digikam-sc/305d93516de0cf8cab0976200c0e1a420b826355

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel