GNU bug report logs -
#37284
[PATCH] added gnu/packages/fmit.scm (Free Musical Instrument Tuner)
Previous Next
Reported by: raingloom <raingloom <at> protonmail.com>
Date: Mon, 2 Sep 2019 16:24:01 UTC
Severity: normal
Tags: patch
Done: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 37284 in the body.
You can then email your comments to 37284 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#37284
; Package
guix-patches
.
(Mon, 02 Sep 2019 16:24:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
raingloom <raingloom <at> protonmail.com>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Mon, 02 Sep 2019 16:24:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/fmit.scm: created
---
gnu/packages/fmit.scm | 64 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 64 insertions(+)
create mode 100644 gnu/packages/fmit.scm
diff --git a/gnu/packages/fmit.scm b/gnu/packages/fmit.scm
new file mode 100644
index 0000000000..2db5b1ca25
--- /dev/null
+++ b/gnu/packages/fmit.scm
@@ -0,0 +1,64 @@
+(define-module (gnu packages fmit)
+ #:use-module (guix packages)
+ #:use-module (guix git-download)
+ #:use-module (guix build-system gnu)
+ #:use-module (guix licenses)
+ #:use-module (gnu packages qt)
+ #:use-module (gnu packages gnome)
+ #:use-module (gnu packages algebra)
+ #:use-module (gnu packages audio)
+ #:use-module (gnu packages glib)
+ #:use-module (gnu packages linux)
+ #:use-module (gnu packages gettext))
+
+(define-public fmit
+ (package
+ (name "fmit")
+ (version "1.2.6")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/gillesdegottex/fmit/")
+ (commit (string-append "v" version))))
+ (sha256 (base32 "03nzkig5mw2rqwhwmg0qvc5cnk9bwh2wp13jh0mdrr935w0587mz"))))
+ (build-system gnu-build-system)
+ (arguments
+ '(#:make-flags (let ((out (assoc-ref %outputs "out"))) (list (string-append "PREFIX=" out) (string-append "PREFIXSHORTCUT=" out)))
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'configure)
+ (add-before 'build 'qmake
+ (lambda _
+ (let ((out (assoc-ref %outputs "out"))) (invoke "qmake" "fmit.pro" (string-append "PREFIX=" out) (string-append "PREFIXSHORTCUT=" out) "CONFIG+=acs_qt acs_alsa acs_jack acs_portaudio"))))
+ (add-after 'install 'wrap-executable
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (wrap-program (string-append out "/bin/fmit")
+ `("QT_PLUGIN_PATH" ":" prefix
+ ,(map (lambda (label)
+ (string-append (assoc-ref inputs label)
+ "/lib/qt5/plugins"))
+ '("qtbase" "qtmultimedia" "qtsvg")))
+ `("QML2_IMPORT_PATH" ":" prefix
+ ,(map (lambda (label)
+ (string-append (assoc-ref inputs label)
+ "/lib/qt5/qml"))
+ '("qtmultimedia"))))
+ #t))))))
+ (inputs
+ `(("fftw" ,fftw)
+ ("portaudio" ,portaudio)
+ ("qtmultimedia" ,qtmultimedia)
+ ("qtsvg" ,qtsvg)
+ ("alsa-lib" ,alsa-lib)
+ ("jack" ,jack-1)
+ ("qtbase" ,qtbase)))
+ (native-inputs
+ `(("itstool" ,itstool)
+ ("qttools" ,qttools)
+ ("hicolor-icon-theme" ,hicolor-icon-theme)
+ ("gettext" ,gnu-gettext)))
+ (synopsis "Free Musical Instrument Tuner")
+ (description "FMIT is a graphical utility for tuning musical instruments, with error and volume history, and advanced features")
+ (home-page "http://gillesdegottex.github.io/fmit/")
+ (license gpl3+)))
--
2.23.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#37284
; Package
guix-patches
.
(Mon, 02 Sep 2019 17:30:02 GMT)
Full text and
rfc822 format available.
Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):
Hello,
raingloom via Guix-patches via <guix-patches <at> gnu.org> writes:
> * gnu/packages/fmit.scm: created
Thank you!
> ---
> gnu/packages/fmit.scm | 64 +++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 64 insertions(+)
> create mode 100644 gnu/packages/fmit.scm
>
> diff --git a/gnu/packages/fmit.scm b/gnu/packages/fmit.scm
Is there any reason to create a new module instead of putting the
package into "music.scm"?
> + (arguments
> + '(#:make-flags (let ((out (assoc-ref %outputs "out"))) (list (string-append "PREFIX=" out) (string-append "PREFIXSHORTCUT=" out)))
This line is too long. Moreover, I think "PREFIX=" is not necessary, as
Guix adds it automatically. I'm not sure about "PREFIXSHORTCUT=", tho.
It seems PREFIX and PREFIXSHORTCUT are used in qmake, not in make, so it
may be possible to remove the whole #:make-flags altogether. WDYT?
> + #:phases
> + (modify-phases %standard-phases
> + (delete 'configure)
Indentation looks wrong. Could you take care about it?
> + (add-before 'build 'qmake
> + (lambda _
> + (let ((out (assoc-ref %outputs "out"))) (invoke "qmake" "fmit.pro"
> (string-append "PREFIX=" out) (string-append "PREFIXSHORTCUT=" out)
> "CONFIG+=acs_qt acs_alsa acs_jack acs_portaudio"))))
The line is too long. I suggest:
(let ((out (assoc-ref %outputs "out")))
(invoke "qmake"
"fmit.pro"
(string-append "PREFIX=" out)
(string-append "PREFIXSHORTCUT=" out)
"CONFIG+=acs_qt acs_alsa acs_jack acs_portaudio"))
> + (inputs
> + `(("fftw" ,fftw)
> + ("portaudio" ,portaudio)
> + ("qtmultimedia" ,qtmultimedia)
> + ("qtsvg" ,qtsvg)
> + ("alsa-lib" ,alsa-lib)
> + ("jack" ,jack-1)
> + ("qtbase" ,qtbase)))
> + (native-inputs
> + `(("itstool" ,itstool)
> + ("qttools" ,qttools)
> + ("hicolor-icon-theme" ,hicolor-icon-theme)
> + ("gettext" ,gnu-gettext)))
Could you re-order (native-)inputs alphabetically?
> + (synopsis "Free Musical Instrument Tuner")
I understand Free is the F from FMIT, but, as a synopsis, I don't think
it brings much value. Maybe "Musical instrument tuner" is enough?
> + (description "FMIT is a graphical utility for tuning musical instruments, with error and volume history, and advanced features")
> + (home-page "http://gillesdegottex.github.io/fmit/")
Prefer https:// here.
> + (license gpl3+)))
If you move it to music.scm, I believe it should be prefixed with
license:
Also, the license seems wrong, it should be (list license:gpl2+
license:lgpl2.1) with a comment explaining that most of the code is
under GPL2+, but some abstract or helper classes are under LGPL2.1.
Regards,
--
Nicolas Goaziou
Information forwarded
to
guix-patches <at> gnu.org
:
bug#37284
; Package
guix-patches
.
(Mon, 02 Sep 2019 17:30:03 GMT)
Full text and
rfc822 format available.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#37284
; Package
guix-patches
.
(Tue, 03 Sep 2019 01:54:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 37284 <at> debbugs.gnu.org (full text, mbox):
Thanks for the suggestions!
How about this attempt?
Also, is this how i reply to an issue? I didn't see your email in my inbox (yet?), only on the web interface. Do I also have to subscribe to the guix-patches mailing list?
---
gnu/packages/music.scm | 59 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 59 insertions(+)
diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index d4aaecc1e2..a9770f4f16 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -4483,3 +4483,62 @@ discard bad quality ones.
controller.")
(home-page "https://github.com/charlesfleche/lpd8editor")
(license license:expat)))
+
+(define-public fmit
+ (package
+ (name "fmit")
+ (version "1.2.6")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/gillesdegottex/fmit/")
+ (commit (string-append "v" version))))
+ (sha256 (base32 "03nzkig5mw2rqwhwmg0qvc5cnk9bwh2wp13jh0mdrr935w0587mz"))))
+ (build-system gnu-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (delete 'configure)
+ (add-before 'build 'qmake
+ (lambda _
+ (let ((out (assoc-ref %outputs "out")))
+ (invoke "qmake"
+ "fmit.pro"
+ (string-append "PREFIX=" out)
+ (string-append "PREFIXSHORTCUT=" out)
+ "CONFIG+=acs_qt acs_alsa acs_jack acs_portaudio"))))
+ (add-after 'install 'wrap-executable
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (wrap-program (string-append out "/bin/fmit")
+ `("QT_PLUGIN_PATH" ":" prefix
+ ,(map (lambda (label)
+ (string-append (assoc-ref inputs label)
+ "/lib/qt5/plugins"))
+ '("qtbase" "qtmultimedia" "qtsvg")))
+ `("QML2_IMPORT_PATH" ":" prefix
+ ,(map (lambda (label)
+ (string-append (assoc-ref inputs label)
+ "/lib/qt5/qml"))
+ '("qtmultimedia"))))
+ #t))))))
+ (inputs
+ `(("fftw" ,fftw)
+ ("portaudio" ,portaudio)
+ ("qtmultimedia" ,qtmultimedia)
+ ("qtsvg" ,qtsvg)
+ ("alsa-lib" ,alsa-lib)
+ ("jack" ,jack-1)
+ ("qtbase" ,qtbase)))
+ (native-inputs
+ `(("gettext" ,gnu-gettext)
+ ("hicolor-icon-theme" ,hicolor-icon-theme)
+ ("itstool" ,itstool)
+ ("qttools" ,qttools)))
+ (synopsis "Musical Instrument Tuner")
+ (description
+ "FMIT is a graphical utility for tuning musical instruments,
+with error and volume history, and advanced features")
+ (home-page "https://gillesdegottex.github.io/fmit/")
+ ;; most of the code is under GPL2+, but some abstract or helper classes are under LGPL2.1
+ (license (list license:gpl2+ license:lgpl2.1))))
--
2.23.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#37284
; Package
guix-patches
.
(Wed, 04 Sep 2019 16:02:05 GMT)
Full text and
rfc822 format available.
Message #17 received at 37284 <at> debbugs.gnu.org (full text, mbox):
Hello,
raingloom <raingloom <at> protonmail.com> writes:
> Thanks for the suggestions!
> How about this attempt?
Better, indeed. I have a couple more comments, if you don't mind.
I think I will be able to commit it at next iteration.
> Also, is this how i reply to an issue?
Like you did.
> Do I also have to subscribe to the guix-patches mailing list?
I don't think so.
> ---
> gnu/packages/music.scm | 59 ++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 59 insertions(+)
>
> diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
> index d4aaecc1e2..a9770f4f16 100644
> --- a/gnu/packages/music.scm
> +++ b/gnu/packages/music.scm
> @@ -4483,3 +4483,62 @@ discard bad quality ones.
> controller.")
> (home-page "https://github.com/charlesfleche/lpd8editor")
> (license license:expat)))
Could you add a proper commit message to the patch ? It would look like:
* gnu/packages/music.scm (fmit): New variable.
Also, could you add yourself to the copyright line at the top of the
"music.scm" file?
> +(define-public fmit
> + (package
> + (name "fmit")
> + (version "1.2.6")
> + (source (origin
> + (method git-fetch)
> + (uri (git-reference
> + (url "https://github.com/gillesdegottex/fmit/")
> + (commit (string-append "v" version))))
You need to add the following line here:
(file-name (git-file-name name version))
> + (sha256 (base32 "03nzkig5mw2rqwhwmg0qvc5cnk9bwh2wp13jh0mdrr935w0587mz"))))
This line is too long, you ought to use
(sha256
(base32
"..."))
> + (inputs
> + `(("fftw" ,fftw)
> + ("portaudio" ,portaudio)
> + ("qtmultimedia" ,qtmultimedia)
> + ("qtsvg" ,qtsvg)
> + ("alsa-lib" ,alsa-lib)
> + ("jack" ,jack-1)
> + ("qtbase" ,qtbase)))
> + (native-inputs
> + `(("gettext" ,gnu-gettext)
> + ("hicolor-icon-theme" ,hicolor-icon-theme)
> + ("itstool" ,itstool)
> + ("qttools" ,qttools)))
You forgot to re-order inputs alphabetically.
> + (synopsis "Musical Instrument Tuner")
I don't think title case is warranted here. "Musical instrument tuner"
is enough, IMO.
> + (description
> + "FMIT is a graphical utility for tuning musical instruments,
> +with error and volume history, and advanced features")
Please move the string so that it starts on the same line as
"(description ". Also, it is missing a final dot.
> + (home-page "https://gillesdegottex.github.io/fmit/")
> + ;; most of the code is under GPL2+, but some abstract or helper
> classes are under LGPL2.1
;; Most of ... under LGPL2.1.
i.e., missing capital and the final full stop.
Could you send an updated patch? Thank you!
Regards,
--
Nicolas Goaziou
Information forwarded
to
guix-patches <at> gnu.org
:
bug#37284
; Package
guix-patches
.
(Sat, 07 Sep 2019 22:14:01 GMT)
Full text and
rfc822 format available.
Message #20 received at 37284 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hey!
Updated again. Is sending it as an attachment fine?
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Wednesday, September 4, 2019 4:01 PM, Nicolas Goaziou <mail <at> nicolasgoaziou.fr> wrote:
> Hello,
>
> raingloom raingloom <at> protonmail.com writes:
>
> > Thanks for the suggestions!
> > How about this attempt?
>
> Better, indeed. I have a couple more comments, if you don't mind.
> I think I will be able to commit it at next iteration.
>
> > Also, is this how i reply to an issue?
>
> Like you did.
>
> > Do I also have to subscribe to the guix-patches mailing list?
>
> I don't think so.
>
> > gnu/packages/music.scm | 59 ++++++++++++++++++++++++++++++++++++++++++
> > 1 file changed, 59 insertions(+)
> > diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
> > index d4aaecc1e2..a9770f4f16 100644
> > --- a/gnu/packages/music.scm
> > +++ b/gnu/packages/music.scm
> > @@ -4483,3 +4483,62 @@ discard bad quality ones.
> > controller.")
> > (home-page "https://github.com/charlesfleche/lpd8editor")
> > (license license:expat)))
>
> Could you add a proper commit message to the patch ? It would look like:
>
> - gnu/packages/music.scm (fmit): New variable.
>
> Also, could you add yourself to the copyright line at the top of the
> "music.scm" file?
>
>
> > +(define-public fmit
> >
> > - (package
> > - (name "fmit")
> > - (version "1.2.6")
> > - (source (origin
> > - (method git-fetch)
> >
> >
> > - (uri (git-reference
> >
> >
> > - (url "https://github.com/gillesdegottex/fmit/")
> >
> >
> > - (commit (string-append "v" version))))
> >
> >
>
> You need to add the following line here:
>
> (file-name (git-file-name name version))
>
> > - (sha256 (base32 "03nzkig5mw2rqwhwmg0qvc5cnk9bwh2wp13jh0mdrr935w0587mz"))))
> >
> >
>
> This line is too long, you ought to use
>
> (sha256
> (base32
> "..."))
>
> > - (inputs
> > - `(("fftw" ,fftw)
> >
> >
> > - ("portaudio" ,portaudio)
> >
> >
> > - ("qtmultimedia" ,qtmultimedia)
> >
> >
> > - ("qtsvg" ,qtsvg)
> >
> >
> > - ("alsa-lib" ,alsa-lib)
> >
> >
> > - ("jack" ,jack-1)
> >
> >
> > - ("qtbase" ,qtbase)))
> >
> >
> > - (native-inputs
> > - `(("gettext" ,gnu-gettext)
> >
> >
> > - ("hicolor-icon-theme" ,hicolor-icon-theme)
> >
> >
> > - ("itstool" ,itstool)
> >
> >
> > - ("qttools" ,qttools)))
> >
> >
>
> You forgot to re-order inputs alphabetically.
>
> > - (synopsis "Musical Instrument Tuner")
>
> I don't think title case is warranted here. "Musical instrument tuner"
> is enough, IMO.
>
> > - (description
> > - "FMIT is a graphical utility for tuning musical instruments,
> >
> >
> >
> > +with error and volume history, and advanced features")
>
> Please move the string so that it starts on the same line as
> "(description ". Also, it is missing a final dot.
>
> > - (home-page "https://gillesdegottex.github.io/fmit/")
> > - ;; most of the code is under GPL2+, but some abstract or helper
> > classes are under LGPL2.1
> >
>
> ;; Most of ... under LGPL2.1.
>
> i.e., missing capital and the final full stop.
>
> Could you send an updated patch? Thank you!
>
> Regards,
>
> ---------------------------------------------------------------------------------------------------------------------------------------
>
> Nicolas Goaziou
[0001-gnu-packages-music.scm-fmit-New-variable.patch (text/x-patch, attachment)]
Reply sent
to
Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
:
You have taken responsibility.
(Sun, 08 Sep 2019 09:18:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
raingloom <raingloom <at> protonmail.com>
:
bug acknowledged by developer.
(Sun, 08 Sep 2019 09:18:02 GMT)
Full text and
rfc822 format available.
Message #25 received at 37284-done <at> debbugs.gnu.org (full text, mbox):
Hello,
raingloom <raingloom <at> protonmail.com> writes:
> Updated again. Is sending it as an attachment fine?
Well, oddly, it seems that your update addressed only one of my
suggestions. So, I applied your patch with the following changes:
- fixed the commit message,
- added a copyright line,
- added the (file-name ...) line,
- split the (sha256 ...) line,
- re-ordered the inputs,
- changed case in synopsis,
- fixed typographic mistakes in the description and the licenses
comments.
Let me know if something is wrong, in particular the copyright line,
which I add to guess.
Thank you for your contribution!
Regards,
--
Nicolas Goaziou
Information forwarded
to
guix-patches <at> gnu.org
:
bug#37284
; Package
guix-patches
.
(Sun, 08 Sep 2019 09:23:01 GMT)
Full text and
rfc822 format available.
Message #28 received at 37284 <at> debbugs.gnu.org (full text, mbox):
> 37284: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=37284
> GNU Bug Tracking System
> Contact help-debbugs <at> gnu.org with problems
> Hello,
>
> raingloom raingloom <at> protonmail.com writes:
>
> > Updated again. Is sending it as an attachment fine?
>
> Well, oddly, it seems that your update addressed only one of my
> suggestions.
That's be weird indeed, I'm pretty sure I went through all of them.... ah. Ahh heck. Forgot to commit. >_>
Git is confusing.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#37284
; Package
guix-patches
.
(Sun, 08 Sep 2019 09:26:02 GMT)
Full text and
rfc822 format available.
Message #31 received at 37284-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Yep, looks like I _thought_ I used `git commit -a --amend` but I forgot the -a. *facepalm*
Here is what I actually wanted to send.
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Sunday, September 8, 2019 9:17 AM, Nicolas Goaziou <mail <at> nicolasgoaziou.fr> wrote:
> Hello,
>
> raingloom raingloom <at> protonmail.com writes:
>
> > Updated again. Is sending it as an attachment fine?
>
> Well, oddly, it seems that your update addressed only one of my
> suggestions. So, I applied your patch with the following changes:
>
> - fixed the commit message,
> - added a copyright line,
> - added the (file-name ...) line,
> - split the (sha256 ...) line,
> - re-ordered the inputs,
> - changed case in synopsis,
> - fixed typographic mistakes in the description and the licenses
> comments.
>
> Let me know if something is wrong, in particular the copyright line,
> which I add to guess.
>
> Thank you for your contribution!
>
> Regards,
>
> --
> Nicolas Goaziou
>
[0001-gnu-packages-music.scm-fmit-New-variable.patch (text/x-patch, attachment)]
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 06 Oct 2019 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 197 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.