all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#40445] gnu: gsm: Update to 1.0.19.
@ 2020-04-05  7:07 Raghav Gururajan
  2020-04-05  9:40 ` Mathieu Othacehe
  2020-04-05  9:45 ` Raghav Gururajan
  0 siblings, 2 replies; 12+ messages in thread
From: Raghav Gururajan @ 2020-04-05  7:07 UTC (permalink / raw)
  To: 40445

[-- Attachment #1: Type: text/plain, Size: 2 bytes --]



[-- Attachment #2: update-gsm.patch --]
[-- Type: application/octet-stream, Size: 1896 bytes --]

From 62dfeb5d801762ce5824d03e15470ed3ed6ce2c2 Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <raghavgururajan@disroot.org>
Date: Sun, 5 Apr 2020 03:04:32 -0400
Subject: [PATCH] gnu: gsm: Update to 1.0.19.

* gnu/packages/audio.scm (gsm): Update to 1.0.19.
---
 gnu/packages/audio.scm | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index 6d29184592..e8d48f49d0 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -3343,7 +3343,7 @@ code, used in @code{libtoxcore}.")
 (define-public gsm
   (package
     (name "gsm")
-    (version "1.0.18")
+    (version "1.0.19")
     (source
      (origin
        (method url-fetch)
@@ -3352,18 +3352,22 @@ code, used in @code{libtoxcore}.")
                        "-" version ".tar.gz"))
        (sha256
         (base32
-         "041amvpz8cvxykl3pwqldrzxligmmzcg8ncdnxbg32rlqf3q1xh4"))))
+         "1xkha9ss5g5qnfaybi8il0mcvp8knwg9plgh8404vh58d0pna0s9"))))
     (build-system gnu-build-system)
     (arguments
      `(#:test-target "tst"
-       #:make-flags '("INSTALL_ROOT=%output"
-                      "CCFLAGS=-fPIC \
--c -O2 -DNeedFunctionPrototypes=1 -Wall -Wno-comment") ;default options
+       #:make-flags
+       (list
+        ;; Added -fPIC with other default options.
+        "CCFLAGS=-fPIC -c -O2 -DNeedFunctionPrototypes=1 -Wall -Wno-comment")
        #:phases
        (modify-phases %standard-phases
          (add-before 'install 'pre-install
            (lambda _
              (let ((out (assoc-ref %outputs "out")))
+               (substitute* "Makefile"
+                 (("INSTALL_ROOT\t=")
+                  (string-append "INSTALL_ROOT\t=\t" out)))
                (mkdir-p (string-append out "/inc"))
                (mkdir-p (string-append out "/man"))
                (mkdir-p (string-append out "/man/man1"))
-- 
2.26.0


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

* [bug#40445] gnu: gsm: Update to 1.0.19.
  2020-04-05  7:07 [bug#40445] gnu: gsm: Update to 1.0.19 Raghav Gururajan
@ 2020-04-05  9:40 ` Mathieu Othacehe
  2020-04-05  9:45 ` Raghav Gururajan
  1 sibling, 0 replies; 12+ messages in thread
From: Mathieu Othacehe @ 2020-04-05  9:40 UTC (permalink / raw)
  To: Raghav Gururajan; +Cc: 40445


Hello Raghav,

> +       #:make-flags
> +       (list
> +        ;; Added -fPIC with other default options.
> +        "CCFLAGS=-fPIC -c -O2 -DNeedFunctionPrototypes=1 -Wall -Wno-comment")

I wonder if we need all those options, the package seems to build fine
without them. Could you have a look?

Thanks,

Mathieu

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

* [bug#40445] gnu: gsm: Update to 1.0.19.
  2020-04-05  7:07 [bug#40445] gnu: gsm: Update to 1.0.19 Raghav Gururajan
  2020-04-05  9:40 ` Mathieu Othacehe
@ 2020-04-05  9:45 ` Raghav Gururajan
  2020-04-05 10:22   ` Mathieu Othacehe
                     ` (3 more replies)
  1 sibling, 4 replies; 12+ messages in thread
From: Raghav Gururajan @ 2020-04-05  9:45 UTC (permalink / raw)
  To: Mathieu Othacehe; +Cc: 40445

Hi Mathieu!

>> + #:make-flags
>> + (list
>> + ;; Added -fPIC with other default options.
>> + "CCFLAGS=-fPIC -c -O2 -DNeedFunctionPrototypes=1 -Wall -Wno-comment")
> 
> I wonder if we need all those options, the package seems to build fine
> without them. Could you have a look?

Yes, Maxim and I, updated these options, to use libgsm in mediastreamer, as a part of linphone packaging. :-)

Btw, currently the gsm package is in unusable state, after the commit "74c7f367daa554cedeb5f02a00d1cd02acf1584b".

Regards,
RG.

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

* [bug#40445] gnu: gsm: Update to 1.0.19.
  2020-04-05  9:45 ` Raghav Gururajan
@ 2020-04-05 10:22   ` Mathieu Othacehe
  2020-04-05 10:26   ` Raghav Gururajan
                     ` (2 subsequent siblings)
  3 siblings, 0 replies; 12+ messages in thread
From: Mathieu Othacehe @ 2020-04-05 10:22 UTC (permalink / raw)
  To: Raghav Gururajan; +Cc: 40445


> Yes, Maxim and I, updated these options, to use libgsm in mediastreamer, as a part of linphone packaging. :-)

Ok, I see. Maybe it would be preferable to find a way to add "-fPIC" to
CCFLAGS without having to repeat all the other options that are already
present in the Makefile:

--8<---------------cut here---------------start------------->8---
CCFLAGS 	= -c -O2 -DNeedFunctionPrototypes=1 -Wall -Wno-comment
--8<---------------cut here---------------end--------------->8---

Adding a new 'add-fpic-ccflag' phase could be an option?

Thanks,

Mathieu

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

* [bug#40445] gnu: gsm: Update to 1.0.19.
  2020-04-05  9:45 ` Raghav Gururajan
  2020-04-05 10:22   ` Mathieu Othacehe
@ 2020-04-05 10:26   ` Raghav Gururajan
  2020-04-05 10:28   ` Raghav Gururajan
  2020-04-05 17:38   ` maxim.cournoyer
  3 siblings, 0 replies; 12+ messages in thread
From: Raghav Gururajan @ 2020-04-05 10:26 UTC (permalink / raw)
  To: Mathieu Othacehe; +Cc: 40445

Hi Mathieu!

> Ok, I see. Maybe it would be preferable to find a way to add "-fPIC" to
> CCFLAGS without having to repeat all the other options that are already
> present in the Makefile:
> 
> --8<---------------cut here---------------start------------->8---
> CCFLAGS = -c -O2 -DNeedFunctionPrototypes=1 -Wall -Wno-comment
> --8<---------------cut here---------------end--------------->8---
> 
> Adding a new 'add-fpic-ccflag' phase could be an option?

We can do that too. But this seems simple and less messy :-)

Regards,
RG.

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

* [bug#40445] gnu: gsm: Update to 1.0.19.
  2020-04-05  9:45 ` Raghav Gururajan
  2020-04-05 10:22   ` Mathieu Othacehe
  2020-04-05 10:26   ` Raghav Gururajan
@ 2020-04-05 10:28   ` Raghav Gururajan
  2020-04-05 10:33     ` Mathieu Othacehe
                       ` (3 more replies)
  2020-04-05 17:38   ` maxim.cournoyer
  3 siblings, 4 replies; 12+ messages in thread
From: Raghav Gururajan @ 2020-04-05 10:28 UTC (permalink / raw)
  To: Mathieu Othacehe; +Cc: 40445

Hi Mathieu!

>> Ok, I see. Maybe it would be preferable to find a way to add "-fPIC" to
>> CCFLAGS without having to repeat all the other options that are already
>> present in the Makefile:
>> 
>> --8<---------------cut here---------------start------------->8---
>> CCFLAGS = -c -O2 -DNeedFunctionPrototypes=1 -Wall -Wno-comment
>> --8<---------------cut here---------------end--------------->8---
>> 
>> Adding a new 'add-fpic-ccflag' phase could be an option?
> 
> We can do that too. But this seems simple and less messy :-)

Also, I believe, the make-flag just overwrites that line in the source.

Regards,
RG.

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

* [bug#40445] gnu: gsm: Update to 1.0.19.
  2020-04-05 10:28   ` Raghav Gururajan
@ 2020-04-05 10:33     ` Mathieu Othacehe
  2020-04-05 10:37     ` Raghav Gururajan
                       ` (2 subsequent siblings)
  3 siblings, 0 replies; 12+ messages in thread
From: Mathieu Othacehe @ 2020-04-05 10:33 UTC (permalink / raw)
  To: Raghav Gururajan; +Cc: 40445


>> We can do that too. But this seems simple and less messy :-)
>
> Also, I believe, the make-flag just overwrites that line in the source.

Yes that's what it does. But if in a future release this package updates
its CCFLAGS list in the Makefile, we will have to update our own package
definition accordingly. That's why adding 'CCFLAGS += -fPIC' somewhere
seems safer to me.

Mathieu

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

* [bug#40445] gnu: gsm: Update to 1.0.19.
  2020-04-05 10:28   ` Raghav Gururajan
  2020-04-05 10:33     ` Mathieu Othacehe
@ 2020-04-05 10:37     ` Raghav Gururajan
  2020-04-05 10:52     ` Raghav Gururajan
  2020-04-05 10:53     ` Raghav Gururajan
  3 siblings, 0 replies; 12+ messages in thread
From: Raghav Gururajan @ 2020-04-05 10:37 UTC (permalink / raw)
  To: Mathieu Othacehe; +Cc: 40445

> Yes that's what it does. But if in a future release this package updates
> its CCFLAGS list in the Makefile, we will have to update our own package
> definition accordingly. That's why adding 'CCFLAGS += -fPIC' somewhere
> seems safer to me.

Ah, gotcha! Hmm, I don't know how to do that through. I'll have to look into code base for examples.

Regards,
RG.

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

* [bug#40445] gnu: gsm: Update to 1.0.19.
  2020-04-05 10:28   ` Raghav Gururajan
  2020-04-05 10:33     ` Mathieu Othacehe
  2020-04-05 10:37     ` Raghav Gururajan
@ 2020-04-05 10:52     ` Raghav Gururajan
  2020-04-05 10:53     ` Raghav Gururajan
  3 siblings, 0 replies; 12+ messages in thread
From: Raghav Gururajan @ 2020-04-05 10:52 UTC (permalink / raw)
  To: Mathieu Othacehe; +Cc: 40445

>> Yes that's what it does. But if in a future release this package updates
>> its CCFLAGS list in the Makefile, we will have to update our own package
>> definition accordingly. That's why adding 'CCFLAGS += -fPIC' somewhere
>> seems safer to me.
> 
> Ah, gotcha! Hmm, I don't know how to do that through. I'll have to look into code base for
> examples.

No I also think that its a double-edged sword. 'CCFLAGS += -fPIC' also has to be changed/removed, if new release adds "-fPIC"?

Regards,
RG.

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

* [bug#40445] gnu: gsm: Update to 1.0.19.
  2020-04-05 10:28   ` Raghav Gururajan
                       ` (2 preceding siblings ...)
  2020-04-05 10:52     ` Raghav Gururajan
@ 2020-04-05 10:53     ` Raghav Gururajan
  3 siblings, 0 replies; 12+ messages in thread
From: Raghav Gururajan @ 2020-04-05 10:53 UTC (permalink / raw)
  To: Mathieu Othacehe; +Cc: 40445

>>> Yes that's what it does. But if in a future release this package updates
>>> its CCFLAGS list in the Makefile, we will have to update our own package
>>> definition accordingly. That's why adding 'CCFLAGS += -fPIC' somewhere
>>> seems safer to me.
>> 
>> Ah, gotcha! Hmm, I don't know how to do that through. I'll have to look into code base for
>> examples.
> 
> No I also think that its a double-edged sword. 'CCFLAGS += -fPIC' also has to be changed/removed,
> if new release adds "-fPIC"?

* Now

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

* [bug#40445] gnu: gsm: Update to 1.0.19.
  2020-04-05  9:45 ` Raghav Gururajan
                     ` (2 preceding siblings ...)
  2020-04-05 10:28   ` Raghav Gururajan
@ 2020-04-05 17:38   ` maxim.cournoyer
  2020-04-05 18:20     ` bug#40445: " maxim.cournoyer
  3 siblings, 1 reply; 12+ messages in thread
From: maxim.cournoyer @ 2020-04-05 17:38 UTC (permalink / raw)
  To: Raghav Gururajan; +Cc: Mathieu Othacehe, 40445

Hello,

"Raghav Gururajan" <raghavgururajan@disroot.org> writes:

> Hi Mathieu!
>
>>> + #:make-flags
>>> + (list
>>> + ;; Added -fPIC with other default options.
>>> + "CCFLAGS=-fPIC -c -O2 -DNeedFunctionPrototypes=1 -Wall -Wno-comment")
>> 
>> I wonder if we need all those options, the package seems to build fine
>> without them. Could you have a look?
>
> Yes, Maxim and I, updated these options, to use libgsm in mediastreamer, as a part of linphone packaging. :-)
>
> Btw, currently the gsm package is in unusable state, after the commit "74c7f367daa554cedeb5f02a00d1cd02acf1584b".
>
> Regards,
> RG.

Ooops.  Sorry about that.  I meant:

-       #:make-flags '("INSTALL_ROOT=%output"
-                      "CCFLAGS=-fPIC \
+       #:make-flags (list (string-append "INSTALL_ROOT=" %output)
+                          "CCFLAGS=-fPIC \

But I'll take into accounts comments from Mathieu, which make sense.

Maxim

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

* bug#40445: gnu: gsm: Update to 1.0.19.
  2020-04-05 17:38   ` maxim.cournoyer
@ 2020-04-05 18:20     ` maxim.cournoyer
  0 siblings, 0 replies; 12+ messages in thread
From: maxim.cournoyer @ 2020-04-05 18:20 UTC (permalink / raw)
  To: maxim.cournoyer; +Cc: Raghav Gururajan, Mathieu Othacehe, 40445-done

Hi all,

maxim.cournoyer@gmail.com writes:

> Hello,
>
> "Raghav Gururajan" <raghavgururajan@disroot.org> writes:
>
>> Hi Mathieu!
>>
>>>> + #:make-flags
>>>> + (list
>>>> + ;; Added -fPIC with other default options.
>>>> + "CCFLAGS=-fPIC -c -O2 -DNeedFunctionPrototypes=1 -Wall -Wno-comment")
>>> 
>>> I wonder if we need all those options, the package seems to build fine
>>> without them. Could you have a look?
>>
>> Yes, Maxim and I, updated these options, to use libgsm in mediastreamer, as a part of linphone packaging. :-)
>>
>> Btw, currently the gsm package is in unusable state, after the commit "74c7f367daa554cedeb5f02a00d1cd02acf1584b".
>>
>> Regards,
>> RG.
>
> Ooops.  Sorry about that.  I meant:
>
> -       #:make-flags '("INSTALL_ROOT=%output"
> -                      "CCFLAGS=-fPIC \
> +       #:make-flags (list (string-append "INSTALL_ROOT=" %output)
> +                          "CCFLAGS=-fPIC \
>
> But I'll take into accounts comments from Mathieu, which make sense.
>
> Maxim

I've fixed the breakage I caused with commit
5b05f8e9654ea722270c45c0fd0eead369bc0daf, and committed the update to
gsm 1.0.19 from Raghav on top as
5e16e4401f854d39f5fbebaf247750e554bd4a09.

Closing.

Thanks for the ideas!

Maxim

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

end of thread, other threads:[~2020-04-05 18:22 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-05  7:07 [bug#40445] gnu: gsm: Update to 1.0.19 Raghav Gururajan
2020-04-05  9:40 ` Mathieu Othacehe
2020-04-05  9:45 ` Raghav Gururajan
2020-04-05 10:22   ` Mathieu Othacehe
2020-04-05 10:26   ` Raghav Gururajan
2020-04-05 10:28   ` Raghav Gururajan
2020-04-05 10:33     ` Mathieu Othacehe
2020-04-05 10:37     ` Raghav Gururajan
2020-04-05 10:52     ` Raghav Gururajan
2020-04-05 10:53     ` Raghav Gururajan
2020-04-05 17:38   ` maxim.cournoyer
2020-04-05 18:20     ` bug#40445: " maxim.cournoyer

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.