* Linphone
@ 2020-03-25 18:34 Raghav Gururajan
2020-03-25 22:04 ` Linphone Ricardo Wurmus
` (4 more replies)
0 siblings, 5 replies; 28+ messages in thread
From: Raghav Gururajan @ 2020-03-25 18:34 UTC (permalink / raw)
To: guix-devel
Hello Folks!
For past week, I have been working on packaging Linphone. I have successfully packaged all the required dependencies, including liblinphone. Here is the whole diff of my project:
https://bin.disroot.org/?2526ad4c662035f3#DRxApUqk2XhFf23dH2EPAQ9Xeqn1DBE5dkCxeBxoQ8QB
For the final package, linphone-desktop, I am having some trouble. Here is the error I get:
https://bin.disroot.org/?f9419716e5815c6c#DEtwGGt2mSM4UuYnDn7pd4BHvD5KWNXTWMYaHUCvidvA
I tried (#configure-flags (list (string-append "-DBcToolbox_DIR=" (assoc-ref %build-inputs "bctoolbox")))). But it did not work.
Any thoughts please?
Regards,
RG.
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Linphone
2020-03-25 18:34 Linphone Raghav Gururajan
@ 2020-03-25 22:04 ` Ricardo Wurmus
2020-03-28 0:55 ` Linphone Maxim Cournoyer
` (2 more replies)
2020-03-25 22:29 ` Linphone Danny Milosavljevic
` (3 subsequent siblings)
4 siblings, 3 replies; 28+ messages in thread
From: Ricardo Wurmus @ 2020-03-25 22:04 UTC (permalink / raw)
To: Raghav Gururajan; +Cc: guix-devel
Hi,
> For past week, I have been working on packaging Linphone. I have
> successfully packaged all the required dependencies, including
> liblinphone. Here is the whole diff of my project:
Very nice!
> For the final package, linphone-desktop, I am having some trouble. Here is the error I get:
>
> https://bin.disroot.org/?f9419716e5815c6c#DEtwGGt2mSM4UuYnDn7pd4BHvD5KWNXTWMYaHUCvidvA
>
> I tried (#configure-flags (list (string-append "-DBcToolbox_DIR=" (assoc-ref %build-inputs "bctoolbox")))). But it did not work.
The error says
By not providing "FindBcToolbox.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"BcToolbox", but CMake did not find one.
So there is no FindBcToolbox.cmake file, which would tell CMake how to
find the package. There also is no pkg-config file (a file ending on
.pc) — or perhaps there is but you are not using pkg-config.
Please try adding pkg-config to the native-inputs.
If this still doesn’t work check the output of bctoolbox: does it
install a pkg-config file? If it does: does the file mention any
libraries that must be propagated?
--
Ricardo
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Linphone
2020-03-25 18:34 Linphone Raghav Gururajan
2020-03-25 22:04 ` Linphone Ricardo Wurmus
@ 2020-03-25 22:29 ` Danny Milosavljevic
2020-03-25 22:42 ` Linphone Danny Milosavljevic
` (2 more replies)
2020-03-25 22:43 ` Linphone Danny Milosavljevic
` (2 subsequent siblings)
4 siblings, 3 replies; 28+ messages in thread
From: Danny Milosavljevic @ 2020-03-25 22:29 UTC (permalink / raw)
To: Raghav Gururajan; +Cc: guix-devel
[-- Attachment #1: Type: text/plain, Size: 1017 bytes --]
Hi,
I tried
guix build -K linphone-desktop
then waited until it told me the build directory (which was
/tmp/guix-build-linux-libre-5.5.10.drv-0), then
$ which strace
<remember that name>
$ cd /tmp/guix-build-linux-libre-5.5.10.drv-0
$ source environment-variables
$ cd source
$ .....strace -f cmake . 2>&1 |grep -i bctoolbox |grep -i cmake
It says, among other things, that it can't open
/gnu/store/m92m6bg0xcl28djxg8h97sszf3gdl42r-bctoolbox-4.3.1/share/bctoolbox/cmake/BcToolboxConfig.cmake
.
So I checked that directory and it indeed does not have that file.
But it does have
/gnu/store/m92m6bg0xcl28djxg8h97sszf3gdl42r-bctoolbox-4.3.1/share/bctoolbox/cmake/bctoolboxConfig.cmake
-- note the different case of the name.
So I'd say either linphone-desktop or bctoolbox has the case wrong in some cmake file.
linphone-desktop has the following line:
./CMakeLists.txt: include("${EP_bctoolbox_CONFIG_DIR}/BcToolboxConfig.cmake")
... and that line is not going to work as-is.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Linphone
2020-03-25 22:29 ` Linphone Danny Milosavljevic
@ 2020-03-25 22:42 ` Danny Milosavljevic
2020-03-25 22:48 ` Linphone Danny Milosavljevic
2020-03-26 12:47 ` Linphone Raghav Gururajan
2 siblings, 0 replies; 28+ messages in thread
From: Danny Milosavljevic @ 2020-03-25 22:42 UTC (permalink / raw)
To: Raghav Gururajan; +Cc: guix-devel
[-- Attachment #1: Type: text/plain, Size: 88 bytes --]
Similar problem https://github.com/BelledonneCommunications/linphone-iphone/issues/399
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Linphone
2020-03-25 18:34 Linphone Raghav Gururajan
2020-03-25 22:04 ` Linphone Ricardo Wurmus
2020-03-25 22:29 ` Linphone Danny Milosavljevic
@ 2020-03-25 22:43 ` Danny Milosavljevic
2020-03-26 12:27 ` Linphone Raghav Gururajan
2020-03-26 12:40 ` Linphone Raghav Gururajan
4 siblings, 0 replies; 28+ messages in thread
From: Danny Milosavljevic @ 2020-03-25 22:43 UTC (permalink / raw)
To: Raghav Gururajan; +Cc: guix-devel
[-- Attachment #1: Type: text/plain, Size: 1006 bytes --]
Hi Raghav,
I get a nondeterministic build failure in libdecaf:
cd /tmp/guix-build-libdecaf-1.0.drv-0/build/src/generator/curve25519 && /gnu/store/iaqmwj2290z5nnrk69bss6r0d9lpr8cs-python2-2.7.16/bin/python2.7 /tmp/guix-build-libdecaf-1.0.drv-0/source/src/generator/template.py --per=field --guard=p25519/f_field.h --item=p25519 -o /tmp/guix-build-libdecaf-1.0.drv-0/build/src/GENERATED/c/p25519/f_field.h /tmp/guix-build-libdecaf-1.0.drv-0/source/src/per_field/f_field.tmpl.h
Traceback (most recent call last):
File "/tmp/guix-build-libdecaf-1.0.drv-0/source/src/generator/template.py", line 92, in <module>
os.makedirs(os.path.dirname(outname))
File "/gnu/store/iaqmwj2290z5nnrk69bss6r0d9lpr8cs-python2-2.7.16/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 17] File exists: '/tmp/guix-build-libdecaf-1.0.drv-0/build/src/GENERATED/c/p25519'
It might not support parallel builds properly.
The next attempt did work (without changing anything).
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Linphone
2020-03-25 22:29 ` Linphone Danny Milosavljevic
2020-03-25 22:42 ` Linphone Danny Milosavljevic
@ 2020-03-25 22:48 ` Danny Milosavljevic
2020-03-26 12:47 ` Linphone Raghav Gururajan
2 siblings, 0 replies; 28+ messages in thread
From: Danny Milosavljevic @ 2020-03-25 22:48 UTC (permalink / raw)
To: Raghav Gururajan; +Cc: guix-devel
[-- Attachment #1: Type: text/plain, Size: 620 bytes --]
On Wed, 25 Mar 2020 23:29:50 +0100
Danny Milosavljevic <dannym@scratchpost.org> wrote:
> linphone-desktop has the following line:
>
> ./CMakeLists.txt: include("${EP_bctoolbox_CONFIG_DIR}/BcToolboxConfig.cmake")
>
> ... and that line is not going to work as-is.
... and I checked ./cmake/BcToolboxConfig.cmake.in in bctoolbox and that does look okay.
But they have a renamer in CMakeLists.txt and that checks
set(EXPORT_TARGETS_NAME "bctoolbox")
So probably you could specify that one. No idea why it exists and is different
from the original name.
It might make sense to ask them about it.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Linphone
2020-03-25 18:34 Linphone Raghav Gururajan
` (2 preceding siblings ...)
2020-03-25 22:43 ` Linphone Danny Milosavljevic
@ 2020-03-26 12:27 ` Raghav Gururajan
2020-03-26 13:30 ` Linphone Ricardo Wurmus
2020-03-26 13:35 ` Linphone Raghav Gururajan
2020-03-26 12:40 ` Linphone Raghav Gururajan
4 siblings, 2 replies; 28+ messages in thread
From: Raghav Gururajan @ 2020-03-26 12:27 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: guix-devel
Hi Ricardo!
> Please try adding pkg-config to the native-inputs.
I tried it, but didn't work.
> If this still doesn’t work check the output of bctoolbox: does it
> install a pkg-config file? If it does: does the file mention any
> libraries that must be propagated?
I believe the build script doesn't use pkg-config. :/
Regards,
RG.
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Linphone
2020-03-25 18:34 Linphone Raghav Gururajan
` (3 preceding siblings ...)
2020-03-26 12:27 ` Linphone Raghav Gururajan
@ 2020-03-26 12:40 ` Raghav Gururajan
4 siblings, 0 replies; 28+ messages in thread
From: Raghav Gururajan @ 2020-03-26 12:40 UTC (permalink / raw)
To: Danny Milosavljevic; +Cc: guix-devel
Hi Danny!
> So I checked that directory and it indeed does not have that file.
>
> But it does have
> /gnu/store/m92m6bg0xcl28djxg8h97sszf3gdl42r-bctoolbox-4.3.1/share/bctoolbox/cmake/bctoolboxConfig.cm
> ke
> -- note the different case of the name.
Thanks so much for spotting this.
> So I'd say either linphone-desktop or bctoolbox has the case wrong in some cmake file.
I believe it is linphone-desktop and not bctoolbox. Because other Belledone-Communications packages has bctoolboox as required dependency and they all work fine. So I think the issue is with linphone-desktop.
> linphone-desktop has the following line:
>
> ./CMakeLists.txt: include("${EP_bctoolbox_CONFIG_DIR}/BcToolboxConfig.cmake")
>
> ... and that line is not going to work as-is.
Yeah, that's true. Is there a way to patch this, with-in package definition? Could you help me with the syntax?
Thank you!
Regards,
RG.
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Linphone
2020-03-25 22:29 ` Linphone Danny Milosavljevic
2020-03-25 22:42 ` Linphone Danny Milosavljevic
2020-03-25 22:48 ` Linphone Danny Milosavljevic
@ 2020-03-26 12:47 ` Raghav Gururajan
2020-03-26 14:17 ` Linphone Danny Milosavljevic
` (2 more replies)
2 siblings, 3 replies; 28+ messages in thread
From: Raghav Gururajan @ 2020-03-26 12:47 UTC (permalink / raw)
To: Danny Milosavljevic; +Cc: guix-devel
Hi Danny!
> ... and I checked ./cmake/BcToolboxConfig.cmake.in in bctoolbox and that does look okay.
>
> But they have a renamer in CMakeLists.txt and that checks
>
> set(EXPORT_TARGETS_NAME "bctoolbox")
>
> So probably you could specify that one. No idea why it exists and is different
> from the original name.
I see. How do I specify that in the package-definition of linnphone-desktop? I tried "-DEXPORT_TARGETS_NAME=bctoolbox" as configure-flag, but did not work.
Regards,
RG.
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Linphone
2020-03-26 12:27 ` Linphone Raghav Gururajan
@ 2020-03-26 13:30 ` Ricardo Wurmus
2020-03-26 13:35 ` Linphone Raghav Gururajan
1 sibling, 0 replies; 28+ messages in thread
From: Ricardo Wurmus @ 2020-03-26 13:30 UTC (permalink / raw)
To: Raghav Gururajan; +Cc: guix-devel
Raghav Gururajan <raghavgururajan@disroot.org> writes:
> Hi Ricardo!
>
>> Please try adding pkg-config to the native-inputs.
>
> I tried it, but didn't work.
>
>> If this still doesn’t work check the output of bctoolbox: does it
>> install a pkg-config file? If it does: does the file mention any
>> libraries that must be propagated?
>
> I believe the build script doesn't use pkg-config. :/
Does bctoolbox install a pc file?
Cmake often uses pkg-config for finding packages.
--
Ricardo
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Linphone
2020-03-26 12:27 ` Linphone Raghav Gururajan
2020-03-26 13:30 ` Linphone Ricardo Wurmus
@ 2020-03-26 13:35 ` Raghav Gururajan
1 sibling, 0 replies; 28+ messages in thread
From: Raghav Gururajan @ 2020-03-26 13:35 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: guix-devel
Hi Ricardo!
> Does bctoolbox install a pc file?
bctoolbox source tarball does have bctoolbox.pc.in file. But adding pkg-config as native-inputs for linphone-desktop did not work. Should I be doing adding something else?
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Linphone
2020-03-26 12:47 ` Linphone Raghav Gururajan
@ 2020-03-26 14:17 ` Danny Milosavljevic
2020-03-26 14:24 ` Linphone Raghav Gururajan
2020-03-26 17:53 ` Linphone Raghav Gururajan
2 siblings, 0 replies; 28+ messages in thread
From: Danny Milosavljevic @ 2020-03-26 14:17 UTC (permalink / raw)
To: Raghav Gururajan; +Cc: guix-devel
[-- Attachment #1: Type: text/plain, Size: 616 bytes --]
Hi Raghav,
I tried
(arguments
`(#:configure-flags
(list "-DENABLE_DBUS=YES"
"-DENABLE_UPDATE_CHECK=YES")
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch
(lambda _
(substitute* "CMakeLists.txt"
(("find_package[(]BcToolbox REQUIRED[)]")
"find_package(bctoolbox REQUIRED)")
(("find_package[(]Belcard REQUIRED[)]")
"find_package(belcard REQUIRED)"))
#t)))))
in linphone-desktop's package description and the error message changed.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Linphone
2020-03-26 12:47 ` Linphone Raghav Gururajan
2020-03-26 14:17 ` Linphone Danny Milosavljevic
@ 2020-03-26 14:24 ` Raghav Gururajan
2020-03-26 17:53 ` Linphone Raghav Gururajan
2 siblings, 0 replies; 28+ messages in thread
From: Raghav Gururajan @ 2020-03-26 14:24 UTC (permalink / raw)
To: Danny Milosavljevic; +Cc: guix-devel
Hi Danny!
> I tried
>
> (arguments
> `(#:configure-flags
> (list "-DENABLE_DBUS=YES"
> "-DENABLE_UPDATE_CHECK=YES")
> #:phases
> (modify-phases %standard-phases
> (add-after 'unpack 'patch
> (lambda _
> (substitute* "CMakeLists.txt"
> (("find_package[(]BcToolbox REQUIRED[)]")
> "find_package(bctoolbox REQUIRED)")
> (("find_package[(]Belcard REQUIRED[)]")
> "find_package(belcard REQUIRED)"))
> #t)))))
>
> in linphone-desktop's package description and the error message changed.
Thanks so much. It did change the error :-).
Btw, when I was researching code base, I came across this technique. Will it be relevant?
("BCTOOLBOX_INCLUDE_DIRS=-lbctoolbox"
,(string-append "BCTOOLBOX_CFLAGS=-I"
(assoc-ref %build-inputs "bctoolbox")
"/include"))
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Linphone
2020-03-26 12:47 ` Linphone Raghav Gururajan
2020-03-26 14:17 ` Linphone Danny Milosavljevic
2020-03-26 14:24 ` Linphone Raghav Gururajan
@ 2020-03-26 17:53 ` Raghav Gururajan
2020-03-26 19:24 ` Linphone Danny Milosavljevic
` (2 more replies)
2 siblings, 3 replies; 28+ messages in thread
From: Raghav Gururajan @ 2020-03-26 17:53 UTC (permalink / raw)
To: Danny Milosavljevic; +Cc: guix-devel
So I was able to fix all the "Qt[...].cmake not found error by adding required inputs. But during build I get lot of errors related to Qt. I am not able to understand what those are. They all contain some king of flags.
Here is a new of my project. https://bin.disroot.org/?5c92968202a11fe5#5TrosGgDg5i5ZPve4VXr452wTrNHXaiHo146uc7gzZXP
Regards,
RG.
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Linphone
2020-03-26 17:53 ` Linphone Raghav Gururajan
@ 2020-03-26 19:24 ` Danny Milosavljevic
2020-03-26 19:28 ` Linphone Raghav Gururajan
2020-03-26 21:53 ` Linphone Raghav Gururajan
2 siblings, 0 replies; 28+ messages in thread
From: Danny Milosavljevic @ 2020-03-26 19:24 UTC (permalink / raw)
To: Raghav Gururajan; +Cc: guix-devel
[-- Attachment #1: Type: text/plain, Size: 401 bytes --]
Hi Raghav,
> So I was able to fix all the "Qt[...].cmake not found error by adding required inputs. But during build I get lot of errors related to Qt. I am not able to understand what those are. They all contain some king of flags.
I don't know. It sounds like the versions of the linphone modules are not compatible.
Please ask upstream about it (for example file a bug report with them).
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Linphone
2020-03-26 17:53 ` Linphone Raghav Gururajan
2020-03-26 19:24 ` Linphone Danny Milosavljevic
@ 2020-03-26 19:28 ` Raghav Gururajan
2020-03-26 21:53 ` Linphone Raghav Gururajan
2 siblings, 0 replies; 28+ messages in thread
From: Raghav Gururajan @ 2020-03-26 19:28 UTC (permalink / raw)
To: Danny Milosavljevic; +Cc: guix-devel
Hi Danny!
> I don't know. It sounds like the versions of the linphone modules are not compatible.
> Please ask upstream about it (for example file a bug report with them).
It appears half of the errors were related to C++ standard. When I used ("gcc" ,gcc-5) as native-inputs, the number of errors, reduced to half.
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Linphone
2020-03-26 17:53 ` Linphone Raghav Gururajan
2020-03-26 19:24 ` Linphone Danny Milosavljevic
2020-03-26 19:28 ` Linphone Raghav Gururajan
@ 2020-03-26 21:53 ` Raghav Gururajan
2 siblings, 0 replies; 28+ messages in thread
From: Raghav Gururajan @ 2020-03-26 21:53 UTC (permalink / raw)
To: guix-devel
So I was able to fix all the "Qt[...].cmake not found error by adding required inputs. But during build I get lot of errors related to Qt. I am not able to understand what those are.
BUILD LOG: https://bin.disroot.org/?79c1cc2131f7235f#HHS3xWeLCKd98L1fqZB6xEwnkPQWqyJXpoemhwppzRNV
NEW DIFF: https://bin.disroot.org/?5c92968202a11fe5#5TrosGgDg5i5ZPve4VXr452wTrNHXaiHo146uc7gzZXP
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Linphone
2020-03-25 22:04 ` Linphone Ricardo Wurmus
@ 2020-03-28 0:55 ` Maxim Cournoyer
2020-03-28 1:42 ` Linphone Raghav Gururajan
2020-03-28 22:42 ` Linphone Raghav Gururajan
2 siblings, 0 replies; 28+ messages in thread
From: Maxim Cournoyer @ 2020-03-28 0:55 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: guix-devel, Raghav Gururajan
Hi!
Ricardo Wurmus <rekado@elephly.net> writes:
> Hi,
>
>> For past week, I have been working on packaging Linphone. I have
>> successfully packaged all the required dependencies, including
>> liblinphone. Here is the whole diff of my project:
>
> Very nice!
>
>> For the final package, linphone-desktop, I am having some trouble. Here is the error I get:
>>
>> https://bin.disroot.org/?f9419716e5815c6c#DEtwGGt2mSM4UuYnDn7pd4BHvD5KWNXTWMYaHUCvidvA
>>
>> I tried (#configure-flags (list (string-append "-DBcToolbox_DIR=" (assoc-ref %build-inputs "bctoolbox")))). But it did not work.
>
> The error says
>
> By not providing "FindBcToolbox.cmake" in CMAKE_MODULE_PATH this project
> has asked CMake to find a package configuration file provided by
> "BcToolbox", but CMake did not find one.
>
> So there is no FindBcToolbox.cmake file, which would tell CMake how to
> find the package. There also is no pkg-config file (a file ending on
> .pc) — or perhaps there is but you are not using pkg-config.
>
> Please try adding pkg-config to the native-inputs.
>
> If this still doesn’t work check the output of bctoolbox: does it
> install a pkg-config file? If it does: does the file mention any
> libraries that must be propagated?
Did Ricardo's suggestion help? I'm interested in Linphone on Guix! The
more VoIP options we have on the table in the times we're in, the better
:-). If you have more issues, do reach out, and I'll see if I can lend a
hand.
Thank you for working on it!
Maxim
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Linphone
2020-03-25 22:04 ` Linphone Ricardo Wurmus
2020-03-28 0:55 ` Linphone Maxim Cournoyer
@ 2020-03-28 1:42 ` Raghav Gururajan
2020-03-28 22:42 ` Linphone Raghav Gururajan
2 siblings, 0 replies; 28+ messages in thread
From: Raghav Gururajan @ 2020-03-28 1:42 UTC (permalink / raw)
To: Maxim Cournoyer, Ricardo Wurmus; +Cc: guix-devel
Hi Maxim!
> Did Ricardo's suggestion help? I'm interested in Linphone on Guix! The
> more VoIP options we have on the table in the times we're in, the better
> :-). If you have more issues, do reach out, and I'll see if I can lend a
> hand.
Danny's idea fixed it. It was a typo inside the source code.
Sure, I will keep you posted. I have started to send my Linphone patches (http://debbugs.gnu.org/cgi/bugreport.cgi?bug=40264). I will ping you if I gett stuck with something. :-)
> Thank you for working on it!
My pleasure :-)
Regards,
RG.
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Linphone
2020-03-25 22:04 ` Linphone Ricardo Wurmus
2020-03-28 0:55 ` Linphone Maxim Cournoyer
2020-03-28 1:42 ` Linphone Raghav Gururajan
@ 2020-03-28 22:42 ` Raghav Gururajan
2020-03-29 6:44 ` Linphone Ricardo Wurmus
` (7 more replies)
2 siblings, 8 replies; 28+ messages in thread
From: Raghav Gururajan @ 2020-03-28 22:42 UTC (permalink / raw)
To: Maxim Cournoyer, Ricardo Wurmus; +Cc: guix-devel
[-- Attachment #1: Type: text/plain, Size: 703 bytes --]
Hi Maxim!
>> Did Ricardo's suggestion help? I'm interested in Linphone on Guix! The
>> more VoIP options we have on the table in the times we're in, the better
>> :-). If you have more issues, do reach out, and I'll see if I can lend a
>> hand.
>
> Danny's idea fixed it. It was a typo inside the source code.
>
> Sure, I will keep you posted. I have started to send my Linphone patches
> (http://debbugs.gnu.org/cgi/bugreport.cgi?bug=40264). I will ping you if I gett stuck with
> something. :-)
I ran into trouble with belle-sip. Would you be able to help with that? I have attached the package definition of belle-sip, along with libantlr3c patch, with this email.
Regards,
RG.
[-- Attachment #2: belle-sip.scm --]
[-- Type: application/octet-stream, Size: 1163 bytes --]
(define-public belle-sip
(package
(name "belle-sip")
(version "1.6.3")
(source
(origin
(method url-fetch)
(uri
(string-append "https://www.linphone.org/releases/sources/" name
"/" name "-" version ".tar.gz"))
(sha256
(base32 "0s55kggmgxap54dkw5856bgk4xg7yvbzialpxnjm0zhpic3hff1z"))))
(build-system cmake-build-system)
(arguments
`(#:configure-flags
(list
"-DENABLE_SHARED=YES"
"-DENABLE_STATIC=YES"
"-DENABLE_RTP_MAP_ALWAYS_IN_SDP=ON"
"-DENABLE_STRICT=YES"
"-DENABLE_TUNNEL=OFF" ; Not available
"-DENABLE_TESTS=ON")))
(inputs
`(("antlr3" ,antlr3-3.1)
("antlr3c" ,libantlr3c)
("threads" ,pth)
("java" ,icedtea)
("zlib" ,zlib)))
(propagated-inputs
`(("bctoolbox" ,bctoolbox)))
(synopsis "Belledonne Communications SIP Library")
(description "Belle-sip is a modern library implementing SIP transport,
transaction and dialog layers. It is written in C, with an object-oriented
API. It also comprises a simple HTTP/HTTPS client implementation.")
(home-page "https://gitlab.linphone.org/BC/public/belle-sip")
(license license:gpl3+)))
[-- Attachment #3: libantlr3c.patch --]
[-- Type: application/octet-stream, Size: 1514 bytes --]
From 791e2392aaa9a3202db90c1e50340c38bd001504 Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <raghavgururajan@disroot.org>
Date: Sat, 28 Mar 2020 14:21:35 -0400
Subject: [PATCH 6/6] gnu: packages: java: Add libantlr3c
* gnu/packages/java.scm (libantlr3c): New variable.
---
gnu/packages/java.scm | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 5154dc124e..400ef8795e 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -105,6 +105,35 @@
;; build framework. We then build the more recent JDKs Icedtea 2.x and
;; Icedtea 3.x.
+(define-public libantlr3c
+ (package
+ (name "libantlr3c")
+ (version "3.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri
+ (string-append "https://www.antlr3.org/download/C/"
+ name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0lpbnb4dq4azmsvlhp6khq1gy42kyqyjv8gww74g5lm2y6blm4fa"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:configure-flags
+ (list
+ "--enable-debuginfo"
+ "--enable-64bit"
+ "--enable-abiflags"
+ "--enable-antlrdebug"
+ "--enable-shared"
+ "--enable-static"
+ "--enable-fast-install")))
+ (synopsis "ANTLR C Library")
+ (description "LIBANTLR3C provides run-time C libraries for ANTLR3
+(ANother Tool for Language Recognition v3).")
+ (home-page "https://www.antlr3.org/")
+ (license license:bsd-3)))
+
(define jikes
(package
(name "jikes")
--
2.26.0
^ permalink raw reply related [flat|nested] 28+ messages in thread
* Re: Linphone
2020-03-28 22:42 ` Linphone Raghav Gururajan
@ 2020-03-29 6:44 ` Ricardo Wurmus
2020-03-29 6:54 ` Linphone Raghav Gururajan
` (6 subsequent siblings)
7 siblings, 0 replies; 28+ messages in thread
From: Ricardo Wurmus @ 2020-03-29 6:44 UTC (permalink / raw)
To: Raghav Gururajan; +Cc: guix-devel, Maxim Cournoyer
Raghav Gururajan <raghavgururajan@disroot.org> writes:
> Hi Maxim!
>
>>> Did Ricardo's suggestion help? I'm interested in Linphone on Guix! The
>>> more VoIP options we have on the table in the times we're in, the better
>>> :-). If you have more issues, do reach out, and I'll see if I can lend a
>>> hand.
>>
>> Danny's idea fixed it. It was a typo inside the source code.
>>
>> Sure, I will keep you posted. I have started to send my Linphone patches
>> (http://debbugs.gnu.org/cgi/bugreport.cgi?bug=40264). I will ping you if I gett stuck with
>> something. :-)
>
> I ran into trouble with belle-sip. Would you be able to help with
> that? I have attached the package definition of belle-sip, along with
> libantlr3c patch, with this email.
You forgot to tell us what the trouble is.
--
Ricardo
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Linphone
2020-03-28 22:42 ` Linphone Raghav Gururajan
2020-03-29 6:44 ` Linphone Ricardo Wurmus
@ 2020-03-29 6:54 ` Raghav Gururajan
2020-03-30 1:29 ` Linphone Raghav Gururajan
` (5 subsequent siblings)
7 siblings, 0 replies; 28+ messages in thread
From: Raghav Gururajan @ 2020-03-29 6:54 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: guix-devel, Maxim Cournoyer
Hi Ricardo!
>> Did Ricardo's suggestion help? I'm interested in Linphone on Guix! The
>> more VoIP options we have on the table in the times we're in, the better
>> :-). If you have more issues, do reach out, and I'll see if I can lend a
>> hand.
>>> Danny's idea fixed it. It was a typo inside the source code.
>>>
>>> Sure, I will keep you posted. I have started to send my Linphone patches
>>> (http://debbugs.gnu.org/cgi/bugreport.cgi?bug=40264). I will ping you if I gett stuck with
>>> something. :-)
>>
>> I ran into trouble with belle-sip. Would you be able to help with
>> that? I have attached the package definition of belle-sip, along with
>> libantlr3c patch, with this email.
>
> You forgot to tell us what the trouble is.
Sorry about that, I was not sure how to describe what I saw. There was multiple red error messages during the build. They were related to some kind of parsing. Here is the build log https://bin.disroot.org/?8c6d055dbf3a35fe#CGYyfsJeSVA6NJTsqcVXiTf8jtHdbJhpJmTXwKeKFgTP
Regards,
RG.
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Linphone
2020-03-28 22:42 ` Linphone Raghav Gururajan
2020-03-29 6:44 ` Linphone Ricardo Wurmus
2020-03-29 6:54 ` Linphone Raghav Gururajan
@ 2020-03-30 1:29 ` Raghav Gururajan
2020-03-31 15:18 ` Linphone Raghav Gururajan
` (4 subsequent siblings)
7 siblings, 0 replies; 28+ messages in thread
From: Raghav Gururajan @ 2020-03-30 1:29 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: guix-devel, Maxim Cournoyer
Maxim and Ricardo!
>>> Did Ricardo's suggestion help? I'm interested in Linphone on Guix! The
>>> more VoIP options we have on the table in the times we're in, the better
>>> :-). If you have more issues, do reach out, and I'll see if I can lend a
>>> hand.
>>
>> Danny's idea fixed it. It was a typo inside the source code.
>>
>> Sure, I will keep you posted. I have started to send my Linphone patches
>> (http://debbugs.gnu.org/cgi/bugreport.cgi?bug=40264). I will ping you if I gett stuck with
>> something. :-)
>>> I ran into trouble with belle-sip. Would you be able to help with
>>> that? I have attached the package definition of belle-sip, along with
>>> libantlr3c patch, with this email.
>>
>> You forgot to tell us what the trouble is.
>
> Sorry about that, I was not sure how to describe what I saw. There was multiple red error messages
> during the build. They were related to some kind of parsing. Here is the build log
> https://bin.disroot.org/?8c6d055dbf3a35fe#CGYyfsJeSVA6NJTsqcVXiTf8jtHdbJhpJmTXwKeKFgTP
I fixed the issue. I had to make antlr3-3.3 variable public and use it. :-)
Regards,
RG.
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Linphone
2020-03-28 22:42 ` Linphone Raghav Gururajan
` (2 preceding siblings ...)
2020-03-30 1:29 ` Linphone Raghav Gururajan
@ 2020-03-31 15:18 ` Raghav Gururajan
2020-04-02 16:44 ` Linphone Raghav Gururajan
` (3 subsequent siblings)
7 siblings, 0 replies; 28+ messages in thread
From: Raghav Gururajan @ 2020-03-31 15:18 UTC (permalink / raw)
To: guix-devel
Hello Guix!
I have finished packaging all the linphone project's packages. \o/
PATCH: https://issues.guix.gnu.org/issue/40264
SOURCE: https://cloud.disroot.org/f/94900047
There will be no new patches and only revision patches. :-)
Regards,
RG.
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Linphone
2020-03-28 22:42 ` Linphone Raghav Gururajan
` (3 preceding siblings ...)
2020-03-31 15:18 ` Linphone Raghav Gururajan
@ 2020-04-02 16:44 ` Raghav Gururajan
2020-04-02 20:57 ` Linphone Raghav Gururajan
` (2 subsequent siblings)
7 siblings, 0 replies; 28+ messages in thread
From: Raghav Gururajan @ 2020-04-02 16:44 UTC (permalink / raw)
To: guix-devel
Hello Guix!
At this point for linphoneqt a.k.a linphone-desktop, I am facing following issues.
When I build *without* `-DENABLE_DBUS=YES`and run the program, I get:
QSocketNotifier: Socket notifiers cannot be enabled or disabled from another thread
QMutex: destroying locked mutex
When I build *with* `-DENABLE_DBUS=YES` and run the program, I get:
Segmentation Fault (Core Dumped)
I think the following patch is relevant, but when I use it, doesn't get successfully patched during the build.
https://gitlab.linphone.org/BC/public/linphone-desktop/commit/9cf08623e3092fa19366e5c07fbe06898a59f039.diff
Any ideas on how to fix this situation? Package definitions are available at https://issues.guix.gnu.org/issue/40264. Latest revision for this program is '14-add-linphoneqt-v3'.
Thank you!
Regards,
RG.
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Linphone
2020-03-28 22:42 ` Linphone Raghav Gururajan
` (4 preceding siblings ...)
2020-04-02 16:44 ` Linphone Raghav Gururajan
@ 2020-04-02 20:57 ` Raghav Gururajan
2020-04-02 23:33 ` Linphone Raghav Gururajan
2020-04-03 23:51 ` Linphone Raghav Gururajan
7 siblings, 0 replies; 28+ messages in thread
From: Raghav Gururajan @ 2020-04-02 20:57 UTC (permalink / raw)
To: guix-devel
Hello Guix!
> At this point for linphoneqt a.k.a linphone-desktop, I am facing following issues.
>
> When I build *without* `-DENABLE_DBUS=YES`and run the program, I get:
>
> QSocketNotifier: Socket notifiers cannot be enabled or disabled from another thread
> QMutex: destroying locked mutex
>
> When I build *with* `-DENABLE_DBUS=YES` and run the program, I get:
>
> Segmentation Fault (Core Dumped)
>
> I think the following patch is relevant, but when I use it, doesn't get successfully patched during
> the build.
>
> https://gitlab.linphone.org/BC/public/linphone-desktop/commit/9cf08623e3092fa19366e5c07fbe06898a59f0
> 9.diff
>
> Any ideas on how to fix this situation? Package definitions are available at
> https://issues.guix.gnu.org/issue/40264. Latest revision for this program is
> '14-add-linphoneqt-v3'.
So I fixed "QSocketNotifier" error in version 4 patch (14-add-linphoneqt-v4). I still don't know how to fix "QMutex" error.
Regards,
RG.
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Linphone
2020-03-28 22:42 ` Linphone Raghav Gururajan
` (5 preceding siblings ...)
2020-04-02 20:57 ` Linphone Raghav Gururajan
@ 2020-04-02 23:33 ` Raghav Gururajan
2020-04-03 23:51 ` Linphone Raghav Gururajan
7 siblings, 0 replies; 28+ messages in thread
From: Raghav Gururajan @ 2020-04-02 23:33 UTC (permalink / raw)
To: guix-devel
Hello Guix!
LINPHONE WORKS! \o/
Now we have a working client. It is a Legacy GTK version (linphone/liblinphone). I am still working on Qt version (linphoneqt/linphone-desktop).
Please test the client and let me know if there is any issue. The latest revision patch is "13-add-linphone-v3" at https://issues.guix.gnu.org/issue/40264.
Thank you!
Regards,
RG.
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Linphone
2020-03-28 22:42 ` Linphone Raghav Gururajan
` (6 preceding siblings ...)
2020-04-02 23:33 ` Linphone Raghav Gururajan
@ 2020-04-03 23:51 ` Raghav Gururajan
7 siblings, 0 replies; 28+ messages in thread
From: Raghav Gururajan @ 2020-04-03 23:51 UTC (permalink / raw)
To: guix-devel
Hello Guix!
>> At this point for linphoneqt a.k.a linphone-desktop, I am facing following issues.
>>
>> When I build *without* `-DENABLE_DBUS=YES`and run the program, I get:
>>
>> QSocketNotifier: Socket notifiers cannot be enabled or disabled from another thread
>> QMutex: destroying locked mutex
>>
>> When I build *with* `-DENABLE_DBUS=YES` and run the program, I get:
>>
>> Segmentation Fault (Core Dumped)
>>
>> I think the following patch is relevant, but when I use it, doesn't get successfully patched during
>> the build.
>>
>> https://gitlab.linphone.org/BC/public/linphone-desktop/commit/9cf08623e3092fa19366e5c07fbe06898a59f0
>> 9.diff
>>
>> Any ideas on how to fix this situation? Package definitions are available at
>> https://issues.guix.gnu.org/issue/40264. Latest revision for this program is
>> '14-add-linphoneqt-v3'.
>
> So I fixed "QSocketNotifier" error in version 4 patch (14-add-linphoneqt-v4). I still don't know
> how to fix "QMutex" error.
I have now fixed "QMutex" error in the version 6 patch (14-add-linphoneqt-v6).
Regards,
RG.
^ permalink raw reply [flat|nested] 28+ messages in thread
end of thread, other threads:[~2020-04-03 23:52 UTC | newest]
Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-25 18:34 Linphone Raghav Gururajan
2020-03-25 22:04 ` Linphone Ricardo Wurmus
2020-03-28 0:55 ` Linphone Maxim Cournoyer
2020-03-28 1:42 ` Linphone Raghav Gururajan
2020-03-28 22:42 ` Linphone Raghav Gururajan
2020-03-29 6:44 ` Linphone Ricardo Wurmus
2020-03-29 6:54 ` Linphone Raghav Gururajan
2020-03-30 1:29 ` Linphone Raghav Gururajan
2020-03-31 15:18 ` Linphone Raghav Gururajan
2020-04-02 16:44 ` Linphone Raghav Gururajan
2020-04-02 20:57 ` Linphone Raghav Gururajan
2020-04-02 23:33 ` Linphone Raghav Gururajan
2020-04-03 23:51 ` Linphone Raghav Gururajan
2020-03-25 22:29 ` Linphone Danny Milosavljevic
2020-03-25 22:42 ` Linphone Danny Milosavljevic
2020-03-25 22:48 ` Linphone Danny Milosavljevic
2020-03-26 12:47 ` Linphone Raghav Gururajan
2020-03-26 14:17 ` Linphone Danny Milosavljevic
2020-03-26 14:24 ` Linphone Raghav Gururajan
2020-03-26 17:53 ` Linphone Raghav Gururajan
2020-03-26 19:24 ` Linphone Danny Milosavljevic
2020-03-26 19:28 ` Linphone Raghav Gururajan
2020-03-26 21:53 ` Linphone Raghav Gururajan
2020-03-25 22:43 ` Linphone Danny Milosavljevic
2020-03-26 12:27 ` Linphone Raghav Gururajan
2020-03-26 13:30 ` Linphone Ricardo Wurmus
2020-03-26 13:35 ` Linphone Raghav Gururajan
2020-03-26 12:40 ` Linphone Raghav Gururajan
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.