RPM

Support x32 rpm

Bug #913618 reported by Jeff Johnson
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
RPM
Opinion
Medium
Jeff Johnson
Fedora
Won't Fix
Undecided

Bug Description

tracker for new x32abi RFE

Tags: fedora x32abi
Revision history for this message
In , H.J. (h.j.-redhat-bugs) wrote :

Created attachment 513493
A patch to support x32

Here is a patch to support x32:

https://sites.google.com/site/x32abi/

It is a new 32bit environment for x86-64. We are planning to merge
x32 support with Linux kernel 3.2.

Revision history for this message
In , H.J. (h.j.-redhat-bugs) wrote :

Created attachment 517690
An improved patch for rpm 4.9.1

Jeff Johnson (n3npq)
tags: added: fedora x32abi
Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.

Revision history for this message
Jeff Johnson (n3npq) wrote :

H. J. Lu's patch is crap: the better implementation uses
another color bit.

Changed in rpm:
status: New → Opinion
assignee: nobody → Jeff Johnson (n3npq)
importance: Undecided → Medium
Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle.
Changing version to '19'.

(As we did not run this process for some time, it could affect also pre-Fedora 19 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora19

Revision history for this message
In , Nicolas (nicolas-redhat-bugs) wrote :

Is there any chances to see this support in upstream rpm bug tracker ?

Revision history for this message
Elan Ruusamäe (glen666) wrote :

where is that better implementation?

also, would you use same color for x32 same as i686, or new one?

in pld linux i was thinking to use new color:
- 1 - i386
- 2 - x86_64
- 3 - x32

and also would use "lib32" as %{_lib}:
- i686 - lib
- x86_64 - lib64
- x32 - lib32

Revision history for this message
Jeff Johnson (n3npq) wrote :

Adding a color bit is minimal necessary change: H. J. Lu's dependency
patch is crap.

Note that "3" == 0b011 isn't a color bit. It's entirely
possible (even if insanely unlikely) to have all of i386/x86_64/x32
set in the same file

Adding a color bit forces a reorganization to better classification.
There aren't bits left. And other means than "color" need to be
devised.

Revision history for this message
Elan Ruusamäe (glen666) wrote :

i see such possible scenario:

1. /usr/bin/foo owned by foo.x86_64
2. /usr/bin/foo owned by foo.i686
3. /usr/bin/foo owned by foo.x32

and i would prefer if it worked identically to:
1. /usr/bin/foo owned by foo.x86_64
2. /usr/bin/foo owned by foo.i686

i.e:

1. all three packages are installable, no file-conflict error
2. some preference of which binary will be placed

for x86_64 vs x32/i686 it's simple, but if i have x32 vs i686 binaries to decide, which one will "win"? x32 probably? or i686?

Revision history for this message
Elan Ruusamäe (glen666) wrote :

if color is a bit, then yea, "4" it should be, i'm not arguing this! :)

Revision history for this message
Jeff Johnson (n3npq) wrote :

Yes the 0x4 bit is available (and in use on MIPS for the 3rd
"other endian" architecture.

The "preferred" color is settable through a macro. With 3 color bits,
the macro would need to become a list with 1st:2nd:3rd preference choices.

The ugliest part of H.J. Lu's patch is that the patch is propagating a useless "…()…"
marker in dependencies like

   Requires: libfoo.sp()(64bit)

With colors, the (64bit) is equally unnecessary because dependencies
match against other dependencies of the same color first. There are likely
consequences for depsolvers like polder which have never implemented
dependency (or file) colors correctly.

Revision history for this message
Elan Ruusamäe (glen666) wrote :

does rpm5 plan to add working support for x32 anytime soon? or should pld try to do it by it own?

Revision history for this message
Per Øyvind Karlsen (proyvind) wrote :

I've done some initial integration of H.J. Lu's stuff (which quite frankly I wouldn't consider state of the art myself neither) in mandriva branch, and some bootstrap parts to the toolchain..
I've built a whole tri-arch i686/x86_64/x32 toolchain , although only commited some of the parts to rpm and the bootstrap part to our gcc package..

But mainly just been killing time with no serious efforts on my part yet, I'd be more interested in achieving some less hackish and in collaboration with others having interest in sharing the workload.. :)

Revision history for this message
Per Øyvind Karlsen (proyvind) wrote :

In commen to the mips coloring bit, I assume that one are to be considered free for use for this purpose, where it's existing purpose on mips is already quite equivalent, no? :)

Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

This message is a notice that Fedora 19 is now at end of life. Fedora
has stopped maintaining and issuing updates for Fedora 19. It is
Fedora's policy to close all bug reports from releases that are no
longer maintained. Approximately 4 (four) weeks from now this bug will
be closed as EOL if it remains open with a Fedora 'version' of '19'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 19 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

Fedora 19 changed to end-of-life (EOL) status on 2015-01-06. Fedora 19 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Changed in fedora:
importance: Unknown → Undecided
status: Unknown → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.