Bug 186270 - sysutils/pdumpfs-1.3_3 will install but will not run
Summary: sysutils/pdumpfs-1.3_3 will install but will not run
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Steve Wills
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-30 11:30 UTC by John Anderson
Modified: 2014-01-30 15:40 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Anderson 2014-01-30 11:30:00 UTC
sysutils/pdumpfs-1.3_3 installs as usual, using ports or pkg. But when run, fails. Using current portsnap fetch update as of 1/30/2014 6:25 a.m. EST

How-To-Repeat:  # pdumpfs /home /media/backup
/usr/local/lib/ruby/1.9/rubygems/custom_require.rb:36:in `require': cannot load such file -- ftools (LoadError)
	from /usr/local/lib/ruby/1.9/rubygems/custom_require.rb:36:in `require'
	from /usr/local/sbin/pdumpfs:51:in `<main>'
Comment 1 Steve Wills freebsd_committer freebsd_triage 2014-01-30 14:57:14 UTC
Responsible Changed
From-To: freebsd-ports-bugs->swills

I'll take it.
Comment 2 dfilter service freebsd_committer freebsd_triage 2014-01-30 15:30:21 UTC
Author: swills
Date: Thu Jan 30 15:30:13 2014
New Revision: 341846
URL: http://svnweb.freebsd.org/changeset/ports/341846
QAT: https://qat.redports.org/buildarchive/r341846/

Log:
  - Rename patch so it actually gets applied
  
  PR:		ports/186270
  Submitted by:	John Anderson <jdakhayman@gmail.net>
  Pointyhat to:	swills

Added:
  head/sysutils/pdumpfs/files/patch-pdumpfs.in
     - copied unchanged from r341122, head/sysutils/pdumpfs/files/extrapatch-pdumpfs.in
Deleted:
  head/sysutils/pdumpfs/files/extrapatch-pdumpfs.in
Modified:
  head/sysutils/pdumpfs/Makefile

Modified: head/sysutils/pdumpfs/Makefile
==============================================================================
--- head/sysutils/pdumpfs/Makefile	Thu Jan 30 15:28:11 2014	(r341845)
+++ head/sysutils/pdumpfs/Makefile	Thu Jan 30 15:30:13 2014	(r341846)
@@ -3,7 +3,7 @@
 
 PORTNAME=	pdumpfs
 PORTVERSION=	1.3
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	sysutils
 MASTER_SITES=	http://0xcc.net/pdumpfs/
 

Copied: head/sysutils/pdumpfs/files/patch-pdumpfs.in (from r341122, head/sysutils/pdumpfs/files/extrapatch-pdumpfs.in)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/pdumpfs/files/patch-pdumpfs.in	Thu Jan 30 15:30:13 2014	(r341846, copy of r341122, head/sysutils/pdumpfs/files/extrapatch-pdumpfs.in)
@@ -0,0 +1,91 @@
+--- pdumpfs.in.orig	2004-12-21 11:43:12.000000000 +0900
++++ pdumpfs.in	2013-06-22 08:58:34.000000000 +0900
+@@ -48,21 +48,21 @@
+ #
+ 
+ require 'find'
+-require 'ftools'
++require 'fileutils'
+ require 'getoptlong'
+ require 'date'
+ 
+ class File
+   def self.real_file? (path)
+-    File.file?(path) and not File.symlink?(path)
++    FileTest.file?(path) and not FileTest.symlink?(path)
+   end
+ 
+   def self.anything_exist? (path)
+-    File.exist?(path) or File.symlink?(path)
++    FileTest.exist?(path) or FileTest.symlink?(path)
+   end
+ 
+   def self.real_directory? (path)
+-    File.directory?(path) and not File.symlink?(path)
++    FileTest.directory?(path) and not FileTest.symlink?(path)
+   end
+ 
+   def self.force_symlink (src, dest)
+@@ -79,7 +79,7 @@
+   end
+ 
+   def self.readable_file? (path)
+-    File.file?(path) and File.readable?(path)
++    FileTest.file?(path) and FileTest.readable?(path)
+   end
+ 
+   def self.split_all (path)
+@@ -129,7 +129,7 @@
+   GetVolumeInformation = Win32API.new("kernel32", "GetVolumeInformation",
+                                       "PPLPPPPL", "I")
+   def get_filesystem_type (path)
+-    return nil unless(File.exist?(path))
++    return nil unless(FileTest.exist?(path))
+ 
+     drive = File.expand_path(path)[0..2]
+     buff = "\0" * 1024
+@@ -868,7 +868,7 @@
+       today  = File.join(dest, datedir(start_time), base)
+ 
+       File.umask(0077)
+-      File.mkpath(today) unless @dry_run
++      FileUtils.mkpath(today) unless @dry_run
+       if latest
+         update_snapshot(src, latest, today)
+       else
+@@ -1018,7 +1018,7 @@
+ 
+       case type
+       when "directory"
+-        File.mkpath(today)
++        FileUtils.mkpath(today)
+       when "unchanged"
+         File.force_link(latest, today)
+       when "updated"
+@@ -1052,7 +1052,7 @@
+ 
+       Find.find(src) do |s|      # path of the source file
+         if @matcher.exclude?(s)
+-          if File.lstat(s).directory? then Find.prune() else next end
++          if FileTest.directory?(s) then Find.prune() else next end
+         end
+         r = make_relative_path(s, src)
+         l = File.join(latest, r)  # path of the latest  snapshot
+@@ -1077,7 +1077,7 @@
+ 
+       Find.find(src) do |s|
+         if @matcher.exclude?(s)
+-          if File.lstat(s).directory? then Find.prune() else next end
++          if FileTest.directory?(s) then Find.prune() else next end
+         end
+         r = make_relative_path(s, src)
+         t = File.join(dest, r)
+@@ -1089,7 +1089,7 @@
+ 
+           case type
+           when "directory"
+-            File.mkpath(t)
++            FileUtils.mkpath(t)
+           when "new_file"
+             copy(s, t)
+           when "symlink"
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Steve Wills freebsd_committer freebsd_triage 2014-01-30 15:30:23 UTC
State Changed
From-To: open->closed

Fix committed, sorry about that.