Hi Loenid,

Leonid Bobrov wrote on Wed, May 09, 2018 at 04:53:45PM +0300:

> mazocomp$ man mn
> PYTHON2.7:(1)                    User Commands                   PYTHON2.7:(1)
> 
> NAME
>        python2.7: - create a Mininet network.
> 
> DESCRIPTION
>        /usr/local/bin/python2.7: can't open file
>        '/usr/obj/ports/mininet-0.0.20170813/build-amd64/bin/mn': [Errno 2] No
>        such file or directory
> 
> python2.7: can't open file
> '/usr/obj/ports/mininet-0.0.20170813/build-amd64/bin/mn': [Errno 2] No such
> file or directory                  May 2018                      PYTHON2.7:(1)
> mazocomp$

I just fixed the manual page with the following commit.

Thanks for reporting,
  Ingo



CVSROOT:        /cvs
Module name:    ports
Changes by:     schwa...@cvs.openbsd.org        2018/05/09 08:56:19

Modified files:
        net/mininet    : Makefile 

Log message:
Trivially fix the mn(1) manual page by using the correct path
to the input file when autogenerating, and bump.
Obvious bug reported by Leonid Bobrov <mazocomp at disroot dot org> on ports@.


Index: Makefile
===================================================================
RCS file: /cvs/ports/net/mininet/Makefile,v
retrieving revision 1.8
diff -u -p -r1.8 Makefile
--- Makefile    17 Apr 2018 19:39:33 -0000      1.8
+++ Makefile    9 May 2018 14:46:52 -0000
@@ -3,7 +3,7 @@
 COMMENT =      emulator for rapid prototyping of software defined networks
 
 DISTNAME =     mininet-0.0.20170813
-REVISION =     5
+REVISION =     6
 GH_ACCOUNT =   mininet
 GH_PROJECT =   mininet
 GH_COMMIT =    87e26ef931ee6063332ceba77db472140f832d3a
@@ -30,7 +30,7 @@ SEPARATE_BUILD =      Yes
 do-build:
        ${CC} ${CFLAGS} ${WRKSRC}/mnexec.c -o ${WRKBUILD}/mnexec
        help2man -N -n "create a Mininet network."  --no-discard-stderr \
-               "PYTHONPATH=${WRKBUILD} ${MODPY_BIN} -B ${WRKBUILD}/bin/mn" \
+               "PYTHONPATH=${WRKBUILD} ${MODPY_BIN} -B ${WRKSRC}/bin/mn" \
                -o ${WRKBUILD}/mn.1
        help2man -N -n "execution utility for Mininet."  -h "-h" -v "-v" \
                --no-discard-stderr ${WRKBUILD}/mnexec -o ${WRKBUILD}/mnexec.1

Reply via email to