Bug 6468 - jpackage-utils conflicts with rpm in mga2
Summary: jpackage-utils conflicts with rpm in mga2
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 2
Hardware: x86_64 Linux
Priority: Normal major
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA2-32-OK MGA2-64-OK
Keywords: validated_update
Depends on:
Blocks:
 
Reported: 2012-06-14 22:44 CEST by Barry Jackson
Modified: 2012-08-06 17:53 CEST (History)
6 users (show)

See Also:
Source RPM: jpackage-utils
CVE:
Status comment:


Attachments

Description Barry Jackson 2012-06-14 22:44:59 CEST
Description of problem:
Install of jpackage-utils fails with :-
file /usr/lib/rpm/fileattrs from install of jpackage-utils-1:1.7.5-16.mga2.x86_64 conflicts with file from package rpm-1:4.9.1.3-2.mga2.x86_64

Version-Release number of selected component (if applicable):
As above

How reproducible:
Always

Steps to Reproduce:
1. Attempt to install jpackage-utils-1:1.7.5-16.mga2.x86_64 
2.
3.
Comment 1 D Morgan 2012-06-14 22:54:16 CEST
please test the new package

CC: (none) => dmorganec

Comment 2 Barry Jackson 2012-06-15 02:06:20 CEST
Tested in mga2 x86_64 chroot.

jpackage-utils-1.7.5-16.1.mga2 installs alongside rpm-4.9.1.3-2.mga2 without problem.
Comment 3 Manuel Hiebel 2012-06-17 01:47:50 CEST
reassign to the QA then

Suggested advisory:
========================

Updated jpackage-utils fix the file /usr/lib/rpm/fileattrs conflict with the rpm package who had made ââit impossible to install.

SRPM: jpackage-utils-1.7.5-16.1.mga2.src.rpm

Assignee: bugsquad => qa-bugs
Source RPM: (none) => jpackage-utils

Comment 4 claire robinson 2012-06-17 22:00:48 CEST
Testing x86_64

I apparently already have both of these installed already and not able to reproduce the problem.

# rpm -qa |grep -e jpackage-utils -e ^rpm-4
jpackage-utils-1.7.5-16.mga2
rpm-4.9.1.3-2.mga2

# rpm -e --nodeps jpackage-utils
warning: /etc/maven/maven2-depmap.xml saved as /etc/maven/maven2-depmap.xml.rpmsave

# urpmi jpackage-utils


    http://192.168.2.222/mirror/distrib/2/x86_64/media/core/release/jpackage-utils-1.7.5-16.mga2.x86_64.rpm
installing jpackage-utils-1.7.5-16.mga2.x86_64.rpm from /var/cache/urpmi/rpms              
Preparing...                     #########################################################
      1/1: jpackage-utils        #########################################################

# rm /etc/maven/maven2-depmap.xml
rm: remove regular file `/etc/maven/maven2-depmap.xml'? y
# mv /etc/maven/maven2-depmap.xml.rpmsave /etc/maven/maven2-depmap.xml

Urpmf shows it does belong to both packages though.

# urpmf /usr/lib/rpm/fileattrs
...
rpm:/usr/lib/rpm/fileattrs
...
jpackage-utils:/usr/lib/rpm/fileattrs

The same check on testing version shows the directory is not owned by jpackage-utils. Installed the update candidate.

# urpmf --media "Core Updates Testing" /usr/lib/rpm/fileattrs                  
jpackage-utils:/usr/lib/rpm/fileattrs/maven.attr
jpackage-utils:/usr/lib/rpm/fileattrs/osgi.attr

The description says..
"It contains also the License, man pages, documentation, XSL files of general
use with maven2, a header file for spec files, etc. Please See
the /usr/share/doc/jpackage-utils-1.7.5/jpackage-utils-README file for more
information."

That file does not exist there, it is at..
/usr/share/doc/jpackage-utils/jpackage-utils-README

The README itself contains unexpanded macros

The jpackage-utils package installs the following scripts on the system:

* %{_bindir}/build-classpath
                                build the Java classpath in a portable manner
* %{_bindir}/build-jar-repository
                                build a jar repository in a portable manner
* %{_bindir}/rebuild-jar-repository
                                rebuild a jar repository in a portable manner
                                (after a jvm change...)
etc.

Checked the scripts found in # urpmf --media Testing jpackage-utils | grep bin
Checked only as far as they displayed their help when used with --help

Barry do you feel the README is worth a rebuild?

If not, then testing complete x86_64
Comment 5 claire robinson 2012-06-17 22:04:52 CEST
Sorry it was dmorgan who built it.

dmorgan do you feel the README / description is worth a rebuild? See comment 4.
Comment 6 D Morgan 2012-06-23 00:14:01 CEST
a new package is on testing with a fixed README
Comment 7 claire robinson 2012-06-24 00:48:23 CEST
Confirmed the fixed readme and retested x86_64

jpackage-utils-1.7.5-16.2.mga2.src.rpm

Whiteboard: (none) => mga2-64-OK

Comment 8 Zoltan Balaton 2012-06-25 23:33:43 CEST
Ran this on mga2 i586:

$ urpmf /usr/lib/rpm/fileattrs
jpackage-utils:/usr/lib/rpm/fileattrs
jpackage-utils:/usr/lib/rpm/fileattrs/maven.attr
jpackage-utils:/usr/lib/rpm/fileattrs/osgi.attr
rpm:/usr/lib/rpm/fileattrs
rpm:/usr/lib/rpm/fileattrs/desktop.attr
rpm:/usr/lib/rpm/fileattrs/elf.attr
rpm:/usr/lib/rpm/fileattrs/font.attr
rpm:/usr/lib/rpm/fileattrs/libtool.attr
rpm:/usr/lib/rpm/fileattrs/mono.attr
rpm:/usr/lib/rpm/fileattrs/ocaml.attr
rpm:/usr/lib/rpm/fileattrs/perl.attr
rpm:/usr/lib/rpm/fileattrs/perllib.attr
rpm:/usr/lib/rpm/fileattrs/pkgconfig.attr
rpm:/usr/lib/rpm/fileattrs/python.attr
rpm:/usr/lib/rpm/fileattrs/script.attr
$ urpmf --media Testing /usr/lib/rpm/fileattrs
jpackage-utils:/usr/lib/rpm/fileattrs/maven.attr
jpackage-utils:/usr/lib/rpm/fileattrs/osgi.attr
$ urpmq -f --media Testing jpackage-utils
jpackage-utils-1.7.5-16.2.mga2.i586

This confirms that the /usr/lib/rpm/fileattrs directory is not any more in the updated package.

However, I've tried to install it on mga2 x86_64 and could not reproduce the error message about the conflict. Instead, installing jpackage-utils-1.7.5-16.mga2.x86_64.rpm changed the owner of /usr/lib/rpm/fileattrs from rpm:rpm to root:root and updating to 16.2.mga2 did not change it back either. Decide yourself if this is a problem or not and act accordingly (I did not change the whiteboard tags).

CC: (none) => balaton

Comment 9 Dave Hodgins 2012-07-10 00:46:41 CEST
This is a strange one.  I uninstalled jpackage-utils with --nodeps, installed
the core release version without any problem, then installed the update.

The description still says /usr/share/doc/jpackage-utils-1.7.5 instead of
/usr/share/doc/jpackage-utils.

What was actually changed?

CC: (none) => davidwhodgins

Comment 10 D Morgan 2012-07-13 08:33:19 CEST
just fixed, please test next rpm
claire robinson 2012-07-21 14:11:21 CEST

Whiteboard: mga2-64-OK => (none)

Comment 11 Dave Hodgins 2012-07-22 03:23:51 CEST
cat /etc/java/jpackage-release
JPackage release 1.7 (Mageia) for %{buildarch}

Is that correct, or should the buildarch be getting translated during
the rpm build?
claire robinson 2012-08-02 11:05:57 CEST

Whiteboard: (none) => feedback

Comment 12 Samuel Verschelde 2012-08-04 10:38:26 CEST
ping Dmorgan, did you see comment #11?

CC: (none) => stormi

Comment 13 D Morgan 2012-08-05 02:43:02 CEST
new package just submited.
claire robinson 2012-08-05 12:15:08 CEST

Whiteboard: feedback => (none)

Comment 14 Samuel Verschelde 2012-08-05 15:24:44 CEST
Introducing a new lazy-testing method!

First, description is indeed fixed:

[root@localhost ~]# cat /etc/java/jpackage-release 
JPackage release 1.7 (Mageia) for i386

Then, let's see what else changed between release and update:

[root@localhost ~]# rpmdiff -i T jpackage-utils-1.7.5-16.mga2.i586.rpm jpackage-utils-1.7.5-17.3.mga2.i586.rpm 
S.5.....    DESCRIPTION
removed     PROVIDES jpackage-utils(x86-32) = 1:1.7.5-16.mga2
added       PROVIDES jpackage-utils(x86-32) = 1:1.7.5-17.3.mga2
S.5........ /etc/java/jpackage-release
removed     /usr/lib/rpm/fileattrs
S.5........ /usr/share/doc/jpackage-utils/jpackage-utils-README
S.5........ /usr/share/man/man1/build-classpath.1.xz
S.5........ /usr/share/man/man1/build-jar-repository.1.xz
S.5........ /usr/share/man/man1/diff-jars.1.xz
S.5........ /usr/share/man/man1/rebuild-jar-repository.1.xz

The diff shows only description, removal of /usr/lib/rpm/fileattrs and documentation have been changed (S means size and 5 means MD5SUM).  

I consider that no regression can be introduced by such changes, so testing complete on Mageia 2 32.

Whiteboard: (none) => MGA2-32-OK

Comment 15 Samuel Verschelde 2012-08-05 15:33:08 CEST
Same results on x86_64. Testing complete Mageia 2 x86_64.

Update validated. No added dep, so no linking required.

SRPM: jpackage-utils-1.7.5-17.3.mga2.src.rpm

Advisory:
========================

Updated jpackage-utils fixes a file conflict with the rpm package. The /usr/lib/rpm/fileattrs file no longer belongs to jpackage-utils.
Some documentation issues were also fixed.

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs
Whiteboard: MGA2-32-OK => MGA2-32-OK MGA2-64-OK

Comment 16 Thomas Backlund 2012-08-06 17:53:52 CEST
Update pushed:
https://wiki.mageia.org/en/Support/Advisories/MGAA-2012-0156

Status: NEW => RESOLVED
CC: (none) => tmb
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.