| Summary: | java-1.7.0-openjdk fails to install | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Glen Ogilvie <nelg> |
| Component: | RPM Packages | Assignee: | D Morgan <dmorganec> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | release_blocker | CC: | cazzaniga.sandro, dmorganec, ennael1, luigiwalser, thierry.vignaud, wilcal.int |
| Version: | Cauldron | Keywords: | Triaged |
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | 3beta4 | ||
| Source RPM: | java-1.7.0-openjdk-1.7.0.6-2.3.8.2.mga3 | CVE: | |
| Status comment: | |||
| Attachments: |
screenshot
bug report |
||
|
Description
Glen Ogilvie
2013-03-27 11:59:01 CET
Created attachment 3667 [details]
screenshot
Created attachment 3668 [details]
bug report
release blocker, because it's within the installer, and actually quite easy to trigger. Priority:
Normal =>
release_blocker * urpmi error: ERROR: 'unpack' failed for java-1.7.0-openjdk-1.7.0.6-2.3.8.2.mga3.x86_64: * java-1.7.0-openjdk not installed, unpacking of archive failed on file /usr/lib/jvm/jre-1.7.0-openjdk.x86_64: cpio: rename failed - Resource temporarily unavailable maybe something for thierry or dmorgan too CC:
(none) =>
dmorganec, thierry.vignaud I just test an iso that Anne pushed on the server, it worked in a VM. If someone can test in a physical machine, it would be great ! Thanks CC:
(none) =>
cazzaniga.sandro I think this will be fixed when dmorgan syncs this change from Fedora: http://pkgs.fedoraproject.org/cgit/java-1.7.0-openjdk.git/commit/?id=b4ca7f6419531b155313ebc75fb159621e88d5aa CC:
(none) =>
luigiwalser
William Kenney
2013-03-27 20:23:38 CET
CC:
(none) =>
wilcal.int This is obviously _NOT_ an installer bug but a package one!
Stop affecting everything to the installer
And it's easily reproducible with urpmi (both 32 & 64bit):
Preparing... #############################################
1/2: liblcms2_2 #############################################
2/2: java-1.7.0-openjdk #############################################
error: unpacking of archive failed on file /usr/lib/jvm/jre-1.7.0-openjdk: cpio: rename failed - Is a directory
ERROR: 'unpack' failed for java-1.7.0-openjdk-1.7.0.6-2.3.8.2.mga3.i586:
error: java-1.7.0-openjdk-1:1.7.0.6-2.3.8.2.mga3.i586: install failed
file being replaced by a directory or viceversa has always needed special handling in %preComponent:
Installer =>
RPM Packages Maybe a bug in %post/%postuninstall that plays with /usr/lib/jvm/jre-1.7.0-openjdk
Why the fsck is it done when that location is already packaged (as a symlink)????
Even on initial install, we can see that it packages some files in a directory and a parent directory as a symlink (worse to a subdirectory!!!):
# ls -o T/usr/lib/jvm
total 8
drwxr-xr-x 3 root 4096 Meu 28 07:04 java-1.7.0-openjdk-1.7.0.6/
drwxr-xr-x 3 root 4096 Meu 28 07:04 jre-1.7.0-openjdk/
lrwxrwxrwx 1 root 30 Meu 28 07:04 jre-1.7.0-openjdk;5153dd56 -> java-1.7.0-openjdk-1.7.0.6/jre/
(jre-1.7.0-openjdk containing an empty lib/i386/server/ subdirectory)
Thus after having installed some files in a directory, rpm is asked to replace this directory by a symlink (which is known to be impossible for as long as mdk/mdv/mga existed)
which is related to:
%global jrelnk jre-%{javaver}-%{origin}.%{_arch}
%global jredir %{sdkdir}/jre
(...)
# Install versionless symlinks.
pushd $RPM_BUILD_ROOT%{_jvmdir}
ln -sf %{jredir} %{jrelnk}
ln -sf %{sdkdir} %{sdklnk}
popd
pushd $RPM_BUILD_ROOT%{_jvmjardir}
ln -sf %{sdkdir} %{jrelnk}
ln -sf %{sdkdir} %{sdklnk}
popdSummary:
Installation of packages from DVD fails =>
java-1.7.0-openjdk fails to install >This is obviously _NOT_ an installer bug but a package one!
>Stop affecting everything to the installer
Well, sorry it's hard to know sometimes (for me at least) if the bug is in rpm/in the rpm/or in the installer.
Thanks anyway.Keywords:
(none) =>
Triaged Please test java package. It should fix this issue. Rebuilding isos at the moment with this package CC:
(none) =>
ennael1 Tested installation, works as expected now. All packages installed OK. Plus, tested that after installation, java-1.7.0-openjdk was installed OK. Status:
NEW =>
RESOLVED |