diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-04-10 19:36:03 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-04-10 19:36:03 +0300 |
commit | 48ff62a5291458ed1181cd6c31dcadb193ad2f8e (patch) | |
tree | 9c0f4fd0d944245648cbe7c03db0c7a2f622c23a /platform.in | |
parent | af4eea99e311171e3dd771c9b2ff59faa964d208 (diff) | |
download | librpm-tizen-48ff62a5291458ed1181cd6c31dcadb193ad2f8e.tar.gz librpm-tizen-48ff62a5291458ed1181cd6c31dcadb193ad2f8e.tar.bz2 librpm-tizen-48ff62a5291458ed1181cd6c31dcadb193ad2f8e.zip |
First crack at adding ISA provides to packages (rhbz#235755)
- Horrible kludgery to get the isa names and bits into platform specific
macros from installplatform script. That beast needs to die. I mean really
- In build, add provides: name(isa) = evr automatically when it makes
sense (similarly to name = evr provides). ISA consists of ISA name and
bitness (or wordsize). This can be used to correctly
express multilib dependencies without resorting to (expensive!) file
dependency kludges, eg for dlopen()'ed libraries where automatic
dep extraction doesn't force dependency on 32bit vs 64bit version, you
can now use:
Requires: foo-plugin%{?_isa}
This expands to foo-plugin(x86-32) for i?86 packages, foo-plugin(x86-64)
to x86_64 etc, and permits spec to be shared with older distros which
don't have ISA provides.
- The same could be expressed with "canon arch" just as well, but
using the ISA to differentiate from %_arch and the like:
eg i386 could be used instead of x86-32 but it's overloaded with meanings
(the actual i386 processor vs i386 compatible cpu family etc)
Diffstat (limited to 'platform.in')
-rw-r--r-- | platform.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/platform.in b/platform.in index bf4f0b5ed..ed4f148ad 100644 --- a/platform.in +++ b/platform.in @@ -10,6 +10,10 @@ %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags @RPMRC_OPTFLAGS@ +%__isa_name @ISANAME@ +%__isa_bits @ISABITS@ +%__isa %{__isa_name}-%{__isa_bits} + #============================================================================== # ---- configure macros. # |