[haiku-development] Chance of adding a bash script for installing OptionalPackages from within Haiku?

  • From: Matt Madia <mattmadia@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 14 Dec 2009 17:08:32 -0500

Now that the nightly images include less software, most notably a
browser, there has been concerns on making the process of adding
software or at the least a browser easier for users of nightly images.

Some of the options discussed ranged from
  * creating and maintaining website symlinks akin to
browser-gcc2-newest  -->  <actual file name>
  * creating a script for downloading just the browser

The method I implemented is a bash script that will
  * examine the user's system to see if it's a x86gcc2, x86gcc4hybrid, etc.
  * determine the revision of Haiku
  * download that revision's build/jam/OptionalPackage* files
  * then using that information, allow the user to download&install
the appropriate package and its deps according to
OptionalPackageDependencies

Some packages are listed as not available -- basically any ones that
require source compiled objects or files from the repository.  P7zip
is also not available, as its jam rules mentioned in OptionalPackages
were too daunting to handle.

Though other rules, InstallOptionalHaikuImagePackage,
AddSymlinkToHaikuImage and AddUserToHaikuImage are supported.

The script has some downsides :
  * command line based.
  * it will need to be updated periodically -- like if a completely
new jam rule is added to an OptionalPackage, i will need to add a bash
function to parse it.
  * doesn't check if the package or dep is currently installed
  * doesn't allow downloading&installing of OP's mentioned in a newer revision
  * doesn't retain the downloaded files
  * doesn't add the .OptionalPackageDescription to AboutSystem
  * no error recovery
eg, if a user installs GIt, OpenSSL will also be installed. Aftewards,
if Curl is installed, OpenSSL will be re-downloaded&installed

So... is there any chance in getting this committed to trunk and added
to the nightly-* profile?

BTW, here's the ticket with script attached: http://dev.haiku-os.org/ticket/4680

--mmadia

Other related posts: