Am Donnerstag, 03.04.03 um 16:08 Uhr schrieb Peter O'Gorman:
On Thursday, April 3, 2003, at 10:57 PM, Jeff Whitaker wrote:So, I'll create numeric-py22 and pil-py22 packages ASAP and put them in experimental/jswhit.
If you were here, I'd kiss you :-)
Thanks, if you do not wish to maintain those packages, put my name on them.
Of course, all this could be simplified if we had variants <sigh>. I looked a bit at the gentoo package format, and I like the way they specify options (this is only based on me looking at their package fails and guessing the meaning, so any Gentoo). Translated to Fink, this might be working a bit like this:
Package: foo ... Options: X11, SSL, Python22, Python23 DefaultOptions: X11, SSL, Python22
Not sure how we would specify that a given option excludes another, but that should be solvable. Then when building a package, you would specify the options, maybe like this:
fink build foo{X11,SSL}
(well or any other syntax, just an example)
The options are then used as flags, e.g. in the dependency lists:
Depends: libpng, X11 ? x11, SSL ? (openssl, neon-ssl) : neon, Python22 ? (python22 : Python23 ? python23)
This is a pseudo-C syntax: FLAG ? TRUE-VALUE : FALSE-VALUE. If FLAG is set, then the first value is used, otherwise the (optional) second one, if present. This makes sense, I think, since usually all you want to do is add / remove a few packages in the dependency list. So this reduces duplicity to the minimum
Of course you also must be able to access these values in your build scripts etc. This could be achieved by setting corresponding environment variables (maybe 'X11' or 'FINK_X11' or whatever in the above example?)
Of course the problem of naming the .debs remains and is, no matter what format one ever uses, the most ugly part of the problem. The best idea so far (IIRC) was to sort the options alphabetically and then append then to the package name, i.e. foo-python22-ssl-x11 in the above case. of course that is a bit ugly when used in dpkg / apt-get / dselect. But a frontend like FinkCommander could relatively map them back to more human readable names, I guess...
Bye,
Max
-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel