socsvn commit: r253050 - soc2013/mattbw

mattbw at FreeBSD.org mattbw at FreeBSD.org
Sun Jun 16 23:38:55 UTC 2013


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 <stdio.h>
+#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;
+}


More information about the svn-soc-all mailing list