Re: [Rpm-maint] [rpm-software-management/rpm] --eval doesn't expand %if's (#472)

2018-07-20 Thread Michael Schroeder
Closed #472. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/472#event-1744561408___ Rpm-maint mailing list

Re: [Rpm-maint] [rpm-software-management/rpm] --eval doesn't expand %if's (#472)

2018-07-20 Thread Michael Schroeder
rpm --eval does macro expansion, and %if is not a macro. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] check that libcrypto supports MD2 (#453)

2018-06-25 Thread Michael Schroeder
The beecrypt glue code in rpm doesn't even support MD2 as digest, so yes, just remove it in digest_openssl.c... -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] RPM -V lacks support for place holder packages or wildcards (#451)

2018-06-21 Thread Michael Schroeder
Aside from using wildcards and queries, the original request is something that IMHO belongs to the application using rpm, like with depsolving. I.e. dnf for Fedora. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] version comparison with epoch does not work as expected (#450)

2018-06-20 Thread Michael Schroeder
Closed #450. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/450#event-1691225816___ Rpm-maint mailing list

Re: [Rpm-maint] [rpm-software-management/rpm] version comparison with epoch does not work as expected (#450)

2018-06-20 Thread Michael Schroeder
That's not a bug, no epoch means epoch zero and 2 > 0. So it does work as expected. Can't you use `Requires: tar >= 2:1.28`? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Unbreak numberless %patch from the autonumering changes (d4f63df)

2018-06-14 Thread Michael Schroeder
Ohhh, we're going full circle here. In the beginning numberless Source/Patch was the same as number zero. In 2008 came commit 724b07bba5e802998b1b79b408c2401d2a238a3b that used INT_MAX for Source and Patch. Shortly after that was commit 1a173c486dd1d83f22f8123317303fc1fb880f54 that made Source

Re: [Rpm-maint] [rpm-software-management/rpm] Add deltarpm support (#433)

2018-04-25 Thread Michael Schroeder
The beauty of the current way deltarpms are handled is that it's just some funky transport mechanism to get the full rpm. (Though I agree that the payload re-compression is the weak spot.) -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view

Re: [Rpm-maint] [rpm-software-management/rpm] Add armv8* arch variants to rpmrc.in (#425)

2018-04-05 Thread Michael Schroeder
Pardon the dumb question, but if armv8 is just the 32bit mode of aarch64 why doesn't aarch64 also need those float/neon/crypto modifiers? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] RPM 4.13.1 released!

2018-03-29 Thread Michael Schroeder
g them as it should. Hmm, I wonder why that is so. It shouldn't be able to parse the new rich dependencies and thus fail in the dependency check. I don't mind them being backported, though. ;) Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX GmbH

Re: [Rpm-maint] [rpm-software-management/rpm] rpmbuild Floating Point Exception in rpmDoDigest while packaging guile 2.2.3 (#420)

2018-03-27 Thread Michael Schroeder
(I.e. the build should work if you comment out the __prelink_undo_cmd definition in /usr/lib/rpm/macros. Can you confirm this?) -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] rpmbuild Floating Point Exception in rpmDoDigest while packaging guile 2.2.3 (#420)

2018-03-27 Thread Michael Schroeder
My guess is the `int maxndx = data->d_size / shdr.sh_entsize` line in is_prelinked(). There should be a test if `shdr.sh_entsize` is zero. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] rpmidxGetInternal(): leak on realloc() failure (#357)

2018-03-05 Thread Michael Schroeder
No, that's fine. We can also remove the code that is not needed in rpm (i.e. the non-rpmxdb code in rpmidx). -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

[Rpm-maint] [rpm-software-management/rpm] rpm ignores architecture when creating self-erasures (#408)

2018-03-05 Thread Michael Schroeder
This issue once was https://github.com/rpm-software-management/rpm/pull/253 When you have foo-1-1.i586 installed and you do 'rpm -U foo-1-1.i686', rpm will not add an erase element for the i586 package. -- You are receiving this because you are subscribed to this thread. Reply to this email

Re: [Rpm-maint] [rpm-software-management/rpm] Define DistTag as optional tag with macro just like DistURL (from SUSE, used by OMV) (#406)

2018-03-05 Thread Michael Schroeder
(Huh, SUSE carries has a patch like that? Weird. We don't use it for sure.) -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Install packages in parallel (#404)

2018-03-02 Thread Michael Schroeder
True, that's something we might want to investigate. It depends a bit on where rpm's bottleneck is. If it's IO bound, adding parallelism won't help much. -- You are receiving this because you commented. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] question about sign_hash function invocation (#403)

2018-03-02 Thread Michael Schroeder
sign_hash is in the external libimaevm. But it shouldn't be needed if you don't try to build with imaevm support. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] question about sign_hash function invocation (#403)

2018-03-02 Thread Michael Schroeder
Closed #403. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/403#event-1500834651___ Rpm-maint mailing list

Re: [Rpm-maint] [rpm-software-management/rpm] Install packages in parallel (#404)

2018-03-02 Thread Michael Schroeder
Closed #404. -- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/404#event-1500826006___ Rpm-maint mailing list Rpm-maint@lists.rpm.org

Re: [Rpm-maint] [rpm-software-management/rpm] Install packages in parallel (#404)

2018-03-02 Thread Michael Schroeder
I think the question is not if two versions of a package may be installed, but if the install itself can be done in parallel. I.e. if two 'rpm -U' calls can be done in parallel. That won't work because of the global transaction lock. And I don't think we should change this. ;) -- You are

Re: [Rpm-maint] [rpm-software-management/rpm] rpm -qpv --provides: error: incorrect format: array iterator used with different sized arrays (#402)

2018-03-01 Thread Michael Schroeder
Closed #402. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/402#event-1499170179___ Rpm-maint mailing list

Re: [Rpm-maint] [rpm-software-management/rpm] rpm -qpv --provides: error: incorrect format: array iterator used with different sized arrays (#402)

2018-03-01 Thread Michael Schroeder
That's caused by a SUSE patch. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/402#issuecomment-369615998___ Rpm-maint mailing

Re: [Rpm-maint] [rpm-software-management/rpm] elfdeps: Add full multiarch deps support (#360)

2018-02-27 Thread Michael Schroeder
That's because the needed information simply isn't available in the repository metadata... -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

[Rpm-maint] [rpm-software-management/rpm] RPM_BIN_TYPE get wrong length if HEADERIMPORT_FAST is used (#398)

2018-02-19 Thread Michael Schroeder
See https://github.com/openSUSE/libsolv/pull/255 for the background. I think rpm should not overwrite the count with the entry length (line 1107 in header.c). I don't know if everything still works if the line is removed. Please investigate ;) -- You are receiving this because you are

[Rpm-maint] [rpm-software-management/rpm] Improve hardlink handling in the disk space calculation (#394)

2018-02-14 Thread Michael Schroeder
Before this commit, rpm simply did not take hardlinks into account when calculating disk space requirements. This made it fail spectaculary for packages that contain a high number of hardlinks, like glibc-locale. We now "bind" the file size to the last hardlink member. This is still not

Re: [Rpm-maint] [rpm-software-management/rpm] Fix sigheader generation for big archives (#379)

2018-01-10 Thread Michael Schroeder
Ok, updated. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/379#issuecomment-356616236___ Rpm-maint mailing list

Re: [Rpm-maint] [rpm-software-management/rpm] Fix sigheader generation for big archives (#379)

2018-01-10 Thread Michael Schroeder
I don't see any signature tag number after RPMSIGTAG_RESERVEDSPACE. Thinking a bit more about the comment, it's a bit wrong. It should be "all tag numbers lower than RPMSIGTAG_RESERVEDSPACE" must be already added. We can add higher tags afterwards with no problems. -- You are receiving this

Re: [Rpm-maint] [rpm-software-management/rpm] Track and log failures when loading macro files (f7aff11)

2018-01-08 Thread Michael Schroeder
It just feels odd to me that the behavior of a file with just one macro is different than a file with two macros. But don't mind me ;) -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Track and log failures when loading macro files (f7aff11)

2018-01-08 Thread Michael Schroeder
That "return an error if all definitions fail" is pretty weird. What's the rationale for that? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Forbidding a double separator "-" in build/parseReqs.c is not always legitimate (#369)

2017-12-13 Thread Michael Schroeder
(The 'alien' tool could simply turn off that check by setting %_wrong_version_format_terminate_build to zero in the generated spec file.) -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] Building rpm-4.14.0

2017-12-11 Thread Michael Schroeder
;$CC" CFLAGS="$CFLAGS" $db_dist/configure $ARGS \ --enable-shared --enable-static \ - --with-uniquename=_rpmdb --srcdir=$db_dist + --with-uniquename=_rpmdb --srcdir=$db_dist --with-pic mv Makefile Makefile.orig cat Makefile.orig | sed -e '/^install[:-]/c\ Cheers, Mich

Re: [Rpm-maint] Building rpm-4.14.0

2017-12-11 Thread Michael Schroeder
sion just does not for some > reason. As Panu said: you need to run the configure script with the --without-external-db option, otherwise it will not build berkeley db (and yes, that's a bug in the configure script). Cheers, Michael, -- Michael Schroeder m...@

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: Finer-grained symbol dependencies (#362)

2017-11-20 Thread Michael Schroeder
No, the point of set-versions is that you only have one provides/requires for all of the symbols. This means that it's a somewhat probabilistic method, there's some small chance it will not detect a missing symbol. -- You are receiving this because you are subscribed to this thread. Reply to

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: Finer-grained symbol dependencies using rich dependencies (#362)

2017-11-18 Thread Michael Schroeder
First, I don't see why you need the rich deps here. Wouldn't a `libfoo.so.1(do_foo@FOO_1.0)(64bit))` requires be enough? Then, wouldn't your proposal mean that over time you'll have a provide for every symbol? That'll be quite some burden on the metadata size and dependency solver setup. If

Re: [Rpm-maint] [rpm-software-management/rpm] elfdeps: Add full multiarch deps support (#360)

2017-11-15 Thread Michael Schroeder
Why isn't this "can be enabled with --multiarch" and no-multiarch is the default? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] elfdeps: Add full multiarch deps support (#360)

2017-11-15 Thread Michael Schroeder
addArchedDep seems to be identical to addDep, so I don't see why you don't just use ei->marker but generate it differently. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

[Rpm-maint] [rpm-software-management/rpm] Forbid 'if' richops in 'or' context and 'unless' richops in 'and' con… (#317)

2017-09-06 Thread Michael Schroeder
…text Guide users to the correct operator instead. You can view, comment on, or merge this pull request online at: https://github.com/rpm-software-management/rpm/pull/317 -- Commit Summary -- * Forbid 'if' richops in 'or' context and 'unless' richops in 'and' context -- File Changes --

Re: [Rpm-maint] [rpm-software-management/rpm] Sync disks at the end of transactions (RhBug:1461765) (b7a869f)

2017-09-06 Thread Michael Schroeder
Eek, that's horrible. Please add a way (macro) to disable this. Calling sync() hurts very much for big servers with huge disks and a big buffer cache. I get that's it's somewhat acceptable for software installation on the server (syncfs would still be much nicer so that data partitions don't

Re: [Rpm-maint] [rpm-software-management/rpm] [WIP] tests: add tests for boolean dependencies (#164)

2017-09-04 Thread Michael Schroeder
Please do not test `(X or (Y if Z))`, it may well be that we make this illegal in the future. `(X or (Y if Z))` is the same as `(X or Y or not(Z))`, the `or not(Z)` does not make much sense. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or

Re: [Rpm-maint] [rpm-software-management/rpm] Add support for 'unless' rich dependencies (#314)

2017-09-01 Thread Michael Schroeder
Actually my plan was to add some next the the existing rich-op tests, but I just found the with/without tests. Where is the rest of them? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] rpm's doFoo function tends to expand twice (#313)

2017-09-01 Thread Michael Schroeder
I'd expect `rpm --define '%xxx /hello//world' --eval '%{dirname:%xxx}'` to return `/hello/%%` instead of `/hello/%`. Sorry for being not clear enough. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

[Rpm-maint] [rpm-software-management/rpm] Add support for 'unless' rich dependencies (#314)

2017-09-01 Thread Michael Schroeder
An (A unless B) dependency implements (A and not(B)). This kind is useful for "or" type dependencies, e.g. "Conflicts" or "Supplements". As "Conflicts: (A unless B)" is equivalent to "Requires: (B if A)", I thought this type is not needed. But there is no such equivalence for Supplements, thus

Re: [Rpm-maint] [rpm-software-management/rpm] rpm's doFoo function tends to expand twice (#313)

2017-09-01 Thread Michael Schroeder
I didn't say they all should not re-expand. Things like "%{expand:}" obviously have to do it. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] rpm's doFoo function tends to expand twice (#313)

2017-08-31 Thread Michael Schroeder
(duplicating first comment to generate mail to rpm-maint) Watch this: ``` $ rpm --define '%xxx /hello//world' --eval '%xxx' /hello/%%/world $ rpm --define '%xxx /hello//world' --eval '%{shrink:%xxx}' /hello/%/world $ rpm --define '%xxx /hello//world' --eval '%{dirname:%xxx}' /hello/%

[Rpm-maint] [rpm-software-management/rpm] rpm (#313)

2017-08-31 Thread Michael Schroeder
-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/313___ Rpm-maint mailing list Rpm-maint@lists.rpm.org

Re: [Rpm-maint] [rpm-software-management/rpm] Make queryformat array behavior consistent for all types (6adef6a)

2017-08-31 Thread Michael Schroeder
But isn't that going to break lots of existing scripts? I don't see the harm of allowing non-array tags like %{NAME} in array queries. (I.e. automatically add a '=' for non-array tags.) -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it

Re: [Rpm-maint] [rpm-software-management/rpm] Implement with/without rich dependencies (#299)

2017-08-03 Thread Michael Schroeder
It works like expected. You can't use and/or/if with with/without, because with/without work on package sets. You may only use or/with/without in sets. Just re-arrange your expressions. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it

[Rpm-maint] [rpm-software-management/rpm] Implement with/without rich dependencies (#299)

2017-08-03 Thread Michael Schroeder
Here's my attempt to implement with/without deps. I (mis)used the dbiIndexSet functions for set management, using tag==0 for rpmdb packages and tag==1 for rpmal packages. I guess some test coverage would also be nice, but I'll be on vacation the next three weeks. Please step in to add tests. ;)

Re: [Rpm-maint] [rpm-software-management/rpm] RPM+NDB should implement ndb_dump/ndb_load/ndb_stat for database dumps. (#289)

2017-07-31 Thread Michael Schroeder
Wouldn't it be better if rpmdb gets dump/load/stat options? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Add LMDB backend for RPMDB to RPM (from @n3npq in #281) (#291)

2017-07-31 Thread Michael Schroeder
Please remove the part that patches ndb/glue.c from this commit. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Adding an LMDB backend to RPM (#281)

2017-07-26 Thread Michael Schroeder
Well, "most similar to Berkeley DB" is maybe not the perfect way to choose a database ;) Anyway, another database backend to test is good to have. Thanks for spending your time on this! -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view

Re: [Rpm-maint] RPM NDB and chroot failure

2017-07-19 Thread Michael Schroeder
he glue code update the chroot if it was changed. Much code for little gain, IMHO. I suggest to go with 1), code removal is always good ;) Plus, Berkeley db also doesn't check for database switches, so it is no regression. Cheers, Michael. -- Michael Schroeder

Re: [Rpm-maint] [rpm-software-management/rpm] Don't modify interupts if db is read only (#251)

2017-07-14 Thread Michael Schroeder
Trust me, the patch works fine for the setup used at SUSE. But I agree that it makes no sense to merge it. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Don't modify interupts if db is read only (#251)

2017-07-14 Thread Michael Schroeder
(It works for SUSE because we always open with DB_PRIVATE and thus don't use the dbenv at all. So there's no ignorant denial involved ;-) ) -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Also test architecture in "refresh" test when not colored. (#253)

2017-07-13 Thread Michael Schroeder
mlschroe commented on this pull request. > @@ -511,13 +511,14 @@ void rpmpsmNotify(rpmpsm psm, int what, rpm_loff_t > amount) */ static void markReplacedInstance(rpmts ts, rpmte te) { +/* this must match rpmNameVersionCompare in depends.c */ No, rpm currently does not use the sha sig

Re: [Rpm-maint] [rpm-software-management/rpm] Also test architecture in "refresh" test when not colored. (#253)

2017-07-13 Thread Michael Schroeder
mlschroe commented on this pull request. > @@ -511,13 +511,14 @@ void rpmpsmNotify(rpmpsm psm, int what, rpm_loff_t > amount) */ static void markReplacedInstance(rpmts ts, rpmte te) { +/* this must match rpmNameVersionCompare in depends.c */ No, please don't, the comment is correct.

Re: [Rpm-maint] [rpm-software-management/rpm] Don't modify interupts if db is read only (#251)

2017-07-13 Thread Michael Schroeder
It's done so that ^C exists rpm if in read-only mode. I don't know how it interacts with the db-env, SUSE only uses DB_PRIVATE. Panu also changed the signal handling quite a bit recently, so it may well be that the patch is no longer needed. -- You are receiving this because you are

Re: [Rpm-maint] [rpm-software-management/rpm] rpm expands macro args twice (#217)

2017-05-22 Thread Michael Schroeder
(but you also have the problem that there will be an empty argument if with_int_bdb is not defined. Hmm. So revert that "expand after split" commit? Too bad rpm does not have some quoting mechanism.) -- You are receiving this because you are subscribed to this thread. Reply to this email

Re: [Rpm-maint] [rpm-software-management/rpm] rpm expands macro args twice (#217)

2017-05-22 Thread Michael Schroeder
Yes, I also ran into that problem. But it's compatible to before ;) Anyway, making the split macro aware would IMHO be a good thing. It would also make it more consistent in regard to what expandMacro itself does, i.e. call matchchar to find the end of a %{ or %( macro. -- You are receiving

Re: [Rpm-maint] [rpm-software-management/rpm] Make source package detection less error prone. (#218)

2017-05-19 Thread Michael Schroeder
I actually started with modifying headerIsSource, but then decided to do it in applyRetrofit because that's where the old code does the real detection and I wanted to make sure not to break things for people relying on the current code of headerIsSource. Note that you still need the

[Rpm-maint] [rpm-software-management/rpm] Make source package detection less error prone. (#218)

2017-05-18 Thread Michael Schroeder
Use a simple heuristic instead of looking at the lead type when we can't decided if a header is from a source package or not. You can view, comment on, or merge this pull request online at: https://github.com/rpm-software-management/rpm/pull/218 -- Commit Summary -- * Add

Re: [Rpm-maint] [rpm-software-management/rpm] rpm expands macro args twice (#217)

2017-05-18 Thread Michael Schroeder
I also think you should expand the macros after splitting the arguments, so that the behavior is more useful and compatible. Example: ``` %foo() 1:%1 2:%2 ``` And `rpm --eval "%foo %nil bar` should return `1: 2:bar` like before. -- You are receiving this because you are subscribed to this

[Rpm-maint] [rpm-software-management/rpm] rpm expands macro args twice (#217)

2017-05-17 Thread Michael Schroeder
If you have a ``` %foo() %1 ``` macro, `rpm --eval "%{foo xx}"` used to print `xx%%`, but now just prints `xx%`. This is because commit 5adc56897b9da5dac49701f704ef54390db57c59 added an extra expansion call. I think that all % characters need to be replaced by %% after the expansion or

Re: [Rpm-maint] [rpm-software-management/rpm] Add support for debugsource subpackages and split debuginfo subpackages (#180)

2017-04-27 Thread Michael Schroeder
Done. This still needs a ACK from Mark, though. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/180#issuecomment-297672144___

Re: [Rpm-maint] [rpm-software-management/rpm] Add support for debugsource subpackages and split debuginfo subpackages (#180)

2017-04-26 Thread Michael Schroeder
This is by design. The sources go into the main debuginfo package, all other debuginfo packages get an require to the main one. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] set a %_specfile macro during build, holding full path to spec file (#202)

2017-04-25 Thread Michael Schroeder
Hey, I asked for the same think 6 years ago. Sadly Panu didn't like it: ``` ...but this doesn't sound like something I'd want to encourage. Specs are messy enough as is without having them become self-aware ;) Surely there must be better ways to communicate things to scripts than having them

Re: [Rpm-maint] [rpm-software-management/rpm] Allow armsfp arches on armhfp ones (rhbz#1440974) (#199)

2017-04-19 Thread Michael Schroeder
Hmm. Seems like rpm doesn't use the --root argument when it searches for the platform file. I wonder if this is a bug or not. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Allow armsfp arches on armhfp ones (rhbz#1440974) (#199)

2017-04-18 Thread Michael Schroeder
But if you can't mix them then they should not be marked as "compat". Wouldn't it be better to declare the system as "armv7l" via /etc/rpm/platform or something like that? Dunno if 'mock' supports that, though. -- You are receiving this because you are subscribed to this thread. Reply to this

Re: [Rpm-maint] [rpm-software-management/rpm] Add support for debugsource subpackages and split debuginfo subpackages (#180)

2017-03-29 Thread Michael Schroeder
@mlschroe pushed 1 commit. d7bfb25 Also add directories to split debuginfo packages -- You are receiving this because you are subscribed to this thread. View it on GitHub:

[Rpm-maint] [PATCH] Support debuginfo subpackages

2017-03-24 Thread Michael Schroeder
The attached patch makes rpm create debuginfo subpackage for each subpackage that contains files with debug data. This is pretty much a complete rewrite of the old SUSE patch, so this needs a review. As this is off by default it can't break anything. Cheers, Michael. -- Michael Schroeder

[Rpm-maint] [PATCH] Support debugsource subpackages

2017-03-24 Thread Michael Schroeder
The attached patch makes rpm create -debugsource subpackages containing the debug sources. Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13

[Rpm-maint] [rpm-software-management/rpm] Add support for debugsource subpackages and split debuginfo subpackages (#180)

2017-03-24 Thread Michael Schroeder
This adds support for SUSE style debuginfo packages. Due to the changes in rpm upstream the patch had to be pretty much rewritten from scratch. As the new functionality is off per default the patch cannot break anything. You can view, comment on, or merge this pull request online at:

Re: [Rpm-maint] [rpm-software-management/rpm] Add OpenSSL crypto backend (#129)

2017-02-08 Thread Michael Schroeder
mlschroe commented on this pull request. > +switch (num) { +case 0: +if (!bn) { +bn = sig->bn = BN_new(); +} +if (!bn) return 1; + +/* Create a BIGNUM from the signature pointer. + Note: this assumes big-endian data as required +

Re: [Rpm-maint] [rpm-software-management/rpm] Add OpenSSL crypto backend (#129)

2017-02-07 Thread Michael Schroeder
mlschroe commented on this pull request. > +switch (num) { +case 0: +if (!bn) { +bn = sig->bn = BN_new(); +} +if (!bn) return 1; + +/* Create a BIGNUM from the signature pointer. + Note: this assumes big-endian data as required +

Re: [Rpm-maint] [rpm-software-management/rpm] Metatags (#107)

2016-12-13 Thread Michael Schroeder
About suse patterns: in the old days(tm), they were pretty similar to comps. Nowadays they are just rpm packages with standard dependencies. You shouldn't try to judge them by looking at that messy spec file. -- You are receiving this because you are subscribed to this thread. Reply to this

Re: [Rpm-maint] [rpm-software-management/rpm] appdata -> appstream, add support for metainfo files (#98)

2016-11-15 Thread Michael Schroeder
Wait a sec, those files are appdata, not appstream. Appstream is the data included in repositories. Appdata is the data installed in /usr/share/appdata and /usr/share/metainfo. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on

Re: [Rpm-maint] [rpm-software-management/rpm] Add support for sorting caret higher than other separators in version/release (#87)

2016-09-09 Thread Michael Schroeder
Oh my. No discussion on the mailing list? And the commit doesn't even do anything, because '^' is skipped at the start of the while loop in rpmvercmp. So is this really needed at all? (And the comment is also wrong, it's the same as with ~ ;) ) (And you also need support for this in libsolv...)

Re: [Rpm-maint] [PATCH] Remove anti-cheating protection for --short-circuit

2016-03-01 Thread Michael Schroeder
he anti-cheating configurable with a rpm macro... Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} __

Re: [Rpm-maint] [PATCH] Remove anti-cheating protection for --short-circuit

2016-03-01 Thread Michael Schroeder
added for a reason... Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} ___ Rpm-maint mai

Re: [Rpm-maint] [rpm] Add support for multithreaded xz compression (7740d10)

2015-11-26 Thread Michael Schroeder
I guess it's needed, as I'm not sure that lzma_easy_encoder creates the bitwise identical output as lzma_stream_encoder_mt with threads set to 1. --- Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] speeding up internal deps generator

2014-09-15 Thread Michael Schroeder
? In that case the script needs to annotate the output in some way. It has to transport the information, which files generated the dependency. Otherwise things like 'rpm -q --filerequire' would no longer work. Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE

Re: [Rpm-maint] RFC: experiments with rich dependencies

2014-09-12 Thread Michael Schroeder
and push this pretty much as-is [**], unless others have objections. Florian? Ok, pushed. Happy hacking, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32

Re: [Rpm-maint] RFC: experiments with rich dependencies

2014-09-11 Thread Michael Schroeder
, 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-maint@lists.rpm.org

Re: [Rpm-maint] RFC: experiments with rich dependencies

2014-09-11 Thread Michael Schroeder
On Thu, Sep 11, 2014 at 03:02:15PM +0200, Florian Festi wrote: On 09/11/2014 02:51 PM, Michael Schroeder wrote: Ah, but I was hoping for a discussion of the syntax. Are you ok with the enclosing the rich deps with ()? What about the op names, I'd love to use as 'and' and | as 'or' (which

Re: [Rpm-maint] RFC: experiments with rich dependencies

2014-09-09 Thread Michael Schroeder
On Mon, Sep 08, 2014 at 04:51:12PM +0200, Michael Schroeder wrote: Hi Panu et al, attached is an updated version of my rich dependencies patch. I cleanup up the code a bit, now we have only one generic parser instead of three specialized ones, and we use a callback function to do the needed

[Rpm-maint] RFC: experiments with rich dependencies

2014-09-08 Thread Michael Schroeder
, and it also must not be chained or stacked. 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);} diff --git a/build/pack.c b/build

[Rpm-maint] Patch: use IteratorFileNum in checkInstDeps

2014-08-13 Thread Michael Schroeder
the code simpler and a tiny bit faster. 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);} From 5b29f64744d01952a77ff6899ba295ff7608093b

[Rpm-maint] Patch: faster dependency solving

2014-08-06 Thread Michael Schroeder
check: 8ms So it's a very little bit slower for small packages, but helps a lot for big packages or big transactions. Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar

[Rpm-maint] First experiments with complex dependencies

2014-08-04 Thread Michael Schroeder
three different parsers for complex deps (in rpmds.c, parseReqs.c, and rpmdb.c), this is something that really should be unified. Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while

Re: [Rpm-maint] RPM 4.12.0 alpha released

2014-07-04 Thread Michael Schroeder
. As said, SUSE uses suggests/recommends since 2006 in a Debian compatible way, it makes no sense to use to swap them. Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar

[Rpm-maint] Patch: add %_rundir platform macro

2014-04-25 Thread Michael Schroeder
Hi, the attached patch adds a %_rundir macro to the platform files. The default value is /run, it can be changed with the --with-rundir configure option. Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746

Re: [Rpm-maint] Weak dependencies SUSE compatibility patch

2014-03-13 Thread Michael Schroeder
On Tue, Mar 11, 2014 at 04:07:41PM +0100, Michael Schroeder wrote: On Tue, Feb 25, 2014 at 03:25:21PM +0100, Michael Schroeder wrote: Hi rpm-maint, attached is a little patch that I have in my rpm to make --recommends et al work with old SUSE rpms. I also need the following patch

Re: [Rpm-maint] Weak dependencies SUSE compatibility patch

2014-03-11 Thread Michael Schroeder
On Tue, Feb 25, 2014 at 03:25:21PM +0100, Michael Schroeder wrote: Hi rpm-maint, attached is a little patch that I have in my rpm to make --recommends et al work with old SUSE rpms. I also need the following patch to make rpm export the old tags. There seems to be no way to access array type

[Rpm-maint] Weak dependencies SUSE compatibility patch

2014-02-25 Thread Michael Schroeder
Hi rpm-maint, attached is a little patch that I have in my rpm to make --recommends et al work with old SUSE rpms. Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar

Re: [Rpm-maint] Add appdata() and application() auto-provides

2013-10-09 Thread Michael Schroeder
On Wed, Oct 09, 2013 at 02:25:43PM +0300, Panu Matilainen wrote: I've no clue about the AppData part (what it contains or how it would be used)... It can be used to link appdata.xml contents to packages withour needing to retrieve the complete filelist. Cheers, Michael. -- Michael

Re: [Rpm-maint] Add appdata() and application() auto-provides

2013-10-04 Thread Michael Schroeder
files in the /usr/share/applications directory, independent of the type. (I must admit that I have no clue about what other types are allowed in those desktop files.) Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn, HRB

[Rpm-maint] Add appdata() and application() auto-provides

2013-10-02 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);} From 56699101dec027590cca137a5d268fbc88799121 Mon Sep 17 00:00:00 2001 From: Michael Schroeder m

[Rpm-maint] Verify and self-conflicts/obsoletes

2013-09-27 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);} From fae0eef24582dd9e071be8e884ff0851d4b57437 Mon Sep 17 00:00:00 2001 From: Michael Schroeder m

Re: [Rpm-maint] Problems in rpmstrPoolRehash function

2013-09-12 Thread Michael Schroeder
On Wed, Sep 11, 2013 at 07:09:29PM +0200, Michael Schroeder wrote: There are different (and easier) ways to fix this: - you can always put an empty string into the pool, it would always have id 1. This simplifies the dummy entry check to: if (i != 1 str[0] == 0) - you could get

[Rpm-maint] Problems in rpmstrPoolRehash function

2013-09-11 Thread Michael Schroeder
() to convert a const char * to a char * is clever.) 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);} --- rpmio/rpmstrpool.c.orig 2013-09

<    2   3   4   5   6   7   8   >