* RPM bindings for perl
@ 2010-06-26 14:59 Alex
2010-06-26 23:34 ` RPM bindings for perl - probable bug Bruce Ferrell
0 siblings, 1 reply; 2+ messages in thread
From: Alex @ 2010-06-26 14:59 UTC (permalink / raw)
To: linux-admin
Hi,
I'm trying to search inside various RPMs using perl for information
such as name, version, vendor, etc, and wondered what the best
approach would be. I found perl-RPM from RJRAY at CPAN, but it's
dated, and doesn't compile against a distro with rpm-4.8.
I searched freshmeat for existing code to manipulate RPM information
and wasn't very successful.
What is the best approach to do this?
Thanks,
Alex
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: RPM bindings for perl - probable bug
2010-06-26 14:59 RPM bindings for perl Alex
@ 2010-06-26 23:34 ` Bruce Ferrell
0 siblings, 0 replies; 2+ messages in thread
From: Bruce Ferrell @ 2010-06-26 23:34 UTC (permalink / raw)
To: Alex; +Cc: linux-admin, rjray
On 06/26/2010 07:59 AM, Alex wrote:
> Hi,
>
> I'm trying to search inside various RPMs using perl for information
> such as name, version, vendor, etc, and wondered what the best
> approach would be. I found perl-RPM from RJRAY at CPAN, but it's
> dated, and doesn't compile against a distro with rpm-4.8.
>
> I searched freshmeat for existing code to manipulate RPM information
> and wasn't very successful.
>
> What is the best approach to do this?
>
> Thanks,
> Alex
> --
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
>
I just tried it (perl-rpm-1.51) on a SuSE 10. system with rpm 4.4. No
problemo.
it doesn't install on my 11.2 with rpm 4.7.1 with the following error:
perl Makefile.PL
Note (probably harmless): No library found for -lrpmdb
Local build detected. Generating Perl-RPM.spec...
Generating rpmrc...
Generating rpmmacros...
Writing Makefile for RPM
make
cc -c -I. -I/usr/include/rpm -D_REENTRANT -D_GNU_SOURCE
-DPERL_USE_SAFE_PUTENV -DDEBUGGING -fno-strict-aliasing -pipe
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fomit-frame-pointer
-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector
-funwind-tables -fasynchronous-unwind-tables -g -Wall -pipe
-DVERSION=\"1.51\" -DXS_VERSION=\"1.51\" -fPIC
"-I/usr/lib/perl5/5.10.0/i586-linux-thread-multi/CORE"
-DRPM_VERSION=0x040701 RPM/Database.c -o RPM/Database.o
RPM/Database.xs: In function ‘rpmdb_TIEHASH’:
RPM/Database.xs:46: warning: implicit declaration of function ‘rpmError’
RPM/Database.xs:46: error: ‘RPMERR_BADARG’ undeclared (first use in this
function)
RPM/Database.xs:46: error: (Each undeclared identifier is reported only once
RPM/Database.xs:46: error: for each function it appears in.)
RPM/Database.xs: In function ‘XS_RPM__Database_STORE’:
RPM/Database.xs:169: error: ‘RPMERR_NOCREATEDB’ undeclared (first use in
this function)
RPM/Database.xs: In function ‘XS_RPM__Database_DELETE’:
RPM/Database.xs:182: error: ‘RPMERR_NOCREATEDB’ undeclared (first use in
this function)
RPM/Database.xs: In function ‘XS_RPM__Database_CLEAR’:
RPM/Database.xs:194: error: ‘RPMERR_NOCREATEDB’ undeclared (first use in
this function)
RPM/Database.xs: In function ‘XS_RPM__Database_init’:
RPM/Database.xs:264: error: ‘RPMERR_BADARG’ undeclared (first use in
this function)
RPM/Database.xs: In function ‘XS_RPM__Database_rebuild’:
RPM/Database.xs:284: error: ‘RPMERR_BADARG’ undeclared (first use in
this function)
RPM/Database.xs: In function ‘XS_RPM__Database_find_by_file’:
RPM/Database.xs:320: error: ‘RPMERR_BADARG’ undeclared (first use in
this function)
make: *** [RPM/Database.o] Error 1
Guess I'll have to open a bug at:
rjray@blackperl.com
like the readme says
Bruce
--
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-06-26 23:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-26 14:59 RPM bindings for perl Alex
2010-06-26 23:34 ` RPM bindings for perl - probable bug Bruce Ferrell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).