taskGNU Astronomy Utilities - Tasks: task #15053, Configure option to download and...

 
 

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

task #15053: Configure option to download and install dependencies

Submitter:  Mohammad Akhlaghi <makhlaghi>
Submitted:  Thu 27 Sep 2018 11:11:59 AM UTC
   
 
Should Start On:  Wed 26 Sep 2018 10:00:00 PM UTC Should be Finished on:  Wed 26 Sep 2018 10:00:00 PM UTC
Category:  Installation Priority:  5 - Normal
Item Group:  Enhancement Status:  Postponed
Privacy:  Public Assigned to:  None
Percent Complete:  0% Open/Closed:  Open
Effort:  0.00

Fri 07 Apr 2023 03:27:18 PM UTC, comment #5: 

Hi there!
Please review the draft solution for this task.

./configure with --enable-builddeps downloads and builds
the dependencies required to build gnuastro.

https://github.com/Labnann/gnuastro/pull/1

Note that this does not build recursively. IE libz, libssl-dev,cmake
will not be built. I will implement it if you think it is necessary.



Khalid Masum <labnan>
Thu 30 Mar 2023 03:11:17 PM UTC, comment #4: 

comment #2:

> Thanks Khalid. Can you explain how your commit solves the problem (where the configure script would "... start downloading the tarballs of the ones that are missing and build and install them.").
>

Submitted the patch as an starting point to solve it. But yeah it was unnecessary.

> In this commit, you have only toggled the printing of optional depedencies (which are printed at the end anyway), you are not downloading tarballs and building the necessary programs from source (as the task suggests)


I shall try dealing with the actual issue now.

Khalid Masum <labnan>
Thu 30 Mar 2023 03:04:04 PM UTC, comment #3: 

Thanks!

You are right, the same checks are done again in case of no mandatory dependencies are missing.

I started working on this task but this part bothered me so I submitted the patch fixing this non existent issue :(.

Khalid Masum <labnan>
Thu 30 Mar 2023 02:18:41 PM UTC, comment #2: 

Thanks Khalid. Can you explain how your commit solves the problem (where the configure script would "... start downloading the tarballs of the ones that are missing and build and install them.").

In this commit, you have only toggled the printing of optional depedencies (which are printed at the end anyway), you are not downloading tarballs and building the necessary programs from source (as the task suggests)

Mohammad Akhlaghi <makhlaghi>
Group administrator
Sat 25 Mar 2023 08:13:17 PM UTC, comment #1: 

This patch enables configure script to show warning if any optional dependency is missing.

Currently these messages are skipped if all mandatory dependencies are met.

https://github.com/Labnann/gnuastro/commit/3d57335f768d95175c2ba2b4a88f287f8fc53cfb


Also I am interested in this task.

Thanks!

Khalid Masum <labnan>
Thu 27 Sep 2018 11:11:59 AM UTC, original submission:  

The procedure to download, unpack and install Gnuastro's dependencies from source is very standard and well known (as described in the manual).

So to greatly simplify the necessary steps a new Gnuastro user has to take, we can add a configure-time option like `--enable-build-dependencies'.

When this option is called, once the configure script checks all the dependencies, it can start downloading the tarballs of the ones that are missing and build and install them. Afterwards it can re-do the checks to make sure they are installed and usable and continue with its other checks.

This will greatly simplify the installation process for new users, while also ensuring that they get the latest packages.

All Gnuastro's dependencies are very small and basic libraries (except for Ghostscript!). For Ghostscript we can use the user's package manager, or just ignore it over all (it is only for generating PDF outputs in ConvertType), its not an mandatory, or even important, dependency.

In fact, with the various package manager commands we have gathered in the book for the dependencies, we might also be able to simply use them (instead of downloading and building them from source).

Probably we can implement this simpler solution first, or build from source only when the operating system's package manager is not recognized.

Mohammad Akhlaghi <makhlaghi>
Group administrator

 

(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 labnan (Posted a comment)
  • -email is unavailable- added by makhlaghi (Submitted the item)
  •  

    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.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-c373.
    Corresponding source code