[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: desktop-i18n in gEDA



[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@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user