From owner-svn-soc-all@FreeBSD.ORG Sun Jun 16 23:38:55 2013 Return-Path: Delivered-To: svn-soc-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 4D424FB7 for ; Sun, 16 Jun 2013 23:38:55 +0000 (UTC) (envelope-from mattbw@FreeBSD.org) Received: from socsvn.freebsd.org (socsvn.freebsd.org [IPv6:2001:1900:2254:206a::16:124]) by mx1.freebsd.org (Postfix) with ESMTP id 3F0DC1EAC for ; Sun, 16 Jun 2013 23:38:55 +0000 (UTC) Received: from socsvn.freebsd.org ([127.0.1.124]) by socsvn.freebsd.org (8.14.7/8.14.7) with ESMTP id r5GNctTN085000 for ; Sun, 16 Jun 2013 23:38:55 GMT (envelope-from mattbw@FreeBSD.org) Received: (from www@localhost) by socsvn.freebsd.org (8.14.7/8.14.6/Submit) id r5GNctKe084997 for svn-soc-all@FreeBSD.org; Sun, 16 Jun 2013 23:38:55 GMT (envelope-from mattbw@FreeBSD.org) Date: Sun, 16 Jun 2013 23:38:55 GMT Message-Id: <201306162338.r5GNctKe084997@socsvn.freebsd.org> X-Authentication-Warning: socsvn.freebsd.org: www set sender to mattbw@FreeBSD.org using -f From: mattbw@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r253050 - soc2013/mattbw MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Jun 2013 23:38:55 -0000 Author: mattbw Date: Sun Jun 16 23:38:54 2013 New Revision: 253050 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=253050 Log: (very trivial) initial pokings of pkgng and packagekit, mostly for my benefit to make sure both are installed properly Added: soc2013/mattbw/Makefile soc2013/mattbw/test.c Added: soc2013/mattbw/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ soc2013/mattbw/Makefile Sun Jun 16 23:38:54 2013 (r253050) @@ -0,0 +1,12 @@ +# To be BSD-ified later. + +PKGS= pkg packagekit-plugin +CC= clang +CFLAGS= `pkg-config --cflags $(PKGS)` +LIBS= `pkg-config --libs $(PKGS)` + +test: test.o + $(CC) $(LIBS) -o test test.o + +test.o: test.c + $(CC) $(CFLAGS) -c -o test.o test.c Added: soc2013/mattbw/test.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ soc2013/mattbw/test.c Sun Jun 16 23:38:54 2013 (r253050) @@ -0,0 +1,15 @@ +/* Test to make sure that pkgng and packagekit are both being linked to. */ + +#define I_KNOW_THE_PACKAGEKIT_GLIB2_API_IS_SUBJECT_TO_CHANGE + +#include +#include "pkg.h" +#include "packagekit-glib2/packagekit.h" + +int +main(int argv, char **argc) +{ + printf("pkgng version: %s\n", PKGVERSION); + printf("packagekit version: %i.%i.%i\n", PK_MAJOR_VERSION, PK_MINOR_VERSION, PK_MICRO_VERSION); + return 0; +}