From 812fae424ee7139cf9bc0d17815ee68aa3cab517 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 25 Nov 2010 13:47:34 +0000 Subject: * DrvInfo contains pointers to expressions, so DrvInfos should be traced by the garbage collector. Otherwise "nix-env -u" can crash randomly. --- src/libexpr/get-drvs.hh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/libexpr/get-drvs.hh') diff --git a/src/libexpr/get-drvs.hh b/src/libexpr/get-drvs.hh index 7c014b7e41f2..2d260c57beee 100644 --- a/src/libexpr/get-drvs.hh +++ b/src/libexpr/get-drvs.hh @@ -62,7 +62,11 @@ public: }; +#if HAVE_BOEHMGC +typedef list > DrvInfos; +#else typedef list DrvInfos; +#endif /* If value `v' denotes a derivation, store information about the -- cgit 1.4.1