looking for a distro using rpm5 !

2007-12-17 Thread Olivier Thauvin
Since today, Mandriva is using rpm.org. So to continue to fully test and work on rpm5.org, I am looking for a distribution which do plan to use rpm5. This surelly mean I'll contribute to it if I find some rpm missing to me. (Notice I am a mandriva contributer already, I maintain lot of perl

Re: perl building in rpm5 rpmxs.c

2007-11-21 Thread Olivier Thauvin
Le mardi 20 novembre 2007, Jeff Johnson a écrit : On Nov 20, 2007, at 12:38 AM, David Halik wrote: I've had some issues in rpmxs.c with Sun Studio in Solaris 9 and 5.0a2. The first prob was missing symbols in the build process: rpmxs.c, line 192: undefined symbol: rpmBuildFlags rpmxs.c,

Re: perl breakage

2007-10-01 Thread Olivier Thauvin
Le lundi 01 octobre 2007, Anders F Björklund a écrit : Jeff Johnson wrote: RPM_Transaction.xs:308: error: too many arguments to function 'rpmdbAdd' RPM_Transaction.xs: In function 'XS_RPM__Transaction_dbremove': An argument was removed in 3 functions. I can back an unused argument if

Re: [CVS] RPM: rpm-4_5: rpm/ configure.ac rpm/perl/ Makefile.PL Makefile.P...

2007-09-07 Thread Olivier Thauvin
Le vendredi 07 septembre 2007, Robert Scheck a écrit : On Fri, 07 Sep 2007, Robert Scheck wrote: IMHO the second result is simply wrong. RPM.so is not linked to librpm* somehow. Why? What went wrong? Ideas? FYI: During make in koji, the following showed up, too. Maybe this could be

Re: [CVS] RPM: rpm-4_5: rpm/ configure.ac rpm/perl/ Makefile.PL Makefile.P...

2007-09-02 Thread Olivier Thauvin
Le dimanche 2 septembre 2007, Olivier Thauvin a écrit : RPM Package Manager, CVS Repository http://rpm5.org/cvs/ ___ _ Server: rpm5.org Name: Olivier Thauvin Root: /v/rpm/cvs

Re: More Perl-RPM woes

2007-08-25 Thread Olivier Thauvin
Le samedi 25 août 2007, Anders F Björklund a écrit : * it ignores any unrecognized LDFLAGS: (MakeMaker problem ?) Unrecognized argument in LIBS ignored: '-arch' Unrecognized argument in LIBS ignored: 'ppc' Unrecognized argument in LIBS ignored: '-arch' Unrecognized argument in LIBS ignored:

Re: [CVS] RPM: rpm/perl/RPM/ Files.pm rpm/perl/ RPM_Files.xs rpm/perl/t/ 0...

2007-08-21 Thread Olivier Thauvin
Le mardi 21 août 2007, Anders F Björklund a écrit : RPM Package Manager, CVS Repository http://rpm5.org/cvs/ ___ _ Server: rpm5.org Name: Olivier Thauvin Root: /v/rpm/cvs

Should we enforce src.rpm as arch independent ?

2007-08-17 Thread Olivier Thauvin
After a short discussion on irc with Jeff, I decide to work on the part I know the best: build/. My goal is to provide a way to cleanly build a packages (so many packages) for many architectures (--target foo --target bar) in envirronement and w/o the current recursivity. My though is to

Re: Issue with rpmdsCompare in head

2007-08-08 Thread Olivier Thauvin
Le jeudi 09 août 2007, Jeff Johnson a écrit : Truly, why bother with indices if you're iterating? is mostly my   current answer. The rpmdsSetIX function is in rpmds.h, and making a binding is quitte easy, so anyone who to use it can. I replace it be a perl function using rpmdsInit and

Re: [CVS] RPM: rpm/ Makefile.am

2007-08-06 Thread Olivier Thauvin
Le lundi 6 août 2007, Jeff Johnson a écrit : On Aug 6, 2007, at 8:55 AM, Olivier Thauvin wrote: Le lundi 6 août 2007, Ralf S. Engelschall a écrit : RPM Package Manager, CVS Repository http://rpm5.org/cvs/ - perl/typemap \ + perl/MANIFEST perl/META.yml perl/Makefile.PL.in perl

rpmdb issue

2007-08-01 Thread Olivier Thauvin
I ask here just in case someone have an idea. On mandriva, we're using rpm 4.4.8. Just after a fresh install (cooker), when trying to install a package, we get, sometimes, this message: rpmdb: Requirename: bad page number # The same for several index. Of course install is done with --root. On

Perl module

2007-07-27 Thread Olivier Thauvin
I just have a look to the perl module code we provide with rpm5, and I'd like to massivelly rework it: - namespace seems inconsitent - some useless #ifdef RPM41 (we don't have to deal with different version of RPM) - some non working old code. - only one source file (splitting would help

Re: Perl module

2007-07-27 Thread Olivier Thauvin
Le vendredi 27 juillet 2007, Jeff Johnson a écrit : On Jul 27, 2007, at 3:16 AM, Ralf S. Engelschall wrote: Does anyone mind if I rework it completly ? Go for it! I guess everyone is happy if you investigate on the perl/ subdir and make it working out-of-the-box under --with-perl. I even

Re: Platform comparison over OS failed in some case

2007-07-26 Thread Olivier Thauvin
, Solaris != solaris, Windows != windows, Hurd != hurd, etc...). On Jul 25, 2007, at 11:57 AM, Olivier Thauvin wrote: Some old rpm which don't install with rpm 4.4.8, the reason is this one: $ rpm -qp --qf %{OS} != linux\n /tmp/VMware- server-1.0.3-44356.i386.rpm Linux != linux Yes

Platform comparison over OS failed in some case

2007-07-25 Thread Olivier Thauvin
Some old rpm which don't install with rpm 4.4.8, the reason is this one: $ rpm -qp --qf %{OS} != linux\n /tmp/VMware-server-1.0.3-44356.i386.rpm Linux != linux Yes, that sucks. For mandriva I did this patch, but I hesistate to commit it into cvs, WDYT ? (It lowercase OS tag before pushing it

Re: testing RPM 5 in practice: Berkeley-DB to SQLite migration with --rebuilddb

2007-07-22 Thread Olivier Thauvin
Le dimanche 22 juillet 2007, Jeff Johnson a écrit : On Jul 22, 2007, at 10:49 AM, Ralf S. Engelschall wrote: On Sun, Jul 22, 2007, Jeff Johnson wrote: On Jul 22, 2007, at 9:13 AM, Ralf S. Engelschall wrote: 1. Why are Conflictname, Depends and Triggername missing? Depends is a temporary

rpmconstant in rpm (HEAD)

2007-07-21 Thread Olivier Thauvin
I am in way to commit into cvs (HEAD) rpmconstant [1]. This small library was designed for RPM4 [2] to make easier the parsing from STRING to C value in binding. I am trying to make integration less intrusive as possible. The only part of code I will change is configure.ac to add subdir

Re: rpmconstant in rpm (HEAD)

2007-07-21 Thread Olivier Thauvin
Le samedi 21 juillet 2007, Ralf S. Engelschall a écrit : On Sat, Jul 21, 2007, Olivier Thauvin wrote: I am in way to commit into cvs (HEAD) rpmconstant [1]. This small library was designed for RPM4 [2] to make easier the parsing from STRING to C value in binding. I am trying to make

Re: RPM 5 status quo

2007-07-17 Thread Olivier Thauvin
Le mardi 17 juillet 2007, Ralf S. Engelschall a écrit : 1. except for very small and harmless hacks, the RPM 5 build environment    is now really acceptably clean and mostly untwisted    again. Especially, mostly all hard-coded (and often even    distribution-specific) installation paths and

Re: RPM 5 status quo

2007-07-17 Thread Olivier Thauvin
Le mardi 17 juillet 2007, Jeff Johnson a écrit :      ix86-freebsd6.2      amd64-freebsd6.2      ix86-freebsd7.0      ix86-fedora7      ix86-debian3.1      ix86-debian4.0      ix86-rhel4      ix86-solaris9      sparc64-solaris8      sparc64-solaris9      sparc64-solaris10  

Re: mktemp/mkstemp usage

2007-07-17 Thread Olivier Thauvin
Le mardi 17 juillet 2007, Jeff Johnson a écrit : On Jul 17, 2007, at 4:19 PM, Ralf S. Engelschall wrote: I'm currently investigating on the mktemp/mkstemp(3) front and stumbled over IMHO totally broken uses in e.g. build.c: | tmpSpecFile = (char *) rpmGetPath(%{_specdir}/, rpm-

Re: Exposing wrapper functions in API

2007-07-16 Thread Olivier Thauvin
Le lundi 16 juillet 2007, Jeff Johnson a écrit : On Jul 15, 2007, at 8:27 PM, Olivier Thauvin wrote: I am currently trying to cleanup perl-RPM4, and to have some powerfull function, I need to deal with internal Source, Package_s and Spec internal structure. Does anyone is against

Re: Support for rpmrc in rpm 4.5

2007-07-16 Thread Olivier Thauvin
Le lundi 16 juillet 2007, Robert Scheck a écrit : It's me again, does somebody know the current state of the support for rpmrc in rpm 4.5? Jeff ripped it partially out, but for full compatibility with rpm.org we should at least bring this back for now. When looking to rpm --showrc from

Exposing wrapper functions in API

2007-07-15 Thread Olivier Thauvin
I am currently trying to cleanup perl-RPM4, and to have some powerfull function, I need to deal with internal Source, Package_s and Spec internal structure. Does anyone is against the (not completed yet, need doc, etc...) attached patch ? Do you think adding: #ifdef _SPEC_INTERNAL #endif to

Re: config files are replaced when was not in db

2007-07-11 Thread Olivier Thauvin
Le mercredi 11 juillet 2007, Jeff Johnson a écrit : On Jul 10, 2007, at 8:04 PM, Olivier Thauvin wrote: Here a classic scenario observed with rpm 4.4.8: vi /etc/foo.config rpm -Uvh foo...rpm = /etc/foo.config which is %config(noreplace) in foo...rpm were replace. This does

config files are replaced when was not in db

2007-07-10 Thread Olivier Thauvin
Here a classic scenario observed with rpm 4.4.8: vi /etc/foo.config rpm -Uvh foo...rpm = /etc/foo.config which is %config(noreplace) in foo...rpm were replace. This does not happend when /etc/foo.config was own by a package. This is a regression according previous rpm behavior, and is annoying

Re: [CVS] RPM: rpm-4_5: rpm/lib/ rpmrc.c rpm/rpmio/ mire.h

2007-07-03 Thread Olivier Thauvin
Le mardi 3 juillet 2007, Jeff Johnson a écrit : On Jul 3, 2007, at 1:00 PM, Olivier Thauvin wrote: Le mardi 3 juillet 2007, Olivier Thauvin a écrit : RPM Package Manager, CVS Repository http://rpm5.org/cvs/ Log: rpmlib.h expose some mire related function

Re: [PATCH] allow leading whitespaces on %setup and %patch lines

2007-06-21 Thread Olivier Thauvin
Le jeudi 21 juin 2007, Jeff Johnson a écrit : On Jun 21, 2007, at 9:08 AM, Ralf S. Engelschall wrote: Objections? No objection. Both %setup and %patch (what I call implemented-in-C   macros) have been known deficient since 1998. I don't believe any reasonable   change will help or harm.

Re: Which CPAN rpm module(s) might be used/included in rpm-perl?

2007-06-20 Thread Olivier Thauvin
Le mercredi 20 juin 2007, Ralf S. Engelschall a écrit : On Mon, Jun 11, 2007, Olivier Thauvin wrote: So, let me summarize for our record here on rpm-devel: Randy Ray: rpm5.org: rpm/perl/ (Perl-RPM 0.66, ancient) Chip Turner: rpm5.org: perl-RPM2/ (Perl-RPM2 0.68

Re: Flexibly building against third-party libraries (RPM_CHECK_LIB)

2007-06-20 Thread Olivier Thauvin
Le jeudi 21 juin 2007, Ralf S. Engelschall a écrit : On Wed, Jun 20, 2007, Arkadiusz Miskiewicz wrote: On Wednesday 20 of June 2007, Arkadiusz Miskiewicz wrote: Right now from config.log: configure:27985: error: unable to find available BeeCrypt library but why it told so, you

Re: should internal depencies be push into librpm dependencies ?

2007-06-07 Thread Olivier Thauvin
Le vendredi 08 juin 2007, Jeff Johnson a écrit : On Jun 7, 2007, at 7:37 PM, Olivier Thauvin wrote: The topic can surprise you, but here the reason of this question. Rpm has internal dependencies (you can see it in rpm --showrc), and some of this dependencies are set into rpm archive

Re: Refactoring macro loads to be per-interpreter

2007-06-03 Thread Olivier Thauvin
Le samedi 02 juin 2007, Jeff Johnson a écrit : One of the largest sources of incompatibilities using rpmbuild is that each vendor has their own special dialect that is used for packaging. So one vendor's packaging won't build with another vendor's build system. Not good. There is also an