linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* rt-tests: make rpm fails if numactl-devel is missing
@ 2013-02-08 23:03 Frank Rowand
  2013-02-09  0:49 ` Sven-Thorsten Dietrich
  0 siblings, 1 reply; 3+ messages in thread
From: Frank Rowand @ 2013-02-08 23:03 UTC (permalink / raw)
  To: Clark Williams, jkacur, linux-rt-users

Hi all,

I'm not sure what the best solution for this is.  Or if it is even
worth fixing.  So just reporting for the archives...

rt-tests can be built without NUMA:

   make NUMA=0

But "make rpm" does not have a way to be successful without NUMA:


build_rt-tests_0.85> make rpm
for F in cyclictest signaltest pi_stress rt-migrate-test ptsematest sigwaittest svsematest pmqtest sendme pip_stress hackbench *.o .depend *.*~ *.orig *.rej rt-tests.spec *.d *.a  ChangeLog; do find -type f -name $F | xargs rm -f; done
rm -f hwlatdetect
rm -f tags
rm -rf BUILD BUILDROOT RPMS SRPMS SPECS releases *.tar.gz rt-tests.spec tmp
git log >ChangeLog
mkdir -p releases
mkdir -p tmp/rt-tests
cp -r Makefile COPYING ChangeLog src tmp/rt-tests
tar -C tmp -czf rt-tests-0.85.tar.gz rt-tests
rm -f ChangeLog
cp rt-tests-0.85.tar.gz releases
sed s/__VERSION__/0.85/ <rt-tests.spec-in >rt-tests.spec
rpmbuild -ba --define "_topdir /a/home/frowand/me/src/rt-tests/build_rt-tests_0.85" --define "_sourcedir /a/home/frowand/me/src/rt-tests/build_rt-tests_0.85/releases" --define "_builddir /a/home/frowand/me/src/rt-tests/build_rt-tests_0.85/BUILD"  rt-tests.spec
error: Failed build dependencies:
	numactl-devel is needed by rt-tests-0.85-1.fc12.src
make: *** [rpm] Error 1



-Frank


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

* Re: rt-tests: make rpm fails if numactl-devel is missing
  2013-02-08 23:03 rt-tests: make rpm fails if numactl-devel is missing Frank Rowand
@ 2013-02-09  0:49 ` Sven-Thorsten Dietrich
  2013-02-09  2:26   ` Frank Rowand
  0 siblings, 1 reply; 3+ messages in thread
From: Sven-Thorsten Dietrich @ 2013-02-09  0:49 UTC (permalink / raw)
  To: frank.rowand; +Cc: Clark Williams, jkacur, linux-rt-users


On Feb 8, 2013, at 3:03 PM, Frank Rowand <frank.rowand@am.sony.com> wrote:

> Hi all,
> 
> I'm not sure what the best solution for this is.  Or if it is even
> worth fixing.  So just reporting for the archives...
> 
> rt-tests can be built without NUMA:
> 
>   make NUMA=0
> 
> But "make rpm" does not have a way to be successful without NUMA:

I ran into this in the past with OBS on Suse.

There was a tertiary issue, because some distros use i386
and others use i586 or i686.

E.g.

[sven@www rt-tests]$ gcc -dumpmachine
i586-suse-linux

diff --git a/Makefile b/Makefile
index 3a82407..7bb022c 100644
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,7 @@ srcdir        ?= $(prefix)/src
 
 machinetype = $(shell $(CC) -dumpmachine | \
     sed -e 's/-.*//' -e 's/i.86/i386/' -e 's/mips.*/mips/' -e 's/ppc.*/powerpc/')
-ifneq ($(filter x86_64 i386 ia64 mips powerpc,$(machinetype)),)
+ifneq ($(filter x86_64 i586 ia64 mips powerpc,$(machinetype)),)
 NUMA   := 1
 endif

So all in all, this feature probably only works on some, and maybe needs to be worked around more often than not.

Sven

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

* Re: rt-tests: make rpm fails if numactl-devel is missing
  2013-02-09  0:49 ` Sven-Thorsten Dietrich
@ 2013-02-09  2:26   ` Frank Rowand
  0 siblings, 0 replies; 3+ messages in thread
From: Frank Rowand @ 2013-02-09  2:26 UTC (permalink / raw)
  To: Sven-Thorsten Dietrich
  Cc: Rowand, Frank, Clark Williams, jkacur@redhat.com,
	linux-rt-users@vger.kernel.org

On 02/08/13 16:49, Sven-Thorsten Dietrich wrote:
> 
> On Feb 8, 2013, at 3:03 PM, Frank Rowand <frank.rowand@am.sony.com> wrote:
> 
>> Hi all,
>>
>> I'm not sure what the best solution for this is.  Or if it is even
>> worth fixing.  So just reporting for the archives...
>>
>> rt-tests can be built without NUMA:
>>
>>   make NUMA=0
>>
>> But "make rpm" does not have a way to be successful without NUMA:
> 
> I ran into this in the past with OBS on Suse.
> 
> There was a tertiary issue, because some distros use i386
> and others use i586 or i686.
> 
> E.g.
> 
> [sven@www rt-tests]$ gcc -dumpmachine
> i586-suse-linux
> 
> diff --git a/Makefile b/Makefile
> index 3a82407..7bb022c 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -16,7 +16,7 @@ srcdir        ?= $(prefix)/src
>  
>  machinetype = $(shell $(CC) -dumpmachine | \
>      sed -e 's/-.*//' -e 's/i.86/i386/' -e 's/mips.*/mips/' -e 's/ppc.*/powerpc/')
> -ifneq ($(filter x86_64 i386 ia64 mips powerpc,$(machinetype)),)
> +ifneq ($(filter x86_64 i586 ia64 mips powerpc,$(machinetype)),)
>  NUMA   := 1
>  endif
> 
> So all in all, this feature probably only works on some, and maybe needs to be worked around more often than not.
> 
> Sven

OK, that prodded me enough to create an ugly patch, which will be following
in another email.

-Frank



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

end of thread, other threads:[~2013-02-09  2:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-08 23:03 rt-tests: make rpm fails if numactl-devel is missing Frank Rowand
2013-02-09  0:49 ` Sven-Thorsten Dietrich
2013-02-09  2:26   ` Frank Rowand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).