All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v1] configure: recognize more rpmbuild macros
@ 2018-04-18  7:50 Olaf Hering
  2018-04-18  9:23 ` Paolo Bonzini
  0 siblings, 1 reply; 5+ messages in thread
From: Olaf Hering @ 2018-04-18  7:50 UTC (permalink / raw)
  To: qemu-trivial
  Cc: Olaf Hering, Gerd Hoffmann, Paolo Bonzini, Peter Maydell,
	Fam Zheng, Philippe Mathieu-Daudé,
	open list:All patches CC here

Extend the list of recognized, but ignored options from rpms %configure
macro. This fixes build on hosts running SUSE Linux.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
---
 configure | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/configure b/configure
index 0a19b033bc..6e9b994f21 100755
--- a/configure
+++ b/configure
@@ -959,6 +959,9 @@ for opt do
   ;;
   --firmwarepath=*) firmwarepath="$optarg"
   ;;
+  --host=*|--build=*|\
+  --program-prefix=*|--exec-prefix=*|\
+  --disable-dependency-tracking|\
   --sbindir=*|--sharedstatedir=*|\
   --oldincludedir=*|--datarootdir=*|--infodir=*|--localedir=*|\
   --htmldir=*|--dvidir=*|--pdfdir=*|--psdir=*)

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [PATCH v1] configure: recognize more rpmbuild macros
  2018-04-18  7:50 [Qemu-devel] [PATCH v1] configure: recognize more rpmbuild macros Olaf Hering
@ 2018-04-18  9:23 ` Paolo Bonzini
  2018-05-08 22:15   ` Paolo Bonzini
  0 siblings, 1 reply; 5+ messages in thread
From: Paolo Bonzini @ 2018-04-18  9:23 UTC (permalink / raw)
  To: Olaf Hering, qemu-trivial
  Cc: Gerd Hoffmann, Peter Maydell, Fam Zheng,
	Philippe Mathieu-Daudé,
	open list:All patches CC here

On 18/04/2018 09:50, Olaf Hering wrote:
> Extend the list of recognized, but ignored options from rpms %configure
> macro. This fixes build on hosts running SUSE Linux.
> 
> Signed-off-by: Olaf Hering <olaf@aepfle.de>
> ---
>  configure | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/configure b/configure
> index 0a19b033bc..6e9b994f21 100755
> --- a/configure
> +++ b/configure
> @@ -959,6 +959,9 @@ for opt do
>    ;;
>    --firmwarepath=*) firmwarepath="$optarg"
>    ;;
> +  --host=*|--build=*|\
> +  --program-prefix=*|--exec-prefix=*|\
> +  --disable-dependency-tracking|\
>    --sbindir=*|--sharedstatedir=*|\
>    --oldincludedir=*|--datarootdir=*|--infodir=*|--localedir=*|\
>    --htmldir=*|--dvidir=*|--pdfdir=*|--psdir=*)
> 

Queued, thanks.

Paolo

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [PATCH v1] configure: recognize more rpmbuild macros
  2018-04-18  9:23 ` Paolo Bonzini
@ 2018-05-08 22:15   ` Paolo Bonzini
  2018-05-09  5:44     ` Olaf Hering
  0 siblings, 1 reply; 5+ messages in thread
From: Paolo Bonzini @ 2018-05-08 22:15 UTC (permalink / raw)
  To: Olaf Hering, qemu-trivial
  Cc: open list:All patches CC here, Peter Maydell, Fam Zheng,
	Gerd Hoffmann, Philippe Mathieu-Daudé

On 18/04/2018 11:23, Paolo Bonzini wrote:
> On 18/04/2018 09:50, Olaf Hering wrote:
>> Extend the list of recognized, but ignored options from rpms %configure
>> macro. This fixes build on hosts running SUSE Linux.
>>
>> Signed-off-by: Olaf Hering <olaf@aepfle.de>
>> ---
>>  configure | 3 +++
>>  1 file changed, 3 insertions(+)
>>
>> diff --git a/configure b/configure
>> index 0a19b033bc..6e9b994f21 100755
>> --- a/configure
>> +++ b/configure
>> @@ -959,6 +959,9 @@ for opt do
>>    ;;
>>    --firmwarepath=*) firmwarepath="$optarg"
>>    ;;
>> +  --host=*|--build=*|\
>> +  --program-prefix=*|--exec-prefix=*|\
>> +  --disable-dependency-tracking|\

Actually, --program-prefix= and --exec-prefix= have a meaning, they
cannot just be ignored.  For now I've removed this line; what is the
exact incantation used by SUSE Linux?

Thanks,

Paolo

>>    --sbindir=*|--sharedstatedir=*|\
>>    --oldincludedir=*|--datarootdir=*|--infodir=*|--localedir=*|\
>>    --htmldir=*|--dvidir=*|--pdfdir=*|--psdir=*)
>>
> 
> Queued, thanks.
> 
> Paolo
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [PATCH v1] configure: recognize more rpmbuild macros
  2018-05-08 22:15   ` Paolo Bonzini
@ 2018-05-09  5:44     ` Olaf Hering
  2018-05-09 10:32       ` Paolo Bonzini
  0 siblings, 1 reply; 5+ messages in thread
From: Olaf Hering @ 2018-05-09  5:44 UTC (permalink / raw)
  To: Paolo Bonzini
  Cc: qemu-trivial, open list:All patches CC here, Peter Maydell,
	Fam Zheng, Gerd Hoffmann, Philippe Mathieu-Daudé

[-- Attachment #1: Type: text/plain, Size: 618 bytes --]

Am Wed, 9 May 2018 00:15:42 +0200
schrieb Paolo Bonzini <pbonzini@redhat.com>:

> Actually, --program-prefix= and --exec-prefix= have a meaning, they
> cannot just be ignored.  For now I've removed this line; what is the
> exact incantation used by SUSE Linux?

Like in every other rpm.rpm I guess:

/usr/lib/rpm/macros:%_exec_prefix               %{_prefix}
/usr/lib/rpm/macros:    --program-prefix=%{?_program_prefix} \\\
/usr/lib/rpm/macros:    --exec-prefix=%{_exec_prefix} \\\

Are you saying your %configure is different from my %configure?
In any case, qemu has to tolerate both options.

Olaf

[-- Attachment #2: Digitale Signatur von OpenPGP --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [PATCH v1] configure: recognize more rpmbuild macros
  2018-05-09  5:44     ` Olaf Hering
@ 2018-05-09 10:32       ` Paolo Bonzini
  0 siblings, 0 replies; 5+ messages in thread
From: Paolo Bonzini @ 2018-05-09 10:32 UTC (permalink / raw)
  To: Olaf Hering
  Cc: qemu-trivial, open list:All patches CC here, Peter Maydell,
	Fam Zheng, Gerd Hoffmann, Philippe Mathieu-Daudé

[-- Attachment #1: Type: text/plain, Size: 979 bytes --]

On 09/05/2018 07:44, Olaf Hering wrote:
> Am Wed, 9 May 2018 00:15:42 +0200
> schrieb Paolo Bonzini <pbonzini@redhat.com>:
> 
>> Actually, --program-prefix= and --exec-prefix= have a meaning, they
>> cannot just be ignored.  For now I've removed this line; what is the
>> exact incantation used by SUSE Linux?
> 
> Like in every other rpm.rpm I guess:
> 
> /usr/lib/rpm/macros:%_exec_prefix               %{_prefix}
> /usr/lib/rpm/macros:    --program-prefix=%{?_program_prefix} \\\
> /usr/lib/rpm/macros:    --exec-prefix=%{_exec_prefix} \\\
> 
> Are you saying your %configure is different from my %configure?
> In any case, qemu has to tolerate both options.

I agree that it's a worthwhile improvement but it also has to fail if
use an argument other than the default (or implement them, which I'm
probably not advising here).  Otherwise packaging breaks if someone for
whatever reason overrides the %_program_prefix and %_exec_prefix macros.

Paolo


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-05-09 10:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-18  7:50 [Qemu-devel] [PATCH v1] configure: recognize more rpmbuild macros Olaf Hering
2018-04-18  9:23 ` Paolo Bonzini
2018-05-08 22:15   ` Paolo Bonzini
2018-05-09  5:44     ` Olaf Hering
2018-05-09 10:32       ` Paolo Bonzini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.