all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#52439] [PATCH 1/2] gnu: Add emacs-rec-mode.
@ 2021-12-11 19:39 Morgan.J.Smith
  2021-12-11 19:46 ` [bug#52439] [PATCH 2/2] gnu: emacs-recutils: Deprecate in favor of emacs-rec-mode Morgan.J.Smith
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Morgan.J.Smith @ 2021-12-11 19:39 UTC (permalink / raw)
  To: 52439; +Cc: Morgan Smith

From: Morgan Smith <Morgan.J.Smith@outlook.com>

* gnu/packages/emacs-xyz.scm (emacs-rec-mode): New variable.
---
 gnu/packages/emacs-xyz.scm | 40 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 4fdc5f1bb3..aada2b17ce 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -22004,6 +22004,46 @@ (define-public emacs-org-brain
 wiki.")
     (license license:expat)))
 
+(define-public emacs-rec-mode
+  ;; Compilation issues with latest release.  When updating to a proper
+  ;; version, we should change the origin to elpa.
+  (let ((commit "646962cff4f728cfa56c72ed43de8936713c8bb6")
+        (revision "0"))
+    (package
+      (name "emacs-rec-mode")
+      (version (git-version "1.8.1" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://git.savannah.gnu.org/git/recutils/rec-mode.git")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "1f5d5kf4rc84v8208qh0l8f5ac92fjqvrlgz0hhgj764v8w2ahpq"))
+                (modules '((guix build utils)))
+                (snippet '(begin (delete-file "rec-mode.info")))))
+      (arguments
+       '(#:phases
+         (modify-phases %standard-phases
+           (add-before 'install 'make-info
+             (lambda _
+               (invoke "makeinfo" "--no-split"
+                       "-o" "rec-mode.info" "rec-mode.texi"))))))
+      (native-inputs
+       `(("texinfo" ,texinfo)))
+      (build-system emacs-build-system)
+      (home-page "https://www.gnu.org/software/recutils/")
+      (synopsis "Major mode for viewing/editing rec files")
+      (description "Rec Mode is a mode for browsing and editing recfiles,
+which are text files containing data structured in fields and records.  It is
+part of the GNU recutils suite.
+
+Recfiles are text-based databases which are easy to read and write manually
+using a text editor.  At the same time they feature enough structure so they
+can be read, edited and processed automatically by programs.")
+      (license license:gpl3+))))
+
 (define-public emacs-recent-addresses
   (let ((commit "afbbfdc43b81e620acf827ca20d297e0c517b6eb")
         (revision "1"))
--
2.34.0





^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [bug#52439] [PATCH 2/2] gnu: emacs-recutils: Deprecate in favor of emacs-rec-mode
  2021-12-11 19:39 [bug#52439] [PATCH 1/2] gnu: Add emacs-rec-mode Morgan.J.Smith
@ 2021-12-11 19:46 ` Morgan.J.Smith
  2021-12-11 22:35 ` [bug#52439] [PATCH 1/2] gnu: Add emacs-rec-mode Liliana Marie Prikler
  2021-12-14  0:54 ` [bug#52439] [PATCH] gnu: emacs-recutils: Update to 1.8.2-0.058dbe4 Morgan.J.Smith
  2 siblings, 0 replies; 10+ messages in thread
From: Morgan.J.Smith @ 2021-12-11 19:46 UTC (permalink / raw)
  To: 52439; +Cc: Morgan Smith

From: Morgan Smith <Morgan.J.Smith@outlook.com>

* gnu/packages/databases.scm (emacs-recutils): Remove package definition and
add deprecated alias to emacs-rec-mode
---
 gnu/packages/databases.scm | 21 +++------------------
 1 file changed, 3 insertions(+), 18 deletions(-)

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 7cff0f99c5..616a981cca 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -89,6 +89,7 @@ (define-module (gnu packages databases)
   #:use-module (gnu packages cyrus-sasl)
   #:use-module (gnu packages dbm)
   #:use-module (gnu packages emacs)
+  #:use-module ((gnu packages emacs-xyz) #:select (emacs-rec-mode))
   #:use-module (gnu packages flex)
   #:use-module (gnu packages freedesktop)
   #:use-module (gnu packages gawk)
@@ -1384,24 +1385,8 @@ (define-public recutils
     (home-page "https://www.gnu.org/software/recutils/")))
 
 (define-public emacs-recutils
-  (package
-    (inherit recutils)
-    (name "emacs-recutils")
-    (build-system emacs-build-system)
-    (arguments
-     '(#:phases
-       (modify-phases %standard-phases
-         (add-after 'unpack 'change-directory
-           (lambda _
-             (chdir "etc")
-             #t)))))
-    (native-inputs '())
-    (inputs '())
-    (synopsis "Emacs mode for working with recutils database files")
-    (description "This package provides an Emacs major mode @code{rec-mode}
-for working with GNU Recutils text-based, human-editable databases.  It
-supports editing, navigation, and querying of recutils database files
-including field and record folding.")))
+  ;; XXX: When removing, also remove relevant #:use-modules
+  (deprecated-package "emacs-recutils" emacs-rec-mode))
 
 (define-public rocksdb
   (package
-- 
2.34.0





^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [bug#52439] [PATCH 1/2] gnu: Add emacs-rec-mode.
  2021-12-11 19:39 [bug#52439] [PATCH 1/2] gnu: Add emacs-rec-mode Morgan.J.Smith
  2021-12-11 19:46 ` [bug#52439] [PATCH 2/2] gnu: emacs-recutils: Deprecate in favor of emacs-rec-mode Morgan.J.Smith
@ 2021-12-11 22:35 ` Liliana Marie Prikler
  2021-12-12  0:09   ` Morgan Smith
  2021-12-14  0:54 ` [bug#52439] [PATCH] gnu: emacs-recutils: Update to 1.8.2-0.058dbe4 Morgan.J.Smith
  2 siblings, 1 reply; 10+ messages in thread
From: Liliana Marie Prikler @ 2021-12-11 22:35 UTC (permalink / raw)
  To: Morgan.J.Smith, 52439

Hi,

Am Samstag, den 11.12.2021, 14:39 -0500 schrieb
Morgan.J.Smith@outlook.com:
> From: Morgan Smith <Morgan.J.Smith@outlook.com>
> 
> * gnu/packages/emacs-xyz.scm (emacs-rec-mode): New variable.
> ---
>  gnu/packages/emacs-xyz.scm | 40
> ++++++++++++++++++++++++++++++++++++++
>  1 file changed, 40 insertions(+)
> 
> diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
> index 4fdc5f1bb3..aada2b17ce 100644
> --- a/gnu/packages/emacs-xyz.scm
> +++ b/gnu/packages/emacs-xyz.scm
> @@ -22004,6 +22004,46 @@ (define-public emacs-org-brain
>  wiki.")
>      (license license:expat)))
>  
> +(define-public emacs-rec-mode
> +  ;; Compilation issues with latest release.  When updating to a
> proper
> +  ;; version, we should change the origin to elpa.
> +  (let ((commit "646962cff4f728cfa56c72ed43de8936713c8bb6")
> +        (revision "0"))
> +    (package
> +      (name "emacs-rec-mode")
> +      (version (git-version "1.8.1" revision commit))
> +      (source (origin
> +                (method git-fetch)
> +                (uri (git-reference
> +                      (url "
> https://git.savannah.gnu.org/git/recutils/rec-mode.git")
> +                      (commit commit)))
> +                (file-name (git-file-name name version))
> +                (sha256
> +                 (base32
> +                  "1f5d5kf4rc84v8208qh0l8f5ac92fjqvrlgz0hhgj764v8w2a
> hpq"))
> +                (modules '((guix build utils)))
> +                (snippet '(begin (delete-file "rec-mode.info")))))
> +      (arguments
> +       '(#:phases
> +         (modify-phases %standard-phases
> +           (add-before 'install 'make-info
> +             (lambda _
> +               (invoke "makeinfo" "--no-split"
> +                       "-o" "rec-mode.info" "rec-mode.texi"))))))
> +      (native-inputs
> +       `(("texinfo" ,texinfo)))
> +      (build-system emacs-build-system)
> +      (home-page "https://www.gnu.org/software/recutils/")
> +      (synopsis "Major mode for viewing/editing rec files")
> +      (description "Rec Mode is a mode for browsing and editing
> recfiles,
> +which are text files containing data structured in fields and
> records.  It is
> +part of the GNU recutils suite.
> +
> +Recfiles are text-based databases which are easy to read and write
> manually
> +using a text editor.  At the same time they feature enough structure
> so they
> +can be read, edited and processed automatically by programs.")
> +      (license license:gpl3+))))
> +
>  (define-public emacs-recent-addresses
>    (let ((commit "afbbfdc43b81e620acf827ca20d297e0c517b6eb")
>          (revision "1"))
Rather than a new package, I think we can very well edit the existing
package in-place, so that we don't need to add a meaningless
deprecation.  For all intents and purposes, this still is emacs-
recutils -- it's still hosted alongside recutils even though it's no
longer bundled with it.

As a second patch, we could move it to emacs-xyz, but personally both
locations feel fine.  WDYT?





^ permalink raw reply	[flat|nested] 10+ messages in thread

* [bug#52439] [PATCH 1/2] gnu: Add emacs-rec-mode.
  2021-12-11 22:35 ` [bug#52439] [PATCH 1/2] gnu: Add emacs-rec-mode Liliana Marie Prikler
@ 2021-12-12  0:09   ` Morgan Smith
  2021-12-12  0:39     ` Liliana Marie Prikler
  0 siblings, 1 reply; 10+ messages in thread
From: Morgan Smith @ 2021-12-12  0:09 UTC (permalink / raw)
  To: Liliana Marie Prikler; +Cc: 52439

Liliana Marie Prikler <liliana.prikler@gmail.com> writes:
> Rather than a new package, I think we can very well edit the existing
> package in-place, so that we don't need to add a meaningless
> deprecation.  For all intents and purposes, this still is emacs-
> recutils -- it's still hosted alongside recutils even though it's no
> longer bundled with it.

I have no clue if this is the intention or not but I always find that
the emacs package names are in the format: emacs-FEATURE.  As in I can
just do (load "FEATURE") to load the package and start exploring.  I was
very confused when I first downloaded the package as (load "recutils")
did nothing and I had to do (load "rec-mode").  I realize this
convention isn't written down anywhere but I think maybe it should be
because it's very helpful to me personally.

> As a second patch, we could move it to emacs-xyz, but personally both
> locations feel fine.  WDYT?

The location means very little to me.  If I was just editing the package
instead of replacing it I wouldn't have moved it.





^ permalink raw reply	[flat|nested] 10+ messages in thread

* [bug#52439] [PATCH 1/2] gnu: Add emacs-rec-mode.
  2021-12-12  0:09   ` Morgan Smith
@ 2021-12-12  0:39     ` Liliana Marie Prikler
  2021-12-12  1:15       ` Morgan Smith
  0 siblings, 1 reply; 10+ messages in thread
From: Liliana Marie Prikler @ 2021-12-12  0:39 UTC (permalink / raw)
  To: Morgan Smith; +Cc: 52439

Hi,

Am Samstag, den 11.12.2021, 19:09 -0500 schrieb Morgan Smith:
> Liliana Marie Prikler <liliana.prikler@gmail.com> writes:
> > Rather than a new package, I think we can very well edit the
> > existing package in-place, so that we don't need to add a
> > meaningless deprecation.  For all intents and purposes, this still
> > is emacs-recutils -- it's still hosted alongside recutils even
> > though it's no longer bundled with it.
> 
> I have no clue if this is the intention or not but I always find that
> the emacs package names are in the format: emacs-FEATURE.  As in I
> can just do (load "FEATURE") to load the package and start
> exploring.  I was very confused when I first downloaded the package
> as (load "recutils") did nothing and I had to do (load "rec-
> mode").  I realize this convention isn't written down anywhere but I
> think maybe it should be because it's very helpful to me personally.
For the record, the convention is usually to use the upstream name, but
that's not always reasonable.  In this particular case, I'd argue that
emacs-recutils is equally good as it's still close enough to upstream,
plus the package does not solely contain rec-mode and ob-rec could
equally be seen as entry point.

As for loading FEATURE, that again only works for single-feature
libraries.  In addition, you shouldn't typically rely on (load
"FEATURE") or (require 'FEATURE) outside of other libraries anyway. 
Autoloads exist and Guix handles them.

Cheers





^ permalink raw reply	[flat|nested] 10+ messages in thread

* [bug#52439] [PATCH 1/2] gnu: Add emacs-rec-mode.
  2021-12-12  0:39     ` Liliana Marie Prikler
@ 2021-12-12  1:15       ` Morgan Smith
  2021-12-13 19:39         ` Liliana Marie Prikler
  0 siblings, 1 reply; 10+ messages in thread
From: Morgan Smith @ 2021-12-12  1:15 UTC (permalink / raw)
  To: Liliana Marie Prikler; +Cc: 52439

Liliana Marie Prikler <liliana.prikler@gmail.com> writes:
> For the record, the convention is usually to use the upstream name, but
> that's not always reasonable.  In this particular case, I'd argue that
> emacs-recutils is equally good as it's still close enough to upstream,
> plus the package does not solely contain rec-mode and ob-rec could
> equally be seen as entry point.

The multiple entry points issue is certainly a valid issue with my idea.

Using the upstream name makes a lot of sense and I suppose my experience
of the main feature being equal to the name is actually a convention
that emacs package maintainers are doing, not guix.

That being said, the official upstream name is 100%, without a doubt,
"rec-mode".

The recutils info page only mentions the emacs mode once and explicitly
names it "rec-mode".

The rec-mode info page (as in `info rec-mode`) does say rec-mode is part
of the "recutils suite" but doesn't seem to ever refer to it as anything
other than rec-mode.

> As for loading FEATURE, that again only works for single-feature
> libraries.  In addition, you shouldn't typically rely on (load
> "FEATURE") or (require 'FEATURE) outside of other libraries anyway. 
> Autoloads exist and Guix handles them.

I agree with you.  Any programmatic thing based on package names is
bound to break.  I was saying that interactive exploration was made
easier because I always had a good guess on what to load based on the
package name.  I do rely on Guix to manage my autoloads but I don't
restart my Emacs just to check out a package.




^ permalink raw reply	[flat|nested] 10+ messages in thread

* [bug#52439] [PATCH 1/2] gnu: Add emacs-rec-mode.
  2021-12-12  1:15       ` Morgan Smith
@ 2021-12-13 19:39         ` Liliana Marie Prikler
  0 siblings, 0 replies; 10+ messages in thread
From: Liliana Marie Prikler @ 2021-12-13 19:39 UTC (permalink / raw)
  To: Morgan Smith; +Cc: 52439

Hi,

Am Samstag, den 11.12.2021, 20:15 -0500 schrieb Morgan Smith:
> Liliana Marie Prikler <liliana.prikler@gmail.com> writes:
> > For the record, the convention is usually to use the upstream name,
> > *but that's not always reasonable*.  

> > *In this particular case*, I'd argue that emacs-recutils *is
> > equally good*
Emphasis added.

> Using the upstream name makes a lot of sense [...]
> That being said, the official upstream name is 100%, without a doubt,
> "rec-mode".
While yes, the usual convention is to use the upstream name, and that
is rec-mode, there are also packages which break this convention
somewhere.  For instance, there are many packages which drop their
-mode suffix on ELPA or MELPA, in which we use the dropped suffix
convention, most notably emacs-org.

On a somewhat related note, due to a bug report from yours truly, rec-
mode has recently bumped its version.  There is no tag yet and it's not
available through ELPA (though it is already in their git), but the
latest version as of writing is 1.8.2.  If you still insist on the
rename, I suggest doing a series, which
1. bumps the version and changes the origin,
2. moves the package to emacs-xyz (optional), and
3. does the rename,
once we have an official 1.8.2 tarball from somewhere, or otherwise
reference the version-bumping commit. 
In any case, we shouldn't add noise such as re-exporting the package
from a different module.

Cheers





^ permalink raw reply	[flat|nested] 10+ messages in thread

* [bug#52439] [PATCH] gnu: emacs-recutils: Update to 1.8.2-0.058dbe4.
  2021-12-11 19:39 [bug#52439] [PATCH 1/2] gnu: Add emacs-rec-mode Morgan.J.Smith
  2021-12-11 19:46 ` [bug#52439] [PATCH 2/2] gnu: emacs-recutils: Deprecate in favor of emacs-rec-mode Morgan.J.Smith
  2021-12-11 22:35 ` [bug#52439] [PATCH 1/2] gnu: Add emacs-rec-mode Liliana Marie Prikler
@ 2021-12-14  0:54 ` Morgan.J.Smith
  2021-12-14 19:36   ` Liliana Marie Prikler
  2 siblings, 1 reply; 10+ messages in thread
From: Morgan.J.Smith @ 2021-12-14  0:54 UTC (permalink / raw)
  To: liliana.prikler; +Cc: 52439, Morgan Smith

From: Morgan Smith <Morgan.J.Smith@outlook.com>

* gnu/packages/databases.scm (emacs-recutils): Update to 1.8.2-0.058dbe4.
[inherit]: Don't inherit from recutils
[source]: Add
[native-inputs]: Add texinfo
[home-page]: Add
[arguments]: Add make-info phase
[license]: Add
---

Liliana Marie Prikler <liliana.prikler@gmail.com> writes:
> For the record, the convention is usually to use the upstream name,
> *but that's not always reasonable*.

I am very tempted to put rec-mode in the upstream-name package
properties but I feel like that is not at all what that property is
intended for.

Thanks for being open to a name change but I'm starting to feel like
maybe I'm just being stubborn and there would be very little benefit
:P.  Especially since you've raised some very good points.

Also thanks for reporting that bug! I had experienced it but didn't
bother to debug it :P

 gnu/packages/databases.scm | 49 +++++++++++++++++++++++++-------------
 1 file changed, 33 insertions(+), 16 deletions(-)

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 7cff0f99c5..c0b714fc37 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -141,6 +141,7 @@ (define-module (gnu packages databases)
   #:use-module (gnu packages sqlite)
   #:use-module (gnu packages tcl)
   #:use-module (gnu packages terminals)
+  #:use-module (gnu packages texinfo)
   #:use-module (gnu packages textutils)
   #:use-module (gnu packages time)
   #:use-module (gnu packages tls)
@@ -1384,24 +1385,40 @@ (define-public recutils
     (home-page "https://www.gnu.org/software/recutils/")))
 
 (define-public emacs-recutils
-  (package
-    (inherit recutils)
-    (name "emacs-recutils")
-    (build-system emacs-build-system)
-    (arguments
-     '(#:phases
-       (modify-phases %standard-phases
-         (add-after 'unpack 'change-directory
-           (lambda _
-             (chdir "etc")
-             #t)))))
-    (native-inputs '())
-    (inputs '())
-    (synopsis "Emacs mode for working with recutils database files")
-    (description "This package provides an Emacs major mode @code{rec-mode}
+  ;; Untagged release
+  (let ((commit "058dbe420e63bd460c0c8d09dd97ab55bc45533a")
+        (revision "0"))
+    (package
+      (name "emacs-recutils")
+      (version (git-version "1.8.2" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://git.savannah.gnu.org/git/recutils/rec-mode.git")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "1qy8wrj14nzxzr6zvs4574v54jlhqszm1ybgq4a8pavkx2ay4c7r"))
+                (modules '((guix build utils)))
+                (snippet '(begin (delete-file "rec-mode.info")))))
+      (arguments
+       '(#:phases
+         (modify-phases %standard-phases
+           (add-before 'install 'make-info
+             (lambda _
+               (invoke "makeinfo" "--no-split"
+                       "-o" "rec-mode.info" "rec-mode.texi"))))))
+      (native-inputs
+       `(("texinfo" ,texinfo)))
+      (build-system emacs-build-system)
+      (home-page "https://www.gnu.org/software/recutils/")
+      (synopsis "Emacs mode for working with recutils database files")
+      (description "This package provides an Emacs major mode @code{rec-mode}
 for working with GNU Recutils text-based, human-editable databases.  It
 supports editing, navigation, and querying of recutils database files
-including field and record folding.")))
+including field and record folding.")
+      (license license:gpl3+))))
 
 (define-public rocksdb
   (package
--
2.34.0





^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [bug#52439] [PATCH] gnu: emacs-recutils: Update to 1.8.2-0.058dbe4.
  2021-12-14  0:54 ` [bug#52439] [PATCH] gnu: emacs-recutils: Update to 1.8.2-0.058dbe4 Morgan.J.Smith
@ 2021-12-14 19:36   ` Liliana Marie Prikler
  2021-12-14 20:34     ` bug#52439: " Liliana Marie Prikler
  0 siblings, 1 reply; 10+ messages in thread
From: Liliana Marie Prikler @ 2021-12-14 19:36 UTC (permalink / raw)
  To: Morgan.J.Smith; +Cc: 52439

Hi,

Note, that you don't need to clean any of this up; I'll do it myself
before pushing.  However, due to the recent c-u-f merge and the fact
that I only have limited time per day to actually push things, I wanted
to give some feedback ahead of time for the sake of transparency.

Am Montag, den 13.12.2021, 19:54 -0500 schrieb
Morgan.J.Smith@outlook.com:
> From: Morgan Smith <Morgan.J.Smith@outlook.com>
> 
> * gnu/packages/databases.scm (emacs-recutils): Update to 1.8.2-
> 0.058dbe4.
> [inherit]: Don't inherit from recutils
> [source]: Add
> [native-inputs]: Add texinfo
> [home-page]: Add
> [arguments]: Add make-info phase
> [license]: Add
> ---
Generally, we use full sentences here.
> 
> Liliana Marie Prikler <liliana.prikler@gmail.com> writes:
> > For the record, the convention is usually to use the upstream name,
> > *but that's not always reasonable*.
> 
> I am very tempted to put rec-mode in the upstream-name package
> properties but I feel like that is not at all what that property is
> intended for.
You *can* actually use upstream-name if you use elpa as source.  That
would have the effect of making `guix refresh' work as intended.  

> Thanks for being open to a name change but I'm starting to feel like
> maybe I'm just being stubborn and there would be very little benefit
> :P.  Especially since you've raised some very good points.
Uhm, actually I'm just as stubborn in not wanting another deprecated-
package :P

>  gnu/packages/databases.scm | 49 +++++++++++++++++++++++++-----------
> --
>  1 file changed, 33 insertions(+), 16 deletions(-)
> 
> diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
> index 7cff0f99c5..c0b714fc37 100644
> --- a/gnu/packages/databases.scm
> +++ b/gnu/packages/databases.scm
> @@ -141,6 +141,7 @@ (define-module (gnu packages databases)
>    #:use-module (gnu packages sqlite)
>    #:use-module (gnu packages tcl)
>    #:use-module (gnu packages terminals)
> +  #:use-module (gnu packages texinfo)
>    #:use-module (gnu packages textutils)
>    #:use-module (gnu packages time)
>    #:use-module (gnu packages tls)
> @@ -1384,24 +1385,40 @@ (define-public recutils
>      (home-page "https://www.gnu.org/software/recutils/")))
>  
>  (define-public emacs-recutils
> -  (package
> -    (inherit recutils)
> -    (name "emacs-recutils")
> -    (build-system emacs-build-system)
> -    (arguments
> -     '(#:phases
> -       (modify-phases %standard-phases
> -         (add-after 'unpack 'change-directory
> -           (lambda _
> -             (chdir "etc")
> -             #t)))))
> -    (native-inputs '())
> -    (inputs '())
> -    (synopsis "Emacs mode for working with recutils database files")
> -    (description "This package provides an Emacs major mode
> @code{rec-mode}
> +  ;; Untagged release
> +  (let ((commit "058dbe420e63bd460c0c8d09dd97ab55bc45533a")
> +        (revision "0"))
> +    (package
> +      (name "emacs-recutils")
> +      (version (git-version "1.8.2" revision commit))
Following the discussion over at rec-mode, it appears as though ELPA is
seen as some source of truth.  That is a bit disappointing to us
Guixers, given the lz vs. uncompressed archive thing ELPA has, but I
think we can point to ELPA here while ensuring that we also push this
to SWH.
> +      (source (origin
> +                (method git-fetch)
> +                (uri (git-reference
> +                      (url "
> https://git.savannah.gnu.org/git/recutils/rec-mode.git")
> +                      (commit commit)))
> +                (file-name (git-file-name name version))
> +                (sha256
> +                 (base32
> +                  "1qy8wrj14nzxzr6zvs4574v54jlhqszm1ybgq4a8pavkx2ay4
> c7r"))
> +                (modules '((guix build utils)))
> +                (snippet '(begin (delete-file "rec-mode.info")))))
> +      (arguments
> +       '(#:phases
> +         (modify-phases %standard-phases
> +           (add-before 'install 'make-info
> +             (lambda _
> +               (invoke "makeinfo" "--no-split"
> +                       "-o" "rec-mode.info" "rec-mode.texi"))))))
> +      (native-inputs
> +       `(("texinfo" ,texinfo)))
> +      (build-system emacs-build-system)
It's always a good idea to put build-system before arguments.
> +      (home-page "https://www.gnu.org/software/recutils/")
> +      (synopsis "Emacs mode for working with recutils database
> files")
> +      (description "This package provides an Emacs major mode
> @code{rec-mode}
>  for working with GNU Recutils text-based, human-editable
> databases.  It
>  supports editing, navigation, and querying of recutils database
> files
> -including field and record folding.")))
> +including field and record folding.")
> +      (license license:gpl3+))))
Otherwise LGTM.  Again, I'll push this with adjustments to the above
soon™, but can't promise a fix date yet.

Cheers





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#52439: [PATCH] gnu: emacs-recutils: Update to 1.8.2-0.058dbe4.
  2021-12-14 19:36   ` Liliana Marie Prikler
@ 2021-12-14 20:34     ` Liliana Marie Prikler
  0 siblings, 0 replies; 10+ messages in thread
From: Liliana Marie Prikler @ 2021-12-14 20:34 UTC (permalink / raw)
  To: Morgan.J.Smith; +Cc: 52439-done

Am Dienstag, den 14.12.2021, 20:36 +0100 schrieb Liliana Marie Prikler:
> Hi,
> 
> Note, that you don't need to clean any of this up; I'll do it myself
> before pushing.  However, due to the recent c-u-f merge and the fact
> that I only have limited time per day to actually push things, I
> wanted to give some feedback ahead of time for the sake of
> transparency.
Sorry for the noise, it seems my pull finished quicker than expected. 
I also followed up with the name change + deprecation, since handling
of upstream-name is not in the ELPA importer.

Thanks and enjoy Guix 1.4.0





^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-12-14 20:36 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-11 19:39 [bug#52439] [PATCH 1/2] gnu: Add emacs-rec-mode Morgan.J.Smith
2021-12-11 19:46 ` [bug#52439] [PATCH 2/2] gnu: emacs-recutils: Deprecate in favor of emacs-rec-mode Morgan.J.Smith
2021-12-11 22:35 ` [bug#52439] [PATCH 1/2] gnu: Add emacs-rec-mode Liliana Marie Prikler
2021-12-12  0:09   ` Morgan Smith
2021-12-12  0:39     ` Liliana Marie Prikler
2021-12-12  1:15       ` Morgan Smith
2021-12-13 19:39         ` Liliana Marie Prikler
2021-12-14  0:54 ` [bug#52439] [PATCH] gnu: emacs-recutils: Update to 1.8.2-0.058dbe4 Morgan.J.Smith
2021-12-14 19:36   ` Liliana Marie Prikler
2021-12-14 20:34     ` bug#52439: " Liliana Marie Prikler

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.