Re: [Geany-devel] Broken plugin autofools (Was: [ANNOUNCE] gproject - yet another geany project plugin)

2010-06-10 Thread Lex Trotman
On 10 June 2010 16:23, Chow Loong Jin hyper...@gmail.com wrote:
 On Thu, 10 Jun 2010 11:16:53 +1000
 Lex Trotman ele...@gmail.com wrote:

 Hi Chow,

 remembering that I'm AC_illiterate :) the problem seems to be that
 plugins configure where they install based on where geany's pkg-config
 says, ignoring what the --prefix option says.

 The --prefix should override the standard location

 Ah yes, there was that issue. My intention was for it to use Geany's prefix,
 simply because there really isn't a point in stuffing plugins where you don't
 have a Geany installation. e.g. Geany in /usr, but geany-plugins at /usr/local
 would cause some confusion. Hence, what was done was:

 1. autodetect Geany's ${pkglibdir} and install plugins in there.

Oh yes thats correct for system installed versions.

 2. Allow manual specification of Geany's prefix by
 --with-geany-prefix=/some/other/path

Ahhh, I'd never heard of the --with-geany-prefix option, that would be
why I didn't use it.


 Come to think of it, I don't really remember why I wanted to use
 --with-geany-prefix separately from --prefix. Perhaps --with-geany-prefix's
 functionality should be shifted to --prefix instead. What do you think? That
 should fix all your issues.

Yes I think that would do it, thanks,

I guess I am expecting that if I configured a version of Geany with
--prefix then plugins configured the same would link with the ABI and
install in the directories of the Geany with the same --prefix.

For testing a plugin like Jiri's which needs a modified version of
Geany to run, it needs to use the version of Geany with the patches in
it, not the system install.

Cheers
Lex

 --
 Kind regards,
 Chow Loong Jin

 ___
 Geany-devel mailing list
 Geany-devel@uvena.de
 http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel


___
Geany-devel mailing list
Geany-devel@uvena.de
http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel


Re: [Geany-devel] Broken plugin autofools (Was: [ANNOUNCE] gproject - yet another geany project plugin)

2010-06-10 Thread Chow Loong Jin
On Thu, 10 Jun 2010 17:29:26 +0200
Jiří Techet tec...@gmail.com wrote:

 On Thu, Jun 10, 2010 at 08:23, Chow Loong Jin hyper...@gmail.com
 wrote:
  On Thu, 10 Jun 2010 11:16:53 +1000
  Lex Trotman ele...@gmail.com wrote:
 
  Hi Chow,
 
  remembering that I'm AC_illiterate :) the problem seems to be that
  plugins configure where they install based on where geany's
  pkg-config says, ignoring what the --prefix option says.
 
  The --prefix should override the standard location
 
  Ah yes, there was that issue. My intention was for it to use
  Geany's prefix, simply because there really isn't a point in
  stuffing plugins where you don't have a Geany installation. e.g.
  Geany in /usr, but geany-plugins at /usr/local would cause some
  confusion. Hence, what was done was:
 
  1. autodetect Geany's ${pkglibdir} and install plugins in there.
  2. Allow manual specification of Geany's prefix by
  --with-geany-prefix=/some/other/path
 
  Come to think of it, I don't really remember why I wanted to use
  --with-geany-prefix separately from --prefix. Perhaps
  --with-geany-prefix's functionality should be shifted to --prefix
  instead. What do you think? That should fix all your issues.
 
 You can have a look what I do in gproject:
 
 http://gitorious.org/gproject/mainline/blobs/master/configure.ac
 http://gitorious.org/gproject/mainline/blobs/master/src/Makefile.am
 
 I would say it's sufficient this way, or do you see some problem
 there?

You also need to export PKG_CONFIG_PATH=${libdir}/geany prior to
PKG_CHECK_MODULES, so that you get the correct GEANY_CFLAGS and
GEANY_LIBS (otherwise it'll take the system-wide one for compiling).

-- 
Kind regards,
Chow Loong Jin


signature.asc
Description: PGP signature
___
Geany-devel mailing list
Geany-devel@uvena.de
http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel


Re: [Geany-devel] Broken plugin autofools (Was: [ANNOUNCE] gproject - yet another geany project plugin)

2010-06-09 Thread Chow Loong Jin
On Wed, 9 Jun 2010 23:22:51 +1000
Lex Trotman ele...@gmail.com wrote:

 Sigh, this isn't your fault, but I have problems with installing
 unknown software to system directories and plugins autofools is broken
 WRT installing to a non-standard prefix, waf build works if your
 plugin had a wscript.

Please explain in further detail, so that it can be fixed. Thanks.

-- 
Kind regards,
Chow Loong Jin


signature.asc
Description: PGP signature
___
Geany-devel mailing list
Geany-devel@uvena.de
http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel


Re: [Geany-devel] Broken plugin autofools (Was: [ANNOUNCE] gproject - yet another geany project plugin)

2010-06-09 Thread Jiří Techet
On Wed, Jun 9, 2010 at 16:56, Chow Loong Jin hyper...@gmail.com wrote:
 On Wed, 9 Jun 2010 23:22:51 +1000
 Lex Trotman ele...@gmail.com wrote:

 Sigh, this isn't your fault, but I have problems with installing
 unknown software to system directories and plugins autofools is broken
 WRT installing to a non-standard prefix, waf build works if your
 plugin had a wscript.


Ah, I think I just misread this paragraph - there were really many
strange things in the geanyprj configure.ac (e.g. make distcheck
didn't work because of the hardcoded plugin directory) - that's why I
modified it quite heavily and installing to arbitrary prefix should
work (at least make distcheck, which tests this, works now).

Regards,

Jiri

 Please explain in further detail, so that it can be fixed. Thanks.

 --
 Kind regards,
 Chow Loong Jin

 ___
 Geany-devel mailing list
 Geany-devel@uvena.de
 http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel


___
Geany-devel mailing list
Geany-devel@uvena.de
http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel


Re: [Geany-devel] Broken plugin autofools (Was: [ANNOUNCE] gproject - yet another geany project plugin)

2010-06-09 Thread Lex Trotman
Hi Chow,

remembering that I'm AC_illiterate :) the problem seems to be that
plugins configure where they install based on where geany's pkg-config
says, ignoring what the --prefix option says.

The --prefix should override the standard location

Cheers
Lex

On 10 June 2010 00:56, Chow Loong Jin hyper...@gmail.com wrote:
 On Wed, 9 Jun 2010 23:22:51 +1000
 Lex Trotman ele...@gmail.com wrote:

 Sigh, this isn't your fault, but I have problems with installing
 unknown software to system directories and plugins autofools is broken
 WRT installing to a non-standard prefix, waf build works if your
 plugin had a wscript.

 Please explain in further detail, so that it can be fixed. Thanks.

 --
 Kind regards,
 Chow Loong Jin

 ___
 Geany-devel mailing list
 Geany-devel@uvena.de
 http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel


___
Geany-devel mailing list
Geany-devel@uvena.de
http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel