Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

make compilations use the global datadir for shared resources, fixes …

…problem with compilation toolchain, introduces problem with depending on global location
  • Loading branch information...
commit 814df1e9f4d7098958e3fc9bf348a36d15d27551 1 parent 6e47a3d
@mpapis mpapis authored
Showing with 11 additions and 4 deletions.
  1. +11 −4 core/internal/shell/package/strategies/gnu/functions
View
15 core/internal/shell/package/strategies/gnu/functions
@@ -274,6 +274,15 @@ __sm.package.gnu.update()
fi
}
+__sm.package.configure.flag.if.supported()
+{
+ if
+ "$1" --help 2>/dev/null | \grep -- "$2" >/dev/null
+ then
+ __sm.package.configure.flag "$2" "$3"
+ fi
+}
+
__sm.package.configure()
{
trace_filter package || set -o xtrace
@@ -291,10 +300,8 @@ __sm.package.configure()
fi
__sm.package.configure.flag "--prefix" "${install_path}"
- if "${_command%% *}" --help 2>/dev/null | \grep -- --sysconfdir >/dev/null
- then
- __sm.package.configure.flag "--sysconfdir" "/etc"
- fi
+ __sm.package.configure.flag.if.supported "${_command%% *}" "--sysconfdir" "/etc"
+ __sm.package.configure.flag.if.supported "${_command%% *}" "--datadir" "${active_path}/share"
_command="${_command} ${configure_flags[*]}"
__sm.log.debug package "__sm.package.configure: ${_command}"
Please sign in to comment.
Something went wrong with that request. Please try again.