Re: gEDA-user: desktop-i18n in gEDA

2010-02-24 Thread Peter TB Brett
On Tue, 23 Feb 2010 23:16:49 -0500, Charles Lepple clep...@gmail.com
wrote:
 
 I think the Fedora build is silently accepting the other directory  
 under BUILDROOT:
 
 Making install in po
 make[3]: Entering directory `/builddir/build/BUILD/geda-gaf-1.6.0/ 
 libgeda/po'
 /usr/bin/make prefix=../../.desktop-i18n installcp ./ 
 LINGUAS ../../.desktop-i18n/libgeda38.LINGUAS || rm stamp-i18n
 make[4]: Entering directory `/builddir/build/BUILD/geda-gaf-1.6.0/ 
 libgeda/po'
 /bin/mkdir -p /builddir/build/BUILDROOT/geda-gaf-1.6.0-3.fc13.i386/usr/ 
 share
 installing nl.gmo as /builddir/build/BUILDROOT/geda- 
 gaf-1.6.0-3.fc13.i386../../.desktop-i18n/share/locale/nl/LC_MESSAGES/ 
 libgeda38.mo
 ...
 

Wow, that's pretty epicly broken of something, especially since I'm being
careful to specify the DESKTOP_I18N_LOCALE_DIR relative to $(top_builddir).
Please check the Makefile in the po directories to verify that
'@DESKTOP_I18N_LOCALE_DIR@' is expanded to '$(top_builddir)/.desktop-i18n'.

I'm open to suggestions as to how to fix this, because I still can't see
what I've done wrong here. :-| 

Peter

-- 
Peter Brett pe...@peter-b.co.uk
Remote Sensing Research Group
Surrey Space Centre


___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: desktop-i18n in gEDA

2010-02-24 Thread Charles Lepple
On Wed, Feb 24, 2010 at 5:37 AM, Peter TB Brett pe...@peter-b.co.uk wrote:
 On Tue, 23 Feb 2010 23:16:49 -0500, Charles Lepple clep...@gmail.com
 wrote:

 I think the Fedora build is silently accepting the other directory
 under BUILDROOT:

 Making install in po
 make[3]: Entering directory `/builddir/build/BUILD/geda-gaf-1.6.0/
 libgeda/po'
 /usr/bin/make prefix=../../.desktop-i18n install    cp ./
 LINGUAS ../../.desktop-i18n/libgeda38.LINGUAS         || rm stamp-i18n
 make[4]: Entering directory `/builddir/build/BUILD/geda-gaf-1.6.0/
 libgeda/po'
 /bin/mkdir -p /builddir/build/BUILDROOT/geda-gaf-1.6.0-3.fc13.i386/usr/
 share
 installing nl.gmo as /builddir/build/BUILDROOT/geda-
 gaf-1.6.0-3.fc13.i386../../.desktop-i18n/share/locale/nl/LC_MESSAGES/
 libgeda38.mo
 ...


 Wow, that's pretty epicly broken of something, especially since I'm being
 careful to specify the DESKTOP_I18N_LOCALE_DIR relative to $(top_builddir).
 Please check the Makefile in the po directories to verify that
 '@DESKTOP_I18N_LOCALE_DIR@' is expanded to '$(top_builddir)/.desktop-i18n'.

Here's the corresponding portion of libgeda/po/Makefile from 1.6.1 on
my machine: (very similar to 1.6.0 but I forgot to save that build
directory)

 top_builddir = ../..
 MKDIR_P = /sw/bin/gmkdir -p

 DESKTOP_I18N_LOCALE_DIR = $(top_builddir)/.desktop-i18n

It seems that DESTDIR is prepended to top_builddir without an
intermediate libgeda/po for the ../.. part to consume.

 I'm open to suggestions as to how to fix this, because I still can't see
 what I've done wrong here. :-|

I don't know either. Are there any other packages which try to use
gettext in this fashion?

-- 
- Charles Lepple


___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: desktop-i18n in gEDA

2010-02-23 Thread Charles Lepple

[cc'ing geda-user since it looks like my subscription is all sorted out]

On Feb 19, 2010, at 9:54 AM, Peter TB Brett wrote:


Charles Lepple wrote:

Peter,

sorry to email you directly, but I am having some issues  
subscribing to geda-user. (I'll email Ales later today.)


I am trying to package up geda-gaf 1.6.1  for Fink, and it is  
trying to install some files outside the build root.


The whole log is here:

http://www.ghz.cc/charles/tmp/fink-build-log-geda-2010-02-17.txt.gz

The lines I am concerned with are here:

make prefix=../../.desktop-i18n install   cp ./ 
LINGUAS ../../.desktop-i18n/geda-gschem.LINGUAS|| rm stamp-i18n
/sw/bin/gmkdir -p /sw/src/fink.build/root-geda- 
gaf-1.6.1-0../../.desktop-i18n/share
/sw/bin/gmkdir: cannot create directory `/sw/src/fink.build/root- 
geda-gaf-1.6.1-0..': Permission denied

make[4]: *** [install-data-yes] Error 1
Can you please help me understand what the desktop-i18n code is  
trying to do here?
desktop-i18n needs to use gettext to translate the gEDA .desktop and  
mimeinfo files. Unfortunately, gettext only works if it's pointed at  
a a validly-structured locale directory containing compiled  
translation databases. In order to provide this, desktop-i18n adds  
rules to the po directory makefiles to 'install' the translation  
databases into ${builddir}/.desktop-i18n. It appears that setting  
DESTDIR is somehow interfering with this.


Though they use a very similar package build methodology, the Fedora  
and Debian packagers don't seem to have experienced this issue; I'd  
expect to have have heard from them by now! Perhaps there's  
something they're doing differently?


I think the Fedora build is silently accepting the other directory  
under BUILDROOT:


Making install in po
make[3]: Entering directory `/builddir/build/BUILD/geda-gaf-1.6.0/ 
libgeda/po'
/usr/bin/make prefix=../../.desktop-i18n install  	cp ./ 
LINGUAS ../../.desktop-i18n/libgeda38.LINGUAS 	|| rm stamp-i18n
make[4]: Entering directory `/builddir/build/BUILD/geda-gaf-1.6.0/ 
libgeda/po'
/bin/mkdir -p /builddir/build/BUILDROOT/geda-gaf-1.6.0-3.fc13.i386/usr/ 
share
installing nl.gmo as /builddir/build/BUILDROOT/geda- 
gaf-1.6.0-3.fc13.i386../../.desktop-i18n/share/locale/nl/LC_MESSAGES/ 
libgeda38.mo

...

That was from the build log here: 
http://kojipkgs.fedoraproject.org/packages/geda-gaf/1.6.0/3.fc13/data/logs/i686/build.log

Apparently that web site requires the exact package name, so here's a  
direct link to the geda-gaf status page: http://koji.fedoraproject.org/koji/packageinfo?packageID=9271


The Debian logs that I checked did not seem to show that level of  
detail.


[ One possibility to investigate is that of running 'make all'  
without DESTDIR and then 'make install' with DESTDIR. ]


The Fink build process is currently running make all without DESTDIR.

I could add a slash to the path being passed into DESTDIR, but that  
wouldn't work either (the build process can't write to /sw/src, just  
its allocated (/sw/src/fink.build/root-name_of_package-ver-rev).


--
Charles Lepple


___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user