Re: Problems building lang/parrot
On Thu, May 28, 2009 at 05:14:06PM +0200, Simon Bertrang wrote: Sorry i'm late in the game... our version of parrot is outdated and i'm still working on the 1.2.0 update. Below is a WIP diff. I at least need to fix SHARED_LIBS but otherwise it should be near completion. Be aware that the languages (perl6 too) were moved out of parrot into their own subprojects. I haven't started to work on rakudo yet, but that'll be next unless someone else does it first. Would be possible to commit my changes before this update? http://marc.info/?l=openbsd-portsm=124346628810605w=2 -- best regards q#
update: parrot-1.2.0 (Re: Problems building lang/parrot)
On Sun, May 31, 2009 at 09:52:29PM +0100, Mikolaj Kucharski wrote: On Thu, May 28, 2009 at 05:14:06PM +0200, Simon Bertrang wrote: Sorry i'm late in the game... our version of parrot is outdated and i'm still working on the 1.2.0 update. Below is a WIP diff. I at least need to fix SHARED_LIBS but otherwise it should be near completion. Be aware that the languages (perl6 too) were moved out of parrot into their own subprojects. I haven't started to work on rakudo yet, but that'll be next unless someone else does it first. Would be possible to commit my changes before this update? Here's the diff with correct SHARED_LIBS. If you have a not yet enabled arch, please uncomment ONLY_FOR_ARCHS and give me some feedback with the build log in case of an error. Running ``make regress'' would also be nice. Regards, Simon Index: Makefile === RCS file: /cvs/ports/lang/parrot/Makefile,v retrieving revision 1.7 diff -u -p -r1.7 Makefile --- Makefile4 Feb 2009 10:15:14 - 1.7 +++ Makefile1 Jun 2009 00:52:55 - @@ -1,20 +1,19 @@ # $OpenBSD: Makefile,v 1.7 2009/02/04 10:15:14 simon Exp $ -# sparc64 fails to build +# sparc64 failed to build with 0.9.0.1 and needs testing # others untested ONLY_FOR_ARCHS=i386 amd64 macppc COMMENT= virtual machine designed for interpreted languages -VMEM_WARNING= Yes -SHARED_ONLY= Yes - -DISTNAME= parrot-0.9.0.1 +V= 1.2.0 +DISTNAME= parrot-$V CATEGORIES=lang perl6 +SHARED_LIBS= parrot 0.0 HOMEPAGE= http://www.parrotcode.org/ -MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=../by-authors/id/C/CH/CHROMATIC/} +MASTER_SITES= ftp://ftp.parrot.org/pub/parrot/releases/devel/$V/ # Artistic2 PERMIT_PACKAGE_CDROM= Yes @@ -22,17 +21,20 @@ PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_CDROM=Yes PERMIT_DISTFILES_FTP= Yes -WANTLIB= c crypto m ncurses pthread readline util +WANTLIB= c crypto m ncurses pthread readline stdc++ util LIB_DEPENDS= icudata,icuuc::textproc/icu4c REGRESS_DEPENDS= ::devel/p5-Test-Pod CONFIGURE_SCRIPT= /usr/bin/perl Configure.pl CONFIGURE_STYLE= simple +CONFIGURE_ARGS+= --prefix=${PREFIX} CONFIGURE_ARGS+= --parrot_is_shared CONFIGURE_ARGS+= --icu-config=${LOCALBASE}/bin/icu-config -ALL_TARGET=installable ./perl6 compilers languages +MAKE_FLAGS=LIBparrot_VERSION=${LIBparrot_VERSION} + +ALL_TARGET=installable compilers REGRESS_TARGET=test .if ${MACHINE_ARCH} == i386 @@ -47,9 +49,12 @@ CONFIGURE_ARGS+= --execcapable=0 pre-configure: cd ${WRKSRC} cp src/jit/ppc/ppc-linux.s src/jit/ppc/ppc-openbsd.s + perl -pi -e 's!^(SOVERSION\s*:=\s*).*?$$!$${1}${LIBparrot_VERSION}!' \ + ${WRKSRC}/config/gen/makefiles/root.in post-install: - cd ${PREFIX}/share/doc/parrot mv docs/* . rmdir docs - mv ${PREFIX}/share/doc/parrot/examples ${PREFIX}/share/examples/parrot + ${INSTALL_DATA} ${WRKSRC}/blib/lib/libparrot.so.0.0 ${PREFIX}/lib + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/parrot + cd ${WRKSRC}/examples pax -rw . ${PREFIX}/share/examples/parrot .include bsd.port.mk Index: distinfo === RCS file: /cvs/ports/lang/parrot/distinfo,v retrieving revision 1.7 diff -u -p -r1.7 distinfo --- distinfo4 Feb 2009 10:15:14 - 1.7 +++ distinfo1 Jun 2009 00:52:55 - @@ -1,5 +1,5 @@ -MD5 (parrot-0.9.0.1.tar.gz) = FZWnjc7wwA03lzYyEm1vrg== -RMD160 (parrot-0.9.0.1.tar.gz) = lv3F3Uzm1LHFIz3SQgMpfrZgy1s= -SHA1 (parrot-0.9.0.1.tar.gz) = rUtZ21W7SvD+Zm4ZUlvSiFiYcTo= -SHA256 (parrot-0.9.0.1.tar.gz) = fL3MGQDHfJRvPlvd18Tx54sqC7rLEwW5s7rjDj1WzTU= -SIZE (parrot-0.9.0.1.tar.gz) = 5441032 +MD5 (parrot-1.2.0.tar.gz) = NbRjcAs9LsH038299M+7Xw== +RMD160 (parrot-1.2.0.tar.gz) = Bgv/kiADLDnPUgRxpiQ7r0vb56Y= +SHA1 (parrot-1.2.0.tar.gz) = zxB8/SP+UPg8BHo/QIXqe8oV2jc= +SHA256 (parrot-1.2.0.tar.gz) = DkJOQLxto+xc954Wnz39IuG8pquXQ8Nhpm29v5NptDg= +SIZE (parrot-1.2.0.tar.gz) = 3908788 Index: patches/patch-config_gen_makefiles_root_in === RCS file: patches/patch-config_gen_makefiles_root_in diff -N patches/patch-config_gen_makefiles_root_in --- /dev/null 1 Jan 1970 00:00:00 - +++ patches/patch-config_gen_makefiles_root_in 1 Jun 2009 00:52:55 - @@ -0,0 +1,20 @@ +$OpenBSD$ +--- config/gen/makefiles/root.in.orig Mon Jun 1 02:30:47 2009 config/gen/makefiles/root.in Mon Jun 1 02:31:51 2009 +@@ -18,7 +18,7 @@ + + DEVEL := @DEVEL@ + VERSION := @vers...@$(DEVEL) +-SOVERSION := @VERSION@ ++SOVERSION := $(LIBparrot_VERSION) + + CONFIG_ARGS := @configure_args@ + +@@ -889,7 +889,6 @@ $(LIBPARROT_SHARED) : $(O_FILES) + #IF(win32 and cc==gcc):
Re: Problems building lang/parrot
On Thu, May 28, 2009 at 11:59:06AM +1000, Ian McWilliam wrote: On 28/05/2009, at 9:14 AM, Mikolaj Kucharski wrote: Hi, Attached patch fixes build of lang/parrot as root. No pkgname bump as package should be identical. Heavly based on https://trac.parrot.org/parrot/changeset/38214 Please review. -- best regards q# parrot.patch Looks good. I note that this was changed and reverted in the parrot bug tracker due to windoze not playing nicely. I'd say this patch set will stay for a long time. Sorry i'm late in the game... our version of parrot is outdated and i'm still working on the 1.2.0 update. Below is a WIP diff. I at least need to fix SHARED_LIBS but otherwise it should be near completion. Be aware that the languages (perl6 too) were moved out of parrot into their own subprojects. I haven't started to work on rakudo yet, but that'll be next unless someone else does it first. Kind regards, Simon Index: Makefile === RCS file: /cvs/ports/lang/parrot/Makefile,v retrieving revision 1.7 diff -u -p -r1.7 Makefile --- Makefile4 Feb 2009 10:15:14 - 1.7 +++ Makefile28 May 2009 15:12:32 - @@ -1,20 +1,20 @@ # $OpenBSD: Makefile,v 1.7 2009/02/04 10:15:14 simon Exp $ -# sparc64 fails to build +# sparc64 failed to build with 0.9.0.1 and needs testing # others untested ONLY_FOR_ARCHS=i386 amd64 macppc COMMENT= virtual machine designed for interpreted languages -VMEM_WARNING= Yes SHARED_ONLY= Yes -DISTNAME= parrot-0.9.0.1 +V= 1.2.0 +DISTNAME= parrot-$V CATEGORIES=lang perl6 HOMEPAGE= http://www.parrotcode.org/ -MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=../by-authors/id/C/CH/CHROMATIC/} +MASTER_SITES= ftp://ftp.parrot.org/pub/parrot/releases/devel/$V/ # Artistic2 PERMIT_PACKAGE_CDROM= Yes @@ -22,17 +22,18 @@ PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_CDROM=Yes PERMIT_DISTFILES_FTP= Yes -WANTLIB= c crypto m ncurses pthread readline util +WANTLIB= c crypto m ncurses pthread readline stdc++ util LIB_DEPENDS= icudata,icuuc::textproc/icu4c REGRESS_DEPENDS= ::devel/p5-Test-Pod CONFIGURE_SCRIPT= /usr/bin/perl Configure.pl CONFIGURE_STYLE= simple +CONFIGURE_ARGS+= --prefix=${PREFIX} CONFIGURE_ARGS+= --parrot_is_shared CONFIGURE_ARGS+= --icu-config=${LOCALBASE}/bin/icu-config -ALL_TARGET=installable ./perl6 compilers languages +ALL_TARGET=installable compilers REGRESS_TARGET=test .if ${MACHINE_ARCH} == i386 @@ -49,7 +50,7 @@ pre-configure: cd ${WRKSRC} cp src/jit/ppc/ppc-linux.s src/jit/ppc/ppc-openbsd.s post-install: - cd ${PREFIX}/share/doc/parrot mv docs/* . rmdir docs - mv ${PREFIX}/share/doc/parrot/examples ${PREFIX}/share/examples/parrot + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/parrot + cd ${WRKSRC}/examples pax -rw . ${PREFIX}/share/examples/parrot .include bsd.port.mk Index: distinfo === RCS file: /cvs/ports/lang/parrot/distinfo,v retrieving revision 1.7 diff -u -p -r1.7 distinfo --- distinfo4 Feb 2009 10:15:14 - 1.7 +++ distinfo28 May 2009 15:12:32 - @@ -1,5 +1,5 @@ -MD5 (parrot-0.9.0.1.tar.gz) = FZWnjc7wwA03lzYyEm1vrg== -RMD160 (parrot-0.9.0.1.tar.gz) = lv3F3Uzm1LHFIz3SQgMpfrZgy1s= -SHA1 (parrot-0.9.0.1.tar.gz) = rUtZ21W7SvD+Zm4ZUlvSiFiYcTo= -SHA256 (parrot-0.9.0.1.tar.gz) = fL3MGQDHfJRvPlvd18Tx54sqC7rLEwW5s7rjDj1WzTU= -SIZE (parrot-0.9.0.1.tar.gz) = 5441032 +MD5 (parrot-1.2.0.tar.gz) = NbRjcAs9LsH038299M+7Xw== +RMD160 (parrot-1.2.0.tar.gz) = Bgv/kiADLDnPUgRxpiQ7r0vb56Y= +SHA1 (parrot-1.2.0.tar.gz) = zxB8/SP+UPg8BHo/QIXqe8oV2jc= +SHA256 (parrot-1.2.0.tar.gz) = DkJOQLxto+xc954Wnz39IuG8pquXQ8Nhpm29v5NptDg= +SIZE (parrot-1.2.0.tar.gz) = 3908788 Index: patches/patch-config_gen_makefiles_root_in === RCS file: patches/patch-config_gen_makefiles_root_in diff -N patches/patch-config_gen_makefiles_root_in --- /dev/null 1 Jan 1970 00:00:00 - +++ patches/patch-config_gen_makefiles_root_in 28 May 2009 15:12:32 - @@ -0,0 +1,11 @@ +$OpenBSD$ +--- config/gen/makefiles/root.in.orig Wed May 27 01:52:10 2009 config/gen/makefiles/root.in Wed May 27 01:52:18 2009 +@@ -889,7 +889,6 @@ $(LIBPARROT_SHARED) : $(O_FILES) + #IF(win32 and cc==gcc): -Wl,--out-implib=libparrot.lib \ + $(O_FILES) $(C_LIBS) $(ICU_SHARED) + #IF(win32): if exist $...@.manifest mt.exe -nologo -manifest $...@.manifest -outputresource:$@;2 +-#IF(libparrot_shared_alias): ( cd @blib_dir@ ; ln -sf @libparrot_shared@ @libparrot_shared_alias@ ) + + + $(INSTALLABLECONFIG) : $(SRC_DIR)/install_config$(O) $(PARROT_CONFIG) $(PBC_TO_EXE) Index: patches/patch-config_gen_platform_openbsd_math_c
Re: Problems building lang/parrot
On 26/05/2009, at 10:07 AM, STeve Andre' wrote: Given that I see parrot-.0.9.0.1 in the snapshot package area, it is my fault that I cannot build package it myself. I've been puzzling over this for a bit now, and am finally asking for a clue. I have script output of the entire process but it compiles ok--its a package building time that produces the error. Clues appreciated. --STeve Andre' cd /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386/usr/local/share/ doc/parrot mv docs/* . rmdir docs mv /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386/usr/local/share/ doc/parrot/examples /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake- i386/usr/local/share/examples/parrot === Building package for parrot-0.9.0.1 Create /usr/ports/packages/i386/all/parrot-0.9.0.1.tgz Switching to /usr/ports/lang/parrot/pkg/PFRAG.i386 Error in package: /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386//usr/ local/languages/pipp/pipp.pbc does not exist Error in package: /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386//usr/ local/languages/pipp/src/common/php_ctype.pbc does not exist Error in package: /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386//usr/ local/languages/pipp/src/common/php_pcre.pbc does not exist Error in package: /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386//usr/ local/languages/pipp/src/common/pipplib.pbc does not exist Error in package: /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386//usr/ local/lib/parrot/dynext/php_group.so does not exist Error in package: /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386//usr/ local/share/doc/parrot/ops/bit.pod does not exist Error in package: /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386//usr/ local/share/doc/parrot/ops/cmp.pod does not exist Error in package: /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386//usr/ local/share/doc/parrot/ops/core.pod does not exist Error in package: /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386//usr/ local/share/doc/parrot/ops/debug.pod does not exist Error in package: /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386//usr/ local/share/doc/parrot/ops/experimental.pod does not exist Error in package: /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386//usr/ local/share/doc/parrot/ops/io.pod does not exist Error in package: /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386//usr/ local/share/doc/parrot/ops/math.pod does not exist Error in package: /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386//usr/ local/share/doc/parrot/ops/object.pod does not exist Error in package: /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386//usr/ local/share/doc/parrot/ops/obscure.pod does not exist Error in package: /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386//usr/ local/share/doc/parrot/ops/pic.pod does not exist Error in package: /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386//usr/ local/share/doc/parrot/ops/pmc.pod does not exist Error in package: /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386//usr/ local/share/doc/parrot/ops/set.pod does not exist Error in package: /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386//usr/ local/share/doc/parrot/ops/string.pod does not exist Error in package: /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386//usr/ local/share/doc/parrot/ops/sys.pod does not exist Error in package: /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386//usr/ local/share/doc/parrot/ops/var.pod does not exist === Cleaning for parrot-0.9.0.1 rm -f /usr/ports/packages/i386/all/parrot-0.9.0.1.tgz /usr/ports/ packages/i386/ftp/parrot-0.9.0.1.tgz /usr/ports/packages/i386/cdrom/ parrot-0.9.0.1.tgz *** Error code 1 Stop in /usr/ports/lang/parrot (line 1432 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/lang/parrot (line 1972 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 I see the same issue. I also see this in the configure stage. auto::perldoc - Is perldoc installed.no. snip No Perldoc, not generating a docs makefile. The given regress test for auto::perldoc used by Configure.pl passes. prove t/steps/auto_perldoc-01.t t/steps/auto_perldoc-01ok All tests successful. Files=1, Tests=32, 0 wallclock secs ( 0.23 cusr + 0.05 csys = 0.28 CPU) Still investigating Ian McWilliam
Re: Problems building lang/parrot
On Tue, May 26, 2009 at 05:33:16PM -0400, STeve Andre' wrote: On Tuesday 26 May 2009 15:47:20 Mikolaj Kucharski wrote: On Tue, May 26, 2009 at 12:15:10PM -0400, STeve Andre' wrote: Clues appreciated. Hmmm. Yes I am, as I normally do. You're pointing at a path problem, I think... No, I'm not pointing at path problem. Could you try to build it as normal user? Well, building it as myself, I get the following (I am feeling dumb currently). This is different problem. You need to use sudo(8) in ports infrastructure to correctly build a package from a port as normal user. See mk.conf(5) and description of SUDO variable. Issue in this email is just wrong configuration of your ports tree to work as non-root user. Please read the docs. http://www.openbsd.org/faq/faq15.html#PortsConfig vista /usr/ports/lang/parrot make package `/usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386/.fake_done' is up to date. === Building package for parrot-0.9.0.1 Create /usr/ports/packages/i386/all/parrot-0.9.0.1.tgz Switching to /usr/ports/lang/parrot/pkg/PFRAG.i386 Error: no @owner for /usr/local/include/src/jit_emit.h (steve) Error: no @owner for /usr/local/bin/parrot (steve) Error: no @owner for /usr/local/bin/parrot_config (steve) Error: no @owner for /usr/local/bin/parrot_debugger (steve) Error: no @owner for /usr/local/bin/pbc_disassemble (steve) Error: no @owner for /usr/local/bin/pbc_info (steve) Error: no @owner for /usr/local/bin/pbc_merge (steve) Error: no @owner for /usr/local/bin/pbc_to_exe (steve) Error: no @owner for /usr/local/bin/pdump (steve) Error: no @owner for /usr/local/bin/perl6 (steve) Error: no @owner for /usr/local/compilers/imcc/imclexer.c (steve) Error: no @owner for /usr/local/compilers/json/JSON.pbc (steve) Error: no @owner for /usr/local/compilers/json/JSON/grammar.pbc (steve) Error: no @owner for /usr/local/compilers/json/JSON/pge2pir.pbc (steve) Error: no @owner for /usr/local/compilers/nqp/nqp.pbc (steve) Error: no @owner for /usr/local/compilers/tge/TGE/Compiler.pbc (steve) Error: no @owner for /usr/local/compilers/tge/TGE/Grammar.pbc (steve) Error: no @owner for /usr/local/compilers/tge/TGE/Parser.pbc (steve) Error: no @owner for /usr/local/compilers/tge/TGE/Rule.pbc (steve) Error: no @owner for /usr/local/compilers/tge/TGE/Tree.pbc (steve) Error: no @owner for /usr/local/compilers/tge/tgc.pir (steve) Error: no @owner for /usr/local/config/auto/cpu/i386/memcpy_mmx.c (steve) Error: no @owner for /usr/local/config/auto/cpu/i386/memcpy_sse.c (steve) Error: no @owner for /usr/local/config/gen/platform/ansi/dl.c (steve) Error: no @owner for /usr/local/config/gen/platform/ansi/time.c (steve) Error: no @owner for /usr/local/config/gen/platform/darwin/memalign.c (steve) [lots of output deleted] Error: no @owner for /usr/local/share/examples/parrot/tutorial/56_defined.pir (steve) Error: no @owner for /usr/local/share/examples/parrot/tutorial/57_exists.pir (steve) Error: no @owner for /usr/local/share/examples/parrot/tutorial/60_subroutines.pir (steve) Error: no @owner for /usr/local/share/examples/parrot/tutorial/61_namespaces.pir (steve) Error: no @owner for /usr/local/share/examples/parrot/tutorial/62_namespaces.pir (steve) Error: no @owner for /usr/local/share/examples/parrot/tutorial/70_class_object.pir (steve) Error: no @owner for /usr/local/share/examples/parrot/tutorial/81_continuation.pir (steve) Error: no @owner for /usr/local/share/examples/parrot/tutorial/82_coroutine.pir (steve) Error: no @owner for /usr/local/share/examples/parrot/tutorial/83_external_libraries.pir (steve) Error: no @owner for /usr/local/share/examples/parrot/tutorial/90_writing_tests.pir (steve) Error: no @owner for /usr/local/src/nci.c (steve) Error: no @owner for /usr/local/src/null_config.c (steve) Error: no @owner for /usr/local/src/ops/core_ops_cgp.c (steve) Error: no @owner for /usr/local/src/ops/core_ops_switch.c (steve) Error: no @owner for /usr/local/src/parrot_config.c (steve) === Cleaning for parrot-0.9.0.1 rm -f /usr/ports/packages/i386/all/parrot-0.9.0.1.tgz /usr/ports/packages/i386/ftp/parrot-0.9.0.1.tgz /usr/ports/packages/i386/cdrom/parrot-0.9.0.1.tgz *** Error code 1 Stop in /usr/ports/lang/parrot (line 1432 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/lang/parrot (line 1972 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/lang/parrot (line 1952 of /usr/ports/infrastructure/mk/bsd.port.mk). -- best regards q#
Re: Problems building lang/parrot
On Mon, May 25, 2009 at 08:07:16PM -0400, STeve Andre' wrote: Given that I see parrot-.0.9.0.1 in the snapshot package area, it is my fault that I cannot build package it myself. I've been puzzling over this for a bit now, and am finally asking for a clue. I have script output of the entire process but it compiles ok--its a package building time that produces the error. Clues appreciated. Now, as you where building this port as root and that failed. Here is the clue: # grep perldoc ./build-log-as-root auto::perldoc - Is perldoc installed.no. This is related to droping priviliges when perldoc(1) is ran as root. Look at function drop_privs_maybe in file: http://www.openbsd.org/cgi-bin/cvsweb/src/gnu/usr.bin/perl/lib/Pod/Perldoc.pm In parrot sources you have file `config/auto/perldoc.pm' and there you can see how above `auto::perldoc' test is done. IIRC, auto::perldoc creates temp file to grab output form perldoc. Build is done as root, so owner of temp file is root. perldoc(1) drops to user `nobody' and nobody cannot write to file created by File::Temp as root. File is empty and `auto::perldoc' thinks no perldoc(1) is installed. Even if you fake that part, you need to also modify build so those perldoc(1) will not fail later in the build. Sorry, I canot do more, about this issue, than explain the problem. -- best regards q#
Re: Problems building lang/parrot
https://trac.parrot.org/parrot/ticket/555 -- best regards q#
Re: Problems building lang/parrot
Hi, Attached patch fixes build of lang/parrot as root. No pkgname bump as package should be identical. Heavly based on https://trac.parrot.org/parrot/changeset/38214 Please review. -- best regards q# Index: patches/patch-config_auto_perldoc_pm === RCS file: patches/patch-config_auto_perldoc_pm diff -N -u patches/patch-config_auto_perldoc_pm --- /dev/null 27 May 2009 17:09:19 - +++ patches/patch-config_auto_perldoc_pm27 May 2009 23:09:19 - @@ -0,0 +1,17 @@ + +https://trac.parrot.org/parrot/ticket/555 + +$OpenBSD$ +--- config/auto/perldoc.pm.origMon Jan 19 23:12:29 2009 config/auto/perldoc.pm Wed May 27 23:24:49 2009 +@@ -38,7 +38,9 @@ sub runstep { + + my $cmd = $conf-data-get_p5('scriptdirexp') . q{/perldoc}; + my ( $fh, $filename ) = tempfile( UNLINK = 1 ); +-my $content = capture_output($cmd -ud $filename perldoc) || undef; ++my($stdout, $stderr, $retval) = ++ capture_output($cmd -u perldoc $filename); ++my($content) = $retval ? undef : $stderr; + + return 1 unless defined( $self-_initial_content_check($conf, $content) ); + Index: patches/patch-config_gen_makefiles_docs_in === RCS file: patches/patch-config_gen_makefiles_docs_in diff -N -u patches/patch-config_gen_makefiles_docs_in --- /dev/null 27 May 2009 17:09:19 - +++ patches/patch-config_gen_makefiles_docs_in 27 May 2009 23:09:19 - @@ -0,0 +1,15 @@ + +https://trac.parrot.org/parrot/ticket/555 + +$OpenBSD$ +--- config/gen/makefiles/docs.in.orig Mon Jan 19 23:12:30 2009 config/gen/makefiles/docs.in Wed May 27 23:27:48 2009 +@@ -35,7 +35,7 @@ doc-prep: + $(MKPATH) ops + + packfile-c.pod: ../src/packfile.c +-#IF(new_perldoc): $(PERLDOC) -ud packfile-c.pod ../src/packfile.c ++#IF(new_perldoc): $(PERLDOC) -u ../src/packfile.c packfile-c.pod + #ELSE:$(PERLDOC) -u ../src/packfile.c packfile-c.pod + + clean: Index: patches/patch-config_gen_makefiles_pm === RCS file: patches/patch-config_gen_makefiles_pm diff -N -u patches/patch-config_gen_makefiles_pm --- /dev/null 27 May 2009 17:09:19 - +++ patches/patch-config_gen_makefiles_pm 27 May 2009 23:09:19 - @@ -0,0 +1,17 @@ + +https://trac.parrot.org/parrot/ticket/555 + +$OpenBSD$ +--- config/gen/makefiles.pm.orig Mon Jan 19 23:12:30 2009 config/gen/makefiles.pmWed May 27 23:41:26 2009 +@@ -156,8 +156,8 @@ sub makefiles { + $pod =~ s/\.ops$/.pod/; + print {$MAKEFILE} ops$slash$pod: ..${slash}src${slash}ops${slash}$ops\n; + if ( $new_perldoc == 1 ) { +-print {$MAKEFILE} \t\$(PERLDOC) -ud ops${slash}$pod +-. ..${slash}src${slash}ops${slash}$ops\n; ++print {$MAKEFILE} \t\$(PERLDOC) -u ++. ..${slash}src${slash}ops${slash}$ops ops${slash}$pod\n; + print {$MAKEFILE} \t\$(CHMOD) 0644 ops${slash}$pod\n\n; + } + else {
Re: Problems building lang/parrot
Are you building this package as root? On Mon, May 25, 2009 at 08:07:16PM -0400, STeve Andre' wrote: Given that I see parrot-.0.9.0.1 in the snapshot package area, it is my fault that I cannot build package it myself. I've been puzzling over this for a bit now, and am finally asking for a clue. I have script output of the entire process but it compiles ok--its a package building time that produces the error. Clues appreciated. -- best regards q#
Re: Problems building lang/parrot
On Tuesday 26 May 2009 03:01:34 Mikolaj Kucharski wrote: Are you building this package as root? On Mon, May 25, 2009 at 08:07:16PM -0400, STeve Andre' wrote: Given that I see parrot-.0.9.0.1 in the snapshot package area, it is my fault that I cannot build package it myself. I've been puzzling over this for a bit now, and am finally asking for a clue. I have script output of the entire process but it compiles ok--its a package building time that produces the error. Clues appreciated. Hmmm. Yes I am, as I normally do. You're pointing at a path problem, I think... --STeve Andre'
Re: Problems building lang/parrot
On Tue, May 26, 2009 at 12:15:10PM -0400, STeve Andre' wrote: Clues appreciated. Hmmm. Yes I am, as I normally do. You're pointing at a path problem, I think... No, I'm not pointing at path problem. Could you try to build it as normal user? -- best regards q#
Re: Problems building lang/parrot
On 2009-05-26, STeve Andre' and...@msu.edu wrote: Given that I see parrot-.0.9.0.1 in the snapshot package area, it is my fault that I cannot build package it myself. I've been puzzling over this for a bit now, and am finally asking for a clue. I have script output of the entire process but it compiles ok--its a package building time that produces the error. The problem must occur earlier in the build, there must be something stopping those files from being produced. Please send or post the URL to the whole build log, or if you want to dig yourself, look for anything odd around these lines: /usr/obj/ports/parrot-0.9.0.1/parrot-0.9.0.1/parrot -o pipp.pbc pipp.pir /usr/obj/ports/parrot-0.9.0.1/parrot-0.9.0.1/parrot -o src/common/php_ctype.pbc src/common/php_ctype.pir /usr/obj/ports/parrot-0.9.0.1/parrot-0.9.0.1/parrot -o src/common/php_gmp.pbc src/common/php_gmp.pir /usr/obj/ports/parrot-0.9.0.1/parrot-0.9.0.1/parrot -o src/common/php_pcre.pbc src/common/php_pcre.pir gmake[1]: Leaving directory `/usr/obj/ports/parrot-0.9.0.1/parrot-0.9.0.1/languages/pipp'
Re: Problems building lang/parrot
On Tuesday 26 May 2009 15:47:20 Mikolaj Kucharski wrote: On Tue, May 26, 2009 at 12:15:10PM -0400, STeve Andre' wrote: Clues appreciated. Hmmm. Yes I am, as I normally do. You're pointing at a path problem, I think... No, I'm not pointing at path problem. Could you try to build it as normal user? Well, building it as myself, I get the following (I am feeling dumb currently). --STeve Andre' vista /usr/ports/lang/parrot make package `/usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386/.fake_done' is up to date. === Building package for parrot-0.9.0.1 Create /usr/ports/packages/i386/all/parrot-0.9.0.1.tgz Switching to /usr/ports/lang/parrot/pkg/PFRAG.i386 Error: no @owner for /usr/local/include/src/jit_emit.h (steve) Error: no @owner for /usr/local/bin/parrot (steve) Error: no @owner for /usr/local/bin/parrot_config (steve) Error: no @owner for /usr/local/bin/parrot_debugger (steve) Error: no @owner for /usr/local/bin/pbc_disassemble (steve) Error: no @owner for /usr/local/bin/pbc_info (steve) Error: no @owner for /usr/local/bin/pbc_merge (steve) Error: no @owner for /usr/local/bin/pbc_to_exe (steve) Error: no @owner for /usr/local/bin/pdump (steve) Error: no @owner for /usr/local/bin/perl6 (steve) Error: no @owner for /usr/local/compilers/imcc/imclexer.c (steve) Error: no @owner for /usr/local/compilers/json/JSON.pbc (steve) Error: no @owner for /usr/local/compilers/json/JSON/grammar.pbc (steve) Error: no @owner for /usr/local/compilers/json/JSON/pge2pir.pbc (steve) Error: no @owner for /usr/local/compilers/nqp/nqp.pbc (steve) Error: no @owner for /usr/local/compilers/tge/TGE/Compiler.pbc (steve) Error: no @owner for /usr/local/compilers/tge/TGE/Grammar.pbc (steve) Error: no @owner for /usr/local/compilers/tge/TGE/Parser.pbc (steve) Error: no @owner for /usr/local/compilers/tge/TGE/Rule.pbc (steve) Error: no @owner for /usr/local/compilers/tge/TGE/Tree.pbc (steve) Error: no @owner for /usr/local/compilers/tge/tgc.pir (steve) Error: no @owner for /usr/local/config/auto/cpu/i386/memcpy_mmx.c (steve) Error: no @owner for /usr/local/config/auto/cpu/i386/memcpy_sse.c (steve) Error: no @owner for /usr/local/config/gen/platform/ansi/dl.c (steve) Error: no @owner for /usr/local/config/gen/platform/ansi/time.c (steve) Error: no @owner for /usr/local/config/gen/platform/darwin/memalign.c (steve) [lots of output deleted] Error: no @owner for /usr/local/share/examples/parrot/tutorial/56_defined.pir (steve) Error: no @owner for /usr/local/share/examples/parrot/tutorial/57_exists.pir (steve) Error: no @owner for /usr/local/share/examples/parrot/tutorial/60_subroutines.pir (steve) Error: no @owner for /usr/local/share/examples/parrot/tutorial/61_namespaces.pir (steve) Error: no @owner for /usr/local/share/examples/parrot/tutorial/62_namespaces.pir (steve) Error: no @owner for /usr/local/share/examples/parrot/tutorial/70_class_object.pir (steve) Error: no @owner for /usr/local/share/examples/parrot/tutorial/81_continuation.pir (steve) Error: no @owner for /usr/local/share/examples/parrot/tutorial/82_coroutine.pir (steve) Error: no @owner for /usr/local/share/examples/parrot/tutorial/83_external_libraries.pir (steve) Error: no @owner for /usr/local/share/examples/parrot/tutorial/90_writing_tests.pir (steve) Error: no @owner for /usr/local/src/nci.c (steve) Error: no @owner for /usr/local/src/null_config.c (steve) Error: no @owner for /usr/local/src/ops/core_ops_cgp.c (steve) Error: no @owner for /usr/local/src/ops/core_ops_switch.c (steve) Error: no @owner for /usr/local/src/parrot_config.c (steve) === Cleaning for parrot-0.9.0.1 rm -f /usr/ports/packages/i386/all/parrot-0.9.0.1.tgz /usr/ports/packages/i386/ftp/parrot-0.9.0.1.tgz /usr/ports/packages/i386/cdrom/parrot-0.9.0.1.tgz *** Error code 1 Stop in /usr/ports/lang/parrot (line 1432 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/lang/parrot (line 1972 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/lang/parrot (line 1952 of /usr/ports/infrastructure/mk/bsd.port.mk).
Re: Problems building lang/parrot
On Tuesday 26 May 2009 17:25:24 you wrote: On 2009-05-26, STeve Andre' and...@msu.edu wrote: Given that I see parrot-.0.9.0.1 in the snapshot package area, it is my fault that I cannot build package it myself. I've been puzzling over this for a bit now, and am finally asking for a clue. I have script output of the entire process but it compiles ok--its a package building time that produces the error. The problem must occur earlier in the build, there must be something stopping those files from being produced. Please send or post the URL to the whole build log, or if you want to dig yourself, look for anything odd around these lines: /usr/obj/ports/parrot-0.9.0.1/parrot-0.9.0.1/parrot -o pipp.pbc pipp.pir /usr/obj/ports/parrot-0.9.0.1/parrot-0.9.0.1/parrot -o src/common/php_ctype.pbc src/common/php_ctype.pir /usr/obj/ports/parrot-0.9.0.1/parrot-0.9.0.1/parrot -o src/common/php_gmp.pbc src/common/php_gmp.pir /usr/obj/ports/parrot-0.9.0.1/parrot-0.9.0.1/parrot -o src/common/php_pcre.pbc src/common/php_pcre.pir gmake[1]: Leaving directory `/usr/obj/ports/parrot-0.9.0.1/parrot-0.9.0.1/languages/pipp' Thank you Stewart, the problem does indeed seem to lie farther up. The lines you mention aren't there, mostly. After seeing this I did a make checksum and all is well. However, in combing the 300K script file I found this. If this isn't enough I'll post the entire script file. Thanks for your help. --STeve /usr/bin/perl -e 'chdir shift @ARGV; system q{make}, @ARGV; exit $? 8;' lisp ../../parrot -o lisp.pbc lisp.pir error:imcc:syntax error, unexpected VAR, expecting '(' in macro '.NIL' line 20 included from 'NULL' line 33 included from 'CAR' line 39 included from 'read.pir' line 33 included from 'lisp.pir' line 1 error:imcc:syntax error, unexpected VAR, expecting '(' in macro '.NIL' line 20 included from 'CAR' line 39 included from 'read.pir' line 33 included from 'lisp.pir' line 1 error:imcc:syntax error, unexpected VAR, expecting '(' in macro '.NIL' line 20 included from 'LIST_1' line 171 included from 'LIST_2' line 80 included from 'read.pir' line 33 included from 'lisp.pir' line 1 error:imcc:syntax error, unexpected VAR, expecting '(' in macro '.NIL' line 20 included from 'read.pir' line 33 included from 'lisp.pir' line 1 error:imcc:syntax error, unexpected VAR, expecting '(' in macro '.NIL' line 20 included from 'NULL' line 33 included from 'CAR' line 216 included from 'read.pir' line 33 included from 'lisp.pir' line 1 error:imcc:syntax error, unexpected VAR, expecting '(' in macro '.NIL' line 20 included from 'CAR' line 216 included from 'read.pir' line 33 included from 'lisp.pir' line 1 error:imcc:syntax error, unexpected VAR, expecting '(' in macro '.NIL' line 20 included from 'NULL' line 90 included from 'CDR' line 111 included from 'SECOND' line 220 included from 'read.pir' line 33 included from 'lisp.pir' line 1 error:imcc:syntax error, unexpected VAR, expecting '(' in macro '.NIL' line 20 included from 'CDR' line 111 included from 'SECOND' line 220 included from 'read.pir' line 33 included from 'lisp.pir' line 1 error:imcc:syntax error, unexpected VAR, expecting '(' in macro '.NIL' line 20 included from 'NULL' line 33 included from 'CAR' line 112 included from 'SECOND' line 220 included from 'read.pir' line 33 included from 'lisp.pir' line 1 error:imcc:syntax error, unexpected VAR, expecting '(' in macro '.NIL' line 20 included from 'CAR' line 112 included from 'SECOND' line 220 included from 'read.pir' line 33 included from 'lisp.pir' line 1 error:imcc:syntax error, unexpected VAR, expecting '(' in macro '.NIL' line 20 included from 'NULL' line 221 included from 'read.pir' line 33 included from 'lisp.pir' line 1 error:imcc:syntax error, unexpected VAR, expecting '(' in macro '.NIL' line 20 included from 'read.pir' line 33 included from 'lisp.pir' line 1 error:imcc:syntax error, unexpected VAR, expecting '(' in macro '.NIL' line 20 included from 'LIST_1' line 264 included from 'read.pir' line 33 included from 'lisp.pir' line 1 error:imcc:syntax error, unexpected VAR, expecting '(' in macro '.NIL' line 20 included from 'NULL' line 58 included from 'APPEND' line 269 included from 'read.pir' line 33 included from 'lisp.pir' line 1 error:imcc:syntax error, unexpected VAR, expecting '(' in macro '.NIL' line 20 included from 'NULL' line 63 included from 'APPEND' line 269 included from 'read.pir' line 33 included from
Problems building lang/parrot
Given that I see parrot-.0.9.0.1 in the snapshot package area, it is my fault that I cannot build package it myself. I've been puzzling over this for a bit now, and am finally asking for a clue. I have script output of the entire process but it compiles ok--its a package building time that produces the error. Clues appreciated. --STeve Andre' cd /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386/usr/local/share/doc/parrot mv docs/* . rmdir docs mv /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386/usr/local/share/doc/parrot/examples /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386/usr/local/share/examples/parrot === Building package for parrot-0.9.0.1 Create /usr/ports/packages/i386/all/parrot-0.9.0.1.tgz Switching to /usr/ports/lang/parrot/pkg/PFRAG.i386 Error in package: /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386//usr/local/languages/pipp/pipp.pbc does not exist Error in package: /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386//usr/local/languages/pipp/src/common/php_ctype.pbc does not exist Error in package: /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386//usr/local/languages/pipp/src/common/php_pcre.pbc does not exist Error in package: /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386//usr/local/languages/pipp/src/common/pipplib.pbc does not exist Error in package: /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386//usr/local/lib/parrot/dynext/php_group.so does not exist Error in package: /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386//usr/local/share/doc/parrot/ops/bit.pod does not exist Error in package: /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386//usr/local/share/doc/parrot/ops/cmp.pod does not exist Error in package: /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386//usr/local/share/doc/parrot/ops/core.pod does not exist Error in package: /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386//usr/local/share/doc/parrot/ops/debug.pod does not exist Error in package: /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386//usr/local/share/doc/parrot/ops/experimental.pod does not exist Error in package: /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386//usr/local/share/doc/parrot/ops/io.pod does not exist Error in package: /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386//usr/local/share/doc/parrot/ops/math.pod does not exist Error in package: /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386//usr/local/share/doc/parrot/ops/object.pod does not exist Error in package: /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386//usr/local/share/doc/parrot/ops/obscure.pod does not exist Error in package: /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386//usr/local/share/doc/parrot/ops/pic.pod does not exist Error in package: /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386//usr/local/share/doc/parrot/ops/pmc.pod does not exist Error in package: /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386//usr/local/share/doc/parrot/ops/set.pod does not exist Error in package: /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386//usr/local/share/doc/parrot/ops/string.pod does not exist Error in package: /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386//usr/local/share/doc/parrot/ops/sys.pod does not exist Error in package: /usr/ports/lang/parrot/w-parrot-0.9.0.1/fake-i386//usr/local/share/doc/parrot/ops/var.pod does not exist === Cleaning for parrot-0.9.0.1 rm -f /usr/ports/packages/i386/all/parrot-0.9.0.1.tgz /usr/ports/packages/i386/ftp/parrot-0.9.0.1.tgz /usr/ports/packages/i386/cdrom/parrot-0.9.0.1.tgz *** Error code 1 Stop in /usr/ports/lang/parrot (line 1432 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/lang/parrot (line 1972 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1