Re: [Rpm-maint] digest_beecrypt cleanup

2013-08-28 Thread Michael Schroeder
On Tue, Aug 27, 2013 at 05:41:42PM +0200, Michael Schroeder wrote: Hi Panu al, the attached patch cleans up the code in digest_beecrypt: [...] - rc = pgpMpiSet(qbits, sig-data, p, pend); + rc = pgpMpiSet(qbits, sig-data); Deleted p parameter by mistake

Re: [Rpm-maint] digest_beecrypt cleanup

2013-08-28 Thread Michael Schroeder
of extra work pays itself back every time when the inevitable git-bisect time cometh... git-bisect? You don't trust my code? Ts... Anyway, appended as 4 patches in git format-patch form. Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX

Re: [Rpm-maint] digest_beecrypt cleanup

2013-08-28 Thread Michael Schroeder
On Wed, Aug 28, 2013 at 06:52:48PM +0200, Michael Schroeder wrote: On Wed, Aug 28, 2013 at 02:39:35PM +0300, Panu Matilainen wrote: No objections to the changes as such, but please split the patch up a bit: at the very least separate the interface change from the beecrypt-cleanups, but I

Re: [Rpm-maint] statfs/statvfs block size

2013-08-20 Thread Michael Schroeder
rpm on some other OS where it makes a difference. I'll create a patch for the max block size. -- Michael Schroeder m...@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13

Re: [Rpm-maint] Large file support

2013-04-19 Thread Michael Schroeder
. -- Michael Schroeder m...@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} ___ Rpm-maint mailing list Rpm-maint@lists.rpm.org http

Re: [Rpm-maint] Rpm Database musings

2013-04-18 Thread Michael Schroeder
have a state, i.e. I don't have to define any semantics when there's a cursor still open and the database gets changed. It should be easy though to either hide the cursors in the BDB code or implement a dummy newrpmdb cursor. Cheers, Michael. -- Michael Schroeder

Re: [Rpm-maint] rpm --verify and replaced files

2013-04-09 Thread Michael Schroeder
is shown as a one-letter abbreviation (such as R for replaced, W for wrongcolor etc). Yes, that would work for me. Another easy bandaid is to add an option to make verify report bad replaced files. Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX

Re: [Rpm-maint] rpm --verify and replaced files

2013-04-09 Thread Michael Schroeder
On Tue, Apr 09, 2013 at 10:40:42AM +0200, Michael Schroeder wrote: Yes, that would work for me. Another easy bandaid is to add an option to make verify report bad replaced files. Speaking of new options, do you mind adding a new --noposttrans option that makes rpm not execute the posttrans

[Rpm-maint] rpm --verify and replaced files

2013-04-08 Thread Michael Schroeder
). Files have been replaced and the package is broken, but rpm does not report anything when verifying the package? Just because another package was installed with '--force'? Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn

Re: [Rpm-maint] [PATCH] fix loading NSS libraries prior to chrooting

2013-04-05 Thread Michael Schroeder
, this is also cached At some point after looking at the glibc sources I gave up and implemented a tiny password/group parser in rpm. See: http://www.mail-archive.com/rpm-maint@lists.rpm.org/msg01759.html OTOG glibc may have changed meanwhile... Cheers, Michael. -- Michael Schroeder

Re: [Rpm-maint] Rpm Database musings

2013-04-02 Thread Michael Schroeder
as well be converted into a string. FYI: I changed the code to support both strings and binary blobs as keys. (I.e. it uses blobs internally, but there are some convenience functions for strings.) Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX

Re: [Rpm-maint] Rpm Database musings

2013-03-27 Thread Michael Schroeder
(it doesn't shrink the file yet if there's much free space), but it seems to work well and it also is not slower than the file based code. Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while

[Rpm-maint] Patch: make file conflicts work correctly

2013-03-19 Thread Michael Schroeder
conflicts to speed things up. (We could do the same trick for the requires in the erase package case.) (What's somewhat missing is taking directory aliases into account, like done in fingerprinting.) Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE

Re: [Rpm-maint] Rpm Database musings

2013-03-14 Thread Michael Schroeder
the in-core indexes For my system (2102 installed rpms) the stripped headers would be about 2.2 MBytes to read, that takes about .34 seconds with my slow disk and dropped caches, which is quite noticable. Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX

Re: [Rpm-maint] Rpm Database musings

2013-03-14 Thread Michael Schroeder
On Thu, Mar 14, 2013 at 03:33:44PM +0200, Panu Matilainen wrote: On 03/14/2013 01:10 PM, Michael Schroeder wrote: On Thu, Mar 14, 2013 at 10:55:07AM +0200, Panu Matilainen wrote: Yup, detecting and automatically regenerating out-of-sync indexes is pretty much a must (yet something we currently

Re: [Rpm-maint] Rpm Database musings

2013-03-13 Thread Michael Schroeder
On Fri, Mar 08, 2013 at 03:37:12PM +0100, Michael Schroeder wrote: I kind of like to have all the data in one file. Anyway, attached is a little Packages database implementation I did yesterday and today. Attached is the current version of my little experiments. The main changes are: - I

Re: [Rpm-maint] Rpm Database musings

2013-03-11 Thread Michael Schroeder
and we need to scan the database and there are multiple good headers for the same pkgid, we know which one to take. Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar

Re: [Rpm-maint] Rpm Database musings

2013-03-05 Thread Michael Schroeder
On Mon, Mar 04, 2013 at 12:22:31PM +0100, Michael Schroeder wrote: For 2000 packages we have about... ugh, that's actually hard to tell as the avg and the median differ that much. Let's use the average: 2000 * 130 = 26 files. I would hash them using just a 32-bit number for each hash

Re: [Rpm-maint] Rpm Database musings

2013-03-04 Thread Michael Schroeder
. -- Michael Schroeder m...@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} ___ Rpm-maint mailing list Rpm-maint@lists.rpm.org http

Re: [Rpm-maint] Rpm Database musings

2013-03-04 Thread Michael Schroeder
On Mon, Mar 04, 2013 at 12:19:34PM +0100, Ales Kozumplik wrote: On 03/04/2013 11:21 AM, Michael Schroeder wrote: Actually libsolv can do a incremental update if it has an old solv file available, i.e. it takes the unchanged content from the old solv file and only queries new headers from

Re: [Rpm-maint] Rpm Database musings

2013-03-04 Thread Michael Schroeder
On Mon, Mar 04, 2013 at 03:12:51PM +0100, Florian Festi wrote: On 03/01/2013 05:32 PM, Michael Schroeder wrote: (the median is quite different from the avg, that means that some packages are quite big.) ... - That means, if I have 2000 packages installed on my system (which

[Rpm-maint] Rpm Database musings

2013-03-01 Thread Michael Schroeder
(assuming disk IO throughput of 50 M/s) about .2 seconds to create the in-memory index data. Which maybe is too much, I dunno. Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while

[Rpm-maint] Pretrans scriptlets and file conflicts

2012-09-28 Thread Michael Schroeder
Hi Panu et al, I just noticed that pretrans scriptlets get run before the file dispositions are calculated. Isn't that a bit dangerous? It means that pretrans scriptlets get run even if the transaction isn't run at all because of a file conflict. Cheers, Michael. -- Michael Schroeder

[Rpm-maint] Small patch to reverse hardlink ordering

2012-05-03 Thread Michael Schroeder
) fsm-li-linksLeft = 0; - fsm-li-next = fsm-links; - fsm-links = fsm-li; + *tailp = fsm-li; /* append to tail of linked list */ } if (fsm-goal == FSM_PKGBUILD) --fsm-li-linksLeft; Cheers, Michael. -- Michael Schroeder m

[Rpm-maint] Trivial patch for brp-python-hardlink

2012-04-20 Thread Michael Schroeder
-d' ' -f 1) \ if [ $csha = $osha ] ; then ln -f $pyc $pyo fi Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar

[Rpm-maint] Obsoletes handling in depends.c:rpmdbProvides()

2012-04-18 Thread Michael Schroeder
into the provides error, how can that work with a different db index? Also, shouldn't it call rpmdsNVRMatchesDep() in the obsoletes case instead of rpmdsMatchesDep() to be more consistent with addObsoleteErasures()? Cheers, Michael. -- Michael Schroeder m

Re: [Rpm-maint] RPM 4.10.0 alpha released

2012-04-04 Thread Michael Schroeder
to be on the safe side. Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} ___ Rpm-maint mailing list

Re: [Rpm-maint] RPM 4.10.0 alpha released

2012-03-20 Thread Michael Schroeder
-4.9.0, I think it's about time to apply it. (I'll do so for the next opensuse release anyway, just to force your hand a bit ;-) ) I attached the patch again for your convenience. Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX Products GmbH, GF Jeff

Re: [Rpm-maint] The Future of Yum

2012-02-01 Thread Michael Schroeder
changes). Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} ___ Rpm-maint mailing list Rpm

Re: [Rpm-maint] recognizing epoch, take two

2011-11-16 Thread Michael Schroeder
and is not longer. Hmm, is sizeof(long int) 4 true for all platforms? Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13

Re: [Rpm-maint] RPM 4.9.1 released!

2011-07-26 Thread Michael Schroeder
) processBinaryFile(pkg, fl, specialDoc); Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13

Re: [Rpm-maint] RPM 4.9.1 released!

2011-07-21 Thread Michael Schroeder
. I've worked around this in the suse package, but a clean fix is probably to pass a RPMGLOB_ONLYDIR flag to rpmGlob() instead of adding a trailing slash. (Or change addFile() to strip trailing slashes.) Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE

Re: [Rpm-maint] RPM 4.9.1 released!

2011-07-21 Thread Michael Schroeder
On Thu, Jul 21, 2011 at 10:53:02AM +0200, Michael Schroeder wrote: Sine commit 23167c3e, everything tagged %dir will get a trailing slash in the file list, breaking lots of things. I've worked around this in the suse package, but a clean fix is probably to pass a RPMGLOB_ONLYDIR flag

[Rpm-maint] config(N) = EVR dependencies

2011-06-08 Thread Michael Schroeder
to all packages that contain config files. With config(N), I could use the new IndexIterator to find all config(*) provides, then query each of them for packages. Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn, HRB

[Rpm-maint] Sigpipe handling in build/rpmfc.c

2011-06-06 Thread Michael Schroeder
to simply ignore SIGCHLD and read until an EOF is returned, i.e. the read returns zero bytes? Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2

[Rpm-maint] Do not die on empty changelog section

2011-05-23 Thread Michael Schroeder
Another one of those one-liner patches... Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} --- ./build/parseChangelog.c.orig

Re: [Rpm-maint] rpm --chroot and glibc/nscd

2011-05-19 Thread Michael Schroeder
. files is what my patch does, maybe that's sufficient. The only problem I see is that you can't restore the old setting when you switch back from the chroot. A simple flush current setup would be much better. Cheers, Michael. -- Michael Schroeder m...@suse.de

[Rpm-maint] Do not abort if chown/chmod fails but the file is already correct

2011-05-16 Thread Michael Schroeder
This small patch makes rpm not abort the installation if chown()/chmod() faild but the files already have the correct ownership/mode. It also allows a failed mtime update on directories. IIRC the use case was some NFS mounted directory. Cheers, Michael. -- Michael Schroeder

[Rpm-maint] Support magic_and_path flag in fileaattrs

2011-05-16 Thread Michael Schroeder
. -- Michael Schroeder m...@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} Allow magic_and_path flag to configure that files must match both regexpes to be sent to the dependency

Re: [Rpm-maint] rpmdbAdd is gone?

2011-05-13 Thread Michael Schroeder
On Fri, May 13, 2011 at 04:00:59PM +0300, Panu Matilainen wrote: On 05/12/2011 06:59 PM, Michael Schroeder wrote: Hmm, I see that rpmdbAdd() et al have been removed in favor of rpmts, but there don't seem to be equivalent functions. How about rpmtsHeaderAddDB() and rpmtsHeaderRemoveDB

[Rpm-maint] rpm-4.9 segfault on build with empty prep section

2011-05-13 Thread Michael Schroeder
. -- Michael Schroeder m...@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} ___ Rpm-maint mailing list Rpm-maint@lists.rpm.org http

[Rpm-maint] rpm-4.9.0 --verifydb error message

2011-05-12 Thread Michael Schroeder
Hi, I get an method not permitted before handle's open method when I do a 'rpm --verifydb'. In verify mode, the db is not really opened, thus it's an error to call dbiFlags() which calls db-get_open_flags(). Patch attached. Cheers, Michael. -- Michael Schroeder

[Rpm-maint] rpm --verify -p does not work

2011-05-12 Thread Michael Schroeder
for --verify ;-) Patch attached. It now calls rpmteNew() directly and uses rpmteSetHeader() to attach the heade. I also needed to change the code in rpmte so that it no longer calls rpmteOpen() for a PKG_VERIFY goal, but that doesn't seem to be bad anyway. Cheers, Michael. -- Michael Schroeder

[Rpm-maint] rpmdbAdd is gone?

2011-05-12 Thread Michael Schroeder
Hmm, I see that rpmdbAdd() et al have been removed in favor of rpmts, but there don't seem to be equivalent functions. How about rpmtsHeaderAddDB() and rpmtsHeaderRemoveDB()? Patch attached. M. -- Michael Schroeder m...@suse.de SUSE LINUX Products GmbH, GF

[Rpm-maint] rpm --chroot and glibc/nscd

2011-05-12 Thread Michael Schroeder
a rpmugChroot() function that calls endpwent()/endgrent() and drops the local caches if a chroot is done seems like a good idea. Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar

Re: [Rpm-maint] RPM 4.9.0 beta1 available

2011-01-21 Thread Michael Schroeder
On Thu, Jan 20, 2011 at 01:38:10PM +0100, devzero2000 wrote: On Thu, Jan 20, 2011 at 10:58 AM, Michael Schroeder m...@suse.de wrote: The first one allows to create rpms with uncompressed payloads by setting the payloadformat to ufdio, the second one sets a %_specfile macro in the build so

Re: [Rpm-maint] RPM 4.9.0 beta1 available

2011-01-20 Thread Michael Schroeder
that people can do fancy specfile manipulation/data extraction in the build. Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13

Re: [Rpm-maint] RPM 4.9.0 alpha available

2010-12-20 Thread Michael Schroeder
On Mon, Nov 29, 2010 at 07:13:38PM +0100, Michael Schroeder wrote: On Fri, Nov 19, 2010 at 11:44:53AM +0100, Michael Schroeder wrote: - tilde support in version comparison - triggers on provides instead of package names - weak dependencies (basically just parsing them and storing them

Re: [Rpm-maint] [RFC/PATCH] comparisons without release

2010-11-29 Thread Michael Schroeder
On Fri, Nov 26, 2010 at 08:23:40PM +0100, Michael Schroeder wrote: Having said that, the current behaviour seems to be quite broken. Please explain the following: Provides: foo 1.2-1 Requires: foo = 1.2 no match Provides: foo = 1.2-1 Requires: foo = 1.2 matches

Re: [Rpm-maint] RPM 4.9.0 alpha available

2010-11-29 Thread Michael Schroeder
On Fri, Nov 19, 2010 at 11:44:53AM +0100, Michael Schroeder wrote: - tilde support in version comparison - triggers on provides instead of package names - weak dependencies (basically just parsing them and storing them in the rpm header) - defining some tag where yum/zypp/smart can store

Re: [Rpm-maint] [RFC/PATCH] comparisons without release

2010-11-29 Thread Michael Schroeder
that still change? Uh, you're confusing me. Provides: foo 1.2, Requires foo = 1.2 does not match, both with and without the patch. But the patch makes foo 1.2-1 match foo = 1.2. So you probably need to remove the yum workaround and rely on rpm doing the right thing. Cheers, Michael. -- Michael

Re: [Rpm-maint] [RFC/PATCH] comparisons without release

2010-11-29 Thread Michael Schroeder
On Mon, Nov 29, 2010 at 07:26:49PM +0100, Michael Schroeder wrote: On Mon, Nov 29, 2010 at 01:10:25PM -0500, James Antill wrote: ...before rpm even sees it. Does that still change? Uh, you're confusing me. Provides: foo 1.2, Requires foo = 1.2 does not match, both with and without

Re: [Rpm-maint] Enforce install/erase order without adding a Requires:

2010-11-26 Thread Michael Schroeder
. -- Michael Schroeder m...@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} ___ Rpm-maint mailing list Rpm-maint@lists.rpm.org http

Re: [Rpm-maint] [RFC/PATCH] comparisons without release

2010-11-26 Thread Michael Schroeder
On Fri, Nov 26, 2010 at 06:42:59PM +0100, Michael Schroeder wrote: On Mon, Aug 09, 2010 at 06:43:18PM +0300, Anssi Hannula wrote: Currently [1], if a package has Provides: foo = 1.2 And another package has Conflicts: foo 1.2-1 The conflict does not trigger, as the releases

Re: [Rpm-maint] RPM 4.9.0 alpha available

2010-11-25 Thread Michael Schroeder
On Thu, Nov 25, 2010 at 12:55:17PM +0200, Panu Matilainen wrote: On Thu, 25 Nov 2010, Michael Schroeder wrote: On Thu, Nov 25, 2010 at 10:48:08AM +0200, Panu Matilainen wrote: If you have time to look at the more than one tilde-case, then please do. Okey, I'll send a patch later

Re: [Rpm-maint] Enforce install/erase order without adding a Requires:

2010-11-25 Thread Michael Schroeder
is needed. OK, I'll bite. Can you list a few examples? I don't think I've seen the need for this here at SUSE. Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1

Re: [Rpm-maint] RPM 4.9.0 alpha available

2010-11-24 Thread Michael Schroeder
On Mon, Nov 22, 2010 at 03:18:46PM +0200, Panu Matilainen wrote: On Fri, 19 Nov 2010, Michael Schroeder wrote: - tilde support in version comparison No fundamental objections, it'd simplify packaging of pre-release versions a great deal. The current suggested patch has some issues though

Re: [Rpm-maint] RPM 4.9.0 alpha available

2010-11-19 Thread Michael Schroeder
why the package was installed (user selected/dragged in via dependencies), so that we can implement a show me all unneeded packages function Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg

Re: [Rpm-maint] [PATCH] - create an argwarning() (so it can be expanded on later if necessary) - emit obnoxious warnings if people using --force or --nodeps

2010-07-29 Thread Michael Schroeder
On Thu, Jul 29, 2010 at 11:07:58AM -0400, seth vidal wrote: On Wed, 2010-07-28 at 18:22 +0200, Michael Schroeder wrote: No, it's currently quite stable. We had some crashes in the Berkeleydb code in the past, it's nice to run 'rpm --rebuilddb' when the error pops up and retry the rpm call

Re: [Rpm-maint] [PATCH] - create an argwarning() (so it can be expanded on later if necessary) - emit obnoxious warnings if people using --force or --nodeps

2010-07-29 Thread Michael Schroeder
On Thu, Jul 29, 2010 at 11:15:02AM -0400, seth vidal wrote: On Thu, 2010-07-29 at 17:14 +0200, Michael Schroeder wrote: On Thu, Jul 29, 2010 at 11:07:58AM -0400, seth vidal wrote: On Wed, 2010-07-28 at 18:22 +0200, Michael Schroeder wrote: No, it's currently quite stable. We had some

Re: [Rpm-maint] [PATCH] - create an argwarning() (so it can be expanded on later if necessary) - emit obnoxious warnings if people using --force or --nodeps

2010-07-28 Thread Michael Schroeder
to execute those steps. That's the way libzypp runs a transaction, it has some advantages (saves some disk space, more robust) and some disadvantages (probably a bit slower). Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX Products GmbH, GF Markus Rex

Re: [Rpm-maint] [PATCH] - create an argwarning() (so it can be expanded on later if necessary) - emit obnoxious warnings if people using --force or --nodeps

2010-07-28 Thread Michael Schroeder
On Wed, Jul 28, 2010 at 11:19:46AM -0400, seth vidal wrote: On Wed, 2010-07-28 at 16:56 +0200, Michael Schroeder wrote: Yep. So when rpm crashes it doesn't take down the application. Do you have replicable crashers of rpm that disrupt your zypper? No, it's currently quite stable. We had

Re: [Rpm-maint] Commit fafd8090 (Dead code removal)

2010-04-13 Thread Michael Schroeder
to explicitely enumerate them: sendmail: Provides: smtp_daemon Conflicts: postfix exim ... Or you need to rely on file conflicts, but those will be caught much too late. Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX Products GmbH, GF Markus

Re: [Rpm-maint] Commit fafd8090 (Dead code removal)

2010-04-13 Thread Michael Schroeder
? I don't think it should report problems installed packages have with other installed packages. Or am I misreading the code?) Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while

[Rpm-maint] Patch: fix strange code leading to gcc warnings

2010-04-09 Thread Michael Schroeder
New gcc versions comlpain about undefined behaviour... --- luaext/modemuncher.c.orig 2010-03-26 09:43:45.0 + +++ luaext/modemuncher.c2010-03-26 09:44:54.0 + @@ -245,11 +245,11 @@ printf(modemuncher: doneflag = %u\n, d if (ch_mode) switch (op)

[Rpm-maint] Patch: rpmdb_svc seems to be gone

2010-04-09 Thread Michael Schroeder
Adapt the Makefile as rpmdb_svc can no longer be built. --- lib/Makefile.am.orig2010-03-26 09:34:16.0 + +++ lib/Makefile.am 2010-03-26 09:34:39.0 + @@ -148,16 +148,6 @@ rpmdb_stat_LDADD = \ $(top_builddir)/db3/util_sig.o \ librpm.la

[Rpm-maint] Patch: fix segfault in spec file parser

2010-04-09 Thread Michael Schroeder
readLineFromOFI may modify the fileStack, thus we have to re-set ofi after calling it --- build/parseSpec.c.orig 2010-02-15 11:49:29.0 + +++ build/parseSpec.c 2010-02-24 10:38:25.0 + @@ -283,6 +283,7 @@ int readLine(rpmSpec spec, int strip) retry: if

[Rpm-maint] Patch: correct defattr logic

2010-04-09 Thread Michael Schroeder
Seems like a change was made to make %attr(-) go back to the defattr setting. Unfortunatelly this broke %defattr(-). --- ./build/files.c.orig2010-04-07 14:27:54.0 + +++ ./build/files.c 2010-04-07 14:51:11.0 + @@ -561,8 +561,13 @@ static rpmRC parseForAttr(const

[Rpm-maint] Patch: work around spurious tar messages

2010-04-09 Thread Michael Schroeder
Gnu tar sometimes prints a tar: Record size = 16 message, breaking rpmbuild -ta. --- ./build.c.orig 2010-04-07 14:56:36.0 + +++ ./build.c 2010-04-07 14:58:52.0 + @@ -126,7 +126,13 @@ static char * getTarSpec(const char *arg if (!(fp = popen(cmd, r))) {

[Rpm-maint] Patch: repair nosource/nopatch tag insertion

2010-04-09 Thread Michael Schroeder
rpm does not allow headerPutUint32 on internal tags, so use headerPut instead. Maybe NOSOURCE/NOPATCH should not be internal at all, though. They are useful to check if a rpm is src or nosrc, there is no other way to detect this. Also fixes a copypaste error, the code used RPMTAG_NOSOURCE instead

Re: [Rpm-maint] [RFC][PATCH] Large file support

2010-03-30 Thread Michael Schroeder
On Tue, Mar 30, 2010 at 09:36:09AM +0300, Panu Matilainen wrote: On Mon, 29 Mar 2010, FlorianFesti wrote: On 03/26/2010 05:01 PM, Michael Schroeder wrote: Why does it need to be incompatible? How about saving oversized files in multiple parts. All but the last part would have size 0x

Re: [Rpm-maint] [RFC][PATCH] Large file support

2010-03-26 Thread Michael Schroeder
and skips the next cpio header + filename. Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13

Re: [Rpm-maint] odd chroot behavior inside the rpm transaction

2009-09-15 Thread Michael Schroeder
with '/' then the file is opened OUTSIDE of the installroot. Does this make any sense? B/c I admit I don't quite grok why it would be this way. That's because rpm needs a way to switch back from the installroot to the old root. It does this by doing a chroot(.) call. Cheers, Michael. -- Michael

Re: [Rpm-maint] [PATCH] RPMDB Performance

2009-08-17 Thread Michael Schroeder
switching to rpm-4) and noone complained so far. Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13

Re: [Rpm-maint] [PATCH] RPMDB Performance

2009-08-17 Thread Michael Schroeder
. At the time I looked at it the sync setting was stored in the dbenv. Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13

Re: [Rpm-maint] upgrade process

2009-03-20 Thread Michael Schroeder
that with scriptlets at all, but with a virtual package trigger. Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13

Re: [Rpm-maint] upgrade process

2009-03-19 Thread Michael Schroeder
-or-oof-script should do what you expect. Sounds like a job for update-alternatives. If you don't want that, use %verify(not md5 size mtime link) and don't use a scriptlet at all. Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX Products GmbH, GF

Re: [Rpm-maint] upgrade process

2009-03-13 Thread Michael Schroeder
files from old that are not shared postun old Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13

[Rpm-maint] Re: %post-script prerequisites

2008-09-25 Thread Michael Schroeder
On Thu, Sep 25, 2008 at 02:37:27PM +0200, Pixel wrote: Michael Schroeder [EMAIL PROTECTED] writes: So A requires B and B has a requires(post) to A? This isn't installable at all, thus it's a packaging bug. i don't agree. not knowing exactly what rpmlib does, here is how i understand

[Rpm-maint] Conflicts on files not symmetric

2008-09-19 Thread Michael Schroeder
) ... to create an array of basenames, sort it and then go through the filelist and match only if bsearch for the basename returns true. Thoughts? Cheers, Michael. -- Michael Schroeder [EMAIL PROTECTED] SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG

Re: [Rpm-maint] OR'ed dependency check

2008-02-28 Thread Michael Schroeder
On Thu, Feb 28, 2008 at 11:10:43AM +0100, Per Øyvind Karlsen wrote: rpm.org doesn't have support for the way you want it, but on a sidenote rpm5.org has had support for such since rpm-4.4.9.. ;) Really? How are those dependencies stored in the header? Cheers, Michael. -- Michael Schroeder

Re: [Rpm-maint] various bug fixes (patches)

2007-11-13 Thread Michael Schroeder
the RPMSENSE_MISSINGOK flag. I'd prefer the way we (SUSE) do it by putting the suggests/enhances in the already existing tags and leaving the requires alone. Or is that also the way Mandriva does it? Cheers, Michael. -- Michael Schroeder [EMAIL PROTECTED] SUSE LINUX

Re: [Rpm-maint] RFC: Unblocking of signals within rpm

2007-07-19 Thread Michael Schroeder
, but instead have an active signal handler that will mop up any open transactions and iterators and pass on the signal to caller. Whoa, doing complex things in a signal handler is very dangerous. You can interrupt rpm deep inside some glibc function like malloc. Cheers, Michael. -- Michael Schroeder

Re: [Rpm-maint] arbitrary tag definition and use from the python interface

2007-07-13 Thread Michael Schroeder
the index in the TAG_PRIVATE array, then add 1 to it to get the real tag number, and then do the real lookup. Cheers, Michael. -- Michael Schroeder [EMAIL PROTECTED] SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar

Re: [Rpm-maint] [Suse-patch] Revert provides as obsoletes behavior

2007-06-18 Thread Michael Schroeder
. -- Michael Schroeder [EMAIL PROTECTED] SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} ___ Rpm-maint mailing list Rpm-maint@lists.rpm.org

Re: [Rpm-maint] Fingerprinting skipDir() brokenness ponderings

2007-06-13 Thread Michael Schroeder
that 64K files, fingerprinting is turned off. Bit 31 says that there is a fingerprint; if it is set, we have 15 bits of tag and 16 bits of index. If it is cleared, we have 31 bits if index, which should be enough. Cheers, Michael. -- Michael Schroeder [EMAIL

[Rpm-maint] Fix ordering with --nodeps

2007-06-13 Thread Michael Schroeder
. -- Michael Schroeder [EMAIL PROTECTED] SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} ___ Rpm-maint mailing list Rpm-maint@lists.rpm.org https

Re: [Rpm-maint] [Suse patch] Loosen character checks in specfile processing

2007-06-08 Thread Michael Schroeder
are written in a different locale, so I propose to put it in. Of course, if everybody uses utf8 in a couple of years it will be obsolete... Cheers, Michael. -- Michael Schroeder [EMAIL PROTECTED] SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg

Re: [Rpm-maint] [Suse patch] Test architecture in refresh

2007-06-08 Thread Michael Schroeder
; Cheers, Michael. -- Michael Schroeder [EMAIL PROTECTED] SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} ___ Rpm-maint mailing list Rpm-maint

Re: [Rpm-maint] [Suse patch] Open all databases before chroot()

2007-06-05 Thread Michael Schroeder
, Michael. -- Michael Schroeder [EMAIL PROTECTED] SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} ___ Rpm-maint mailing list Rpm-maint

Re: [Rpm-maint] [Suse patch] Checking for identical packages on install/upgrade

2007-06-01 Thread Michael Schroeder
in two parts of the code. BTW and here's the fix from jbj's tree, and brief testing shows it also fixes the foo-1.1 vs bar-1.1 case from #104066. Yeah, but if psm.c does something different I can easily construct an example where this doesn't work. Cheers, Michael. -- Michael Schroeder

<    3   4   5   6   7   8