Subject: bug#49548: closed (Re: bug#49419: [PATCH 0/4] Essential home services)

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 24 Aug 2021 12:15:03 +0000

Your bug report

#49419: [PATCH v2 3/4] home-services: Add home-provenance-service-type

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
49419: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=49419
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#49419: [PATCH 0/4] Essential home services
From: Oleg Pykhalov <[email-masked]>
To: Andrew Tropin <[email-masked]>
Cc: [email-masked]
Date: Tue, 24 Aug 2021 15:14:25 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

Andrew Tropin <[email-masked]> writes:

[…]

>> As Ludovic suggested, we could move modules to another namespace for
>> code sharing, but it is not a blocker from merging changes and we could
>> do it later when we need to share the code.  I think we should go
>> forward and push to the master.  WDYT?
>
> Yep, let's postpone moving modules to another namespace until it will be
> needed. Later, when the necessity appears, we will decide how to better
> organize the code.
>
> We can push it to master, but I planned to keep it in wip-guix-home for
> a while to bring all related stuff like documentation and cli to the
> branch and merge it to the master after everything is complete.
>
> Also, merging only part of Guix Home to the master will arise conflicts
> for users of rde channel (which contains current implementation of Guix
> Home).  However, it is solvable by removing already merged parts from
> rde repository, so, it's not a big deal and I'm fine with both merging
> options.

OK, pushed to the wip-guix-home.

https://git.savannah.gnu.org/cgit/guix.git/?h=wip-guix-home

Subject: [PATCH v2 3/4] home-services: Add home-provenance-service-type
From: Andrew Tropin <[email-masked]>
To: [email-masked]
Date: Mon, 5 Jul 2021 18:41:07 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/home-services.scm (home-provenance-service-type, sexp->home-provenance,
home-provenance): New variables.
---
 gnu/home-services.scm | 27 ++++++++++++++++++++++++++-
 1 file changed, 26 insertions(+), 1 deletion(-)

diff --git a/gnu/home-services.scm b/gnu/home-services.scm
index fadad3133e..ffcee22bb8 100644
--- a/gnu/home-services.scm
+++ b/gnu/home-services.scm
@@ -38,7 +38,10 @@
 	    home-files-service-type
 	    home-run-on-first-login-service-type
             home-activation-service-type
-            home-run-on-change-service-type)
+            home-run-on-change-service-type
+            home-provenance-service-type
+
+            fold-home-service-types)
 
   #:re-export (service
 	       service-type
@@ -419,3 +422,25 @@ G-expressions to run if the specified files have changed since the
 last generation.  The extension should be a list of lists where the
 first element is the pattern for file or directory that expected to be
 changed, and the second element is the G-expression to be evaluated.")))
+
+
+;;;
+;;; Provenance tracking.
+;;;
+
+(define home-provenance-service-type
+  (service-type
+   (name 'home-provenance)
+   (extensions
+    (list (service-extension
+           home-service-type
+           (service-extension-compute
+            (first (service-type-extensions provenance-service-type))))))
+   (default-value #f)                ;the HE config file
+   (description "\
+Store provenance information about the home environment in the home
+environment itself: the channels used when building the home
+environment, and its configuration file, when available.")))
+
+(define sexp->home-provenance sexp->system-provenance)
+(define home-provenance system-provenance)
-- 
2.32.0