Permalink
Browse files

Ubuntu sucks arse through a straw.

1 parent f013644 commit 52018750763d5321b7b993e201c8589b98e090f9 @wayneeseguin wayneeseguin committed Apr 27, 2011
Showing with 13 additions and 13 deletions.
  1. +1 −1 binscripts/rvm-install
  2. +1 −1 binscripts/rvm-installer
  3. +2 −2 scripts/functions/packages
  4. +1 −1 scripts/get
  5. +5 −5 scripts/manage
  6. +1 −1 scripts/rubygems
  7. +2 −2 scripts/snapshot
View
@@ -8,7 +8,7 @@ Dir.chpwd( File.join( ENV["GEM_HOME"], "gems", "rvm-#{RVM::Version::STRING}", "r
puts "Extracting bundled rvm-#{RVM::Version::STRING}.tar.gz"
- %x{tar zxf --no-same-owner rvm-#{RVM::Version::STRING}.tar.gz}
+ %x{tar zxf rvm-#{RVM::Version::STRING}.tar.gz}
Dir.chpwd( "rvm-#{RVM::Version::STRING}" ) do
View
@@ -85,7 +85,7 @@ Halting installation.
"
fi
- tar zxf --no-same-owner "${rvm_archives_path}/rvm-${version}.tar.gz" -C "$rvm_src_path/"
+ tar zxf "${rvm_archives_path}/rvm-${version}.tar.gz" -C "$rvm_src_path/"
cd "$rvm_src_path/rvm-${version}"
}
@@ -20,7 +20,7 @@ install_package()
|| (result=$? && return $result)
__rvm_run "$package/extract" \
- "tar zxf --no-same-owner $rvm_archives_path/$package-$version.$archive_format -C $rvm_src_path" \
+ "tar zxf $rvm_archives_path/$package-$version.$archive_format -C $rvm_src_path" \
"Extracting $package-$version.$archive_format to $rvm_src_path"
;;
@@ -31,7 +31,7 @@ install_package()
|| (result=$? && return $result)
__rvm_run "$package/extract" \
- "tar jxf --no-same-owner $rvm_archives_path/$package-$version.$archive_format -C $rvm_src_path" \
+ "tar jxf $rvm_archives_path/$package-$version.$archive_format -C $rvm_src_path" \
"Extracting $package-$version.$archive_format to $rvm_src_path"
;;
View
@@ -65,7 +65,7 @@ get_version()
exit 1
fi
- tar zxf --no-same-owner "${rvm_path}/archives/rvm-${version}.tar.gz" -C "$rvm_src_path/"
+ tar zxf "${rvm_path}/archives/rvm-${version}.tar.gz" -C "$rvm_src_path/"
(
cd "$rvm_src_path/rvm-${version}"
View
@@ -470,7 +470,7 @@ RubyWrapper
__rvm_rm_rf "${rvm_src_path}/$rvm_ruby_string"
__rvm_run "extract" \
- "gunzip < \"${rvm_archives_path}/$rvm_ruby_package_file.$rvm_archive_extension\" | tar xf --no-same-owner - -C ${rvm_src_path}" \
+ "gunzip < \"${rvm_archives_path}/$rvm_ruby_package_file.$rvm_archive_extension\" | tar xf - -C ${rvm_src_path}" \
"$rvm_ruby_string - #extracting $rvm_ruby_package_file to ${rvm_src_path}/$rvm_ruby_string"
result=$?
@@ -573,7 +573,7 @@ RubyWrapper
exit $result
fi
__rvm_run "extract" \
- "gunzip < \"${rvm_archives_path}/$(basename $rvm_ruby_package_file)\" | tar xf --no-same-owner - -C ${rvm_src_path}" \
+ "gunzip < \"${rvm_archives_path}/$(basename $rvm_ruby_package_file)\" | tar xf - -C ${rvm_src_path}" \
"$rvm_ruby_string - #extracting"
result=$?
@@ -854,7 +854,7 @@ RubyWrapper
builtin cd "${rvm_src_path}/$rvm_ruby_string"
__rvm_run "gemstone.extract" \
- "gunzip < \"${rvm_archives_path}/${rvm_gemstone_package_file}.${rvm_archive_extension}\" | tar xf --no-same-owner - -C ${rvm_src_path}/$rvm_ruby_string"
+ "gunzip < \"${rvm_archives_path}/${rvm_gemstone_package_file}.${rvm_archive_extension}\" | tar xf - -C ${rvm_src_path}/$rvm_ruby_string"
result=$?
if (( result > 0 ))
@@ -1311,7 +1311,7 @@ __rvm_fetch_ruby()
case "$rvm_archive_extension" in
tar.gz|tgz)
- __rvm_run "extract" "gunzip < \"${rvm_archives_path}/$rvm_ruby_package_file.$rvm_archive_extension\" | tar xf --no-same-owner - -C ${rvm_tmp_path:-/tmp}/rvm_src_$$" "$rvm_ruby_string - #extracting $rvm_ruby_package_file to ${rvm_src_path}/$rvm_ruby_string"
+ __rvm_run "extract" "gunzip < \"${rvm_archives_path}/$rvm_ruby_package_file.$rvm_archive_extension\" | tar xf - -C ${rvm_tmp_path:-/tmp}/rvm_src_$$" "$rvm_ruby_string - #extracting $rvm_ruby_package_file to ${rvm_src_path}/$rvm_ruby_string"
result=$?
if (( result > 0 ))
@@ -1331,7 +1331,7 @@ __rvm_fetch_ruby()
fi
;;
tar.bz2)
- __rvm_run "extract" "bunzip2 < '${rvm_archives_path}/$rvm_ruby_package_file.$rvm_archive_extension' | tar xf --no-same-owner - -C ${rvm_tmp_path:-/tmp}/rvm_src_$$" "$rvm_ruby_string - #extracting $rvm_ruby_package_file to ${rvm_src_path}/$rvm_ruby_string"
+ __rvm_run "extract" "bunzip2 < '${rvm_archives_path}/$rvm_ruby_package_file.$rvm_archive_extension' | tar xf - -C ${rvm_tmp_path:-/tmp}/rvm_src_$$" "$rvm_ruby_string - #extracting $rvm_ruby_package_file to ${rvm_src_path}/$rvm_ruby_string"
result=$?
if (( result > 0 ))
View
@@ -82,7 +82,7 @@ rubygems_setup()
fi
__rvm_run "rubygems.extract" \
- "gunzip < ${rvm_archives_path}/$rvm_gem_package_name.tgz | tar xf --no-same-owner - -C ${rvm_src_path}" \
+ "gunzip < ${rvm_archives_path}/$rvm_gem_package_name.tgz | tar xf - -C ${rvm_src_path}" \
"Extracting $rvm_gem_package_name ..."
fi
View
@@ -135,7 +135,7 @@ snapshot_save()
(
builtin cd "$snapshot_temp_path"
__rvm_rm_rf "$destination_path/$1.tar.gz"
- tar czf --no-same-owner "$destination_path/$1.tar.gz" .
+ tar czf "$destination_path/$1.tar.gz" .
result="$?"
__error_on_result "$result" "Error creating archive $destination_path/$1.tar.gz" && return "$result"
)
@@ -172,7 +172,7 @@ snapshot_load()
rvm_log "Extracting snapshot"
(
builtin cd "$snapshot_temp_path"
- tar xzf --no-same-owner "$snapshot_archive"
+ tar xzf "$snapshot_archive"
result="$?"
__error_on_result "$result" "Error extracting the archive '$snapshot_archive'" && return "$result"
)

10 comments on commit 5201875

Why not just use tar's arguments correctly? The file name is an argument to the "f" flag, so it has to come immediately after it:

tar zxf rvm-#{RVM::Version::STRING}.tar.gz --no-same-owner
Owner

wayneeseguin replied Apr 28, 2011

Aye, we've been over that on another commit thread. Wondering if --no-same-owner is worth keeping.

Right, sorry. I even looked at that thread... :-/

Seems worth keeping to me.

Is there any solution for this issue? Thanks

Contributor

ddd replied Mar 13, 2012

this has already been solved. What iss are you referring to now?

wanna istall:
rvm install ruby-1.9.3
get this error above:
ERROR: Error running 'bunzip2 ...

Found on Stackoverflow that it was a RVM issue and already solved:
http://stackoverflow.com/questions/5804428/error-on-installing-ruby-with-rvm

How to solve this? Thanks!

Contributor

ddd replied Mar 13, 2012

this has been solved for quite some time.

rvm get head && rvm get stable && rvm install 1.9.3

The first makes sure you're updated, 2nd command backs you down to stable (or you can stay on head, up to you) and the last installs 1.9.3

Thanks a lot, worked!

I encountered the same problem (after installing rvm through apt-get). ddd's suggestion worked for me as well.. I'm wondering why apt-get is still giving me a buggy version of rvm though?

Owner

mpapis replied Feb 18, 2013

@hmsimha there is no one to update the package and rvm team does not have rights to work on that package

Please sign in to comment.