Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Sep 2007 10:41:34 +0200
From:      Nikola Lecic <nlecic@EUnet.yu>
To:        "Sunry Chen" <sunrychen@gmail.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Install ctorrent-3.2_1 error, Makefile error?
Message-ID:  <200709060722.l867MsVV024729@smtpclu-7.EUnet.yu>
In-Reply-To: <c96f04920709051959q51781c86jdb02e1399151f3e2@mail.gmail.com>
References:  <c96f04920709051959q51781c86jdb02e1399151f3e2@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 6 Sep 2007 10:59:56 +0800
"Sunry Chen" <sunrychen@gmail.com> wrote:

> [root@www /usr/ports/net-p2p/ctorrent]# make install
> =3D=3D=3D>  Installing for ctorrent-3.2_1
> =3D=3D=3D>   Generating temporary packing list
> =3D=3D=3D>  Checking if net-p2p/ctorrent already installed
> test -z "/usr/local/bin" || /bin/sh ./mkinstalldirs "/usr/local/bin"
>   install  -s -o root -g wheel -m 555 'ctorrent'
> '/usr/local/bin/ctorrent' /bin/mkdir -p /usr/local/share/doc/ctorrent
> install  -o root -g wheel -m 444
> /usr/ports/net-p2p/ctorrent/work/ctorrent-dnh3.2/README-DNH.TXT
> UserGuide /usr/local/share/d
> oc/ctorrent/
> install: UserGuide: No such file or directory
> *** Error code 71
>=20
> Stop in /usr/ports/net-p2p/ctorrent.
> -------------------------------------------------------------------------=
---
> README-DNH.TXT and UserGuide files are there in the same directory,
> but make install can't get UserGuide found. Can solve it by doing some
> adjust in Makefile, is this the problem caused by Makefile?

Hello Sunry Chen,

No, Makefile is OK. But for some reason, your make ignores the space
between README-DNH.TXT and UserGuide (PORTDOCS) and send them together
to the install command, and not one by one through for loop. Hence the
error. The logical steps could be:

(1) What is the contents of .PLIST.mktmp file? It should be

      # cat /usr/ports/net-p2p/ctorrent/work/.PLIST.mktmp
      bin/ctorrent
      share/doc/ctorrent/README-DNH.TXT
      share/doc/ctorrent/UserGuide
      @dirrm share/doc/ctorrent

(2) Do you get the same error installing e.g. devel/avra?

(3) If yes, please try the following test file. Name it BSDmakefile,
    and make sure you type real TAB between Third and Fourth.

----------------------BSDmakefile---------------------------
A=3DFirst Second
B=3DThird   Fourth

all:
.for i in ${A}
    @echo $i
.endfor
.for i in ${B}
    @echo $i
.endfor
------------------------------------------------------------

Just run 'make'. What is the output? It should be

  # make
  First
  Second
  Third
  Fourth

Or maybe you get 'First Second' in one line?

Nikola Le=C4=8Di=C4=87



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200709060722.l867MsVV024729>