[Helidelinux-devel] Re: [Ogdl-core] support entity in ogdl profile
Status: Abandoned
Brought to you by:
rveen
From: Bennett T. <be...@ra...> - 2004-03-09 01:00:17
|
2004-03-04T09:50:40 Hui Zhou: > I am writing an profile in ogdl for building packages from > sources. In order to make editing the profile easier and > efficient, it is necessary to define some variables or entities. > [...] > Thoughts? Same thought I had about comments --- open with a pipe through m4 before parsing. I've another thought, too. Before Rolf came over to lfs chat selling his OGDL, I was using Lua for my spec files. At first, having accepted and heavily used the rpm feature of being able to interpolate %{name}, %{version}, and %{release} into subsequent variable defines (commonly the Source:, occasionally in %prep), I was looking for some way to get the same effect with Lua. After searching a while I found it. Then I decided I didn't want it. The proliferation of these little convenience features comes with a cost; reading a complex rpm spec file is a real chore. Try and figure out what commands rpm will issue out of %build when it's doing glibc. So I decided that rather than having automatic variable interpolation to e.g. let me update the version of a package without having to edit it in multiple places, I'd just use global search-and-replace. Since I use a separate spec file for each package, this works just fine. -Bennett |