[haiku-development] Information for OptionalPackage maintainers.

  • From: Matt Madia <mattmadia@xxxxxxxxx>
  • To: "haiku-development@xxxxxxxxxxxxx" <haiku-development@xxxxxxxxxxxxx>
  • Date: Fri, 26 Feb 2010 20:43:18 +0000

Greetings,

The following two changesets introduced some new functionality
relating to optional packages. :
  http://dev.haiku-os.org/changeset/34725
  http://dev.haiku-os.org/changeset/35617

r34725, #4679 :
"SourceURL:" field.  This embeds a hyperlink inside a text word.  eg
"SourceURL: Text <URL>".
As a working example, here is BeZillaBrowser's
.OptionalPackageDescription file.

{{{
Package:        BeZillaBrowser
Version:        2.0.0.22pre-2010-01-27
Copyright:      1995-2009 Mozilla Developers and Contributors
License:        MPLv1.1
License:        BeZilla-HVIF
URL:            http://www.mozilla.org/
SourceURL:      Download
<http://haiku-files.org/files/sources/2010/BeZillaBrowser-2010-01-21-src.7z>
}}}

As you can see, I've started using
http://haiku-files.org/files/sources/2010/ for storing sources.
Seeing as each source archive needs to be kept for several years, the
additional <year>/ subdirectory should help to reduce clutter. Though,
it could be changed to files/sources/<package-name>/ if desired.

r35617, #5110
To utilize the new configure option "--include-sources",
build/jam/OptionalPackages should also be updated.
Here is an example of how to do so :
   
http://dev.haiku-os.org/attachment/ticket/5110/IncludeSourcesOptionalPackageExample.patch
To note, InstallSourceArchive executes its code only if
HAIKU_INCLUDE_SOURCES has been set.
This needs to be mentioned on haiku-os.org/node/2525/

If anyone's curious, here is the mailing list thread that motivated
these improvements:
  
//www.freelists.org/post/haiku-development/Write-access-to-haikufilesorg,13

I've also filed a newticket #5481, to allow end users to select which
if any sources to copy when using Installer.

All of this is to help improve the situation with abiding to source
code licenses that require the sources to be made available to
end-users.

--mmadia

Other related posts:

  • » [haiku-development] Information for OptionalPackage maintainers. - Matt Madia