Re: [CVS] RPM: rpm/ CHANGES rpm/scripts/ gendiff

2011-10-11 Thread Jeffrey Johnson
Thank you!On Oct 11, 2011, at 05:02 AM, Pinto Elia devzero2...@rpm5.org wrote: RPM Package Manager, CVS Repository http://rpm5.org/cvs/ Server: rpm5.org Name: Pinto Elia Root:

Re: [CVS] RPM: rpm-5_4: rpm/ CHANGES rpm/macros/ macros.rpmbuild.in

2011-10-21 Thread Jeffrey Johnson
Adding an envvar to every scriptlet environment is one helluva way to pass a value to a single script. Modify the find-debuginfo.sh script to take a path argument instead. Even better: fix the script to use `pwd` and execute with the same CWD as every other scriptlet run by rpmbuild. hth 73 de

Re: [CVS] RPM: rpm-5_4: rpm/rpmdb/ rpmdb.c

2011-11-02 Thread Jeffrey Johnson
xrealloc please so that there's no need to check NULL. empty statement semi-colons on next line as well. even better, move tmp++ out of the for statement: for (i = 0; (tmp = strchr(tmp, '-')); i++, tmp++); There's no reason for advocacy/apology hack in comments either. Stating

Re: [CVS] RPM: rpm-5_4: rpm/rpmdb/ rpmdb.c

2011-11-07 Thread Jeffrey Johnson
Thank you! I looked a bit at the code this weekend before deciding that #ifdef RPM_VENDOR_MANDRIVA … #endif is none of my business. This is is a polite way of saying: WTF?!? I know you can code better than what I am seeing here … Even if you MUST hack around

Re: [CVS] RPM: rpm-5_4: rpm/ CHANGES rpm/macros/ macros.rpmbuild.in rpm/sc...

2011-12-20 Thread Jeffrey Johnson
On Dec 20, 2011, at 9:55 AM, Per Øyvind Karlsen wrote: Den 17:39 21. oktober 2011 skrev Jeff Johnson j...@rpm5.org følgende: RPM Package Manager, CVS Repository http://rpm5.org/cvs/ Server: rpm5.org

Re: Listing hard dependencies of a package

2011-12-22 Thread Jeffrey Johnson
On Dec 22, 2011, at 7:24 AM, Paul Eggleton wrote: Hi there, Whilst working on Poky/OpenEmbedded I found the need to list all of the hard dependencies of an RPM package within a shell script. Unfortunately --requires or the REQUIRES tag seem to also include soft dependencies (i.e.

Re: Listing hard dependencies of a package

2011-12-22 Thread Jeffrey Johnson
On Dec 22, 2011, at 9:42 AM, Per Øyvind Karlsen wrote: Den 13:24 22. desember 2011 skrev Paul Eggleton paul.eggle...@linux.intel.com følgende: ) Here's a recent patch of mine coming from past discussions about the subject:

Re: Listing hard dependencies of a package

2011-12-22 Thread Jeffrey Johnson
On Dec 22, 2011, at 9:45 AM, Per Øyvind Karlsen wrote: Den 13:24 22. desember 2011 skrev Paul Eggleton paul.eggle...@linux.intel.com følgende: Hi there, Whilst working on Poky/OpenEmbedded I found the need to list all of the hard dependencies of an RPM package within a shell script.

Re: Listing hard dependencies of a package

2011-12-22 Thread Jeffrey Johnson
On Dec 22, 2011, at 10:34 AM, Paul Eggleton wrote: On Thursday 22 December 2011 08:56:16 Jeffrey Johnson wrote: After a little digging I found REQUIREFLAGS, here's an example listing from our system: Good (though working with shell processing --qf output is gonna be AWKward ;-) SHort

Re: Listing hard dependencies of a package

2011-12-22 Thread Jeffrey Johnson
On Dec 22, 2011, at 10:40 AM, Mark Hatle wrote: On 12/22/11 7:56 AM, Jeffrey Johnson wrote: On Dec 22, 2011, at 7:24 AM, Paul Eggleton wrote: Hi there, Whilst working on Poky/OpenEmbedded I found the need to list all of the hard dependencies of an RPM package within a shell script

Re: Listing hard dependencies of a package

2011-12-22 Thread Jeffrey Johnson
On Dec 22, 2011, at 11:22 AM, Jeffrey Johnson wrote: jbj, would it be reasonable to add a context format specific to the dependency flags? Similar to the fflags so we get a pretty print out of the flag values? I forgot to mention the most obvious solution: Add an analogue

Re: Can we dsable cache files(/var/lib/rpm/__db*) generating in RPM5?

2011-12-26 Thread Jeffrey Johnson
On Dec 26, 2011, at 7:28 AM, Mei, Lei wrote: Hi all, I noticed that we have nine db files __db.00* under /var/lib/rpm when we use rpm5 first time, and their capacity near 200MB, are they necessary? But in some little disk(for embedded usage), disk space is not sufficient, so should

Re: rpmrepo

2012-01-04 Thread Jeffrey Johnson
On Jan 4, 2012, at 9:52 AM, Jeremy Huntwork wrote: On Aug 30, 2010, at 8:48 PM, Jeremy Huntwork wrote: Hello, The concept of rpmrepo really appeals to me. It seems like the 'Right' way to generate repo metadata. What better place to compute and discover rpm data than within the rpm

Re: rpmrepo

2012-01-04 Thread Jeffrey Johnson
On Jan 4, 2012, at 12:03 PM, Jeremy Huntwork wrote: On Jan 4, 2012, at 11:43 AM, Jeffrey Johnson wrote: Well broken is perhaps a bit harsh as a euphemism for Not useful to you. ;-) included just in case; I don't believe we disagree here. Chalk it down to perhaps a misunderstanding

RPM ROADMAP planning at launchpad.net/rpm

2012-01-10 Thread Jeffrey Johnson
The @rpm5.org project uses Launchpad for ROADMAP planning (and bug reporting and release purposes) here: http://launchpad.net/rpm While its anyone's guess whether Mandriva will close its doors on January 16th (I think not), Launchpad is also in use for planning the deployment of RPM

MANDATORY *.rpm signature checking deployment

2012-02-14 Thread Jeffrey Johnson
This MANDATORY signature checking policy will be implemented/released in rpm-5.4.7 this month. Begin forwarded message: RPM is going to change to a MANDATORY signature checking policy this month. That means that _ALL_ packages MUST be signed: rpm will either skip or abort (withe

Fwd: Macro configuration refactoring

2012-02-15 Thread Jeffrey Johnson
Begin forwarded message: From: Jeffrey Johnson n3...@mac.com Subject: Macro configuration refactoring Date: February 15, 2012 11:57:43 AM EST To: coo...@mandrivalinux.org As part of resuming active development, previous tasks that were suspended while assisting with rpm-5.3

Re: [CVS] RPM: rpm-5_4: rpm/ CHANGES Makefile.am rpm/scripts/ Makefile.am

2012-02-20 Thread Jeffrey Johnson
On Feb 20, 2012, at 6:07 AM, Per Øyvind Karlsen wrote: This results in files being installed into $pkglibdir, which now will be /usr/lib64/rpm.. :| AH so that's how make distcheck got screwed. Thanks. I chose to use a more appropriate new name as well in my fix:

Re: [CVS] RPM: rpm-5_4: rpm/ CHANGES rpm/js/ rpmmpw-js.c rpm/python/ heade...

2012-02-20 Thread Jeffrey Johnson
On Feb 20, 2012, at 8:37 AM, Per Øyvind Karlsen wrote: +o=PyInt_FromLong(he-tag); +if (!o) { +headerFreeIterator(hi); Ehhk! This shoulda rather been 'headerFini(hi);' Fixed. Meanwhile the real problem here isn't that a merge mistake was found

Re: Replacing a depended-upon package with another which provides the dependency?

2012-03-15 Thread Jeffrey Johnson
On Mar 15, 2012, at 12:43 PM, Allen S. Rout wrote: Thanks for your thoughtful reply! On 03/15/2012 11:50 AM, Jeffrey Johnson wrote: You can find me on rpm-devel@rpm5.org if you wish to continue the discussion. I am moderated (aka censored onrpm-l...@rpm.org for (my guess

Re: Replacing a depended-upon package with another which provides the dependency?

2012-03-15 Thread Jeffrey Johnson
On Mar 15, 2012, at 7:13 PM, Jeffrey Johnson wrote: On Mar 15, 2012, at 12:43 PM, Allen S. Rout wrote: Thanks for your thoughtful reply! On 03/15/2012 11:50 AM, Jeffrey Johnson wrote: You can find me on rpm-devel@rpm5.org if you wish to continue the discussion. I am

Re: [CVS] RPM: rpm/ devtool.conf

2012-04-06 Thread Jeffrey Johnson
NIce! Be forewarned however: RPM_I18NSTRING_TYPE - RPM_STRING_TYPE for description/summary/group has already been achieved in rpm-5.4.9. The remaining work (this month, will be in rpm-5.4.9 when released if I don't get sucked into some CVE black hole) will propagate the change

Re: [CVS] RPM: rpm/ devtool.conf

2012-04-06 Thread Jeffrey Johnson
On Apr 6, 2012, at 12:28 PM, Anders F Björklund wrote: Jeffrey Johnson wrote: NIce! Be forewarned however: RPM_I18NSTRING_TYPE - RPM_STRING_TYPE for description/summary/group has already been achieved in rpm-5.4.9. The remaining work (this month, will be in rpm-5.4.9 when

Re: [CVS] RPM: rpm/ devtool.conf

2012-04-06 Thread Jeffrey Johnson
On Apr 6, 2012, at 5:21 PM, Anders F Björklund wrote: Jeffrey Johnson wrote: I don't think changing devtool.conf to a db version that actually exists/works is going to change that, but thanks for the warning. ./rpmdb/rpmdb.h:435: error: expected specifier-qualifier-list before

Re: refined implementation of set-versions

2012-04-20 Thread Jeffrey Johnson
On Apr 20, 2012, at 8:12 AM, R P Herrold wrote: On Fri, 20 Apr 2012, Alexey Tourbin wrote: I have just learnt that rpm5 project has borrowed set-string implementation recently from ALT Linux. At the very same time, I was working on on a new and improved encoding scheme which can make

Re: refined implementation of set-versions

2012-04-21 Thread Jeffrey Johnson
On Apr 21, 2012, at 7:27 AM, Alexey Tourbin wrote: On Fri, Apr 20, 2012 at 5:16 PM, Jeffrey Johnson n3...@me.com wrote: The methods in the existing encoding/decoding are in rpmio/set.c @rpm5.org: the algorithm is unchanged from Alt. A change to the existing scheme over the next few

Re: refined implementation of set-versions

2012-04-21 Thread Jeffrey Johnson
On Apr 21, 2012, at 1:52 AM, Alexey Tourbin wrote: On Fri, Apr 20, 2012 at 4:12 PM, R P Herrold herr...@owlriver.com wrote: On Fri, 20 Apr 2012, Alexey Tourbin wrote: I have just learnt that rpm5 project has borrowed set-string implementation recently from ALT Linux. At the very same time,

Re: refined implementation of set-versions

2012-04-21 Thread Jeffrey Johnson
On Apr 21, 2012, at 10:07 AM, Dmitry V. Levin wrote: On Sat, Apr 21, 2012 at 03:27:13PM +0400, Alexey Tourbin wrote: There another option, however. For the reason which shall remain nameless, I find it tempting to produce the new and incompatible format without any clear signs of

Re: refined implementation of set-versions

2012-04-21 Thread Jeffrey Johnson
On Apr 21, 2012, at 1:54 PM, Dmitry V. Levin wrote: On Sat, Apr 21, 2012 at 10:53:44AM -0400, Jeffrey Johnson wrote: [...] Good: I knew you were sane ;-) I hope I am. :) [...] Because of the (largely aesthetic) choice of set: as a syntax marker for set:versions in statements like

Re: [CVS] RPM: rpm-5_4: rpm/ CHANGES rpm/lib/ rpmfc.c rpmfc.h rpm/macros/ ...

2012-04-22 Thread Jeffrey Johnson
On Apr 22, 2012, at 1:07 PM, Matthew Dawkins mdawk...@rpm5.org wrote: @@ -1128,6 +1132,12 @@ } } + /* XXX ugly quick dirty integration of haskell() dependencies */ + { fn = strstr(fc-fn[fc-ix], /usr/share/haskell-deps); + if (fn) +

Re: [CVS] RPM: rpm-5_4: rpm/ CHANGES rpm/lib/ rpmfc.c rpmfc.h rpm/macros/ ...

2012-04-22 Thread Jeffrey Johnson
On Apr 22, 2012, at 4:31 PM, Dmitry V. Levin l...@altlinux.org wrote: On Sun, Apr 22, 2012 at 02:28:29PM -0400, Jeffrey Johnson wrote: [...] 1) strstr(3) has hidden state that WILL break with multithreading. And the proper fix isn't to just use strstr_r(3). Isn't strstr(3

Re: [CVS] RPM: rpm-5_4: rpm/ CHANGES rpm/lib/ rpmfc.c rpmfc.h rpm/macros/ ...

2012-04-22 Thread Jeffrey Johnson
On Apr 22, 2012, at 5:43 PM, Jeffrey Johnson n3...@me.com wrote: On Apr 22, 2012, at 4:31 PM, Dmitry V. Levin l...@altlinux.org wrote: On Sun, Apr 22, 2012 at 02:28:29PM -0400, Jeffrey Johnson wrote: [...] 1) strstr(3) has hidden state that WILL break with multithreading

Re: [CVS] RPM: rpm-5_4: rpm/ CHANGES rpm/lib/ rpmfc.c rpmfc.h rpm/macros/ ...

2012-04-22 Thread Jeffrey Johnson
On Apr 22, 2012, at 7:39 PM, Dmitry V. Levin l...@altlinux.org wrote: On Sun, Apr 22, 2012 at 06:21:18PM -0400, Jeffrey Johnson wrote: [...] There's 124 patches in Mandriva Cooker headed towards @rpm5.org in need of review. This check-in was the first tentative step forward. Wouldn't

Re: refined implementation of set-versions

2012-04-28 Thread Jeffrey Johnson
On Apr 26, 2012, at 10:48 PM, Per Øyvind Karlsen wrote: But set:versions looks quite useful, and far more effective at reducing the number of dependencies than attempting a pin-hole optimizations with boolean expressions, discarding inequalities which are implied by other dependencies,

Re: refined implementation of set-versions

2012-04-28 Thread Jeffrey Johnson
On Apr 28, 2012, at 10:31 AM, Per Øyvind Karlsen wrote: 2012/4/28 Jeffrey Johnson n3...@me.com: Well your overlapping dependencies removal checked in upstream is about to get ripped out for lack of generality and bugginess. Confirmed not upstream (whatever that means: increasingly I

CRYPTOHASH brp-python-hardlink is FUBAR

2012-05-03 Thread Jeffrey Johnson
I haven't any idea what the intent here is: I'm pretty sure its stuff ported from @rpm.org by Pinto Elia. Which is fine … _EXCEPT_ … there's extra dependencies being added that are causing most of scripts/* to be erased, likely because of a twisted/recursive Makefile dependencies. I don't see

Re: fix build of rpm with automake 1.12

2012-05-08 Thread Jeffrey Johnson
On May 8, 2012, at 1:01 PM, Nitin A Kamble wrote: Attached patch fixes build of rpm with automake 1.12 Thanks for the patch. I think there's both automake-1.11.2 and automake-1.12 fixes. But rpm-5.4.9 released this morning here

Re: Announcing the release of rpm-5.4.9-0.20120508.src.rpm

2012-05-09 Thread Jeffrey Johnson
On May 9, 2012, at 4:59 PM, Anders F Björklund a...@rpm5.org wrote: Matthew Dawkins: Announcing the release of rpm-5.4.9-0.20120508.src.rpm ... Enjoy and please report back any errors and problems. The ltmain.sh has some mandriva hack to it, that breaks the build: ld: unknown

Requires: python(foo) = bar

2012-05-11 Thread Jeffrey Johnson
Matthew Dawkins mentioned an interest in better python module dependencies in RPM earlier today. A google search for python module dependency graph shows some reasonably serious efforts to create reliable (i.e. not *RE's scraping use … statements out of *.pl) dependencies. Perhaps best-of-breed

Re: Requires: python(foo) = bar

2012-05-11 Thread Jeffrey Johnson
On May 11, 2012, at 2:32 PM, Anders F Björklund wrote: Jeffrey Johnson wrote: Matthew Dawkins mentioned an interest in better python module dependencies in RPM earlier today. There was a half-hearted attempt at this, earlier on: http://afb.users.sourceforge.net/rpm/pythondeps.py Nice

Re: Requires: python(foo) = bar

2012-05-11 Thread Jeffrey Johnson
On May 11, 2012, at 2:46 PM, Tim Mooney tim.moo...@ndsu.edu wrote: In regard to: Requires: python(foo) = bar, Jeffrey Johnson said (at 2:11pm...: Matthew Dawkins mentioned an interest in better python module dependencies in RPM earlier today. I'm still running rpm 5.1.9 and meaning

Re: Requires: python(foo) = bar

2012-05-11 Thread Jeffrey Johnson
On May 11, 2012, at 2:46 PM, Tim Mooney tim.moo...@ndsu.edu wrote: In regard to: Requires: python(foo) = bar, Jeffrey Johnson said (at 2:11pm...: Matthew Dawkins mentioned an interest in better python module dependencies in RPM earlier today. I'm still running rpm 5.1.9 and meaning

Re: Requires: python(foo) = bar

2012-05-11 Thread Jeffrey Johnson
On May 11, 2012, at 4:12 PM, Mark Hatle mark.ha...@windriver.com wrote: On 5/11/12 1:11 PM, Jeffrey Johnson wrote: Matthew Dawkins mentioned an interest in better python module dependencies in RPM earlier today. A google search for python module dependency graph shows some reasonably

rpm -q --qf '%{PACKAGEORIGIN}\n'

2012-05-11 Thread Jeffrey Johnson
Mark Hatle pointed out that its impossible to perform the query in the subject this morning. The PACKAGEORIGIN tag contains the path that was given to the rpm when a package was installed. The intended use is/was extend the tracking of a package persistently, back to the original URI used when

Re: Requires: python(foo) = bar

2012-05-12 Thread Jeffrey Johnson
On May 12, 2012, at 4:04 AM, Anders F Björklund a...@rpm5.org wrote: Jeffrey Johnson wrote: I used http://docs.python.org/library/modulefinder.html and then filtered out some boring ones like sys and os. Yes modulefinder included in python is the right starting point. I'd stub

Re: ossp uuid support

2012-05-16 Thread Jeffrey Johnson
On May 16, 2012, at 7:19 PM, Mark Hatle mark.ha...@windriver.com wrote: I'm having problems enabling ossp uuid support with RPM5. Both util-linux and ossp-uuid want to provide a /usr/lib/pkgconfig/uuid.pc file. Since ossp-uuid is the alternative on my system, I'd like to avoid the

Re: ossp uuid support

2012-05-17 Thread Jeffrey Johnson
On May 17, 2012, at 8:25 AM, Anders F Björklund wrote: Mark Hatle wrote: I'm having problems enabling ossp uuid support with RPM5. Both util-linux and ossp-uuid want to provide a /usr/lib/pkgconfig/uuid.pc file. Since ossp-uuid is the alternative on my system, I'd like to avoid the

Re: ossp uuid support

2012-05-17 Thread Jeffrey Johnson
On May 17, 2012, at 9:13 AM, Jeffrey Johnson n3...@me.com wrote: Choosing the One True Name in AutoFu would require an extra level of testing of *.pc/*-config/*.la to tell if the just found information is useful (and that isn't erasable to attempt

Re: ossp uuid support

2012-05-17 Thread Jeffrey Johnson
On May 17, 2012, at 1:05 PM, Mark Hatle wrote: In the end I had to put in a sed on the generated configure: sed -e 's/pkg-config --exists uuid/pkg-config --exists ossp-uuid/' -e 's/pkgconfig uuid/pkgconfig ossp-uuid/' -i configure And at least it's doing what I want right now, but

Re: [CVS] RPM: popt_1_17: popt/ CHANGES testit.sh

2012-05-28 Thread Jeffrey Johnson
Eeek … all that is needed is avoiding a systematic bias when setting MALLOC_PERTURB_. Even $$ alone suffices to avoid the bias: expr \( $$ % 255 \) + 1 hth 73 de Jeff On May 28, 2012, at 7:08 AM, Pinto Elia wrote: RPM Package Manager, CVS Repository http://rpm5.org/cvs/

Re: EVR issues: set:versions, epoch-as-string, now twiddle-in-version

2012-05-30 Thread Jeffrey Johnson
On Apr 23, 2012, at 10:32 AM, Jeff Johnson wrote: I should point out that writing the attached message (and sending from the wrong e-mail address) has instantly led to a different -- and perhaps more natural -- syntax like Requires: set(libfoo.so.1) = whatever After a month of

Re: EVR issues: set:versions, epoch-as-string, now twiddle-in-version

2012-05-30 Thread Jeffrey Johnson
On May 30, 2012, at 3:09 PM, Robert Xu wrote: On Wed, May 30, 2012 at 2:56 PM, Jeff Johnson n3...@me.com wrote: OK, I'm in the last stages of adding twiddle-in-version so its time to consider other changes: 1) Epoch as a string? The only lossage here is when digit strings

Re: EVR issues: set:versions, epoch-as-string, now twiddle-in-version

2012-05-30 Thread Jeffrey Johnson
On May 30, 2012, at 9:46 PM, Alexey Tourbin alexey.tour...@gmail.com wrote: On Mon, Apr 23, 2012 at 6:32 PM, Jeff Johnson n3npq@gmail.com wrote: I should point out that writing the attached message (and sending from the wrong e-mail address) has instantly led to a different -- and

Re: EVR issues: set:versions, epoch-as-string, now twiddle-in-version

2012-05-30 Thread Jeffrey Johnson
On May 30, 2012, at 11:24 PM, Alexey Tourbin alexey.tour...@gmail.com wrote: On Thu, May 31, 2012 at 6:51 AM, Jeffrey Johnson n3...@me.com wrote: We are in violent agreement here over a minor issue of implementation/representation. By the way, actual problems that will arise are rarely

Re: EVR issues: set:versions, epoch-as-string, now twiddle-in-version

2012-05-31 Thread Jeffrey Johnson
On May 31, 2012, at 5:07 AM, Michael Schroeder wrote: On Wed, May 30, 2012 at 02:56:20PM -0400, Jeffrey Johnson wrote: On Apr 23, 2012, at 10:32 AM, Jeff Johnson wrote: I should point out that writing the attached message (and sending from the wrong e-mail address) has instantly led

Re: EVR issues: set:versions, epoch-as-string, now twiddle-in-version

2012-05-31 Thread Jeffrey Johnson
On May 31, 2012, at 7:24 PM, Alexey Tourbin wrote: I'm trying to understand rpmsetcmp() as a black box independent of all the gory implementation details of ELF symbols, base62 encoding, and RPM dependencies. I believe that set:versions are much like Bloom filters: 1) strings

Re: RPM Libraries Crash in our custom library

2012-06-12 Thread Jeffrey Johnson
On Jun 11, 2012, at 2:55 AM, Rajasekhar wrote: Problem : Unable to install the kernel rpm when we are trying to install the rpm via our customized backend library . This case is observed when we have two kernels already installed and we are trying to install the third kernel

Re: RPM Libraries Crash in our custom library

2012-06-14 Thread Jeffrey Johnson
On Jun 14, 2012, at 6:49 AM, Rajasekhar wrote: The rpm version we are using is 4.8 and platform is RHEL6 and the valgrind output is attached. This issue we are observing only we have two kernels already installed already on the machine and with one kernel the transaction going just fine .

Re: EVR issues: set:versions, epoch-as-string, now twiddle-in-version

2012-06-18 Thread Jeffrey Johnson
On Jun 15, 2012, at 11:58 PM, Alexey Tourbin wrote: On Fri, Jun 1, 2012 at 6:07 AM, Jeffrey Johnson n3...@me.com wrote: I asked 2 very specific questions … the rest is quite important also, but I need to understand precisely what properties set:versions have in order to implement correctly

Re: RPM Libraries Crash in our custom library

2012-06-19 Thread Jeffrey Johnson
On Jun 19, 2012, at 12:04 PM, Rajasekhar wrote: Thanks very much for you suggestion . Although we are using headerLink in our code ,the problem seems to be the way we are calling it .In our code we are looking for hdrVec, a globally exported virtual function table and finding the

Re: EVR issues: set:versions, epoch-as-string, now twiddle-in-version

2012-06-21 Thread Jeffrey Johnson
On Jun 21, 2012, at 12:51 AM, Alexey Tourbin wrote: On Thu, Jun 21, 2012 at 12:15 AM, Alexey Tourbin alexey.tour...@gmail.com wrote: On Mon, Jun 18, 2012 at 10:32 PM, Jeffrey Johnson n3...@me.com wrote: Good: the above confirmation of the characteristics allows a set:versions implementation

Re: EVR issues: set:versions, epoch-as-string, now twiddle-in-version

2012-06-21 Thread Jeffrey Johnson
On Jun 18, 2012, at 2:32 PM, Jeffrey Johnson wrote: The contained in or subset semantic that applies to the operations and = is rather easy to do as well. E.g. if (assuming on;y existence, not versioned inequality ranges) P == Bloom filter of Provides: tokens R == Bloom

Re: EVR issues: set:versions, epoch-as-string, now twiddle-in-version

2012-06-21 Thread Jeffrey Johnson
On Jun 21, 2012, at 8:27 PM, Alexey Tourbin alexey.tour...@gmail.com wrote: On Thu, Jun 21, 2012 at 7:28 PM, Jeffrey Johnson n3...@me.com wrote: More precisely, a set-version can be (in principle) converted to a Bloom filter which uses only one hash function. The idea is that such a filter

Re: EVR issues: set:versions, epoch-as-string, now twiddle-in-version

2012-06-22 Thread Jeffrey Johnson
On Jun 22, 2012, at 5:26 PM, Alexey Tourbin alexey.tour...@gmail.com wrote: On Fri, Jun 22, 2012 at 5:30 AM, Jeffrey Johnson n3...@me.com wrote: Sure numbers make sense. But God invented 0 and 1 and who needs steenkin carries to do arithmetic in Galois fields?!? Jeffery, I understand

Re: EVR issues: set:versions, epoch-as-string, now twiddle-in-version

2012-06-22 Thread Jeffrey Johnson
On Jun 22, 2012, at 8:02 PM, Alexey Tourbin alexey.tour...@gmail.com wrote: On Sat, Jun 23, 2012 at 1:55 AM, Jeffrey Johnson n3...@me.com wrote: I would state that compression (of any sort) to minimize bandwidth is entirely the wrong problem to solve. So what kind of a problem are we

Re: EVR issues: set:versions, epoch-as-string, now twiddle-in-version

2012-06-23 Thread Jeffrey Johnson
On Jun 23, 2012, at 1:49 PM, Alexey Tourbin alexey.tour...@gmail.com wrote: On Sat, Jun 23, 2012 at 1:55 AM, Jeffrey Johnson n3...@me.com wrote: There are lots of usage cases for efficient sub-set computations in package management, not just as a de facto API/ABI check using ELF symbols

Re: EVR issues: set:versions, epoch-as-string, now twiddle-in-version

2012-06-23 Thread Jeffrey Johnson
On Jun 23, 2012, at 2:10 PM, Jeffrey Johnson wrote: On Jun 23, 2012, at 1:49 PM, Alexey Tourbin alexey.tour...@gmail.com wrote: … Perhaps making base61 encoding MANDATORY in rpm would displease everyone equally: choosing a prime is as pretty as all other encoding criteria

Re: EVR issues: set:versions, epoch-as-string, now twiddle-in-version

2012-06-28 Thread Jeffrey Johnson
On Jun 28, 2012, at 12:18 PM, Alexey Tourbin wrote: There is also a philosophical consideration which somehow accompanies this practical consideration. There is a short story, I believe by Borges, where a clever scientist devises a 1-1 map of reality. A 1-1 map of reality turns out to be a

Re: EVR issues: set:versions, epoch-as-string, now twiddle-in-version

2012-06-28 Thread Jeffrey Johnson
On Jun 28, 2012, at 1:27 PM, Alexey Tourbin wrote: The downside is, of course, that when a dependency R subset P is broken, it is not easy to find out which P symbols were deleted or renamed (or which R symbols are missing). But this is largely a developer's, or should I say a hacker's,

Re: EVR issues: set:versions, epoch-as-string, now twiddle-in-version

2012-07-01 Thread Jeffrey Johnson
On Jul 1, 2012, at 11:43 PM, Alexey Tourbin alexey.tour...@gmail.com wrote: On Sat, Jun 23, 2012 at 10:29 PM, Jeffrey Johnson n3...@me.com wrote: In the interest of getting off negative nerdy obscure discussions, let's try a positive alternative application for Golob-Rice subset operations

Re: EVR issues: set:versions, epoch-as-string, now twiddle-in-version

2012-07-03 Thread Jeffrey Johnson
On Jul 2, 2012, at 11:21 PM, Alexey Tourbin wrote: On Mon, Jul 2, 2012 at 9:17 AM, Jeffrey Johnson n3...@me.com wrote: All RPMv4.4+ packages, that is, but not RPMv4.0. I find this file coloring business very annoying, by the way, and it took me some time to realize that fc actually stands

Re: Querying the db from C

2012-07-17 Thread Jeffrey Johnson
On Jul 17, 2012, at 5:04 AM, Paul Eggleton paul.eggle...@linux.intel.com wrote: Hi there, I'm attempting to write a simple C program to query the RPM database, using the headers and libraries from RPM 5.4.9. After digging through various pieces of source code and documentation,

Re: Querying the db from C

2012-07-17 Thread Jeffrey Johnson
On Jul 17, 2012, at 9:37 AM, Paul Eggleton wrote: On Tuesday 17 July 2012 09:14:36 Jeffrey Johnson wrote: Instead of relying on rpmmiCount, just do your own count. I wasn't really relying upon it, I was trying to use it as a diagnostic to see if I was actually getting any data back. I

Re: Querying the db from C

2012-07-17 Thread Jeffrey Johnson
On Jul 17, 2012, at 12:05 PM, Mark Hatle mark.ha...@windriver.com wrote: This process is rather inefficient. For a number of reasons we don't use zypper or anything similar to do dependency resolution for rootfs construction, so we have to do it manually using a solve database we can

Re: Querying the db from C

2012-07-18 Thread Jeffrey Johnson
On Jul 18, 2012, at 10:07 AM, Paul Eggleton paul.eggle...@linux.intel.com wrote: On Tuesday 17 July 2012 16:57:30 Jeffrey Johnson wrote: This API gives direct access to the secondary keys without the need to load headers from the primary Packages data store: /** \ingroup rpmdb * Return

Re: Querying the db from C

2012-07-18 Thread Jeffrey Johnson
On Jul 18, 2012, at 10:07 AM, Paul Eggleton wrote: So I'm now doing this: --- snip - rpmts ts = NULL; rpmdb db = NULL; int rc; ARGV_t keys = NULL; rpmReadConfigFiles( NULL, NULL ); char *dbpathm = malloc(strlen(argv[1]) + 10);

Re: Assertion failure in dbconfig.c

2012-08-13 Thread Jeffrey Johnson
On Aug 13, 2012, at 11:16 AM, Paul Eggleton paul.eggle...@linux.intel.com wrote: Hi there, Following my previous request for assistance with performing rpm db queries from C with rpm 5.4.9 (thanks for the help with that!), I put together the following utility:

Re: rpm 5.4.10 for testing in th-test

2012-09-07 Thread Jeffrey Johnson
On Sep 7, 2012, at 4:37 PM, Jan Rękorajski bagg...@pld-linux.org wrote: On Fri, 07 Sep 2012, Jeffrey Johnson wrote: On Sep 7, 2012, at 7:15 AM, Jan Rękorajski bagg...@pld-linux.org wrote: Instalation instructions: 0) backup rpm database in /var/lib/rpm 1) rpm -Fvh rpm* (obviously

Re: rpm 5.4.10 for testing in th-test

2012-09-09 Thread Jeffrey Johnson
On Sep 9, 2012, at 7:46 AM, Jan Rękorajski bagg...@sith.mimuw.edu.pl wrote: On Fri, 07 Sep 2012, Jeffrey Johnson wrote: On Sep 7, 2012, at 4:37 PM, Jan Rękorajski bagg...@pld-linux.org wrote: I'm getting the following message repeated many times when (un)installing packages

Re: rpm 5.4.10 for testing in th-test

2012-09-09 Thread Jeffrey Johnson
On Sep 9, 2012, at 1:08 PM, Jan Rękorajski bagg...@sith.mimuw.edu.pl wrote: This warning shows up when processing rpm files or database created by our old rpm 4.5. Reinstall all the packages removes the need for the filtering. RPMTAG_FILESTATES is populated/generated while installing As

Re: rpm 5.4.10 for testing in th-test

2012-09-09 Thread Jeffrey Johnson
On Sep 9, 2012, at 3:57 PM, Jan Rękorajski bagg...@sith.mimuw.edu.pl wrote: On Sun, 09 Sep 2012, Jeffrey Johnson wrote: On Sep 9, 2012, at 7:46 AM, Jan Rękorajski bagg...@sith.mimuw.edu.pl wrote: %post -p /sbin/ldconfig I see that other scripts are run because they fail when ldconfig

Re: rpm 5.4.10 for testing in th-test

2012-09-09 Thread Jeffrey Johnson
On Sep 9, 2012, at 3:59 PM, Jan Rękorajski bagg...@sith.mimuw.edu.pl wrote: Any hints what should we expect? Package spec files with localization will build, but only the C locale will display. As RPM_I18NSTRING_TYPE is phased out, all the code will be ripped out as well, including the

Re: rpm 5.4.10 for testing in th-test

2012-09-09 Thread Jeffrey Johnson
On Sep 9, 2012, at 3:57 PM, Jan Rękorajski bagg...@sith.mimuw.edu.pl wrote: Looks it's not a ldconfig optimization that's the problem, just that scriplets with only '-p /sbin/ldconfig' interpreter and empty body are not run. Function runInstScript() in lib/psm.c exits on 'headerGet(fi-,

Re: rpmdb.c:2323: rpmmiNext: Assertion `0' failed

2012-09-10 Thread Jeffrey Johnson
On Sep 10, 2012, at 6:24 AM, Jan Rękorajski wrote: Hi, I'm getting the assertion failure when trying to install certain package, here is the log from 'rpm -Uvvvh mksh-40d-3.x86_64.rpm', mksh has Obsoletes:pdksh, thus pdksh uninstall: D: pool fd: created size 392 limit -1 flags 0 D:

Re: rpm 5.4.10 for testing in th-test

2012-09-10 Thread Jeffrey Johnson
On Sep 10, 2012, at 1:48 AM, Jan Rękorajski wrote: On Sun, 09 Sep 2012, Jeffrey Johnson wrote: On Sep 9, 2012, at 3:57 PM, Jan Rękorajski bagg...@sith.mimuw.edu.pl wrote: Looks it's not a ldconfig optimization that's the problem, just that scriplets with only '-p /sbin/ldconfig

Re: rpm 5.4.10 for testing in th-test

2012-09-11 Thread Jeffrey Johnson
On Sep 11, 2012, at 6:58 AM, Jan Rękorajski bagg...@pld-linux.org wrote: $ rpm -q rpm rpm-5.4.10-0.12.x86_64 The problem comes from mpd and stunnel have Provides user(%{name}) and group(%{name}), and rpm mixes RPMNS_TYPE_USER/RPMNS_TYPE_GROUP namespace deps with RPMNS_TYPE_VERSION(?)

Re: rpm 5.4.10 for testing in th-test

2012-09-11 Thread Jeffrey Johnson
On Sep 11, 2012, at 4:49 PM, Jan Rękorajski bagg...@pld-linux.org wrote: No, it's this piece of code in rpmlib lib/depends.c:~1450: Got it … mi = rpmtsInitIterator(ts, RPMTAG_PROVIDENAME, Name, 0); (void) rpmmiPrune(mi, ts-removedPackages,

Re: rpm 5.4.10 for testing in th-test

2012-09-11 Thread Jeffrey Johnson
On Sep 11, 2012, at 5:22 PM, Jan Rękorajski bagg...@pld-linux.org wrote: Any idea why the code above isn't being traversed? I'm missing something here, any help appreciated. dep in question is of the TYPE_VERSION here, comes from package being installed and it is 'mpd 0.16.5-4'

Re: rpm 5.4.10 for testing in th-test

2012-09-12 Thread Jeffrey Johnson
On Sep 12, 2012, at 2:56 AM, Jacek Konieczny jaj...@jajcus.net wrote: On Tue, Sep 11, 2012 at 11:06:45PM -0400, Jeffrey Johnson wrote: There's no well defined semantic for Provides: group(mpd) even if PLD has adopted some convention afaik. The Provides: group(mpd) is just

Re: rpm 5.4.10 for testing in th-test

2012-09-13 Thread Jeffrey Johnson
On Sep 13, 2012, at 7:28 AM, Jan Rękorajski wrote: On Wed, 12 Sep 2012, Jeffrey Johnson wrote: But this isn't the time/pace to discuss relative merits of user/group management … the rpmdsCompare needs to be extended to include the namespace in the comparison. Would something like

Re: 'rpm -qf' semantics wrt symlinks in path

2012-09-14 Thread Jeffrey Johnson
On Sep 14, 2012, at 7:55 AM, Jan Rękorajski bagg...@sith.mimuw.edu.pl wrote: Hi, When I queried rpm for package that owns a file, rpm4 resolved all symlinks in queried path, while rpm5 does not. For example /usr/src/linux usage: $ ls -ld /usr/src/linux lrwxrwxrwx 1 root root 12 Sep 14

Re: Package type in rpm lead wrong?

2012-10-04 Thread Jeffrey Johnson
On Oct 4, 2012, at 9:11 AM, Michael Schroeder m...@suse.de wrote: Hi guys, the type in a rpm package created with rpm5 always seems to be 0 (binary rpm), even if it's a source rpm. This confuses tools like 'file' that determine the rpm type from the lead. Is that an intended change or

Re: [CVS] RPM: rpm-5_4: rpm/rpmio/ set.c

2013-05-02 Thread Jeffrey Johnson
Nice. Thanks! 73 de Jeff On May 2, 2013, at 3:55 PM, Anders F. Björklund a...@rpm5.org wrote: RPM Package Manager, CVS Repository http://rpm5.org/cvs/ Server: rpm5.org Name: Anders

Re: [CVS] RPM: rpm-5_4: rpm/rpmio/ set.c

2013-05-05 Thread Jeffrey Johnson
On May 5, 2013, at 11:09 AM, Anders F Björklund wrote: Jeffrey Johnson wrote: 1.1.2.8 +64 -57 rpm/rpmio/set.c Nice. Thanks! I suppose one could conditionalize it - if there was enough of a performance hit and interest in doing so. Just wanted to use clang. Portability

Re: [CVS] RPM: rpm-5_4: beecrypt/ Makefile.am blockpad.c beecrypt/python/ ...

2013-06-27 Thread Jeffrey Johnson
On Jun 27, 2013, at 8:40 AM, devzero2000 wrote: I imagine that the resolutions of the Coverity vulnerability issue to rpm5 bundled programs as beecrypt, thanks to the great work of the rpm5 maintainer, are then brought back upstream. Should not it? I'm not sure whether there is an active

Re: [CVS] RPM: rpm-5_4: beecrypt/ Makefile.am blockpad.c beecrypt/python/ ...

2013-06-27 Thread Jeffrey Johnson
de Jeff Cheers, Bob On Thu, Jun 27, 2013 at 4:15 PM, Jeffrey Johnson n3...@me.com wrote: On Jun 27, 2013, at 8:40 AM, devzero2000 wrote: I imagine that the resolutions of the Coverity vulnerability issue to rpm5 bundled programs as beecrypt, thanks to the great work

Re: [CVS] RPM: popt/ CHANGES testit.sh

2013-07-03 Thread Jeffrey Johnson
There's something strange going on with executing testit.sh on Mac OS X. Below are 3 different invocations, 1 of which fails, 1 of which succeeds, and the make check variant which is likely pretending to Just Work. I looked but cannot see the flaw in testit.sh yet hth 73 de Jeff falmouth:popt

Re: [CVS] RPM: rpm-5_4: rpm/ INSTALL

2013-07-05 Thread Jeffrey Johnson
On Jul 5, 2013, at 4:41 PM, devzero2000 wrote: Beware that ./devtool standalone use old version of some tool of the buildchain, as gettext. And ./devtool static is borken on ubuntu 12.04.2 LTS , for me almost, The build fail - Makefile.in not found - found today. I did not understand why.

Re: rpm 5.4.12 regressions

2013-07-31 Thread Jeffrey Johnson
On Jul 31, 2013, at 1:49 PM, Per Øyvind Karlsen wrote: Attached you'll find a couple of patches fixing regressions in rpm 5.4.12. The first patch is a lua, not an rpm, problem. Your 2nd patch introduces a memory leak: every pointer passed is malloc'd. Another regression I'm more puzzled

Re: rpm 5.4.12 regressions

2013-07-31 Thread Jeffrey Johnson
On Jul 31, 2013, at 2:54 PM, Jan Rękorajski wrote: On Wed, 31 Jul 2013, Per Øyvind Karlsen wrote: Attached you'll find a couple of patches fixing regressions in rpm 5.4.12. The first patch is wrong. Just #undef NODEV as defined by sys/param.h Thanks, applied. See attached patch for lua

  1   2   >