Re: rpmGetArchInfo() failure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2004-02-24 at 11:54 +0200, Panu Matilainen wrote:
> You need to initialize rpm first by calling rpmReadConfigFiles().
> However calls to rpmGetArchInfo() and rpmGetOsInfo() are surrounded by 
> #ifdef DYING, rpm itself uses this instead:
>     const char *platform = rpmExpand("%{_target_platform}", NULL);
>     const char *arch = rpmExpand("%{_target_cpu}", NULL);
>     const char *os = rpmExpand("%{_target_os}", NULL);
> 
Thanks

I was trying to read the arch info into my program's config.globals,
long before i called rpmReadConfigFiles().

Dave Farning


_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux