summaryrefslogtreecommitdiff
path: root/doc/forum/chroot_for_sbuild
diff options
context:
space:
mode:
Diffstat (limited to 'doc/forum/chroot_for_sbuild')
-rw-r--r--doc/forum/chroot_for_sbuild/comment_3_bb01c327417848165197405f5f918caf._comment34
1 files changed, 34 insertions, 0 deletions
diff --git a/doc/forum/chroot_for_sbuild/comment_3_bb01c327417848165197405f5f918caf._comment b/doc/forum/chroot_for_sbuild/comment_3_bb01c327417848165197405f5f918caf._comment
new file mode 100644
index 00000000..1ce48047
--- /dev/null
+++ b/doc/forum/chroot_for_sbuild/comment_3_bb01c327417848165197405f5f918caf._comment
@@ -0,0 +1,34 @@
+[[!comment format=mdwn
+ username="picca"
+ subject="comment 3"
+ date="2015-09-30T10:05:08Z"
+ content="""
+Thanks for the information,
+
+Now I use the provision part but I am facing a problem when I try to create the chroot using withTmpDir
+I do not understand exactly how it must work
+
+here the signature of my two methods
+
+ sbuild :: System -> RevertableProperty
+ sbuild system = withTmpDir \"sbuild\" $ \tmpdir -> sbuild' system tmpdir
+
+And here the property which does the work (it works thanks to your comment, I will have other questions about this part later ;)
+
+ sbuild' :: System -> FilePath -> RevertableProperty
+ sbuild' system chrootdir = mksbuild `requires` create
+ ...
+
+When I tried this I got this error
+
+ src/config.hs:166:17:
+ Couldn't match expected type `RevertableProperty'
+ with actual type `m0 RevertableProperty'
+ In the expression:
+ withTmpDir \"sbuild\" $ \ tmpdir -> return $ sbuild' system tmpdir
+ In an equation for `sbuild':
+ sbuild system
+ = withTmpDir \"sbuild\" $ \ tmpdir -> return $ sbuild' system tmpdir
+
+I need to extract the property from the monad, but I do not know how ?
+"""]]