Opened 12 years ago

Closed 12 years ago

#2553 closed Bug (fixed)

autogen failure: "aclocal: couldn't open directory `m4': No such file or directory"

Reported by: charles Owned by: charles
Priority: Normal Milestone: 1.90
Component: Transmission Version: 1.83
Severity: Normal Keywords:
Cc:

Description

A handful of users have reported this problem over the last week. Credit goes to Rolcol for finding this fix:

10:36 < Rolcol> charles: the problem I was having with autogen.sh was that autoconf2.50 (version in Ubuntu) needed the full directory for m4/
10:39 < Rolcol> charles: I changed line 27 in autogen.sh to  autoreconf -fi -I ${ORIGDIR}/m4

Change History (8)

comment:1 Changed 12 years ago by charles

  • Owner set to charles
  • Status changed from new to assigned

Fixed in trunk for 1.80 by r9479

comment:2 Changed 12 years ago by charles

  • Resolution set to fixed
  • Status changed from assigned to closed

comment:3 Changed 12 years ago by Rolcol

Thanks! I was wrong about the version, however. It's 2.64.

comment:4 Changed 12 years ago by charles

backported to 1.7x in r9874

comment:5 Changed 12 years ago by charles

  • Milestone changed from 1.80 to 1.77

comment:6 Changed 12 years ago by charles

  • Keywords backport-1.7x removed

comment:7 Changed 12 years ago by xrra

  • Milestone changed from 1.77 to 1.84
  • Resolution fixed deleted
  • Status changed from closed to reopened
  • Version changed from 1.76 to 1.83+

Short description: The fix for #2553 lacks quotes.

Long description: When running autogen.sh (the one in the main directory, not the one in third-party/libevent), and the sources are in an (absolute!) directory that contains spaces, e.g. "/tmp/dir ect ory/transmission-1.83/", then building ultimately fails with ./autogen.sh.error: line 44: ./configure: No such file or directory

This is due to a lack of quoting around the -I argument of autoreconf. All other references to $ORIGDIR are already quoted. A autogen.sh patch for this problem could be:

27c27
< autoreconf -fi -I ${ORIGDIR}/m4
---
> autoreconf -fi -I "${ORIGDIR}/m4"

comment:8 Changed 12 years ago by charles

  • Milestone changed from 1.84 to 1.90
  • Resolution set to fixed
  • Status changed from reopened to closed
  • Version changed from 1.83+ to 1.83

xrra: I wish all patches were this well-researched. Thanks very much for the description, for the patch, and for tracking down the correct ticket.

Patch committed to trunk for 1.90 by r10151.

Adding backport-1.8x tag. In the unlikely event that we have another 1.8x release, this fix should be included in it.

Note: See TracTickets for help on using tickets.