! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Support for out-of-source builds
Status:
RESOLVED: WORKSFORME
Product:
Tumbler
Component:
General

Comments

Description Markus Elfring 2020-05-16 11:01:03 CEST
How do you think about to benefit from parallel build trees also for this software?
https://www.gnu.org/software/automake/manual/html_node/VPATH-Builds.html

Would you like to support out-of-source (VPATH) builds?
https://www.gnu.org/software/make/manual/html_node/General-Search.html


I got used to this functionality. Thus I configured the software build system by a call of the script “autogen-gnome.sh” for another development idea on my openSUSE Tumbleweed system.
https://gitlab.xfce.org/xfce/tumbler/-/blob/f8e6f17dc3abddf9886a68b661c282e407fdebc1/autogen-gnome.sh

The file “Makefile” was successfully generated at first glance. But I noticed questionable implementation details then after a command like the following.

elfring@Sonne:~/Projekte/Bau/tumbler> LANG=C make -j4 -f ~/Projekte/XFCE/tumbler/lokal/Makefile
…
/bin/sh ./config.status --recheck
/bin/sh: ./config.status: No such file or directory
…


This make script was generated in the way that a few required files do not explicitly refer to the source file directory. Thus it can not work as I would usually expect it.
Comment 1 Markus Elfring 2020-05-16 17:20:44 CEST
I would like to add another bit of information after the following command shows details for further system configuration considerations.

elfring@Sonne:~/Projekte/Bau/tumbler> srcdir=~/Projekte/XFCE/tumbler/lokal /usr/bin/gnome-autogen.sh ~/Projekte/XFCE/tumbler/lokal/configure.ac
…
Running autoreconf...
…
Running /home/elfring/Projekte/XFCE/tumbler/lokal/configure --enable-maintainer-mode /home/elfring/Projekte/XFCE/tumbler/lokal/configure.ac ...
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: /home/elfring/Projekte/XFCE/tumbler/lokal/configure.ac
…


How should the canonical system type be finally determined for my software build approach?
https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Canonicalizing.html
Comment 2 Markus Elfring 2020-05-16 19:20:51 CEST
(In reply to comment #1)
The following command variant can produce the desired software build configuration.

elfring@Sonne:~/Projekte/Bau/tumbler> srcdir=~/Projekte/XFCE/tumbler/lokal ACLOCAL_FLAGS="-I /home/elfring/Projekte/XFCE/tumbler/lokal/m4macros $ACLOCAL_FLAGS" /usr/bin/gnome-autogen.sh
…
Now type `make' to compile tumbler
Comment 3 Ali Abdallah editbugs 2020-05-18 10:37:04 CEST
Out of source builds is already supported, if you are compile from a git clone, then you can do the following

$ NOCONFIGURE=1 ./autogen.sh

Then go to the directory where you want to build and call the configure script, for example if you have $HOME/xfce/tumbler and the build directory is $HOME/xfce/build-tumbler, then go to $HOME/xfce/build-tumbler and run ../tumbler/configure, make, etc..
Comment 4 Markus Elfring 2020-05-18 14:23:19 CEST
(In reply to Ali Abdallah from comment #3)
> Out of source builds is already supported, if you are compile from a git clone,
> then you can do the following
> 
> $ NOCONFIGURE=1 ./autogen.sh

Did I overlook any software documentation for this command parameter?

Bug #16856

Reported by:
Markus Elfring
Reported on: 2020-05-16
Last modified on: 2020-05-18

People

Assignee:
Ali Abdallah
CC List:
0 users

Version

Attachments

Additional information