summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar https://me.yahoo.com/a/KAQceysfsY6cjDjzGEJVZWdWJiUkO9bO5H5b44IJmwTNsIxqGW7l_re80nme#54d52 <Magnus_Therning@web>2015-08-09 06:03:00 +0000
committerGravatar admin <admin@branchable.com>2015-08-09 06:03:00 +0000
commitbd2f7790f9e29b59add0c3b4cf807de4468a05af (patch)
tree37fc3c2a1ddad372b4973f067ebecb8865f1b8d0
parent8f179d701670e0e72dbc1cef69213ebb8ebfbca6 (diff)
-rw-r--r--doc/bugs/__39__copy_destdir__61____60__path__62____39___fails.mdwn46
1 files changed, 46 insertions, 0 deletions
diff --git a/doc/bugs/__39__copy_destdir__61____60__path__62____39___fails.mdwn b/doc/bugs/__39__copy_destdir__61____60__path__62____39___fails.mdwn
new file mode 100644
index 000000000..e84e59ad8
--- /dev/null
+++ b/doc/bugs/__39__copy_destdir__61____60__path__62____39___fails.mdwn
@@ -0,0 +1,46 @@
+### Please describe the problem.
+
+Using `copy --destdir=<path>` fails.
+
+### What steps will reproduce the problem?
+
+~~~
+% ./Setup.hs configure --prefix=/usr
+% ./Setup.hs build
+% ./Setup.hs copy --destdir=my/pkg/dir
+~~~
+
+### What version of git-annex are you using? On what operating system?
+
+5.20150731 on Linux (Arch Linux)
+
+### Please provide any additional information below.
+
+The steps in `myPostCopy` doesn't consider the destination directory, the following change is enough for my uses:
+
+~~~
+Index: habs/git-annex/src/git-annex-5.20150731/Setup.hs
+===================================================================
+--- habs.orig/git-annex/src/git-annex-5.20150731/Setup.hs
++++ habs/git-annex/src/git-annex-5.20150731/Setup.hs
+@@ -27,13 +27,13 @@ main = defaultMainWithHooks simpleUserHo
+ }
+
+ myPostCopy :: Args -> CopyFlags -> PackageDescription -> LocalBuildInfo -> IO ()
+-myPostCopy _ (CopyFlags { copyVerbosity }) pkg lbi = do
++myPostCopy _ flags pkg lbi = do
+ installGitAnnexShell dest verbosity pkg lbi
+ installManpages dest verbosity pkg lbi
+- installDesktopFile dest verbosity pkg lbi
++ -- installDesktopFile dest verbosity pkg lbi
+ where
+- dest = NoCopyDest
+- verbosity = fromFlag copyVerbosity
++ dest = fromFlag $ copyDest flags
++ verbosity = fromFlag $ copyVerbosity flags
+
+ installGitAnnexShell :: CopyDest -> Verbosity -> PackageDescription -> LocalBuildInfo -> IO ()
+ installGitAnnexShell copyDest verbosity pkg lbi =
+~~~
+
+As you see I commented out installation of desktop files completely for the moment. I don't really need them, and they require larger changes to be correct.