|
View:
New views
19 Messages
—
Rating Filter:
Alert me
|
|
|
Revising LTP Makefile infrastructureHello,
It's me emailing again about attempting to improve the way that LTP is built and tested. As part of the validation of work with Cisco that I'm working on, it is my responsibility to integrate LTP into our testing infrastructure. After analyzing the Makefiles I've come to the following conclusions:
Thanks, -Garrett PS I have no intention of using automake / autoconf. I find them to be somewhat atrocious build utilities :)... ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Ltp-list mailing list Ltp-list@... https://lists.sourceforge.net/lists/listinfo/ltp-list |
|
|
Re: Revising LTP Makefile infrastructureOn Wednesday 30 April 2008, Garrett Cooper wrote:
> 1. The make process isn't multiple arch/target friendly, i.e. you > build once for x86 and you have to rebuild for ia64, ppc64, etc and > after the build capture all of the compiled binaries using some > intermediary method. multi-arch itself by definition is limiting. adding any sort of magic in this direction is just bloat. i'd focus on out-of-tree building as that would address any sort of random stuff people want to do. > 2. Assuming that the user has gmake (which they should if they plan on > working with LTP and Linux), there are a number of simplifications that > can be made to the Makefiles to allow for simpler variable and make target > definition. the gmake requirement has been unwritten so far ... might as well codify the requirement and stop dancing around the issue. > 3. The uclinux* make targets could be removed in favor of > conditionally defined global targets. this is just a silly target. i'd punt it. -mike ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Ltp-list mailing list Ltp-list@... https://lists.sourceforge.net/lists/listinfo/ltp-list |
|
|
Re: Revising LTP Makefile infrastructureOn Thu, May 1, 2008 at 8:44 AM, Mike Frysinger <vapier@...> wrote:
> On Wednesday 30 April 2008, Garrett Cooper wrote: > > 1. The make process isn't multiple arch/target friendly, i.e. you > > > build once for x86 and you have to rebuiI am not sure about uclinux* targetsld for ia64, ppc64, etc and > > after the build capture all of the compiled binaries using some > > intermediary method. > > multi-arch itself by definition is limiting. adding any sort of magic in this > direction is just bloat. i'd focus on out-of-tree building as that would > address any sort of random stuff people want to do. > I agree with you Mike, but I am curious to see what Garrett has, specially if those cleanups are generic > > 2. Assuming that the user has gmake (which they should if they plan on > > > working with LTP and Linux), there are a number of simplifications that > > can be made to the Makefiles to allow for simpler variable and make target > > definition. > > the gmake requirement has been unwritten so far ... might as well codify the > requirement and stop dancing around the issue. > The question basically boils down to -- can we use GNU make specific features? My answer would be "Yes" > > 3. The uclinux* make targets could be removed in favor of > > conditionally defined global targets. > > this is just a silly target. i'd punt it. > -mike Balbir ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Ltp-list mailing list Ltp-list@... https://lists.sourceforge.net/lists/listinfo/ltp-list |
|
|
Re: Revising LTP Makefile infrastructureOn Tuesday 06 May 2008, Balbir Singh wrote:
> On Thu, May 1, 2008 at 8:44 AM, Mike Frysinger <vapier@...> wrote: > > On Wednesday 30 April 2008, Garrett Cooper wrote: > > > 2. Assuming that the user has gmake (which they should if they plan > > > on working with LTP and Linux), there are a number of simplifications > > > that can be made to the Makefiles to allow for simpler variable and make > > > target definition. > > > > the gmake requirement has been unwritten so far ... might as well codify > > the requirement and stop dancing around the issue. > > The question basically boils down to -- can we use GNU make specific > features? My answer would be "Yes" GNUisms in there and no one has complained, and it's trivial to install GNU make on your system. -mike ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Ltp-list mailing list Ltp-list@... https://lists.sourceforge.net/lists/listinfo/ltp-list |
|
|
Re: Revising LTP Makefile infrastructureOn May 6, 2008, at 3:37 AM, Balbir Singh wrote:
> On Thu, May 1, 2008 at 8:44 AM, Mike Frysinger <vapier@...> > wrote: >> On Wednesday 30 April 2008, Garrett Cooper wrote: >>> 1. The make process isn't multiple arch/target friendly, i.e. you >> >>> build once for x86 and you have to rebuiI am not sure about >>> uclinux* targetsld for ia64, ppc64, etc and >>> after the build capture all of the compiled binaries using some >>> intermediary method. >> >> multi-arch itself by definition is limiting. adding any sort of >> magic in this >> direction is just bloat. i'd focus on out-of-tree building as that >> would >> address any sort of random stuff people want to do. >> > > I agree with you Mike, but I am curious to see what Garrett has, > specially if those cleanups are generic > >>> 2. Assuming that the user has gmake (which they should if they >>> plan on >> >>> working with LTP and Linux), there are a number of >>> simplifications that >>> can be made to the Makefiles to allow for simpler variable and >>> make target >>> definition. >> >> the gmake requirement has been unwritten so far ... might as well >> codify the >> requirement and stop dancing around the issue. >> > > The question basically boils down to -- can we use GNU make specific > features? My answer would be "Yes" > >>> 3. The uclinux* make targets could be removed in favor of >>> conditionally defined global targets. >> >> this is just a silly target. i'd punt it. >> -mike > > Balbir The makefiles are mostly done (the top-level ones that LTP touches, i.e. not the ballista and other subproject makefiles as LTP isn't the maintainers and those should be fixed upstream), but there's some sort of misunderstanding on my part as to how define's and variable scoping, lifetime, and rule evaluation are done with GNU make(1) with include'd Makefiles, so I've punted the ball back up-court until I can get some helpful answers from them, as their documentation is slightly confusing. So far my diff is ~190KB large. Cheers, -Garrett ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Ltp-list mailing list Ltp-list@... https://lists.sourceforge.net/lists/listinfo/ltp-list |
|
|
Re: Revising LTP Makefile infrastructureOn Mon, 2008-05-19 at 02:18 -0700, Garrett Cooper wrote:
> On May 6, 2008, at 3:37 AM, Balbir Singh wrote: > > > On Thu, May 1, 2008 at 8:44 AM, Mike Frysinger <vapier@...> > > wrote: > >> On Wednesday 30 April 2008, Garrett Cooper wrote: > >>> 1. The make process isn't multiple arch/target friendly, i.e. you > >> > >>> build once for x86 and you have to rebuiI am not sure about > >>> uclinux* targetsld for ia64, ppc64, etc and > >>> after the build capture all of the compiled binaries using some > >>> intermediary method. > >> > >> multi-arch itself by definition is limiting. adding any sort of > >> magic in this > >> direction is just bloat. i'd focus on out-of-tree building as that > >> would > >> address any sort of random stuff people want to do. > >> > > > > I agree with you Mike, but I am curious to see what Garrett has, > > specially if those cleanups are generic > > > >>> 2. Assuming that the user has gmake (which they should if they > >>> plan on > >> > >>> working with LTP and Linux), there are a number of > >>> simplifications that > >>> can be made to the Makefiles to allow for simpler variable and > >>> make target > >>> definition. > >> > >> the gmake requirement has been unwritten so far ... might as well > >> codify the > >> requirement and stop dancing around the issue. > >> > > > > The question basically boils down to -- can we use GNU make specific > > features? My answer would be "Yes" > > > >>> 3. The uclinux* make targets could be removed in favor of > >>> conditionally defined global targets. > >> > >> this is just a silly target. i'd punt it. > >> -mike > > > > Balbir > > The makefiles are mostly done (the top-level ones that LTP touches, > i.e. not the ballista and other subproject makefiles as LTP isn't the > maintainers and those should be fixed upstream), but there's some sort > of misunderstanding on my part as to how define's and variable > scoping, lifetime, and rule evaluation are done with GNU make(1) with > include'd Makefiles, so I've punted the ball back up-court until I can > get some helpful answers from them, as their documentation is slightly > confusing. > So far my diff is ~190KB large. Good to know that. Please also include a very good documentation on what the forthcoming patch will address in LTP Makefiles. We are looking for a good debate and final inclusion. Regards-- Subrata > Cheers, > -Garrett > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Ltp-list mailing list > Ltp-list@... > https://lists.sourceforge.net/lists/listinfo/ltp-list ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Ltp-list mailing list Ltp-list@... https://lists.sourceforge.net/lists/listinfo/ltp-list |
|
|
Re: Revising LTP Makefile infrastructureOn May 19 02:18, Garrett Cooper wrote:
> The makefiles are mostly done (the top-level ones that LTP touches, > i.e. not the ballista and other subproject makefiles as LTP isn't the > maintainers and those should be fixed upstream), but there's some sort > of misunderstanding on my part as to how define's and variable > scoping, lifetime, and rule evaluation are done with GNU make(1) with > include'd Makefiles, so I've punted the ball back up-court until I can > get some helpful answers from them, as their documentation is slightly > confusing. Are you converting to a non-recursive build? I made the transition in one of my projects and there were a few things to keep in mind. 1. All variables are global and can get overwritten in includes. 2. It's best to do everything before including the next makefile. 3. Target-specific variables are the best thing since sliced bread. I'd be willing to look at your patch and try to resolve the confusion you're having. > So far my diff is ~190KB large. Is that all? ;) Nate ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Ltp-list mailing list Ltp-list@... https://lists.sourceforge.net/lists/listinfo/ltp-list |
|
|
Re: Revising LTP Makefile infrastructureOn Mon, 2008-05-19 at 09:43 -0400, Nate Straz wrote:
> On May 19 02:18, Garrett Cooper wrote: > > The makefiles are mostly done (the top-level ones that LTP touches, > > i.e. not the ballista and other subproject makefiles as LTP isn't the > > maintainers and those should be fixed upstream), but there's some sort > > of misunderstanding on my part as to how define's and variable > > scoping, lifetime, and rule evaluation are done with GNU make(1) with > > include'd Makefiles, so I've punted the ball back up-court until I can > > get some helpful answers from them, as their documentation is slightly > > confusing. > > Are you converting to a non-recursive build? I made the transition > in one of my projects and there were a few things to keep in mind. > 1. All variables are global and can get overwritten in includes. > 2. It's best to do everything before including the next makefile. > 3. Target-specific variables are the best thing since sliced bread. > > I'd be willing to look at your patch and try to resolve the confusion > you're having. Nate, I am happy that you will be reviewing it. Garrett, I would like to have a very good document highlighting the changes and their benefits. Regards-- Subrata > > > So far my diff is ~190KB large. > > Is that all? ;) > > Nate > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Ltp-list mailing list > Ltp-list@... > https://lists.sourceforge.net/lists/listinfo/ltp-list ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Ltp-list mailing list Ltp-list@... https://lists.sourceforge.net/lists/listinfo/ltp-list |
|
|
Re: Revising LTP Makefile infrastructureOn May 19, 2008, at 6:49 AM, Subrata Modak wrote:
> On Mon, 2008-05-19 at 09:43 -0400, Nate Straz wrote: >> On May 19 02:18, Garrett Cooper wrote: >>> The makefiles are mostly done (the top-level ones that LTP touches, >>> i.e. not the ballista and other subproject makefiles as LTP isn't >>> the >>> maintainers and those should be fixed upstream), but there's some >>> sort >>> of misunderstanding on my part as to how define's and variable >>> scoping, lifetime, and rule evaluation are done with GNU make(1) >>> with >>> include'd Makefiles, so I've punted the ball back up-court until I >>> can >>> get some helpful answers from them, as their documentation is >>> slightly >>> confusing. >> >> Are you converting to a non-recursive build? I made the transition >> in one of my projects and there were a few things to keep in mind. >> 1. All variables are global and can get overwritten in includes. >> 2. It's best to do everything before including the next makefile. >> 3. Target-specific variables are the best thing since sliced bread. >> >> I'd be willing to look at your patch and try to resolve the confusion >> you're having. > > Nate, > > I am happy that you will be reviewing it. > > Garrett, > > I would like to have a very good document highlighting the changes and > their benefits. > > Regards-- > Subrata > >> >>> So far my diff is ~190KB large. >> >> Is that all? ;) >> >> Nate I haven't gotten all of the changes done yet, so this effort is most likely going to carry over into next month. I'll try and keep up with changes in CVS and submit everything to you folks when it's to a point where it's mature and stable enough to be inserted into the LTP base. I ran into a few issues / concerns with some C source files though so I'll submit separate patches for those soon. Thanks, -Garrett ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Ltp-list mailing list Ltp-list@... https://lists.sourceforge.net/lists/listinfo/ltp-list |
|
|
Re: Revising LTP Makefile infrastructureOn Thu, 2008-05-22 at 14:11 -0700, Garrett Cooper wrote:
> On May 19, 2008, at 6:49 AM, Subrata Modak wrote: > > > On Mon, 2008-05-19 at 09:43 -0400, Nate Straz wrote: > >> On May 19 02:18, Garrett Cooper wrote: > >>> The makefiles are mostly done (the top-level ones that LTP touches, > >>> i.e. not the ballista and other subproject makefiles as LTP isn't > >>> the > >>> maintainers and those should be fixed upstream), but there's some > >>> sort > >>> of misunderstanding on my part as to how define's and variable > >>> scoping, lifetime, and rule evaluation are done with GNU make(1) > >>> with > >>> include'd Makefiles, so I've punted the ball back up-court until I > >>> can > >>> get some helpful answers from them, as their documentation is > >>> slightly > >>> confusing. > >> > >> Are you converting to a non-recursive build? I made the transition > >> in one of my projects and there were a few things to keep in mind. > >> 1. All variables are global and can get overwritten in includes. > >> 2. It's best to do everything before including the next makefile. > >> 3. Target-specific variables are the best thing since sliced bread. > >> > >> I'd be willing to look at your patch and try to resolve the confusion > >> you're having. > > > > Nate, > > > > I am happy that you will be reviewing it. > > > > Garrett, > > > > I would like to have a very good document highlighting the changes and > > their benefits. > > > > Regards-- > > Subrata > > > >> > >>> So far my diff is ~190KB large. > >> > >> Is that all? ;) > >> > >> Nate > > I haven't gotten all of the changes done yet, so this effort is most > likely going to carry over into next month. I'll try and keep up with That is not an issue at all. Giving the effort you are putting in, it would definitely take time. I am also of the opinion that you can stabilize it on your part before pushing the same to LTP. Anyways we will also have several rounds of review once that is in LTP. But it would be nice if the first push itself is in good shape. Regards-- Subrata > changes in CVS and submit everything to you folks when it's to a point > where it's mature and stable enough to be inserted into the LTP base. > I ran into a few issues / concerns with some C source files though so > I'll submit separate patches for those soon. > Thanks, > -Garrett ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Ltp-list mailing list Ltp-list@... https://lists.sourceforge.net/lists/listinfo/ltp-list |
|
|
|
|
|
Re: Revising LTP Makefile infrastructure / other improvementsOn Tue, May 27, 2008 at 3:58 PM, Garrett Cooper <yanegomi@...> wrote:
Try this patchset on for size: <http://gengplfoss.googlecode.com/files/ltp_makefiles_set2.patch.bz2>. -Garrett ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Ltp-list mailing list Ltp-list@... https://lists.sourceforge.net/lists/listinfo/ltp-list |
|
|
|
|
|
Re: Revising LTP Makefile infrastructure / other improvementsOn Tue, 2008-05-27 at 16:32 -0700, Garrett Cooper wrote:
> On Tue, May 27, 2008 at 3:58 PM, Garrett Cooper <yanegomi@...> > wrote: > > On Tue, May 27, 2008 at 5:28 AM, Nate Straz > <nate-ltp@...> wrote: > On May 27 02:46, Garrett Cooper wrote: > > > My diff has grown a bit since I last spoke... > > > Which version of LTP is this patch against? > > Nate > > > > 20080430. Found a few bugs and I'm resubmitting a new patch > very soon... > -Garrett > > Try this patchset on for size: > <http://gengplfoss.googlecode.com/files/ltp_makefiles_set2.patch.bz2>. > -Garrett Garrett, Hope you are making good progress. Do you think we can push the stable one in another 2 months time ? Regards-- Subrata > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ Ltp-list mailing list Ltp-list@... https://lists.sourceforge.net/lists/listinfo/ltp-list ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Ltp-list mailing list Ltp-list@... https://lists.sourceforge.net/lists/listinfo/ltp-list |
|
|
Re: Revising LTP Makefile infrastructure / other improvementsOn Wed, Jun 18, 2008 at 8:41 AM, Subrata Modak
<subrata@...> wrote: > On Tue, 2008-05-27 at 16:32 -0700, Garrett Cooper wrote: >> On Tue, May 27, 2008 at 3:58 PM, Garrett Cooper <yanegomi@...> >> wrote: >> >> On Tue, May 27, 2008 at 5:28 AM, Nate Straz >> <nate-ltp@...> wrote: >> On May 27 02:46, Garrett Cooper wrote: >> >> > My diff has grown a bit since I last spoke... >> |