tools: set DEBUG_DIR from configure
PATCH 1/1 tools: set DEBUG_DIR from configure
Allow the path to be set from a configure command line option.
---
Cc: Ian Jackson <[email protected]>
Cc: Wei Liu <[email protected]>
Cc: Olaf Hering <[email protected]>
Cc: Jan Beulich <[email protected]>
--- config/Paths.mk.in | 1 + m4/paths.m4 | 9 +++++++++ 2 files changed, 10 insertions(+)
config/Paths.mk.in +1 -0
@@ -51,6 +51,7 @@ BASH_COMPLETION_DIR := $(CONFIG_DIR)/bash_completion.d XEN_LOCK_DIR := @XEN_LOCK_DIR@ XEN_PAGING_DIR := @XEN_PAGING_DIR@ XEN_DUMP_DIR := @XEN_DUMP_DIR@ +DEBUG_DIR := @DEBUG_DIR@ XENFIRMWAREDIR := @XENFIRMWAREDIR@
m4/paths.m4 +9 -0
@@ -82,6 +82,12 @@ AC_ARG_WITH([rundir], [rundir_path=$withval], [rundir_path=$localstatedir/run]) +AC_ARG_WITH([debugdir], + AS_HELP_STRING([--with-debugdir=DIR], + [Path to directory for debug symbols. [PREFIX/usr/lib/debug]]), + [debugdir_path=$withval], + [debugdir_path=$prefix/usr/lib/debug]) + if test "$libexecdir" = '${exec_prefix}/libexec' ; then case "$host_os" in *netbsd*) ;;
@@ -146,6 +152,9 @@ AC_SUBST(XEN_PAGING_DIR) XEN_DUMP_DIR=$xen_dumpdir_path AC_SUBST(XEN_DUMP_DIR) + +DEBUG_DIR=$debugdir_path +AC_SUBST(DEBUG_DIR) ]) case "$host_os" in
Signature · 7 lines
2.16.3 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
m4/paths.m4 AC_ARG_WITH([rundir], · line 89
Quoted 5 lines · Roger Pau Monne
m4/paths.m4 +5
-0+AC_ARG_WITH([debugdir], + AS_HELP_STRING([--with-debugdir=DIR], + [Path to directory for debug symbols. [PREFIX/usr/lib/debug]]), + [debugdir_path=$withval], + [debugdir_path=$prefix/usr/lib/debug])
Would that create /usr/usr/lib/debug per default?
Olaf
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 9 lines · Olaf Hering
m4/paths.m4 AC_ARG_WITH([rundir], · line 89
Quoted 5 lines · Roger Pau Monne
m4/paths.m4 +5
-0+AC_ARG_WITH([debugdir], + AS_HELP_STRING([--with-debugdir=DIR], + [Path to directory for debug symbols. [PREFIX/usr/lib/debug]]), + [debugdir_path=$withval], + [debugdir_path=$prefix/usr/lib/debug])Would that create
/usr/usr/lib/debugper default?
No, this would be: /usr/local/usr/lib/debug by default.
Roger.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 9 lines · Roger Pau Monné
Quoted 8 lines · Olaf Hering
Quoted 5 lines · Roger Pau Monne
m4/paths.m4 +5
-0+AC_ARG_WITH([debugdir], + AS_HELP_STRING([--with-debugdir=DIR], + [Path to directory for debug symbols. [PREFIX/usr/lib/debug]]), + [debugdir_path=$withval], + [debugdir_path=$prefix/usr/lib/debug])
Quoted 3 lines
Quoted 1 line
Would that create
/usr/usr/lib/debugper default?No, this would be:
/usr/local/usr/lib/debugby default.
Which maybe should be: /usr/local/lib/debug instead?
Roger.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 10 lines · Roger Pau Monné
Quoted 9 lines · Roger Pau Monné
Quoted 8 lines · Olaf Hering
Quoted 5 lines · Roger Pau Monne
m4/paths.m4 +5
-0+AC_ARG_WITH([debugdir], + AS_HELP_STRING([--with-debugdir=DIR], + [Path to directory for debug symbols. [PREFIX/usr/lib/debug]]), + [debugdir_path=$withval], + [debugdir_path=$prefix/usr/lib/debug])
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
Would that create
/usr/usr/lib/debugper default?No, this would be:
/usr/local/usr/lib/debugby default.Which maybe should be:
/usr/local/lib/debuginstead?
You should use $prefix/lib/debug by default. Which would cause this to map appropriately. If you have let's say /usr/bin/ls then by default it would have /usr/lib/debug/usr/bin/ls.debug If you have /usr/local/bin/foo then it would be /usr/local/debug/usr/local/bin/foo.debug
Assuming that ls was built with ./configure --prefix=/usr and foo was built with ./configure (where --prefix is by default /usr/local).
Signature · 6 lines
Doug Goldstein _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 15 lines · Doug Goldstein
Quoted 14 lines · Roger Pau Monné
Quoted 12 lines · Roger Pau Monné
Quoted 9 lines · Olaf Hering
m4/paths.m4 AC_ARG_WITH([rundir], · line 89
Quoted 5 lines · Roger Pau Monne
m4/paths.m4 +5
-0+AC_ARG_WITH([debugdir], + AS_HELP_STRING([--with-debugdir=DIR], + [Path to directory for debug symbols. [PREFIX/usr/lib/debug]]), + [debugdir_path=$withval], + [debugdir_path=$prefix/usr/lib/debug])Would that create
/usr/usr/lib/debugper default?No, this would be:
/usr/local/usr/lib/debugby default.
Quoted 7 lines
Quoted 2 lines
Which maybe should be:
/usr/local/lib/debuginstead?You should use $prefix/lib/debug by default. Which would cause this to map appropriately. If you have let's say
/usr/bin/lsthen by default it would have/usr/lib/debug/usr/bin/ls.debugIf you have/usr/local/bin/foothen it would be/usr/local/debug/usr/local/bin/foo.debug
^ lib/
Quoted 2 lines
Assuming that ls was built with ./configure --prefix=/usr and foo was
I guess you mean --prefix=/, using /usr would generate /usr/usr/bin/ls AFAICT?
Will send v2 shortly, hopefully this time the paths will be right :)
Thanks, Roger.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 25 lines · Roger Pau Monné
Quoted 15 lines · Doug Goldstein
Quoted 14 lines · Roger Pau Monné
Quoted 12 lines · Roger Pau Monné
Quoted 9 lines · Olaf Hering
m4/paths.m4 AC_ARG_WITH([rundir], · line 89
Quoted 5 lines · Roger Pau Monne
m4/paths.m4 +5
-0+AC_ARG_WITH([debugdir], + AS_HELP_STRING([--with-debugdir=DIR], + [Path to directory for debug symbols. [PREFIX/usr/lib/debug]]), + [debugdir_path=$withval], + [debugdir_path=$prefix/usr/lib/debug])Would that create
/usr/usr/lib/debugper default?No, this would be:
/usr/local/usr/lib/debugby default.Quoted 7 lines
Quoted 2 lines
Which maybe should be:
/usr/local/lib/debuginstead?You should use $prefix/lib/debug by default. Which would cause this to map appropriately. If you have let's say
/usr/bin/lsthen by default it would have/usr/lib/debug/usr/bin/ls.debugIf you have/usr/local/bin/foothen it would be/usr/local/debug/usr/local/bin/foo.debug^ lib/Quoted 1 line
Quoted 9 lines
Quoted 1 line
Assuming that ls was built with ./configure --prefix=/usr and foo was
I guess you mean --prefix=/, using /usr would generate
/usr/usr/bin/lsAFAICT?Will send v2 shortly, hopefully this time the paths will be right :)
Thanks, Roger.
No. The default prefix with autoconf is "/usr/local". But when Linux distros package things up they use "/usr". See:
https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Default-Prefix.html
Signature · 6 lines
Doug Goldstein _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 1 line · Roger Pau Monne
Allow the path to be set from a configure command line option.
Please backport 641f9ce2fa to 4.10 ASAP. See
https://lists.xenproject.org/archives/html/xen-devel/2018-02/msg02749.html
Thanks.
Olaf
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Olaf Hering writes ("Re: [Xen-devel] [PATCH for-4.11] tools: set DEBUG_DIR from configure"):
Quoted 6 lines · Roger Pau Monne
Quoted 2 lines
Allow the path to be set from a configure command line option.
Please backport
641f9ce2fato 4.10 ASAP. See
https://lists.xenproject.org/archives/html/xen-devel/2018-02/msg02749.html
I read that, but it doesn't say when the breakage was introduced ?
Can you please provide that information ? That should really have been in your commit message, as the git commit id. TBH, most of what is in that email could profitably have been in your commit message...
Thanks,
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 3 lines · Ian Jackson
Can you please provide that information ? That should really have been in your commit message, as the git commit id. TBH, most of what is in that email could profitably have been in your commit message...
Perhaps 641f9ce2fa should have been more verbose.
Do you want me to provide a verbose backport, or would that be against the rules of how backporting from master is supposed to be done?
Olaf
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Olaf Hering writes ("Re: [Xen-devel] [PATCH for-4.11] tools: set DEBUG_DIR from configure"):
Quoted 6 lines · Ian Jackson
Quoted 3 lines
Can you please provide that information ? That should really have been in your commit message, as the git commit id. TBH, most of what is in that email could profitably have been in your commit message...
Perhaps
641f9ce2fashould have been more verbose.
Yes, let's go back in time and fix that, err, right away :-).
Quoted 2 lines
Do you want me to provide a verbose backport, or would that be against the rules of how backporting from master is supposed to be done?
Yes, please do. I am happy to add more text to a commit message when backporting.
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel