You are not logged in.
Pages: 1
Hello,
I need to create dynamic or static pacman library , so I can pinvoke pacman methods in C#. I really suck at C so... plese be kind.
So far I can make the dynamic lib. in pacman's src directory
cc -shared pacman.o package.o pacsync.o strhash.o util.o rpmvercmp.o md5driver.o list.o md5.o db.o ../libftp/unshared/ftplib.o /usr/lib/libtar.a /usr/lib/libz.so -o libpacman.so
C# code
using System;
using System.Runtime.InteropServices;
class MainClass
{
public static void Main (string[] args)
{
version();
}
[DllImport ("libpacman")]
private static extern void version();
}
output
.--. Pacman v2.9.8
/ _.-' .-. .-. .-. Copyright (C) 2002-2006 Judd Vinet <jvinet>
'-. '-' '-' '-'
'--' This program may be freely redistributed under
the terms of the GNU General Public License
... working nicely.
But I'm not happy, how can I acheive the same results by modifing the make system?
Also please point out an pitfalls. is it this simple or am I missing something.
Offline
pacman3 already distributes the meat of the package management in library form.
Offline
YES! I can put off wrapping my head aroung good ole GNU's 1,2,3 make system. Thanks for letting me know. I'll search around for where I can find pacman3 and give it a whirl.
Offline
CVS: http://cvs.archlinux.org/cgi-bin/viewcv … oot=Pacman
This might interest you as well: http://www.archlinux.org/mailman/listinfo/pacman-dev
Offline
Pages: 1