Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Playing with packages w/patch

1 view
Skip to first unread message

Armin Wolfermann

unread,
Sep 5, 2003, 10:11:41 AM9/5/03
to help-c...@gnu.org
Hi,

I decided to try the new packages feature today and found it very
promising. To make it work on my Solaris box, I had to apply the
following patch (%% for snprintf, and quotes for OpenPKG's rpm):

--- package.c.save Fri Sep 5 15:51:11 2003
+++ package.c Fri Sep 5 15:51:22 2003
@@ -75,7 +75,7 @@
enum cmpsense result;
int match = 0;

-snprintf(VBUFF,bufsize,"/bin/rpm -q --queryformat %{EPOCH}:%{VERSION}-%{RELEASE}\\n %s", package);
+snprintf(VBUFF,bufsize,"/bin/rpm -q --queryformat '%%{EPOCH}:%%{VERSION}-%%{RELEASE}\\n' %s", package);

if ((pp = cfpopen(VBUFF, "r")) == NULL)
{

I would also suggest to make the path to rpm configurable, as it's not
always under /bin (OpenPKG uses it's own hierarchy). Something like

DefaultPkgMgrPath = ( /pkg/bin/rpm )

maybe?

Regards,
Armin Wolfermann


0 new messages