Bug 3386 - Default target wanted
Summary: Default target wanted
Status: ASSIGNED
Alias: None
Product: Sisyphus
Classification: Development
Component: rpm-build (show other bugs)
Version: unstable
Hardware: all Linux
: P2 enhancement
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-17 16:44 MSK by at@altlinux.org
Modified: 2013-07-01 04:56 MSK (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description at@altlinux.org 2003-12-17 16:44:03 MSK
I want to specify the default target in ~/.rpmmacros.
Apparently I can't.
Comment 1 Dmitry V. Levin 2004-06-27 04:01:50 MSD
How would you like to specify it?
Comment 2 at@altlinux.org 2004-08-17 07:22:52 MSD
$ echo '%_target i386' > ~/.rpmmacros
$ rpm --eval %_target
i686-linux
$
Comment 3 Michael Shigorin 2009-11-03 17:39:00 MSK
As of rpm-4.0.4-alt98.23:

pad:~> grep target ~/.rpmmacros 
%_configure_target      --build=i586-alt-linux-gnu
%_target_cpu    i586
pad:~> rpm --eval %_target
pentium4-linux
Comment 4 Michael Shigorin 2009-11-03 17:39:35 MSK
er...

pad:~> rpm --eval %_target_cpu
pentium4