Skip to content
This repository
Browse code

add helper function for broken gnu packages, make sure sm tools are i…

…n PATH for compilation
  • Loading branch information...
commit 59737daa77d4d7a8d49f478b7a2a8cdd6d1512b8 1 parent e301b20
Michal Papis authored January 16, 2013
9  core/internal/shell/package/strategies/gnu/functions
@@ -161,6 +161,14 @@ To force it to reinstall, call:\n\tsm ${package_name} package install force\n"
161 161
   __sm.package.setup
162 162
 }
163 163
 
  164
+# helper for gnu package forks, usage: __sm.gnu.tarball.version [file [version]]
  165
+__sm.gnu.tarball.version()
  166
+{
  167
+  [[ -f ${1:-.tarball-version} ]] &&
  168
+  grep "${2:-$package_version}" < ${1:-.tarball-version} > /dev/null ||
  169
+  echo "${2:-$package_version}" > ${1:-.tarball-version}
  170
+}
  171
+
164 172
 __sm.package.binary.install()
165 173
 {
166 174
   trace_filter package || set -o xtrace
@@ -306,6 +314,7 @@ __sm.package.configure()
306 314
   _command="${_command} ${configure_flags[*]}"
307 315
   __sm.log.debug package "__sm.package.configure: ${_command}"
308 316
 
  317
+  PATH="${active_path}/bin:$PATH"
309 318
   PREFIX="${install_base_path}/${package_version}"
310 319
   PKG_CONFIG_PATH=${active_path}/lib/pkgconfig
311 320
 

0 notes on commit 59737da

Please sign in to comment.
Something went wrong with that request. Please try again.