hier 7 question
Hello, I am porting ATF, http://www.netbsd.org/~jmmv/atf/, a unit testing framework for C, C++ and Shell. The thing is is that it installs a bunch of self tests in ${PREFIX}/tests/atf. Is this the right place for it? From Hier(7) binaries should not go under share/. Otherwise I think it is done. Personally I think the tests/port could be a handy thing to have. What is your opinion/advice on this? Thanks, marc -- Freedom is nothing but a chance to be better. Albert Camus ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to [EMAIL PROTECTED]
Makefile/man page problem
Hello, I am having a problem with installing/deinstalling man pages of a port I am working on, atf if interested. They are not being compressed on install and when I denistall the port I get error messages as follows: pkg_delete: file '/var/tmp/atf/man/man3/atf-c++/atf-c++-api.3.gz' doesn't exist pkg_delete: file '/var/tmp/atf/man/man3/atf-c/atf-c-api.3.gz' doesn't exist pkg_delete: file '/var/tmp/atf/man/man3/atf-sh/atf-sh-api.3.gz' doesn't exist pkg_delete: file '/var/tmp/atf/man/man4/doc/atf-test-case.4.gz' doesn't exist pkg_delete: couldn't entirely delete package (perhaps the packing list is now the files are in the right place, including atf-test-case.4, but they are not compressed. The prefix I am using for testing is /var/tmp/atf btw. And this is on 8.0. Here is my Makefile: bob# more Makefile # New ports collection makefile for: ATF # Date created:12 May 2008 # Whom:Marc Spitzer [EMAIL PROTECTED] # # $FreeBSD$ # PORTNAME= atf PORTVERSION= 0.5 CATEGORIES=devel MASTER_SITES= ftp://ftp.netbsd.org/pub/NetBSD/misc/jmmv/atf/0.5/ MAINTAINER=[EMAIL PROTECTED] COMMENT=The ATF unit testing framework, C, C++ and Posix Shell bindings GNU_CONFIGURE= yes CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} USE_AUTOTOOLS= autoconf:261 MAN1= tools/atf-format.1 tools/atf-compile.1 tools/atf-cleanup.1 tools/atf-run.1 \ tools/atf-config.1 tools/atf-version.1 tools/atf-killpg.1 tools/atf-report.1 \ tools/atf-exec.1 doc/atf-test-program.1 MAN3= atf-c++/atf-c++-api.3 atf-c/atf-c-api.3 atf-sh/atf-sh-api.3 MAN4= doc/atf-test-case.4 MANCOMPRESSED=yes .include bsd.port.mk bob# Thanks for the help, marc -- Freedom is nothing but a chance to be better. Albert Camus ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: hier 7 question
On Wed, May 21, 2008 at 10:51 PM, Sahil Tandon [EMAIL PROTECTED] wrote: * Marc Spitzer [EMAIL PROTECTED] [05-21-2008]: On Sun, May 18, 2008 at 9:31 PM, Brooks Davis [EMAIL PROTECTED] wrote: On Sun, May 18, 2008 at 08:20:03PM -0400, Marc Spitzer wrote: Hello, I am porting ATF, http://www.netbsd.org/~jmmv/atf/, a unit testing framework for C, C++ and Shell. The thing is is that it installs a bunch of self tests in ${PREFIX}/tests/atf. Is this the right place for it? From Hier(7) binaries should not go under share/. Otherwise I think it is done. Personally I think the tests/port could be a handy thing to have. What is your opinion/advice on this? libexec/ seems like it might be the right place. Forgive me for an ignorant question but assuming I can not figure out how to add a knob onto the configure script, what would be the proper way to move the files under libexec? I could just move ${PREFIX}/test to ${PREFIX}/libexec but that seems extra hackish. I do not want a solution but a pointer would be nice. It's not hackish to put executables in libexec. See 5.14.5 of the Porter's Handbook and adjust your Makefile to install the file(s) there. Forgive my poor explanation. I do not have a problem with putting things in libexec, especially if they actually belong there. My problem stems from ignorance in two ways: 1: I know almost nothing about autoconf and friends from a developer POV 2: My knowledge of ports is slightly better, getting better all the time though. The configure script does not have a --testdir knob that I can set to ${PREFIX}/libexec/test to install the test programs their, although it does have one for everything else. I can just just do 'mv ${prefix}/test ${prefix}/libexec' to move it over, but that is what I was saying looks very hackish. So I guess my question is what would be the correct way to move a directory tree over with out steping on any preexisting directory there? Thanks, marc -- Freedom is nothing but a chance to be better. Albert Camus ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: hier 7 question
On Wed, May 21, 2008 at 11:13 PM, Sahil Tandon [EMAIL PROTECTED] wrote: * Marc Spitzer [EMAIL PROTECTED] [05-21-2008]: The configure script does not have a --testdir knob that I can set to ${PREFIX}/libexec/test to install the test programs their, although it does have one for everything else. I can just just do 'mv ${prefix}/test ${prefix}/libexec' to move it over, but that is what I was saying looks very hackish. So I guess my question is what would be the correct way to move a directory tree over with out steping on any preexisting directory there? Do the files have to be in a 'test' directory? Perhaps you can just copy them into libexec/ sans the 'test' dir. The problem with that is that there is a tree under test/ with over 200 files/subdirs in it. And I would like to do this cleanly. I do have a request for a knob in with the developer though. Thanks, marc -- Freedom is nothing but a chance to be better. Albert Camus ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to [EMAIL PROTECTED]
new port devel/atf and libtool fun, umm help
Hello, I am trying to port atf, a unit testing framework to freebsd and I had everything working except for a warning about aclocal being needed because I patched configure.ac to move the *.pc files from lib/pkgconfig to libdata/pkgconfig per port check /usr/ports/devel/atf now it dies in configure like so: === Extracting for atf-0.5 = MD5 Checksum OK for atf-0.5.tar.gz. = SHA256 Checksum OK for atf-0.5.tar.gz. === Patching for atf-0.5 === Applying FreeBSD patches for atf-0.5 === atf-0.5 depends on file: /usr/local/bin/automake-1.10 - found === atf-0.5 depends on file: /usr/local/bin/autoconf-2.61 - found === atf-0.5 depends on file: /usr/local/bin/libtool - found === Configuring for atf-0.5 configure.ac:63: error: possibly undefined macro: AC_PROG_LIBTOOL If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. *** Error code 1 Stop in /usr/ports/devel/atf. I have attached the port as a tarball. Thanks, marc ps mk-plist is just a script I wrote to automate plist creation, not part of the port. marc -- Freedom is nothing but a chance to be better. Albert Camus ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to [EMAIL PROTECTED]