Install ctorrent-3.2_1 error, Makefile error?

Nikola Lecic nlecic at EUnet.yu
Thu Sep 6 01:41:10 PDT 2007


On Thu, 6 Sep 2007 10:59:56 +0800
"Sunry Chen" <sunrychen at gmail.com> wrote:

> [root at www /usr/ports/net-p2p/ctorrent]# make install
> ===>  Installing for ctorrent-3.2_1
> ===>   Generating temporary packing list
> ===>  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
> 
> 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=First Second
B=Third   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čić


More information about the freebsd-ports mailing list