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

2011-05-17 Thread Panu Matilainen
On 05/16/2011 07:13 PM, Michael Schroeder wrote: 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. Nice, t

Re: [Rpm-maint] Support "magic_and_path" flag in fileaattrs

2011-05-17 Thread Panu Matilainen
On 05/16/2011 07:18 PM, Michael Schroeder wrote: This patch adds support for a new fileattrs flag, "magic_and_path". Normally files get fed into the dependency helper if either the path regexp or the magic regexp matches. With the flag, both have to match. (If you don't like the name, feel free

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

2011-05-17 Thread Panu Matilainen
On 05/12/2011 07:17 PM, Michael Schroeder wrote: Hi folks, we had lots of trouble with rpm's user and group handling in our kiwi system (which creates bootable ISOs). kiwi uses rpm --root to install the selected rpms into a directory, somehow we sometimes got wrong userids and groupids for file

Re: [Rpm-maint] Macro change while expanding the macro itself

2011-05-17 Thread Panu Matilainen
On 05/17/2011 04:27 PM, Michael Schroeder wrote: And another patch to be discussed. We've got an esotheric macro usage that deletes its own definition while it is expanded. Here's a demo: $ cat ~/.rpmmacros %package %?_suse_insert_debug_package%%package %_suse_insert_debug_package \ %undefi

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

2011-05-19 Thread Panu Matilainen
On 05/17/2011 04:36 PM, Michael Schroeder wrote: On Tue, May 17, 2011 at 04:27:08PM +0300, Panu Matilainen wrote: Did you try talking to glibc developers about this? Just asking so I wont bother them again if they already told you to keep the pieces or something to that effect... Not really

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

2011-05-19 Thread Panu Matilainen
On 05/17/2011 04:36 PM, Michael Schroeder wrote: On Tue, May 17, 2011 at 04:27:08PM +0300, Panu Matilainen wrote: Did you try talking to glibc developers about this? Just asking so I wont bother them again if they already told you to keep the pieces or something to that effect... Not really

Re: [Rpm-maint] Support "magic_and_path" flag in fileaattrs

2011-05-19 Thread Panu Matilainen
On 05/16/2011 07:18 PM, Michael Schroeder wrote: This patch adds support for a new fileattrs flag, "magic_and_path". Normally files get fed into the dependency helper if either the path regexp or the magic regexp matches. With the flag, both have to match. (If you don't like the name, feel free

Re: [Rpm-maint] Check signature rpm segmentation fault

2011-05-23 Thread Panu Matilainen
On 05/23/2011 11:49 AM, Shakthi Kannan wrote: Hi, I am trying to check if the signature of a RPM package is valid (equivalent of rpm --checksig) or not using C. When I run the following function through a loop (more than 6 times with rpm 4.8.0, and 13 times with rpm 4.8.1) it causes segmentation

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

2011-05-23 Thread Panu Matilainen
On 05/23/2011 05:24 PM, Michael Schroeder wrote: Another one of those one-liner patches... Applied, thanks. Funny how many pesky regressions get found by testing with different set of specs... (eg in Fedora-world, %changelog is "always" the last section in which case this bug doesn't trigger

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

2011-05-25 Thread Panu Matilainen
On 05/16/2011 11:40 AM, Panu Matilainen wrote: On 05/13/2011 04:11 PM, Michael Schroeder wrote: On Fri, May 13, 2011 at 03:49:37PM +0300, Panu Matilainen wrote: Hmm. Collections aside, me thinks the actual bug is permitting verify to run on non-installed packages in the first place, verify

Re: [Rpm-maint] [PATCH] Support eu-strip --reloc-debug-sections with find-debuginfo -r

2011-05-26 Thread Panu Matilainen
On 05/26/2011 12:36 AM, Mark Wielaard wrote: Hi, The attached patch adds an -r argument flag to find-debuginfo. When that flag is given then find-debuginfo will invoke eu-strip with --reloc-debug-sections. This is a new option to eu-strip that strips out/resolves relocations between .debug_* elf

Re: [Rpm-maint] lua extension API stability

2011-06-06 Thread Panu Matilainen
On 06/04/2011 11:16 AM, Ville Skyttä wrote: Hello, I'm considering using lua in some scriptlets, and noticed that while posix.symlink() currently exists in the posix extension included with rpm, it no longer exists in the current upstream version, there's a 3rd argument to posix.link() instead f

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

2011-06-06 Thread Panu Matilainen
On 06/06/2011 02:40 PM, Michael Schroeder wrote: Hi guys, what's the reason for the complex pipe handling with sigpipe_handler(), sigpipe_init() and sigpipe_finish()? The point was to make it more robust: a) use blocking io instead of spinning on a timeout that will inevitably be wrong for s

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

2011-06-07 Thread Panu Matilainen
On 06/07/2011 10:14 AM, Michael Schroeder wrote: On Tue, Jun 07, 2011 at 09:35:38AM +0300, Panu Matilainen wrote: IMHO aborting the read when a SIGCHLD occurs is wrong, as the pipe may still contain unread data (and data is only read in sizeof(buf)-1 chunks). Wouldn't it make more sen

Re: [Rpm-maint] Package replace implementation

2011-06-08 Thread Panu Matilainen
On 06/08/2011 06:49 PM, Michael Schroeder wrote: Hi, seeing the latest "replacepkgs" commits (030e54), I wonder if we should not drop that crazy refresh handling and simply use an uninstall element to erase the package. Nod, I've been thinking of doing that for some time now. I did look at i

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

2011-06-08 Thread Panu Matilainen
On 06/08/2011 07:11 PM, Michael Schroeder wrote: Does anybody know/remember what those config() dependencies are good for? They were added back in 2002(!) by commit e788b7c1. I see that a package gets a Provides: config(N) = EVR if it includes a config file, but why is that also added as

Re: [Rpm-maint] Attempted to build RPM

2011-06-26 Thread Panu Matilainen
On 06/25/2011 01:11 AM, Larry Breyer wrote: I installed file-5.07 and lua-5.1.4 with --prefix=/usr/local/home/lbreyer I ran configure in /usr/local/home/lbreyer/src/rpm-4.9.0 as follows: ./configure CPPFLAGS="-I/usr/include/nspr4 -I/usr/include/nss3 -I/home/lbreyer/include" LIBS="-L/home/lbrey

[Rpm-maint] RPM 4.9.1 released!

2011-07-15 Thread Panu Matilainen
We're pleased to announce the availability of RPM release 4.9.1. Download instructions and more detailed information are available from: http://rpm.org/wiki/Releases/4.9.1 This is a regular bugfix and minor enhancements maintenance release to the 4.9.x series. Here's the executive summary,

Re: [Rpm-maint] RPM 4.9.1 released!

2011-07-22 Thread Panu Matilainen
On 07/21/2011 11:53 AM, Michael Schroeder wrote: On Fri, Jul 15, 2011 at 02:17:43PM +0300, Panu Matilainen wrote: We're pleased to announce the availability of RPM release 4.9.1. Download instructions and more detailed information are available from: http://rpm.org/wiki/Releases/

Re: [Rpm-maint] RPM 4.9.1 released!

2011-07-22 Thread Panu Matilainen
On 07/21/2011 03:25 PM, Michael Schroeder wrote: 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 pr

Re: [Rpm-maint] RPM 4.9.1 released!

2011-08-02 Thread Panu Matilainen
On 07/26/2011 08:13 PM, Michael Schroeder wrote: On Fri, Jul 22, 2011 at 10:06:27AM +0300, Panu Matilainen wrote: Yup, that and the recursing bug make 4.9.1 a brown paperbag release :-/ I'll try to get 4.9.1.1 (or something) out soonish, in the meanwhile 4.9.1 is probably best avoided be

Re: [Rpm-maint] Request for Trac access

2011-09-06 Thread Panu Matilainen
On 08/30/2011 11:18 PM, Matt McCutchen wrote: RPM admins, I recently registered on the Trac site, username mattmccutchen. May I have access to create and comment on tickets? If you give me wiki write access as well, I can add a note about the current ticket restrictions at http://rpm.org/wiki/

Re: [Rpm-maint] apparently broken 'rpm2cpio' in rpm-4.9.*

2011-09-06 Thread Panu Matilainen
On 08/22/2011 12:14 AM, Sergei Steshenko wrote: Hello, I've built rpm-4.9.0, rpm-4.9.1, rpm-4.9.1.1 and using 'rpm2cpio' from them running a command line like this: /mnt/sdb8/sergei/AFSWD_debug/20110601/rpm-4.9.0/binsh/rpm2cpio ../java-1_6_0-sun-1.6.0.u26-0.2.1.i586.rpm | /home/sergei/junk/cpi

Re: [Rpm-maint] massive 'make check' failures (first of all, because of atlocal.in)

2011-09-06 Thread Panu Matilainen
On 08/21/2011 08:11 PM, Sergei Steshenko wrote: Hello, I am building a lot of stuff from sources in a manner each target is installed in a separate directory, e.g.: /mnt/sdb8/sergei/AFSWD_debug/20110601/file-5.08 /mnt/sdb8/sergei/AFSWD_debug/20110601/mozilla_nss-3.12.11_nspr-4.8.9 /mnt/sdb8/ser

Re: [Rpm-maint] Multiple ABI architectures (parallel installation, detection, handling)

2011-09-16 Thread Panu Matilainen
On 09/15/2011 01:55 PM, Jon Masters wrote: Folks, I've taken the liberty of inviting myself to the party :) I'm also on IRC on Freenode, and have been following RPM development for some time in a lurking capacity. A number of you know me from the office, but greetings to everyone else! Thanks

Re: [Rpm-maint] Multiple ABI architectures (parallel installation, detection, handling)

2011-09-16 Thread Panu Matilainen
Oh I knew this would happen... the send-button is a magic memory-enhancer in disguise. One (of probably many) forgotten bits, this time hopefully with working address for Dennish too: On 09/15/2011 01:55 PM, Jon Masters wrote: All of the existing stuff assumes that if we have vfpv3 on ARMv7

Re: [Rpm-maint] Multiple ABI architectures (parallel installation, detection, handling)

2011-09-16 Thread Panu Matilainen
On 09/16/2011 05:31 PM, James Antill wrote: On Fri, 2011-09-16 at 12:02 +0300, Panu Matilainen wrote: On 09/15/2011 01:55 PM, Jon Masters wrote: 1) Location of libraries and the like: the libraries for different ABI's need to go to separate paths. Currently the non-debian world knows

Re: [Rpm-maint] Multiple ABI architectures (parallel installation, detection, handling)

2011-09-17 Thread Panu Matilainen
On 09/16/2011 10:40 PM, Mark Hatle wrote: On 9/16/11 4:02 AM, Panu Matilainen wrote: On 09/15/2011 01:55 PM, Jon Masters wrote: ... What I want out of this discussion is a decision around how multiple ABIs within an architecture will be handled in general. If you're allergic t

Re: [Rpm-maint] Multiple ABI architectures (parallel installation, detection, handling)

2011-09-17 Thread Panu Matilainen
On 09/16/2011 04:58 PM, Dennis Gilmore wrote: On Friday, September 16, 2011 04:46:33 AM Panu Matilainen wrote: Oh I knew this would happen... the send-button is a magic memory-enhancer in disguise. One (of probably many) forgotten bits, this time hopefully with working address for Dennish too

[Rpm-maint] RPM 4.9.1.2 released!

2011-09-29 Thread Panu Matilainen
We're pleased to announce the availability of RPM release 4.9.1.2. Download instructions and more detailed information are available from: http://rpm.org/wiki/Releases/4.9.1.2 This is a primarily a security update for CVE:2011-3378, with one additional fix for a severe signal handling re

Re: [Rpm-maint] [PATCH 2/3] rpmio: Don't de-ref lzfile which was freed in lzclose()

2011-10-11 Thread Panu Matilainen
On 09/29/2011 10:09 AM, Mukund Sivaraman wrote: --- rpmio/rpmio.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/rpmio/rpmio.c b/rpmio/rpmio.c index 683d221..2434687 100644 --- a/rpmio/rpmio.c +++ b/rpmio/rpmio.c @@ -1176,7 +1176,9 @@ static int lzdClose(FD_t fd)

Re: [Rpm-maint] [PATCH 3/3] rpmio: Indent code (minor)

2011-10-11 Thread Panu Matilainen
On 09/29/2011 10:09 AM, Mukund Sivaraman wrote: --- rpmio/rpmio.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/rpmio/rpmio.c b/rpmio/rpmio.c index 2434687..b0aa5a0 100644 --- a/rpmio/rpmio.c +++ b/rpmio/rpmio.c @@ -1169,7 +1169,8 @@ static int lzdClose(FD_t fd)

Re: [Rpm-maint] [PATCH] rpmio: Set a umask before using mkstemp()

2011-10-11 Thread Panu Matilainen
On 09/30/2011 01:04 PM, Mukund Sivaraman wrote: This commit sets a restrictive umask before calling mkstemp(). This is because the permissions of files created by mkstemp() are not defined in POSIX. Old versions of glibc created files with mode 0666 which can be a security hole. Because the behav

Re: [Rpm-maint] Tizen rpm security plug-in interface

2011-10-28 Thread Panu Matilainen
On 10/10/2011 04:00 PM, Reshetova, Elena wrote: Hi, Let me make first a short introduction and some explanation to you about the rpm security related work we have been doing recently at Intel. I hope we can collaborate on this in the future and help to put good enablers in rpm for security p

Re: [Rpm-maint] Multiple ABI architectures (parallel installation, detection, handling)

2011-11-03 Thread Panu Matilainen
On 10/27/2011 12:00 AM, Dennis Gilmore wrote: [...big snip...] its not sufficient. it evaluates to armv7l on a hardware floating point system. we would need it to be armv7hl or armv7hnl to give yum the info it needs maybe _target_cpu could be used though it would need a dict of compatiable arc

Re: [Rpm-maint] Followup on Multiple ABI architectures

2011-11-03 Thread Panu Matilainen
On 10/19/2011 08:17 PM, Jon Masters wrote: Folks, I would like to come to some kind of resolution that works for us in the Fedora ARM project, and continue the longer term planning for better multiple ABI support, which it is clear won't be happening overnight. It is my proposal that we tempora

Re: [Rpm-maint] Multiple ABI architectures (parallel installation, detection, handling)

2011-11-03 Thread Panu Matilainen
On 10/21/2011 10:20 PM, Dennis Gilmore wrote: long term maybe we can do something better. right now im looking for a way to enable yum to detect the arches correctly without it resorting to things like running readelf to determine the abi of the running system. since its noarch we cant just pat

Re: [Rpm-maint] Multiple ABI architectures (parallel installation, detection, handling)

2011-11-04 Thread Panu Matilainen
On 11/03/2011 09:34 PM, Jon Masters wrote: Panu Matilainen wrote: On 10/21/2011 10:20 PM, Dennis Gilmore wrote: long term maybe we can do something better. right now im looking for a way to enable yum to detect the arches correctly without it resorting to things like running readelf to

Re: [Rpm-maint] [PATCH] Do not let 'rpm -q foo-' find package 'foo'.

2011-11-08 Thread Panu Matilainen
On 11/08/2011 10:01 AM, Ales Kozumplik wrote: - Includes a test suite for the case. Works for me... Applied, thanks for the patch :) - Panu - ___ Rpm-maint mailing list Rpm-maint@lists.rpm.org http://lists.rpm.org/mailman/listinfo/rpm-maint

Re: [Rpm-maint] [PATCH 2/2] Recognize ":" as a part of a label (ticket #117)

2011-11-15 Thread Panu Matilainen
On 11/11/2011 01:09 PM, Ales Kozumplik wrote: - for instance this works now: $ rpm -q perl-4:5.14.1-188.fc16.x86_64 perl-5.14.1-188.fc16.x86_64 Okay, for what I tested it works fine, including this special case that wasn't even specified in the ticket: [pmatilai@localhost rpm]$ ./rpm -

Re: [Rpm-maint] [PATCH 1/2] cosmetic: indentation in rpmdbNextIterator.

2011-11-15 Thread Panu Matilainen
On 11/11/2011 01:09 PM, Ales Kozumplik wrote: - the hunk looked confusing with the wrong indentation. --- lib/rpmdb.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rpmdb.c b/lib/rpmdb.c index 4e73cac..e249998 100644 --- a/lib/rpmdb.c +++ b/lib/rpmdb.c @@ -1761

Re: [Rpm-maint] [PATCH] Do not attempt running the test suite without fakechroot (ticket #851).

2011-11-15 Thread Panu Matilainen
On 11/14/2011 02:11 PM, Ales Kozumplik wrote: Partially resolves ticket #851. --- tests/Makefile.am |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index 6f84093..d2b5254 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am

Re: [Rpm-maint] [PATCH 2/2] Recognize ":" as a part of a label (ticket #117)

2011-11-15 Thread Panu Matilainen
On 11/15/2011 11:37 AM, Panu Matilainen wrote: Why the malloc? AFAICS you could just have "int epoch = 0" in dbiFindByLabel() and pass the pointer to that to splitEpoch(), only changing the value if one was actually found, equaling the "no epoch equals zero epoch" behavior

Re: [Rpm-maint] [PATCH] python: use the more modern PyCapsule over PyCObject (RhBug:623864).

2011-11-18 Thread Panu Matilainen
On 11/15/2011 04:56 PM, Ales Kozumplik wrote: rpm.header.new() will still keep accepting PyCObject for now in case a client library depends on this. --- python/header-py.c |3 +++ python/spec-py.c |2 +- 2 files changed, 4 insertions(+), 1 deletions(-) diff --git a/python/header-py

Re: [Rpm-maint] [PATCH] selinux: reopen label between transactions if necessary (RhBug: 746073)

2011-12-22 Thread Panu Matilainen
On 12/20/2011 04:14 PM, Ales Kozumplik wrote: --- lib/rpmts.c |9 + lib/rpmts_internal.h |8 lib/transaction.c|9 - system.h |6 +- 4 files changed, 30 insertions(+), 2 deletions(-) diff --git a/lib/rpmts.c b/lib/rpmts.c

Re: [Rpm-maint] [PATCH] Allow deprecations to work accross colors (RhBug:713323)

2011-12-22 Thread Panu Matilainen
On 12/07/2011 05:17 PM, Ales Kozumplik wrote: This enables package maintainers to: - Force removal of a no longer supported multilib library. - Deprecate packages of different header color than the package's. Yup... I suppose this is the best we can do, short of introducing some means for pac

Re: [Rpm-maint] [PATCH 1/3] rpmrc: do not use that nonexistent rpmOptionValue struct.

2012-01-04 Thread Panu Matilainen
On 01/03/2012 05:20 PM, Ales Kozumplik wrote: On 01/03/2012 04:18 PM, Ales Kozumplik wrote: --- lib/rpmrc.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/lib/rpmrc.c b/lib/rpmrc.c index 1c4ebb4..177db0e 100644 --- a/lib/rpmrc.c +++ b/lib/rpmrc.c @@ -72,7 +72,6 @@ struct rp

Re: [Rpm-maint] [PATCH 1/2] selinux: reopen label between transactions if necessary (RhBug: 746073)

2012-01-12 Thread Panu Matilainen
On 12/22/2011 04:50 PM, Ales Kozumplik wrote: --- lib/rpmts.c | 18 +++--- lib/rpmts_internal.h |8 +--- lib/transaction.c| 15 +-- plugins/sepolicy.c |2 +- system.h |1 + 5 files changed, 31 insertions(+), 13 deletion

Re: [Rpm-maint] Fedora 17’s unified filesystem (/usr-move)

2012-02-01 Thread Panu Matilainen
On 01/31/2012 11:30 PM, James Antill wrote: On Tue, 2012-01-31 at 15:58 -0500, Bill Nottingham wrote: James Antill (ja...@fedoraproject.org) said: [root@nostromo ~]# mv /bin /cow [root@nostromo ~]# /cow/ln -s /cow /bin [root@nostromo ~]# rpm -qf /cow/bash bash-4.2.20-1.fc16.x86_64 [root@nostrom

Re: [Rpm-maint] [REQUEST] new release of rpm-4.9.x branch

2012-03-13 Thread Panu Matilainen
On 03/13/2012 11:30 AM, Thierry Vignaud wrote: Hi I see you're back-porting fixes in FC's rpm. eg: * Wed Mar 07 2012 Panu Matilainen - 4.9.1.2-6 - fix memory corruption on rpmdb size estimation (#766260) - fix couple of memleaks in python bindings (#782147) - fix regression in ver

Re: [Rpm-maint] [REQUEST] new release of rpm-4.9.x branch

2012-03-13 Thread Panu Matilainen
On 03/13/2012 11:48 AM, Panu Matilainen wrote: On 03/13/2012 11:30 AM, Thierry Vignaud wrote: Hi I see you're back-porting fixes in FC's rpm. eg: * Wed Mar 07 2012 Panu Matilainen - 4.9.1.2-6 - fix memory corruption on rpmdb size estimation (#766260) - fix couple of memleaks

Re: [Rpm-maint] [patches] %find_lang improvements

2012-03-19 Thread Panu Matilainen
On 03/13/2012 05:34 PM, Vincent Untz wrote: Le jeudi 23 février 2012, à 08:37 +0100, Vincent Untz a écrit : - second one add supports for the new XDG help spec I wrote a few months ago and proposed on irc. I see that Fedora now ships the same patch (without the ONLY_C/NO_C parts) I s

[Rpm-maint] RPM 4.10.0 alpha released

2012-03-20 Thread Panu Matilainen
It's that time again, just a bit later than originally planned. A new major release is coming up and while this could be considered a rather boring release in terms of new features, there's been quite an amount of internal churn so beginning at alpha, just in case. Unless something totally une

[Rpm-maint] RPM 4.9.1.3 released!

2012-04-03 Thread Panu Matilainen
This is a security-only update for the 4.9.x series to address the following three CVE's related to various input validation failures on headers: CVE-2012-0060, CVE-2012-0061 and CVE-2012-0815. Download instructions and more detailed information are available from: http://rpm.org/wik

Re: [Rpm-maint] RPM 4.10.0 alpha released

2012-04-03 Thread Panu Matilainen
On 03/20/2012 12:51 PM, Michael Schroeder wrote: Hi Panu! Hi, and sorry about the late reply. On Tue, Mar 20, 2012 at 11:44:29AM +0200, Panu Matilainen wrote: It's that time again, just a bit later than originally planned. A new major release is coming up and while this could be consi

Re: [Rpm-maint] RPM 4.10.0 alpha released

2012-04-03 Thread Panu Matilainen
On 03/21/2012 06:05 PM, Thierry Vignaud wrote: On 20 March 2012 10:44, Panu Matilainen wrote: For download information and further details, see the draft release notes: http://rpm.org/wiki/Releases/4.10.0 Build (actually tests) failed on non selinux systems: for d in /proc /sys /selinux

Re: [Rpm-maint] RFC: yum+rpm ppc64p7 patches

2012-04-04 Thread Panu Matilainen
On 03/23/2012 08:22 PM, Phil Knirsch wrote: Hi folks. Here the promised patches to add support for adding a power7 optimized arch to ppc64 for rpm and yum. It's pretty similar to the ARM neon support code from dgilmore, only that i needed to add the detection properly in rpm as well. I've test

Re: [Rpm-maint] [PATCH] - Added support for ppc64p7 arch (Power7 and higher optimized)

2012-04-12 Thread Panu Matilainen
On 04/11/2012 12:58 PM, Phil Knirsch wrote: Attached is the updated version of the ppc64p7 support patch. I've got rid of the AUXV env reading and doing it properly now via reading and parsing /proc/self/auxv. Additionally the patch now checks if the AT_PLATFORM is power7 or higher via a sscanf()

Re: [Rpm-maint] [PATCH] - Added support for ppc64p7 arch (Power7 and higher optimized)

2012-04-13 Thread Panu Matilainen
On 04/13/2012 01:25 PM, Phil Knirsch wrote: On 04/12/2012 11:48 AM, Panu Matilainen wrote: On 04/11/2012 12:58 PM, Phil Knirsch wrote: Attached is the updated version of the ppc64p7 support patch. I've got rid of the AUXV env reading and doing it properly now via reading and parsing /proc

Re: [Rpm-maint] [PATCH] - Added support for ppc64p7 arch (Power7 and higher optimized)

2012-04-16 Thread Panu Matilainen
On 04/16/2012 08:14 PM, Phil Knirsch wrote: On 04/13/2012 01:32 PM, Panu Matilainen wrote: On 04/13/2012 01:25 PM, Phil Knirsch wrote: On 04/12/2012 11:48 AM, Panu Matilainen wrote: On 04/11/2012 12:58 PM, Phil Knirsch wrote: Attached is the updated version of the ppc64p7 support patch. I&#x

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

2012-04-19 Thread Panu Matilainen
On 04/18/2012 06:10 PM, Michael Schroeder wrote: Hi Panu et al, I'm a bit confused about commit 9fb81eac. If dep is an "Obsoletes" dependency, it uses RPMDBI_NAME instead of RPMDBI_PROVIDENAME. It then still calls rpmdsMatchesDep(). Is that really correct? It seems to me that rpmdsMatchesDep()

Re: [Rpm-maint] RPM 4.10.0 alpha released

2012-04-23 Thread Panu Matilainen
On 04/20/2012 06:05 PM, Michael Schroeder wrote: On Tue, Apr 03, 2012 at 09:43:10PM +0300, Panu Matilainen wrote: Of course we can just slap in a new rpmlib() dependency for packages with tilde in the version, that'll at least prevent older rpm's getting confused and provide a hin

Re: [Rpm-maint] RPM 4.10.0 alpha released

2012-04-23 Thread Panu Matilainen
On 04/23/2012 11:25 AM, Panu Matilainen wrote: On 04/20/2012 06:05 PM, Michael Schroeder wrote: On Tue, Apr 03, 2012 at 09:43:10PM +0300, Panu Matilainen wrote: Of course we can just slap in a new rpmlib() dependency for packages with tilde in the version, that'll at least prevent older

[Rpm-maint] RPM 4.10.0 beta1 released

2012-04-23 Thread Panu Matilainen
In short, 4.10.0 beta1 is out for testing now. The main changes since alpha are: - Several regressions fixed (the original alpha snapshot was rather badly broken really) - Support for dpkg-style sorting of tilde in versions - File conflict detection improvements - Obsoletes handling improvem

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

2012-04-23 Thread Panu Matilainen
On 04/20/2012 06:11 PM, Michael Schroeder wrote: Hi, here's a small patch that fixes quoting in brp-python-hardlink (credits: Jon Nelson). --- scripts/brp-python-hardlink.orig2012-04-18 13:33:39.0 + +++ scripts/brp-python-hardlink 2012-04-18 13:34:52.0 + @@ -10,8 +1

Re: [Rpm-maint] [PATCH] Use private environment on EINVAL error code for JFFS2

2012-05-03 Thread Panu Matilainen
On 04/24/2012 06:41 PM, Daniel Drake wrote: JFFS2 is an embedded filesystem used by the OLPC XO-1. It does not support writable mmap. When opening a non-private environment, libdb uses a writable disk-backed mmap, even if the DB_NOMMAP flag is passed. This fails with EINVAL on JFFS2. Detect the

Re: [Rpm-maint] [PATCH] Fix rpm 4.9 sparc installplatform regex

2012-05-03 Thread Panu Matilainen
On 04/27/2012 03:39 PM, Tom Callaway wrote: As I said on IRC, I'm not at all convinced this regex is any more correct than the previous one, but this one successfully writes out all the sparc& sparc64 platform macro files that I want/need at the moment, so I'm calling it a fix and moving on. A

Re: [Rpm-maint] Small patch to reverse hardlink ordering

2012-05-03 Thread Panu Matilainen
On 05/03/2012 12:49 PM, Michael Schroeder wrote: Hi Panu et al, Here's a small patch that changes the ordering used for putting hardlinked files into the cpio archive back to lexicographical. You might wonder what this is about. Well, old rpm-3 (and also old versions of rpm-4, I think) already

Re: [Rpm-maint] [PATCH] Add support for 7zip compressed tarballs

2012-05-22 Thread Panu Matilainen
On 05/11/2012 12:27 AM, Christophe Fergeau wrote: Teach %prep and %uncompress how to handle 7zip tarballs, with the mingw toolchain landing in fedora, this may be useful when crossbuilding Windows sources compressed using 7zip (CxImage is one such project). Applied, thanks for the patch.

[Rpm-maint] RPM 4.10.0 released!

2012-05-24 Thread Panu Matilainen
We're please to announce the availability of RPM release 4.10.0. There's no shortage of changes since 4.9.x, with emphasis towards improved overall robustness and correctness rather than actual new features but some of the more notable additions include support for dpkg-style tilde operator f

Re: [Rpm-maint] PATCH: Accessing file and policy lists from python (and C)

2012-09-20 Thread Panu Matilainen
On 09/15/2012 05:47 PM, Alec Leamas wrote: When rpm-build parses the specfile, it also parses the file list and (nowadays?) also the policy. These are stored in specPackage objects attached to the spec. However, these items are not visible on the rpm.specPkg interface, neither from C nor from pyt

Re: [Rpm-maint] Unified set of security hooks for rpm

2012-09-20 Thread Panu Matilainen
On 09/14/2012 02:52 PM, Reshetova, Elena wrote: Hi, Hi, I have been writing to the list a while back proposing a set of security hooks that we need for rpm in Tizen. I have discussed with SELinux guys (in CC) and we agreed that can should try to define a unified interface that they can als

Re: [Rpm-maint] PATCH: Accessing file and policy lists from python (and C)

2012-09-21 Thread Panu Matilainen
On 09/21/2012 01:59 PM, Alec Leamas wrote: On 09/21/2012 07:02 AM, Panu Matilainen wrote: On 09/15/2012 05:47 PM, Alec Leamas wrote: When rpm-build parses the specfile, it also parses the file list and (nowadays?) also the policy. These are stored in specPackage objects attached to the spec

Re: [Rpm-maint] PATCH: Accessing file and policy lists from python (and C)

2012-09-27 Thread Panu Matilainen
On 09/21/2012 08:13 PM, Alec Leamas wrote: On 09/21/2012 01:42 PM, Panu Matilainen wrote: On 09/21/2012 01:59 PM, Alec Leamas wrote: On 09/21/2012 07:02 AM, Panu Matilainen wrote: On 09/15/2012 05:47 PM, Alec Leamas wrote: When rpm-build parses the specfile, it also parses the file list and

Re: [Rpm-maint] Feature Requests?

2012-09-27 Thread Panu Matilainen
On 09/26/2012 08:04 PM, Roy A. Gilmore wrote: Is this the proper list to ask about feature requests? Sure. - Panu - ___ Rpm-maint mailing list Rpm-maint@lists.rpm.org http://lists.rpm.org/mailman/listinfo/rpm-maint

Re: [Rpm-maint] Pretrans scriptlets and file conflicts

2012-09-28 Thread Panu Matilainen
On 09/28/2012 02:58 PM, Michael Schroeder wrote: 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.

[Rpm-maint] RPM 4.10.1 released!

2012-10-03 Thread Panu Matilainen
We're pleased to announce the availability of RPM release 4.10.1. This is a regular bugfix and minor enhancements maintenance release to the 4.10.x series. Most importantly this release fixes a bunch of regressions, a couple of which were introduced in 4.10.0 and some all the way back in 4.9.

Re: [Rpm-maint] [PATCH] Add lua 5.2 support.

2012-10-08 Thread Panu Matilainen
On 10/07/2012 11:56 PM, Anders F Björklund wrote: Here's a patch to add lua-5.2 support, for systems that don't have lua-5.1 available... It doesn't have pkg-config files either any longer, so that needs to be worked around. Setting LUA_CFLAGS (-I .../include) and LUA_LIBS (-L.../lib -llua)

Re: [Rpm-maint] First attempt for the patch on extending the plugin interface for rpm

2012-10-09 Thread Panu Matilainen
On 10/08/2012 03:03 PM, Reshetova, Elena wrote: Hi, Hi, Following up our recent discussion, I have composed a first patch in order not to talk about the abstract concepts only. I have taken the less intrusive approach and tried to integrate the new hooks and the notion of "security plugin"

Re: [Rpm-maint] [rpm 4.9.1.3] rpmtests: 12 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 51 52 53 54 55 56 57 58 60 61 62 63 64 65 66 67 68 69 70 71 72 7

2012-10-10 Thread Panu Matilainen
On 10/02/2012 10:43 PM, Dakai Zhu wrote: These are all caused by two separate issues, repeated all over: --- /dev/null 2012-09-29 18:10:44.704716381 -0400 +++ /tps/local/depot/rpm-4.9.1.3/dist/rpm-4.9.1.3/tests/rpmtests.dir/at-groups/15/stderr 2012-10-02 15:41:48.113940806 -0400 @@ -

Re: [Rpm-maint] First attempt for the patch on extending the plugin interface for rpm

2012-10-10 Thread Panu Matilainen
On 10/09/2012 03:26 PM, Reshetova, Elena wrote: Hi Panu, Thank you for such fast reply given that you are so busy! Just trying to make up a bit for all the past delays ;) My comments are below. Note that the existing hooks are by no means "sacred" for other than documenting the needs of th

Re: [Rpm-maint] First attempt for the patch on extending the plugin interface for rpm

2012-10-11 Thread Panu Matilainen
On 10/10/2012 05:21 PM, Panu Matilainen wrote: I think this was one of the prime reasons I had that look into the "security manager" object thingie: to avoid having to pass the transaction set to places where it really does not belong to. OTOH it would seem to me (most of) the pl

Re: [Rpm-maint] First attempt for the patch on extending the plugin interface for rpm

2012-10-16 Thread Panu Matilainen
On 10/15/2012 03:18 PM, Reshetova, Elena wrote: Hi, After reading your responses I think we indeed need to break this patch into at least two or three parts. It would help us to concentrate on one set of the hooks at the time and integrate them separately in steps. You mentioned that pre/post ts

Re: [Rpm-maint] First attempt for the patch on extending the plugin interface for rpm

2012-10-17 Thread Panu Matilainen
On 10/17/2012 07:49 AM, Tero Aho wrote: Ok, that'd be good. I was actually wondering why its done the way it is now - if there is an actual reason (such insufficient information available at that point), I'd like to understand it. My understanding before was that in the current implementation

Re: [Rpm-maint] First attempt for the patch on extending the plugin interface for rpm

2012-10-17 Thread Panu Matilainen
On 10/16/2012 07:31 PM, Reshetova, Elena wrote: Hi, Obviously there needs to be some way of loading the plugins... What kinda bothers me here is the notion of "security plugin" - except for perhaps the signature/conflict hooks, there's nothing inherently security-specific here. The two immed

Re: [Rpm-maint] First attempt for the patch on extending the plugin interface for rpm

2012-10-17 Thread Panu Matilainen
On 10/17/2012 11:17 AM, Reshetova, Elena wrote: @Tero, do you still remember the reason why the conflict hook was done in this way? Why wasn't it better to check the conflicts before the transaction and fail the whole transaction if conflicts are seen? I'm not quite sure about the context you a

Re: [Rpm-maint] [PATCH 1/2] Extending rpm plugin interface, part 1

2012-10-18 Thread Panu Matilainen
On 10/17/2012 03:50 PM, Elena Reshetova wrote: This change adds a new type of the rpm plugin, called transaction plugin and a set of initial hooks for this plugin. The hooks are: PLUGINHOOK_TSM_PRE Pre-transaction hook that is called before an rpm transaction begins PLUGINHOOK_TSM_POST Post-tra

Re: [Rpm-maint] [PATCH 1/2] Extending rpm plugin interface, part 1

2012-11-01 Thread Panu Matilainen
On 10/26/2012 12:56 PM, Reshetova, Elena wrote: Hi, Please find the corrected patch in the attachment. I really spend quite some time fighting indentation :( , but let's hope it succeeded now (I am not that sure since it so much changing when I open it with different editors/settings). I was try

Re: [Rpm-maint] [PATCH] Don't call "rpm --addsign" if rpmbuild didn't create RPMs

2012-11-01 Thread Panu Matilainen
On 10/25/2012 02:25 AM, Tim Landscheidt wrote: Hi, if rpmbuild doesn't create any RPMs, at the moment "rpm --addsign" is called without any arguments and thus fails with "no arguments given". The attached patch fixes this. At the risk of annoying portability people (-r is a GNU-extension to

[Rpm-maint] RPM 4.11.0 alpha released

2012-11-07 Thread Panu Matilainen
Seems we're having a bit shorter development cycle for a change. Didn't really originally plan for it, when the commit stream suddenly dried up to a trickle in October, it started seeming like a good idea to cut out a release at this point: for the very first time, we're headed for a new majo

Re: [Rpm-maint] [PATCH 1/2] Extending rpm plugin interface, part 1

2012-11-08 Thread Panu Matilainen
On 11/08/2012 08:35 AM, Reshetova, Elena wrote: Hi, Sorry for the late reply: I was on holidays. No worries. Lucky you :) Sure, go ahead with rpmlog and indentation changes, if it doesn't bother you to do this! Okay then, done and pushed. Now that I looked closer, I spotted (and fixed) a

Re: [Rpm-maint] [PATCH 1/2] Extending rpm plugin interface, part 1

2012-11-09 Thread Panu Matilainen
On 11/08/2012 01:01 PM, Reshetova, Elena wrote: Okay then, done and pushed. Now that I looked closer, I spotted (and fixed) a couple of more "issues": a tiny memleak from early rpmtsSetupTransactionPlugins() return and some further cosmetics (two soft-tabs instead of one hard-tab, trailing white

Re: [Rpm-maint] [PATCH 1/2] Extending rpm plugin interface, part 1

2012-11-09 Thread Panu Matilainen
On 11/09/2012 02:27 PM, Reshetova, Elena wrote: Oh and one other thing I noticed just now that'll need further thought: currently the script setup hook only runs for external scripts, but not the embedded Lua-scripts. Which are getting more and more common... They'll obviously need to be handle

Re: [Rpm-maint] [PATCH 1/2] Extending rpm plugin interface, part 1

2012-11-15 Thread Panu Matilainen
On 11/12/2012 10:50 AM, Reshetova, Elena wrote: Scripts run with all the powers that rpm itself has, and there's not a whole lot that can be done about it: scriptlets expect to, and often need to, do all sorts of crazy things. True, but we would actually like to be able to limit things that scr

Re: [Rpm-maint] [PATCH 1/2] Extending rpm plugin interface, part 1

2012-11-20 Thread Panu Matilainen
On 11/20/2012 01:45 PM, Reshetova, Elena wrote: The most important use-case is to make it possible to run scripts when even /bin/sh is not available. Such as %pretrans scripts on initial install - there simply nothing to exec() in that environment. Or if the package containing /bin/sh or one of

Re: [Rpm-maint] [PATCH RFC] Package script(let)s SELinux execution context

2012-11-20 Thread Panu Matilainen
On 11/20/2012 05:27 PM, Guillem Jover wrote: Hi! Some context for the rpm folks. While looking into improving SELinux support in dpkg, I noticed that dpkg is not setting a new execution context when running the package maintainer scripts (package scriptlets in rpm lingo, I think). And when check

Re: [Rpm-maint] [PATCH RFC] Package script(let)s SELinux execution context

2012-11-20 Thread Panu Matilainen
On 11/20/2012 07:27 PM, Panu Matilainen wrote: On 11/20/2012 05:27 PM, Guillem Jover wrote: Hi! Some context for the rpm folks. While looking into improving SELinux support in dpkg, I noticed that dpkg is not setting a new execution context when running the package maintainer scripts (package

Re: [Rpm-maint] [PATCH] add syslog support to rpm (when installing/removing packages)

2012-11-22 Thread Panu Matilainen
On 11/22/2012 05:42 AM, Thierry Vignaud wrote: Hi Hi, You had a typo in the mailing list address: 'pm-m...@lists.rpm.org' but apparently some catchall-alias sent it to me afterall. Since rpm-maint was obviously the intent, replying to the list. The following patch adds syslog support to r

[Rpm-maint] Plugin ponderings

2012-11-22 Thread Panu Matilainen
Hi, Like said in some earlier email, there's not much hope getting the details 100% right the first time. The best way of finding out what works and what doesn't is to try it out, so... I started looking into creating a syslog plugin for rpm. One could argue that logging is fundamental enoug

Re: [Rpm-maint] Script hooks patch

2012-11-22 Thread Panu Matilainen
On 11/23/2012 07:32 AM, Reshetova, Elena wrote: Hi, Please ignore the previous path: I should have just went to sleep yesterday Heh, I know the feeling :) Somehow it got locked in my head that case when execv might fail is a special case (which of course it is, but not for this) and we ne

<    1   2   3   4   5   6   7   8   9   10   >