* [Xenomai] Redhat packaging patch @ 2013-01-18 8:16 John Morris 2013-01-18 8:18 ` Gilles Chanteperdrix 0 siblings, 1 reply; 5+ messages in thread From: John Morris @ 2013-01-18 8:16 UTC (permalink / raw) To: Xenomai Here's a two-liner patch to Makefile.in that disables /dev entry creation when 'make NODEVICES=1 install'. RedHat packages are built as normal users, and there is no fakeroot mechanism like Debian has, so devices must be recreated from a separate script run after the rest of the package is unpacked. Incorporating this patch into Xenomai makes it a little cleaner for RH package maintainers, as we don't have to keep a separate patch in the RPM sources. Unfortunately, we still must continue maintaining the %post script to create the devices. :P John -------------- next part -------------- A non-text attachment was scrubbed... Name: xenomai-2.6-nodevices.patch Type: text/x-patch Size: 872 bytes Desc: not available URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20130118/4a4e3571/attachment.bin> ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Xenomai] Redhat packaging patch 2013-01-18 8:16 [Xenomai] Redhat packaging patch John Morris @ 2013-01-18 8:18 ` Gilles Chanteperdrix 2013-01-18 8:43 ` John Morris 0 siblings, 1 reply; 5+ messages in thread From: Gilles Chanteperdrix @ 2013-01-18 8:18 UTC (permalink / raw) To: John Morris; +Cc: Xenomai On 01/18/2013 09:16 AM, John Morris wrote: > Here's a two-liner patch to Makefile.in that disables /dev entry > creation when 'make NODEVICES=1 install'. What is wrong with "make install-user" ? > > RedHat packages are built as normal users, and there is no fakeroot > mechanism like Debian has, so devices must be recreated from a separate > script run after the rest of the package is unpacked. > > Incorporating this patch into Xenomai makes it a little cleaner for RH > package maintainers, as we don't have to keep a separate patch in the > RPM sources. Unfortunately, we still must continue maintaining the > %post script to create the devices. :P Why not using udev rules like debian? -- Gilles. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Xenomai] Redhat packaging patch 2013-01-18 8:18 ` Gilles Chanteperdrix @ 2013-01-18 8:43 ` John Morris 2013-01-18 12:07 ` Gilles Chanteperdrix 0 siblings, 1 reply; 5+ messages in thread From: John Morris @ 2013-01-18 8:43 UTC (permalink / raw) To: Gilles Chanteperdrix; +Cc: Xenomai On 01/18/2013 02:18 AM, Gilles Chanteperdrix wrote: > On 01/18/2013 09:16 AM, John Morris wrote: > >> Here's a two-liner patch to Makefile.in that disables /dev entry >> creation when 'make NODEVICES=1 install'. > > > What is wrong with "make install-user" ? > >> >> RedHat packages are built as normal users, and there is no fakeroot >> mechanism like Debian has, so devices must be recreated from a separate >> script run after the rest of the package is unpacked. >> >> Incorporating this patch into Xenomai makes it a little cleaner for RH >> package maintainers, as we don't have to keep a separate patch in the >> RPM sources. Unfortunately, we still must continue maintaining the >> %post script to create the devices. :P > > > Why not using udev rules like debian? Why, those are exactly what I need. Simplifies the package well, thanks! Just ran into this regression test failure, wouldn't repeat itself. How much cause for alarm? ++ /usr/lib64/xenomai/regression/native/tsc Checking tsc for 1 minute(s) min: 8, max: 18, avg: 10.0001 00000056e5d97ffa -> 00000056e5d0eef9 tsc not monotonic after 2217251653 ticks, jumped back 561409 tick John ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Xenomai] Redhat packaging patch 2013-01-18 8:43 ` John Morris @ 2013-01-18 12:07 ` Gilles Chanteperdrix 2013-01-18 12:42 ` Gilles Chanteperdrix 0 siblings, 1 reply; 5+ messages in thread From: Gilles Chanteperdrix @ 2013-01-18 12:07 UTC (permalink / raw) To: John Morris; +Cc: Xenomai On 01/18/2013 09:43 AM, John Morris wrote: > On 01/18/2013 02:18 AM, Gilles Chanteperdrix wrote: >> On 01/18/2013 09:16 AM, John Morris wrote: >> >>> Here's a two-liner patch to Makefile.in that disables /dev entry >>> creation when 'make NODEVICES=1 install'. >> >> >> What is wrong with "make install-user" ? >> >>> >>> RedHat packages are built as normal users, and there is no fakeroot >>> mechanism like Debian has, so devices must be recreated from a separate >>> script run after the rest of the package is unpacked. >>> >>> Incorporating this patch into Xenomai makes it a little cleaner for RH >>> package maintainers, as we don't have to keep a separate patch in the >>> RPM sources. Unfortunately, we still must continue maintaining the >>> %post script to create the devices. :P >> >> >> Why not using udev rules like debian? > > Why, those are exactly what I need. Simplifies the package well, thanks! > > Just ran into this regression test failure, wouldn't repeat itself. How > much cause for alarm? > > ++ /usr/lib64/xenomai/regression/native/tsc > Checking tsc for 1 minute(s) > min: 8, max: 18, avg: 10.0001 > 00000056e5d97ffa -> 00000056e5d0eef9 > tsc not monotonic after 2217251653 ticks, jumped back 561409 tick I believe it is a false positive, the test is running as an ordinary linux thread, so, it can be migrated by the kernel between different cpus. What you have here is simply the case where the test was migrated, on a machine with unsynced tscs. To avoid this, we have to either set the affinity, or to shadow the main thread. The second solution is easier, since it will work on machines with UP glibc which do not support setting affinity, without having to resort to #ifdefery like we do in switchtest. -- Gilles. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Xenomai] Redhat packaging patch 2013-01-18 12:07 ` Gilles Chanteperdrix @ 2013-01-18 12:42 ` Gilles Chanteperdrix 0 siblings, 0 replies; 5+ messages in thread From: Gilles Chanteperdrix @ 2013-01-18 12:42 UTC (permalink / raw) To: John Morris; +Cc: Xenomai On 01/18/2013 01:07 PM, Gilles Chanteperdrix wrote: > On 01/18/2013 09:43 AM, John Morris wrote: > >> On 01/18/2013 02:18 AM, Gilles Chanteperdrix wrote: >>> On 01/18/2013 09:16 AM, John Morris wrote: >>> >>>> Here's a two-liner patch to Makefile.in that disables /dev entry >>>> creation when 'make NODEVICES=1 install'. >>> >>> >>> What is wrong with "make install-user" ? >>> >>>> >>>> RedHat packages are built as normal users, and there is no fakeroot >>>> mechanism like Debian has, so devices must be recreated from a separate >>>> script run after the rest of the package is unpacked. >>>> >>>> Incorporating this patch into Xenomai makes it a little cleaner for RH >>>> package maintainers, as we don't have to keep a separate patch in the >>>> RPM sources. Unfortunately, we still must continue maintaining the >>>> %post script to create the devices. :P >>> >>> >>> Why not using udev rules like debian? >> >> Why, those are exactly what I need. Simplifies the package well, thanks! >> >> Just ran into this regression test failure, wouldn't repeat itself. How >> much cause for alarm? >> >> ++ /usr/lib64/xenomai/regression/native/tsc >> Checking tsc for 1 minute(s) >> min: 8, max: 18, avg: 10.0001 >> 00000056e5d97ffa -> 00000056e5d0eef9 >> tsc not monotonic after 2217251653 ticks, jumped back 561409 tick > > > I believe it is a false positive, the test is running as an ordinary > linux thread, so, it can be migrated by the kernel between different > cpus. What you have here is simply the case where the test was migrated, > on a machine with unsynced tscs. > > To avoid this, we have to either set the affinity, or to shadow the main > thread. The second solution is easier, since it will work on machines > with UP glibc which do not support setting affinity, without having to More exactly, with old libcs. -- Gilles. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-01-18 12:42 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-01-18 8:16 [Xenomai] Redhat packaging patch John Morris 2013-01-18 8:18 ` Gilles Chanteperdrix 2013-01-18 8:43 ` John Morris 2013-01-18 12:07 ` Gilles Chanteperdrix 2013-01-18 12:42 ` Gilles Chanteperdrix
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.