Re: NEW: lang/pure
On Thu, Jun 12, 2014 at 09:04:20PM +1000, Anders Jensen-Waud wrote: On 12 Jun 2014, at 4:30 pm, Sebastien Marie semarie-open...@latrappe.fr wrote: On Thu, Jun 12, 2014 at 03:25:37PM +1000, Anders Jensen-Waud wrote: portcheck(1) complains: LIB_DEPENDS devel/llvm not needed for lang/pure ? Sure it is LIB_DEPENDS ? and not a BUILD_ and/or RUN_DEPENDS ? OK, so I have fixed the port now based on your recommendations. The Makefile now has: SHARED_LIBS += pure 0.0 # 8.0 ... which should theoretically do the job. However, when I run the ``make port-lib-depends-check'', I get the following error: # make port-lib-depends-check Asking ports for dependency llvm-3.3p3(devel/llvm) pure-0.60(lang/pure): Missing lib: libpure.so.8 (/usr/local/bin/pure) (NOT REACHABLE) *** Error 1 in target 'port-lib-depends-check' (ignored) Is there any reason for that error message when I have explicitly specified version 0.0? Also specifying version 8.0 generates a similar check error. Ping! -- Anders Jensen-Waud E: aojen...@gmail.com
Re: NEW: lang/pure
On 12 Jun 2014, at 4:30 pm, Sebastien Marie semarie-open...@latrappe.fr wrote: On Thu, Jun 12, 2014 at 03:25:37PM +1000, Anders Jensen-Waud wrote: On 12 Jun 2014, at 1:35 pm, Anders Jensen-Waud aojen...@gmail.com wrote: Hello, I have written a new port for Pure -- a functional programming language with term rewriting (http://purelang.bitbucket.org/). The port is attached as a tarball. Could I kindly ask you to test and provide feedback? I just realised that there was a make test target available in the base distribution. It has been included in the attached tarball, so please use that one instead. -- Anders Jensen-Waud Hi, Some notes about Makefile: Thank you for your feedback. SHARED_LIBS += pure 8.0 If I remember well, a new port should use 0.0 for version numbering. This version numbering was advised by make when I was running make package. I will try and change it. WANTLIB += iconv gmp mpfr pthread readline stdc++ termcap z c m LIB_DEPENDS=devel/gmp devel/mpfr devel/llvm portcheck(1) complains: LIB_DEPENDS devel/llvm not needed for lang/pure ? Sure it is LIB_DEPENDS ? and not a BUILD_ and/or RUN_DEPENDS ? Excuse my ignorance, but I thought everything was included as a library for llvm dependencies. I will try to do BUILD/RUN_DEPENDS and follow up accordingly. Else, under i386 the build fail: === Building for pure-0.60 c++ -O2 -pipe -I/usr/local/include -I/usr/local/include -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I. -I/usr/obj/pobj/pure-0.60/pure-0.60 -DLIBDIR='/usr/local/lib' -DLIBPURE='libpure.so.8' -c -o interpreter.o /usr/obj/pobj/pure-0.60/pure-0.60/interpreter.cc /usr/obj/pobj/pure-0.60/pure-0.60/interpreter.cc: In member function 'void interpreter::init()': /usr/obj/pobj/pure-0.60/pure-0.60/interpreter.cc:285: error: no matching function for call to 'llvm::legacy::FunctionPassManager::add(llvm::DataLayout*)' /usr/local/include/llvm/IR/LegacyPassManager.h:83: note: candidates are: virtual void llvm::legacy::FunctionPassManager::add(llvm::Pass*) /usr/obj/pobj/pure-0.60/pure-0.60/interpreter.cc: In member function 'bool interpreter::LoadBitcode(bool, const char*, std::string*)': /usr/obj/pobj/pure-0.60/pure-0.60/interpreter.cc:2427: error: request for member 'empty' in 'M- llvm::Module::getDataLayout()', which is of non-class type 'const llvm::DataLayout*' /usr/obj/pobj/pure-0.60/pure-0.60/interpreter.cc:2427: error: no match for 'operator!=' in 'M- llvm::Module::getDataLayout() != layout' /usr/local/include/llvm/ADT/StringRef.h:532: note: candidates are: bool llvm::operator!=(llvm::StringRef, llvm::StringRef) /usr/local/include/llvm/Target/TargetOptions.h:226: note: bool llvm::operator!=(const llvm::TargetOptions, const llvm::TargetOptions) /usr/local/include/llvm/ADT/APInt.h:1715: note: bool llvm::operator!=(uint64_t, const llvm::APInt) /usr/local/include/llvm/Support/system_error.h:808: note: bool llvm::operator!=(const llvm::error_code, const llvm::error_code) /usr/local/include/llvm/Support/system_error.h:812: note: bool llvm::operator!=(const llvm::error_code, const llvm::error_condition) /usr/local/include/llvm/Support/system_error.h:816: note: bool llvm::operator!=(const llvm::error_condition, const llvm::error_code) /usr/local/include/llvm/Support/system_error.h:820: note: bool llvm::operator!=(const llvm::error_condition, const llvm::error_condition) /usr/obj/pobj/pure-0.60/pure-0.60/interpreter.cc:2435: error: invalid operands of types 'const char [26]' and 'const llvm::DataLayout*' to binary 'operator+' /usr/obj/pobj/pure-0.60/pure-0.60/interpreter.cc: In member function 'int interpreter::compiler(std::string, std::liststd::basic_stringchar, std::char_traitschar, std::allocatorchar , std::allocatorstd::basic_stringchar, std::char_traitschar, std::allocatorchar )': /usr/obj/pobj/pure-0.60/pure-0.60/interpreter.cc:10521: error: 'F_Binary' is not a member of 'llvm::sys::fs' Makefile:249: recipe for target 'interpreter.o' failed gmake: *** [interpreter.o] Error 1 *** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2695 '/usr/obj/pobj/pure-0.60/build-i386/.build_done') *** Error 1 in /usr/ports/mystuff/lang/pure (/usr/ports/infrastructure/mk/bsd.port.mk:2423 'all') -- Sébastien Marie -- Anders Jensen-Waud
Re: NEW: lang/pure
On 12 Jun 2014, at 4:30 pm, Sebastien Marie semarie-open...@latrappe.fr wrote: On Thu, Jun 12, 2014 at 03:25:37PM +1000, Anders Jensen-Waud wrote: portcheck(1) complains: LIB_DEPENDS devel/llvm not needed for lang/pure ? Sure it is LIB_DEPENDS ? and not a BUILD_ and/or RUN_DEPENDS ? OK, so I have fixed the port now based on your recommendations. The Makefile now has: SHARED_LIBS += pure 0.0 # 8.0 ... which should theoretically do the job. However, when I run the ``make port-lib-depends-check'', I get the following error: # make port-lib-depends-check Asking ports for dependency llvm-3.3p3(devel/llvm) pure-0.60(lang/pure): Missing lib: libpure.so.8 (/usr/local/bin/pure) (NOT REACHABLE) *** Error 1 in target 'port-lib-depends-check' (ignored) Is there any reason for that error message when I have explicitly specified version 0.0? Also specifying version 8.0 generates a similar check error. pure-0.60-v2.tar.gz Description: GNU Zip compressed data -- Anders Jensen-Waud
Error compiling LLVM from ports on OpenBSD 5.5 (amd64)
I receive an error when trying to build LLVM from ports on OpenBSD 5.5. The error happens during the make configure stage: # uname -a OpenBSD tool.my.domain 5.5 GENERIC.MP#315 amd64 # pwd /usr/ports/devel/llvm # make build === llvm-3.3p3 depends on: py-sphinx-* - py-sphinx-1.1.3p0 === llvm-3.3p3 depends on: cmake-=2.8.11.1p0 - cmake-2.8.12.1p1 === llvm-3.3p3 depends on: ninja-* - ninja-1.4.0 === llvm-3.3p3 depends on: python-=2.7,2.8 - python-2.7.6p0 === Verifying specs: c m pthread stdc++ z c m pthread stdc++ z === found c.73.1 m.9.0 pthread.18.0 stdc++.57.0 z.5.0 === Checking files for llvm-3.3p3 `/usr/ports/distfiles/llvm-3.3.src.tar.gz' is up to date. `/usr/ports/distfiles/cfe-3.3.src.tar.gz' is up to date. (SHA256) llvm-3.3.src.tar.gz: OK (SHA256) cfe-3.3.src.tar.gz: OK === Extracting for llvm-3.3p3 === Patching for llvm-3.3p3 === Configuring for llvm-3.3p3 Floating point exception (core dumped) *** Error 136 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2650 '/usr/ports/pobj/llvm-3.3/build-amd64/.configure_done') *** Error 1 in /usr/ports/devel/llvm (/usr/ports/infrastructure/mk/bsd.port.mk:2406 'build') Anyone else experiencing this problem? Regards, Anders -- Anders Jensen-Waud
NEW: lang/pure
Hello, I have written a new port for Pure -- a functional programming language with term rewriting (http://purelang.bitbucket.org/). The port is attached as a tarball. Could I kindly ask you to test and provide feedback? Regards, -- Anders pure-0.60.tar.gz Description: GNU Zip compressed data
Re: NEW: lang/pure
On 12 Jun 2014, at 1:35 pm, Anders Jensen-Waud aojen...@gmail.com wrote: Hello, I have written a new port for Pure -- a functional programming language with term rewriting (http://purelang.bitbucket.org/). The port is attached as a tarball. Could I kindly ask you to test and provide feedback? I just realised that there was a make test target available in the base distribution. It has been included in the attached tarball, so please use that one instead. -- Anders Jensen-Waud pure-0.60.tar.gz Description: GNU Zip compressed data
Re: NEW: net/inspircd
On 10 Jun 2014, at 7:11 pm, Stuart Henderson st...@openbsd.org wrote: On 2014/06/10 14:34, Anders Jensen-Waud wrote: I have ported InspIRCd - a “lightweight modular” IRC server written in C++ to OpenBSD. So far I have tested the port on amd64. Please see attached tarball. relies on pluggable modules - should be SHARED_ONLY, and merge PFRAG.shared into PLIST in place of the %%shared%% tag Done. --uid=inspircd - should have an underscore prefix (also check that the port does actually build without the uid being present, the user isn't created until pkg_add time) Done. However, when running make install I now receive error that the user _inspircd does not exist. Shouldn't the ports infrastructure create it automatically as designated by the PLIST file? I have the following in my PLIST: @newgroup penvpn:731 @newuser _inspircd:731:_inspircd:daemon:InspIRCd:/nonexistent:/sbin/nologin The port is now unable to build. needs @newuser in PLIST Done (see above). CONFIGURE_STYLE=gnu - incorrect, that is only for autoconf My bad, I didn't realise that. I change it to simple, and the configure process seems to run. patch-configure - unneeded, set MAKE_FILE Yep, thank you. bad DISTNAME, use DISTFILES to rename, see various other github ports Done. cleanup whitespace (space-tab on COMMENT/DISTNAME/CONFIGURE_ARGS) Done. license marker should be explicit that it's GPLv2 only Done. DESCR is a bit long, mentions features which are't in the package, and has a spelling mistake Done. New version attached, but it currently fails to build because of the missing user. Would appreciate some comments as to how I can fix it. inspircd-v2.tar.gz Description: GNU Zip compressed data -- Anders Jensen-Waud
NEW: net/inspircd
Hi all, I have ported InspIRCd - a “lightweight modular” IRC server written in C++ to OpenBSD. So far I have tested the port on amd64. Please see attached tarball. (See http://www.inspircd.org/) This requires a new user, inspircd, to be created. I have added it to the file: /usr/ports/infrastructure/db/user.list Anyone keen to help out with testing on i386 and other architectures? -- Anders Jensen-Waud inspircd.tar.gz Description: GNU Zip compressed data
Re: NEW: lang/yabasic
Hi, After feedback from sthen@ I have removed the patches and cleaned up the Makefile. Please let me know if this is succinct enough — I have only tested the build on amd64. Cheers yabasic-v2.tar.gz Description: GNU Zip compressed data Anders On 5 Jun 2014, at 10:33 am, Anders Jensen-Waud aojen...@gmail.com wrote: Hello, I have ported yabasic (yet another basic interpreter) to OpenBSD. yabasic is currently included in FreeBSD and several Linux distributions. Tarball is attached. I have included a number of strcpy/strlcpy and strcat/strlcat patches to remove security warnings during compile time. I am happy to feed those patches back to the author. Would there be interest in including this in Ports? Regards, Anders yabasic.tar.gz
NEW: lang/yabasic
Hello, I have ported yabasic (yet another basic interpreter) to OpenBSD. yabasic is currently included in FreeBSD and several Linux distributions. Tarball is attached. I have included a number of strcpy/strlcpy and strcat/strlcat patches to remove security warnings during compile time. I am happy to feed those patches back to the author. Would there be interest in including this in Ports? Regards, Anders yabasic.tar.gz Description: GNU Zip compressed data