Modify

Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#143 closed defect (fixed)

make install fails

Reported by: tacker Owned by: bas
Priority: normal Component: EmailtoTracScript
Severity: blocker Keywords:
Cc: Trac Release:

Description

Trying to install on Gentoo Linux make install fails (see last dump)

# ./configure --with-trac_user=apache --sysconfdir=/etc
checking for python... /usr/bin/python
checking for python version... 2.4
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.4/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.4/site-packages
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking whether gcc needs -traditional... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating email2trac.py
config.status: creating delete_spam.py
# make
gcc -DMTA_USER=\"nobody\" -DTRAC_USER=\"apache\" -DTRAC_SCRIPT_NAME=\"\" -DTRAC_SCRIPT_PATH=\"/bin\" -DDEBUG=0 -o run_email2trac run_email2trac.c
# make install
install --mode=4700 --owner=root run_email2trac /bin
for script in delete_spam.py email2trac.py ; \
do \
          name=`basename $script '.py'` ; \
  install --mode=755 --owner=root $script  /bin/$name
/bin/sh: -c: line 1: syntax error: unexpected end of file
make: *** [install] Error 2

Attachments (0)

Change History (4)

comment:1 Changed 9 years ago by kilian.cavalotti@…

Fix (WorksForMe(tm)):

-- Makefile.in.orig    2006-01-20 15:01:46.000000000 +0100
+++ Makefile.in 2006-01-20 15:15:56.000000000 +0100
@@ -29,12 +29,8 @@
        $(CC) $(CFLAGS) -o $@ run_email2trac.c

 install: all
-       install --mode=4700 --owner=root run_email2trac $(EXEC_PREFIX)
-       for script in $(PYTHON_FILES) ; \
-       do \
-          name=`basename $$script '.py'` ; \
-         install --mode=755 --owner=root $$script  $(EXEC_PREFIX)/$$name
-       done
+       install -D --mode=4700 --owner=root run_email2trac $(EXEC_PREFIX)/run_email2trac
+       for script in $(PYTHON_FILES) ; do install --mode=755 --owner=root $$script  $(EXEC_PREFIX)/$$script; done

 clean:
        rm run_email2trac

comment:2 Changed 9 years ago by tacker

Patch works for me too.

comment:3 Changed 9 years ago by anonymous

  • Keywords fixed in 0.4.2 added
  • Resolution set to fixed
  • Status changed from new to closed

Fixed the make install in the trunk version. There were serveral errors. Thanks for reporting

comment:4 Changed 8 years ago by athomas

  • Keywords fixed in 0.4.2 removed

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.