Re: [bakefile-devel] Install into src/src fails

Robert Vazan <[email protected]>
Newsgroups gmane.editors.poedit.user
Message-ID <Mahogany-0.65.0-393-20030725-113842.00__43057.8137901195$1077446142@pcw2k69.energoinfo.sk>
On Thu, 24 Jul 2003 22:38:44 +0200 Vaclav Slavik <[email protected]> wrote:

> Robert Vazan wrote:
> > After hacking away the problem with "2.2.3+" Python version that
> > was breaking configure script,
> 
> Could you please be more specific and explain both the problem and the 
> hack? Thanks!

The plus "+" sign causes problems. I modified my automake installation.
I am not in contact with automake maintainer as Gnu site is down, but I
will try later.

--- usr/share/aclocal/python.m4        Fri Oct 19 05:28:02 2001
+++ /usr/share/aclocal/python.m4        Thu Jul 24 18:49:46 2003
@@ -43,7 +43,7 @@
     changequote(<<, >>)dnl
     prog="
-import sys, string
+import sys, string, re
 minver = '$1'
-pyver = string.split(sys.version)[0]  # first word is version string
+pyver = re.search('^[0-9.]*',sys.version).group()  # first word is version string
 # split strings by '.' and convert to numeric
 minver = map(string.atoi, string.split(minver, '.'))

> > I am getting this error during "make 
> > install", because directory /usr/local/share/src/ is empty.
> >
> >  /usr/bin/install -c ./src/config.py
> > /usr/local/share//src/src/config.py /usr/bin/install: cannot create
> 
> Where does this weird directory come from? It's supposed to be 
> /usr/local/share/bakefile/src/config.py, I really don't see where 
> could "//src/src" come from? Can it be related to your hack?

Looks like automake problem. I have here automake 1.5, because 1.4
doesn't know anything about python. What version do you have?

That path can be read in Makefile. Variable codedir expands to
/usr/local/share//src and adding src/config.py creates double src/src. I
read something in automake docs about stripping directory names from
sources, but my config.py gets to Makefile as src/config.py.

prefix = /usr/local
datadir = ${prefix}/share
pkgdatadir = $(datadir)/
codedir = $(pkgdatadir)/src

-> codedir = /usr/local/share//src

code_PYTHON = src/config.py \
              src/bakefile.py \
              src/errors.py \
              src/finalize.py \
              src/flatten.py \
              src/mk.py \
              src/mk_dump.py \
              src/reader.py \
              src/utils.py \
              src/writer.py \
              src/xmlparser.py \
              src/outmethods.py

install-codePYTHON: $(code_PYTHON)
        @$(NORMAL_INSTALL)
        $(mkinstalldirs) $(DESTDIR)$(codedir)
        @list='$(code_PYTHON)'; for p in $$list; do\
          if test -f $(srcdir)/$$p; then \
            echo " $(INSTALL_PROGRAM) $(srcdir)/$$p $(DESTDIR)$(codedir)/$$p"; \
            $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(codedir)/$$p; \
          else :; fi; \
        done
        @PYTHON=$(PYTHON) $(py_compile) --basedir $(DESTDIR)$(codedir) $(code_PYTHON)



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.