patchGNU Source Installer - Patches: patch #6333, patch for sourceinstall/options.c...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #6333: patch for sourceinstall/options.c needed

Submitter:  Jorma Karvonen <jormak>
Submitted:  Thu 06 Dec 2007 09:20:52 PM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Invalid Privacy:  Public
Assigned to:  None Open/Closed:  Closed

Thu 06 Dec 2007 09:20:52 PM UTC, original submission:  

The following arrays should be replaced by some other solution, because gettext ( ". show brief command line help" ) type solutions cannot be used.

struct option_data action_list[] = {
    {'h', "help", {0}, {0}, 0, ". show brief command line help"},
    {'V', "version", {0}, {0}, 0, ". show program version"},
    {'l', "list", {0}, {0}, 0,
     ". list all existing packages; if PACKAGE_NAME is specified, it is treated as a regular expression string, and only matching package names are listed"},
    {'a', "add", {"FILENAME", 0}, {0, 0}, 0,
     ". add new source package from FILENAME; the package name will be taken from the top source directory by default, or from PACKAGE_NAME if specified"},
    {'r', "remove", {0}, {0}, 0,
     ". remove package PACKAGE_NAME completely"},
    {'c', "check", {0}, {0}, 0,
     ". show and validate package PACKAGE_NAME information"},
    {'g', "upgrade", {"OLD_PACK", "FILENAME", 0}, {0, 0, 0}, 0,
     ". Replace OLD_PACK with a new version built from FILENAME. The new package name will be taken from the top source directory by default, or from PACKAGE_NAME if specified"},
    {'i', "install", {0}, {0}, 0,
     ". install known package PACKAGE_NAME from stored source code"},
    {'u', "uninstall", {0}, {0}, 0,
     ". uninstall package PACKAGE_NAME, but do not delete source if available"},
    {'d', "description", {"STRING", 0}, {0, 0}, 0,
     ". associate first line of STRING to PACKAGE_NAME short description, and the remaining lines to the long description. If STRING is empty, remove descriptions from the package. Use your shell quotation characters to submit a STRING containing newlines"},
    {'n', "rename", {"NEW_NAME", 0}, {0, 0}, 0,
     ". rename existing package PACKAGE_NAME to NEW_NAME"},
    {'X', "export-xml", {"FILENAME", 0}, {0, 0}, 0,
     ". export package PACKAGE_NAME information (or all packages if not specified) in XML format to FILENAME (use - for stdout)"},
    {'T', "export-text", {"FILENAME", 0}, {0, 0}, 0,
     ". export package PACKAGE_NAME information (or all packages if not specified) in text format to FILENAME (use - for stdout)"},
    {'L', "export-list", {"FILENAME", 0}, {0, 0}, 0,
     ". export package PACKAGE_NAME installed files list to FILENAME (use - for stdout)"},
    {'k', "pack", {"FILENAME", 0}, {0, 0}, 0,
     ". build binary tarball from the installed package PACKAGE_NAME, and save it as FILENAME"},
    {'1', "detect-build", {"FILENAME", 0}, {0, 0}, 0,
     ". scan FILENAME, reporting configure scripts in all subdirectories, and which autoconf version generated them. This can be useful to choose a build subdir, and to run on a new, unknown package to decide whether to install it"},
    {'2', "detect-feats", {"FILENAME", 0}, {0, 0}, 0,
     ". scan FILENAME, reporting and testing the configure script that will be used (if present), and get the features supported by the generated Makefile. This detection action is useful to run after '-1', coupled with '-D' to choose a particular build subdirectory (and thus configure script/Makefile)"},
    {'3', "detect-opts", {"FILENAME", 0}, {0, 0}, 0,
     ". scan FILENAME for configure options"},
    {0, 0, {0}, {0}, 0, 0}
};

struct option_data option_list[] = {
    {'S', "no-source", {0}, {0}, 0,
     ". do not keep source code during installation (not recommended)"},
    {'t', "strip", {0}, {0}, 0,
     ". strip binaries during installation if possible (not recommended)"},
    {'z', "compression", {"FORMAT", 0}, {0, 0}, 0,
     ". use FORMAT as compression. Can assume values gz, bz2, Z"},
    {'C', "configure", {"STRING", 0}, {0, 0}, 2,
     ". (multiple option) force (re)configure of the package, and add STRING to the configure flags; do not use for specifying installation prefix, or it will be ignored: see --prefix below for that."},
    {'D', "subdir", {"STRING", 0}, {0, 0}, 0,
     ". use STRING as build subdirectory for the package"},
    {'p', "prefix", {"STRING", 0}, {0, 0}, 0,
     ". specify installation prefix for the package. For other configure-time options see --configure above"},
    {'f', "force", {0}, {0}, 0,
     ". force execution of the action even when not recommended"},
    {'U', "user", {"STRING", 0}, {0, 0}, 0,
     ". privileged user login to revert to if required [default=] NIY"},
    {'P', "pass", {"STRING", 0}, {0, 0}, 0,
     ". privileged user password to revert to if required [default=] NIY"},
    {'q', "quiet", {0}, {0}, 0,
     ". suppress verbose info on standard output"},
    {'Q', "verbose", {0}, {0}, 0,
     ". send verbose info to standard output"},
    {0, 0, {0}, {0}, 0, 0}
};

Jorma Karvonen <jormak>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by sick_soul (Updated the item)
  • -email is unavailable- added by jormak (Submitted the item)
  • -email is unavailable- added by jormak (patch for sourceinstall/options.c needed)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-12-08 sick_soul StatusNone Invalid
        Open/ClosedOpen Closed
    2007-12-06 jormak Carbon-Copy- Added jormak

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code