Menu

Git Repository Merge Request #10: Add options to enable/disable docs and demos (open)

Merging...

Merged

Something went wrong. Please, merge manually

Checking if merge is possible...

Something went wrong. Please, merge manually

Fabrice Fontaine wants to merge 1 commit from /u/ffontaine35/gnuplot/ to master, 2019-04-17

Add options to enable/disable docs and demos

Originally written by Anthony Viallard
viallard@syscom-instruments.com.

[Vincent: adapt patch to 5.0.5 version]

Signed-off-by: Thomas Petazzoni thomas.petazzoni@free-electrons.com
Signed-off-by: Vicente Olivert Riera Vincent.Riera@imgtec.com
[Retrieved (and slightly updated) from:
https://git.buildroot.net/buildroot/tree/package/gnuplot/0001-configure-add-without-demo-option.patch]

Signed-off-by: Fabrice Fontaine fontaine.fabrice@gmail.com

Commit Date  
[d39b8a] (HEADmaster) by Fabrice Fontaine Fabrice Fontaine

Add options to enable/disable docs and demos

Originally written by Anthony Viallard
<viallard@...>.

[Vincent: adapt patch to 5.0.5 version]

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@...>
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@...>
[Retrieved (and slightly updated) from:
https://git.buildroot.net/buildroot/tree/package/gnuplot/0001-configure-add-without-demo-option.patch]

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@...>

2019-04-16 22:33:32 Tree

Discussion

  • Ethan Merritt

    Ethan Merritt - 2019-04-17

    Please explain the motivation for this change. When is it ever an advantage to configure so that it is not possible to build the demos or docs? I can understand that you might choose not to build them, but why make it impossible? Is it not sufficient to do

    ./configure
    cd src; make install
    

    Anyhow...
    After merging this, when I build I get the following warnings from ./configure:

    === configuring in docs (/home/merritt/git/gnuplot-eam/docs)
    configure: WARNING: no configuration information is in docs
    === configuring in demo (/home/merritt/git/gnuplot-eam/demo)
    configure: WARNING: no configuration information is in demo
    

    This does not seem to have any permanent effect on the build, but it would be nicer not to issue spurious warnings. Any idea what this is about?

    Edit: I get these warnings from the default ./configure. I.e. even when the new options to disable demo and docs are not selected.

     

    Last edit: Ethan Merritt 2019-04-17
  • Fabrice Fontaine

    Buildroot is used to create embedded linux systems through cross-compilation. Our users don't need the demo or docs to avoid wasting space on their systems.
    Moreover, we can't even build docs, because we can't call ./doc2gih on the host as this binary is cross-compiled for the target.

    Concerning those warnings, they are raised by the AC_CONFIG_SUBDIRS which are not needed anymore, I'll update the PR to remove them.

     
    • Ethan Merritt

      Ethan Merritt - 2019-04-17

      I understand why you don't want to build the docs or demos. What I don't understand is why you want to address this at the level of changing the configuration file, rather than simply restricting the build to the parts you want? cd src; make

       
  • Fabrice Fontaine

    That's because we have a standard behavior for all our autotools-package, so it's more convenient / usual to add these options and run the standard make / make install than "hacking" this standard behavior and run make -C src and make -C src install. If you think that these options are not a good idea, that's your wright.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.