pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: digest build is broken under cygwin



OK digest is build with the need to edit the following files:
mk/bsd.pkg.mk
mk/configure/configure.mk
mk/configure/gnu-configure.mk

diff ../../mk/bsd.pkg.mk ../../mk/bsd.pkg.mk.orig
253c253
<       ${INSTALL:Q} ${COPY} ${_STRIPFLAG_INSTALL} -o ${BINOWN:Q} -g ${BINGRP:Q} -m ${BINMODE}
---
>       ${INSTALL} ${COPY} ${_STRIPFLAG_INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
255c255
<       ${INSTALL:Q} ${COPY} ${_STRIPFLAG_INSTALL} -o ${GAMEOWN:Q} -g ${GAMEGRP:Q} -m ${GAMEMODE}
---
>       ${INSTALL} ${COPY} ${_STRIPFLAG_INSTALL} -o ${GAMEOWN} -g ${GAMEGRP} -m ${GAMEMODE}
257c257
<       ${INSTALL:Q} ${COPY} -o ${BINOWN:Q} -g ${BINGRP:Q} -m ${BINMODE}
---
>       ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
259c259
<       ${INSTALL:Q} ${COPY} -o ${BINOWN:Q} -g ${BINGRP:Q} -m ${BINMODE}
---
>       ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
261c261
<       ${INSTALL:Q} ${COPY} -o ${SHAREOWN:Q} -g ${SHAREGRP:Q} -m ${SHAREMODE}
---
>       ${INSTALL} ${COPY} -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE}
263c263
<       ${INSTALL:Q} ${COPY} -o ${GAMEOWN:Q} -g ${GAMEGRP:Q} -m ${GAMEDATAMODE}
---
>       ${INSTALL} ${COPY} -o ${GAMEOWN} -g ${GAMEGRP} -m ${GAMEDATAMODE}
265c265
<       ${INSTALL:Q} ${COPY} -o ${MANOWN:Q} -g ${MANGRP:Q} -m ${MANMODE}
---
>       ${INSTALL} ${COPY} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE}
267c267
<       ${INSTALL:Q} -d -o ${BINOWN:Q} -g ${BINGRP:Q} -m ${PKGDIRMODE}
---
>       ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m ${PKGDIRMODE}
269c269
<       ${INSTALL:Q} -d -o ${GAMEOWN:Q} -g ${GAMEGRP:Q} -m ${GAMEDIRMODE}
---
>       ${INSTALL} -d -o ${GAMEOWN} -g ${GAMEGRP} -m ${GAMEDIRMODE}
275c275
<       ${INSTALL:Q} -d -o ${SHAREOWN:Q} -g ${SHAREGRP:Q} -m ${PKGDIRMODE}
---
>       ${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m ${PKGDIRMODE}
277c277
<       ${INSTALL:Q} -d -o ${MANOWN:Q} -g ${MANGRP:Q} -m ${PKGDIRMODE}
---
>       ${INSTALL} -d -o ${MANOWN} -g ${MANGRP} -m ${PKGDIRMODE}

but now fails for nbpatch with:
config.status: creating nbcompat/config.h
Users: unknown option -- j
Try 'Users --help' for more information.
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/devel/nbpatch
*** Error code 1


turning debug on for bmake results to this:
*** Failed target:  libnbcompat-build
*** Failed command: set -e; cd /usr/pkgsrc/devel/nbpatch/work/libnbcompat && /bin/env AWK=/bin/awk CC=gcc CFLAGS=-O CPPFLAGS=-DHAVE_NBCOMPAT_H=1\ -I/usr/pkgsrc/devel/nbpatch/work/libnbcompat INSTALL_INFO= MAKEINFO=/usr/pkgsrc/devel/nbpatch/work/.tools/bin/makeinfo FLEX= BISON= PKG_CONFIG= PKG_CONFIG_LIBDIR=/usr/pkgsrc/devel/nbpatch/work/.buildlink/lib/pkgconfig:/usr/pkgsrc/devel/nbpatch/work/.buildlink/share/pkgconfig PKG_CONFIG_LOG=/usr/pkgsrc/devel/nbpatch/work/.pkg-config.log PKG_CONFIG_PATH= MAKE=make WRAPPER_DEBUG=no WRAPPER_UPDATE_CACHE=yes LDADD=\ -lnbcompat CC=gcc CFLAGS=-O CPPFLAGS=-DHAVE_NBCOMPAT_H=1\ -I/usr/pkgsrc/devel/nbpatch/work/libnbcompat CXX=c++ CXXFLAGS=-O COMPILER_RPATH_FLAG=-Wl,-R F77=gfortran FC=gfortran FFLAGS=-O LANG=C LC_ALL=C LC_COLLATE=C LC_CTYPE=C LC_MESSAGES=C LC_MONETARY=C LC_NUMERIC=C LC_TIME=C LDFLAGS=-L/usr/pkgsrc/devel/nbpatch/work/libnbcompat\ -Wl,-R/usr/pkg/lib LINKER_RPATH_FLAG=-R PATH=/usr/pkgsrc/devel/nbpatch/work/.wrapper/bin:/usr/pkgsrc/devel/nbpatch/work/.buildlink/bin:/usr/pkgsrc/devel/nbpatch/work/.gcc/bin:/usr/pkgsrc/devel/nbpatch/work/.tools/bin:/usr/pkg/bin:/usr/sbin:/usr/sbin:/usr/local/bin:/usr/bin:/cygdrive/c/Program\ Files\ \(x86\)/VMware/VMware\ vSphere\ CLI/Perl/site/bin:/cygdrive/c/Program\ Files\ \(x86\)/VMware/VMware\ vSphere\ CLI/Perl/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program\ Files\ \(x86\)/Intel/OpenCL\ SDK/2.0/bin/x86:/cygdrive/c/Program\ Files\ \(x86\)/Intel/OpenCL\ SDK/2.0/bin/x64:/cygdrive/c/Program\ Files/Intel/WiFi/bin:/cygdrive/c/Program\ Files/Common\ Files/Intel/WirelessCommon:/usr/pkg/bin:/usr/pkg/sbin:/usr/pkg/bin:/usr/pkg/sbin:/usr/pkg/bin:/usr/bin PREFIX=/usr/pkg MAKELEVEL=0 PKG_SYSCONFDIR=/usr/pkg/etc CXXCPP=cpp HOME=/usr/pkgsrc/devel/nbpatch/work/.home /bin/sh ./configure --enable-bsd-getopt --host=x86_64-pc-cygwin && /bin/env USETOOLS=no LDADD=\ -lnbcompat CC=gcc CFLAGS=-O CPPFLAGS=-DHAVE_NBCOMPAT_H=1\ -I/usr/pkgsrc/devel/nbpatch/work/libnbcompat CXX=c++ CXXFLAGS=-O COMPILER_RPATH_FLAG=-Wl,-R F77=gfortran FC=gfortran FFLAGS=-O LANG=C LC_ALL=C LC_COLLATE=C LC_CTYPE=C LC_MESSAGES=C LC_MONETARY=C LC_NUMERIC=C LC_TIME=C LDFLAGS=-L/usr/pkgsrc/devel/nbpatch/work/libnbcompat\ -Wl,-R/usr/pkg/lib LINKER_RPATH_FLAG=-R PATH=/usr/pkgsrc/devel/nbpatch/work/.wrapper/bin:/usr/pkgsrc/devel/nbpatch/work/.buildlink/bin:/usr/pkgsrc/devel/nbpatch/work/.gcc/bin:/usr/pkgsrc/devel/nbpatch/work/.tools/bin:/usr/pkg/bin:/usr/sbin:/usr/sbin:/usr/local/bin:/usr/bin:/cygdrive/c/Program\ Files\ \(x86\)/VMware/VMware\ vSphere\ CLI/Perl/site/bin:/cygdrive/c/Program\ Files\ \(x86\)/VMware/VMware\ vSphere\ CLI/Perl/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program\ Files\ \(x86\)/Intel/OpenCL\ SDK/2.0/bin/x86:/cygdrive/c/Program\ Files\ \(x86\)/Intel/OpenCL\ SDK/2.0/bin/x64:/cygdrive/c/Program\ Files/Intel/WiFi/bin:/cygdrive/c/Program\ Files/Common\ Files/Intel/WirelessCommon:/usr/pkg/bin:/usr/pkg/sbin:/usr/pkg/bin:/usr/pkg/sbin:/usr/pkg/bin:/usr/bin PREFIX=/usr/pkg MAKELEVEL=0 PKG_SYSCONFDIR=/usr/pkg/etc CXXCPP=cpp HOME=/usr/pkgsrc/devel/nbpatch/work/.home CPP=cpp LINK_ALL_LIBGCC_HACK= LOCALBASE=/usr/pkg NO_WHOLE_ARCHIVE_FLAG=-Wl,--no-whole-archive WHOLE_ARCHIVE_FLAG=-Wl,--whole-archive X11BASE=/usr X11PREFIX=/usr/pkg PKGMANDIR=man PKGINFODIR=info PKGGNUDIR=gnu/ MAKECONF=/dev/null OBJECT_FMT=PE USETOOLS=no BINOWN=amoschos BINGRP=Domain Users GAMEOWN=amoschos GAMEGRP=Domain Users MANOWN=amoschos MANGRP=Domain Users SHAREOWN=amoschos SHAREGRP=Domain Users DOCOWN=amoschos DOCGRP=Domain Users BINMODE=755 NONBINMODE=644 BINDIR=/usr/pkg/bin INCSDIR=/usr/pkg/include LIBDIR=/usr/pkg/lib MANDIR=/usr/pkg/man STRIPFLAG=-s MANINSTALL=maninstall MKCATPAGES=no MKHTML=no INSTALL=/bin/install BSD_INSTALL_PROGRAM=/bin/install\ -c\ -s\ -o\ amoschos\ -g\ Domain\\\ Users\ -m\ 755 BSD_INSTALL_SCRIPT=/bin/install\ -c\ -o\ amoschos\ -g\ Domain\\\ Users\ -m\ 755 BSD_INSTALL_LIB=/bin/install\ -c\ -o\ amoschos\ -g\ Domain\\\ Users\ -m\ 755 BSD_INSTALL_DATA=/bin/install\ -c\ -o\ amoschos\ -g\ Domain\\\ Users\ -m\ 644 BSD_INSTALL_MAN=/bin/install\ -c\ -o\ amoschos\ -g\ Domain\\\ Users\ -m\ 644 BSD_INSTALL=/bin/install BSD_INSTALL_PROGRAM_DIR=/bin/install\ -d\ -o\ amoschos\ -g\ Domain\\\ Users\ -m\ 775 BSD_INSTALL_SCRIPT_DIR=/bin/install\ -d\ -o\ amoschos\ -g\ Domain\\\ Users\ -m\ 775 BSD_INSTALL_LIB_DIR=/bin/install\ -d\ -o\ amoschos\ -g\ Domain\\\ Users\ -m\ 775 BSD_INSTALL_DATA_DIR=/bin/install\ -d\ -o\ amoschos\ -g\ Domain\\\ Users\ -m\ 775 BSD_INSTALL_MAN_DIR=/bin/install\ -d\ -o\ amoschos\ -g\ Domain\\\ Users\ -m\ 775 BSD_INSTALL_GAME=/bin/install\ -c\ -s\ -o\ amoschos\ -g\ Domain\\\ Users\ -m\ 2555 BSD_INSTALL_GAME_DATA=/bin/install\ -c\ -o\ amoschos\ -g\ Domain\\\ Users\ -m\ 664 BSD_INSTALL_GAME_DIR=/bin/install\ -d\ -o\ amoschos\ -g\ Domain\\\ Users\ -m\ 775 INSTALL_INFO= MAKEINFO=/usr/pkgsrc/devel/nbpatch/work/.tools/bin/makeinfo FLEX= BISON= PKG_CONFIG= PKG_CONFIG_LIBDIR=/usr/pkgsrc/devel/nbpatch/work/.buildlink/lib/pkgconfig:/usr/pkgsrc/devel/nbpatch/work/.buildlink/share/pkgconfig PKG_CONFIG_LOG=/usr/pkgsrc/devel/nbpatch/work/.pkg-config.log PKG_CONFIG_PATH= WRAPPER_DEBUG=no WRAPPER_UPDATE_CACHE=yes VIEWBASE=/usr/pkg /usr/pkg/bin/bmake -j1



On Thu, Feb 5, 2015 at 12:07 PM, Jonathan Perkin <jperkin%joyent.com@localhost> wrote:
* On 2015-02-04 at 18:36 GMT, Andreas Moschos wrote:

> latest cygwin on win 7.
>
> Build of digest is broken, building with:
>  _PKGSRC_BARRIER=no bmake.exe -d A
>
> i can see the following:
>
> + cd /usr/pkgsrc/pkgtools/digest/work/digest-20121220
> + /bin/env 'INSTALL=/bin/install -c -o mysername -g Domain' Users
> 'INSTALL_PROGRAM=/bin/install .... (more output)
>
> and i get a message of "Users -- - unknown option"
>
> obviously the "Domain Users" is being interpreted wrong.

Right, there are probably quite a lot of places in pkgsrc
infrastructure where it is assumed users, groups, and paths will not
contain spaces.  If you have time it'd be great if you could work
through them, adding the bmake :Q modifier anywhere it may be
necessary.

So, for your example, you'd change the line in
mk/configure/configure.mk from:

  _CONFIGURE_SCRIPT_ENV+= INSTALL=${INSTALL:Q}\ -c\ -o\ ${BINOWN}\ -g\ ${BINGRP}

into:

  _CONFIGURE_SCRIPT_ENV+= INSTALL=${INSTALL:Q}\ -c\ -o\ ${BINOWN:Q}\ -g\ ${BINGRP:Q}

and then try again with a clean rebuild.

Once you've fixed that one, move onto the next issue (there's another
one in mk/configure/gnu-configure.mk), and once it's working report
back and we can integrate the fix.

Thanks,

--
Jonathan Perkin  -  Joyent, Inc.  -  www.joyent.com



Home | Main Index | Thread Index | Old Index