Re: [Evolution] Evolution Flatpak build

2020-09-30 Thread Milan Crha via evolution-list
On Tue, 2020-09-29 at 17:25 +0200, Milan Crha via evolution-list wrote:
> I'm still lost why you cannot download the libcanberra sources.
> That's the error you get about, right? Maybe you've "https
> everywhere" enabled somehow somewhere. The site has only http://,
> not https:// (otherwise I'd use https:// there).

Hi,
for what it's worth, I've been able to reproduce it here too. I changed
the .json manifests in the sources. When you download it again, the
build will work flawlessly, without a need to change anything in it. I
hope on your side too, this time for real. I'm sorry for the
inconvenience.
Bye,
Milan

___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] Evolution Flatpak build

2020-09-29 Thread Milan Crha via evolution-list
On Tue, 2020-09-29 at 10:06 -0500, Japhering, Anonymous via evolution-
list wrote:
> > "runtime": "org.gnome.Platform",
> > -   "runtime-version": "3.38",
> > +   "runtime-version": "3.36",
> > "sdk": "org.gnome.Sdk",
> > > 
> 
> Yes, changed all 3 appearances of 3.38 to 3.36

Hi,
I didn't mean all the 3 occurrences, I meant just that one, at the top
of the file, as suggested above. Weird I see only two "3.38" (quotes
for clarity only) in the .json file. You do not want to change the
branch names, keep them "gnome-3-38".

> That's where I start getting lost. The json file has no reference to 
> evolution-alarm-notify

That's correct, it should not mention it, it's part of the evolution-
data-server, whose build failed.

> So there is a config-opts for each module.

Yes, the .json file, the Flatpak manifest, is a cook book how to build
an application. It contains dependencies to be built - the modules.

> I tried putting the line in both the libcanberra module and the
> evolution-data-server config-opts.

That won't do anything with the libcanberra, it's for evolution-data-
server and evolution.

> Neither location prevents the download attempt for the libcanberra
> repo which results in the "fatal: dumb http transport does not
> support shallow capabilities" error.

Ah, I forgot to mention that, you should remove the libcanberra build
completely, when you switch to 3.36 runtime (it does contain it
already). You do not need to do any other changes in the .json file, no
need for ENABLE_CANBERRA=OFF, just the opposite, do not add it there.

> As I write this, a gnome-3.36 base version is building.  Once it
> finishes, I'll see if making the same set of changes will allow a
> 3.38 version to build as well.

Hmm, if you mean with disabled canberra support for evolution, then I
caused a build break with my recent changes when the libcanberra is not
provided. This had been discovered by a user and is tracked (with a
patch provided) here:
https://gitlab.gnome.org/GNOME/evolution/-/merge_requests/65

To summarize:
a) start the build from scratch (remove old artifacts)
b) as you cannot build the libcanberra, do remove it from the .json
   file and switch the "runtime-version" to "3.36". Keep the rest of
   the .json file as is, thus you build the 3.38 version, not 3.36.
c) continue with the build process as outline here:
   https://wiki.gnome.org/Apps/Evolution/Flatpak

That should make it work and the Help->About should mention 3.38.x.

I'm still lost why you cannot download the libcanberra sources. That's
the error you get about, right? Maybe you've "https everywhere" enabled
somehow somewhere. The site has only http://, not https:// (otherwise
I'd use https:// there).

Bye,
Milan


___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] Evolution Flatpak build

2020-09-29 Thread Japhering, Anonymous via evolution-list
On Tue, 2020-09-29 at 09:23 +0200, Milan Crha via evolution-list wrote:
> On Sat, 2020-09-26 at 19:14 -0500, Japhering, Anonymous via
> evolution-
> list wrote:
> > > I suggest to use the 3.36 version, instead of the 3.38 version
> > > (and
> > > remove the libcanberra from the Flatapk manifest (.json file)).
> > 
> > So removing the stanza for libcanberra from the .json file results
> > in
> > this:
> > ...
> 
> Hi,
> did you _also_ change the runtime from 3.38 to 3.36? It doesn't seem
> you did, according to the error message you gave.
> 
> "runtime": "org.gnome.Platform",
> -   "runtime-version": "3.38",
> +   "runtime-version": "3.36",
> "sdk": "org.gnome.Sdk",
> > 

Yes, changed all 3 appearances of 3.38 to 3.36

> > And as of the writing of this email, I can find the appropriate
> > CMakeLists.txt file to disable canberra.. 
> > 
> > Would you point me in the right direction, please?
> 
> You do not need it. The error message tells you what to do:
> 
> > Necessary libraries not found or not enough version.  If you want
> > to disable Canberra-GTK for sound in evolution-alarm-notify, please
> > use -DENABLE_CANBERRA=OFF argument to cmake command.

That's where I start getting lost. The json file has no reference to 
evolution-alarm-notify

> Specifically the last line. I hope so, at least. It's harder to find
> where to write it in the Flatpak manifest, no doubt. The place is
> here:
> 
>    "config-opts": [
> +   "-DENABLE_CANBERRA=OFF",
> "-DDBUS_SERVICES_PREFIX=org.gnome.Evolution",
> "-DENABLE_FILE_LOCKING=fcntl",
> "-DENABLE_DOT_LOCKING=OFF",

So there is a config-opts for each module. I tried putting the line in
both the libcanberra module and the evolution-data-server config-opts.

Neither location prevents the download attempt for the libcanberra repo
which results in the "fatal: dumb http transport does not support
shallow capabilities" error.

> I suggest to start from scratch. Do `ls -la` in the directory you
> build the Flatpak application in and remove all the directories there
> (there's one hidden too). Remove also the json file. Or remove the
> build directory all together. 
> 
> In case you'll still see the problem with the libcanberra and runtime
> 3.38 I suggest to change to the 3.36 runtime (as shown at the very op
> of this message). Do delete the build folders (`ls -la`) after the
> runtime change, to avoid using the old/obsolete build artifacts.

Even after removing the entire working directory ~/flatpak, downloading
the json file and making all the edits to change to 3.36 and
DENABLE_CANBERRA=OFF, the system tries to git the canberra repo
resulting in the aforementioned error before the build even starts.

So it appears that flatpak-builder attempts to pull all the module
repos first, as removing the module declaration from the json file does
indeed skip the pull of the canberra repo and allow the build to
proceed.

As I write this, a gnome-3.36 base version is building.  Once it
finishes, I'll see if making the same set of changes will allow a 3.38
version to build as well.

Thanks for the assist. Guess I need to take some time to delve deeper
into flatpak.

Mike


___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] Evolution Flatpak build

2020-09-29 Thread Milan Crha via evolution-list
On Sat, 2020-09-26 at 19:14 -0500, Japhering, Anonymous via evolution-
list wrote:
> > I suggest to use the 3.36 version, instead of the 3.38 version (and
> > remove the libcanberra from the Flatapk manifest (.json file)).
> 
> So removing the stanza for libcanberra from the .json file results in
> this:
> ...

Hi,
did you _also_ change the runtime from 3.38 to 3.36? It doesn't seem
you did, according to the error message you gave.

"runtime": "org.gnome.Platform",
-   "runtime-version": "3.38",
+   "runtime-version": "3.36",
"sdk": "org.gnome.Sdk",


> And as of the writing of this email, I can find the appropriate
> CMakeLists.txt file to disable canberra.. 
>
> Would you point me in the right direction, please?

You do not need it. The error message tells you what to do:

> Necessary libraries not found or not enough version.  If you want
> to disable Canberra-GTK for sound in evolution-alarm-notify, please
> use -DENABLE_CANBERRA=OFF argument to cmake command.

Specifically the last line. I hope so, at least. It's harder to find
where to write it in the Flatpak manifest, no doubt. The place is here:

   "config-opts": [
+   "-DENABLE_CANBERRA=OFF",
"-DDBUS_SERVICES_PREFIX=org.gnome.Evolution",
"-DENABLE_FILE_LOCKING=fcntl",
"-DENABLE_DOT_LOCKING=OFF",

The diff-like comments mean the changes to be done, where the '-' lines
are to be removed and the '+' lines are to be added (without that
leading '+'). You'd need to add that "-DENABLE_CANBERRA=OFF", also
above the "-DENABLE_AUTOAR=OFF", for the evolution.

All these things are to be done in the Flatpak manifest, in the
org.gnome.Evolution-stable.json in your case (I suppose).

I suggest to start from scratch. Do `ls -la` in the directory you build
the Flatpak application in and remove all the directories there
(there's one hidden too). Remove also the json file. Or remove the
build directory all together. After that create the build directory
again and start from the top of the Flatpak build page, just copy&paste
the commands, there's no need to change anything from there. Really do
copy&paste, maybe you can do, the same as I do all the time, typos
while rewriting the commands, thus do copy&paste. I know the steps work
flawlessly when followed by copy&paste.

In case you'll still see the problem with the libcanberra and runtime
3.38 I suggest to change to the 3.36 runtime (as shown at the very top
of this message). Do delete the build folders (`ls -la`) after the
runtime change, to avoid using the old/obsolete build artifacts.
Bye,
Milan

___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] Evolution Flatpak build

2020-09-27 Thread Andre Klapper
On Sat, 2020-09-26 at 19:14 -0500, Japhering, Anonymous via evolution-
list wrote:
>-- Checking for module 'libcanberra-gtk3>=0.25'
>--   Package 'libcanberra-gtk3', required by 'virtual:world', not
>found
>CMake Error at cmake/modules/PkgConfigEx.cmake:32 (message):
>  Necessary libraries not found or not enough version.  If you
> want
>to
>  disable Canberra-GTK for sound in evolution-alarm-notify, please
>use
>  -DENABLE_CANBERRA=OFF argument to cmake command.
>Call Stack (most recent call first):
>  CMakeLists.txt:766 (pkg_check_modules_for_option)
>
> And as of the writing of this email, I can find the appropriate
> CMakeLists.txt file to disable canberra..
>
> Would you point me in the right direction, please?

Have you considered searching the content of files?

./evolution-data-server/CMakeLists.txt:
pkg_check_modules_for_option(ENABLE_CANBERRA "Canberra-GTK for sound in 
evolution-alarm-notify" CANBERRA 
libcanberra-gtk3>=${libcanberra_gtk_minimum_version})

Cheers,
andre
--
Andre Klapper  |  ak...@gmx.net
https://blogs.gnome.org/aklapper/


___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] Evolution Flatpak build

2020-09-26 Thread Japhering, Anonymous via evolution-list
On Mon, 2020-09-21 at 08:25 +0200, Milan Crha via evolution-list wrote:
> On Fri, 2020-09-18 at 09:05 -0500, Japhering, Anonymous via
> evolution-
> list wrote:
> > So, I have git 2.17.1 installed vs the current 2.28.0, is that my
> > issue or is it something else?
> > 
> > Do I need to manually clone the repo first ?
> 
> Hi,
> no idea, I'm sorry. I've been able to successfully use the build
> scripts (both the stable and master) with:
>    git-2.26.2-1.fc32.x86_64
>    flatpak-builder-1.0.10-1.fc32.x86_64
> I've no idea why that yours is failing.
> 
> Again, if you've any trouble with the latest GNOME SDK, then I
> suggest
> to use the 3.36 version, instead of the 3.38 version (and remove the
> libcanberra from the Flatapk manifest (.json file)).

So removing the stanza for libcanberra from the .json file results in
this:

   -- Checking for module 'libcanberra-gtk3>=0.25'
   --   Package 'libcanberra-gtk3', required by 'virtual:world', not
   found
   CMake Error at cmake/modules/PkgConfigEx.cmake:32 (message):
 Necessary libraries not found or not enough version.  If you want
   to
 disable Canberra-GTK for sound in evolution-alarm-notify, please
   use
 -DENABLE_CANBERRA=OFF argument to cmake command.
   Call Stack (most recent call first):
 CMakeLists.txt:766 (pkg_check_modules_for_option)
   
And as of the writing of this email, I can find the appropriate
CMakeLists.txt file to disable canberra.. 

Would you point me in the right direction, please?

thanks.

___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] Evolution Flatpak build

2020-09-20 Thread Milan Crha via evolution-list
On Fri, 2020-09-18 at 09:05 -0500, Japhering, Anonymous via evolution-
list wrote:
> So, I have git 2.17.1 installed vs the current 2.28.0, is that my
> issue or is it something else?
> 
> Do I need to manually clone the repo first ?

Hi,
no idea, I'm sorry. I've been able to successfully use the build
scripts (both the stable and master) with:
   git-2.26.2-1.fc32.x86_64
   flatpak-builder-1.0.10-1.fc32.x86_64
I've no idea why that yours is failing.

Again, if you've any trouble with the latest GNOME SDK, then I suggest
to use the 3.36 version, instead of the 3.38 version (and remove the
libcanberra from the Flatapk manifest (.json file)).
Bye,
Milan

___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] Evolution Flatpak build

2020-09-18 Thread Japhering, Anonymous via evolution-list
On Fri, 2020-09-18 at 10:47 +0200, Milan Crha via evolution-list wrote:
> On Fri, 2020-09-18 at 08:52 +0200, Milan Crha via evolution-list
> wrote:
> > It looks like they dropped libcanberra-gtk3 from the SDK for some
> > reason. 
> 
> Hi,
> so it's it, the GNOME Flatpak SDK dropped libcanberra from itself. I
> just committed a change to the Evolution Flatpak manifests, which
> builds its own libcanberra. It works fine here. Just re-download the
> script (the 'wget' command, only be careful in what file name wget
> saves it) and then continue with the cook book.

Getting this from the process:

   Initialized empty Git repository in /home/mhm/flatpak/.flatpak-
   builder/git/http_git.0pointer.net_clone_libcanberra.git-8LZHR0/
   Fetching git repo http://git.0pointer.net/clone/libcanberra.git, ref
   refs/heads/master
   fatal: dumb http transport does not support shallow capabilities
   

So, I have git 2.17.1 installed vs the current 2.28.0, is that my issue
or is it something else?

Do I need to manually clone the repo first ?

Thanks.
Mike

___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] Evolution Flatpak build

2020-09-18 Thread Milan Crha via evolution-list
On Fri, 2020-09-18 at 08:52 +0200, Milan Crha via evolution-list wrote:
> It looks like they dropped libcanberra-gtk3 from the SDK for some
> reason. 

Hi,
so it's it, the GNOME Flatpak SDK dropped libcanberra from itself. I
just committed a change to the Evolution Flatpak manifests, which
builds its own libcanberra. It works fine here. Just re-download the
script (the 'wget' command, only be careful in what file name wget
saves it) and then continue with the cook book.
Thanks and bye,
Milan

___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] Evolution Flatpak build

2020-09-17 Thread Milan Crha via evolution-list
On Thu, 2020-09-17 at 16:11 -0500, Japhering, Anonymous via evolution-
list wrote:
> Yet I have both the production and dev versions of 0.30,  which as
> you
> can see is not being seen. 

Hi,
you are building Flatpak, it doesn't read development files from the
host system. It looks like they dropped libcanberra-gtk3 from the SDK
for some reason. I'll update the build script and will report back when
it's done.
Bye,
Milan

___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] Evolution Flatpak build

2020-09-17 Thread Japhering, Anonymous via evolution-list
On Wed, 2020-09-16 at 18:39 +0200, Milan Crha via evolution-list wrote:
> On Wed, 2020-09-16 at 15:48 +0200, Andre Klapper wrote:
> 
> > Nothing, if I understand it correctly. Just unfortunate timing.
> 
> Correct. I blindly bumped all 3.36/3-36 to 3.38/3-38, including the
> runtime version, not thinking it would get "that long" to release (it
> didn't take that long, from my point of view).
> 

So after waiting for things to catch up, I try rebuilding evolution and
get the following error:


   -- Checking for module 'libcanberra-gtk3>=0.25'
   --   Package 'libcanberra-gtk3', required by 'virtual:world', not found


sudo dpkg -l | grep libcanberra-gtk3
ii  libcanberra-gtk3-0:amd64   0.30-5ubuntu1  
amd64GTK+ 3.0 helper for playing widget event sounds with
libcanberra
ii  libcanberra-gtk3-dev:amd64 0.30-5ubuntu1  
amd64simple interface for playing event sounds (GTK+ 3
development files)


Yet I have both the production and dev versions of 0.30,  which as you
can see is not being seen. 

DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=19.3
DISTRIB_CODENAME=tricia
DISTRIB_DESCRIPTION="Linux Mint 19.3 Tricia"
NAME="Linux Mint"

So, is this a broken dependency check, is LinuxMint a broken
environment or did I screw something up?

Alternatively, per the next part of the message...

Necessary libraries not found or not enough version.  If you want to
disable Canberra-GTK for sound in evolution-alarm-notify, please use
   -DENABLE_CANBERRA=OFF argument to cmake command.

which Cmakefile would that be ?

Thanks.

Mike


___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] Evolution Flatpak build

2020-09-16 Thread Japhering, Anonymous via evolution-list
On Wed, 2020-09-16 at 18:39 +0200, Milan Crha via evolution-list wrote:
> Mike, you can safely edit the downloaded .json file and change
> the'runtime-version' from 3.38 to 3.36. It will work too.

Not a big issue,  I just try to rebuild the flatpak version every time
I get a  kernel update.  Thistime it failed due to the package bump.  
I assumed I broke something.
Mike
>   Bye,Milan
> ___evolution-list mailing
> listevolution-l...@gnome.org
> To change your list options or unsubscribe, visit ...
> https://mail.gnome.org/mailman/listinfo/evolution-list
___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] Evolution Flatpak build

2020-09-16 Thread Milan Crha via evolution-list
On Wed, 2020-09-16 at 15:48 +0200, Andre Klapper wrote:
> Maybe that page should replace all and any version numbers with X.XX
> and say "Replace X.XX with the GNOME version number." because I'm
> getting tired of having to regularly bump versions...

Hi,
in fact, it is there:

   Note the actual versions of the GNOME SDK and Platform can differ
   each release of Evolution. The exact expected version can be seen
   (or changed) in the .json file.

> Nothing, if I understand it correctly. Just unfortunate timing.

Correct. I blindly bumped all 3.36/3-36 to 3.38/3-38, including the
runtime version, not thinking it would get "that long" to release (it
didn't take that long, from my point of view).

Mike, you can safely edit the downloaded .json file and change the
'runtime-version' from 3.38 to 3.36. It will work too.
Bye,
Milan

___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] Evolution Flatpak build

2020-09-16 Thread Japhering, Anonymous via evolution-list
On Wed, 2020-09-16 at 15:48 +0200, Andre Klapper wrote:
> On Wed, 2020-09-16 at 08:28 -0500, Japhering, Anonymous wrote:
> > 
> > flatpak --user install flathub org.gnome.Platform//3.38 org.gnome.Sdk//3.38
> > Looking for matches…
> > error: Nothing matches org.gnome.Platform in remote flathub
> 
> I guess that's because GNOME 3.38 (and its SDK) have not been released
> yet. (Should happen later today.)
> 
> > So what did I do wrong ?
> 
> Nothing, if I understand it correctly. Just unfortunate timing.
> 

Thanks for the info.

Mike
___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] Evolution Flatpak build

2020-09-16 Thread Andre Klapper
On Wed, 2020-09-16 at 08:28 -0500, Japhering, Anonymous wrote:
> Evolutin 3.36.6 (flatpak gitf74a735)
>
> Using this page as the guide for building:
> https://wiki.gnome.org/Apps/Evolution/Flatpak
>
> It says do
> flatpak --user install flathub org.gnome.Platform//3.36 org.gnome.Sdk//3.36
>
> which installed appropriately.

Maybe that page should replace all and any version numbers with X.XX
and say "Replace X.XX with the GNOME version number." because I'm
getting tired of having to regularly bump versions...

> Using
>  wget 
> https://gitlab.gnome.org/GNOME/evolution/raw/master/flatpak/org.gnome.Evolution-stable.json
>
> I successfully get the  json.However, the json is looking for
>  version 3.38  instead of 3.36.

The latest stable version is 3.38, so the file includes "3.38".

> So I tried running
> the same flatpak command substituting  3.38 for 3.36 and get the following 
> error:
>
> flatpak --user install flathub org.gnome.Platform//3.38 org.gnome.Sdk//3.38
> Looking for matches…
> error: Nothing matches org.gnome.Platform in remote flathub

I guess that's because GNOME 3.38 (and its SDK) have not been released
yet. (Should happen later today.)

> So what did I do wrong ?

Nothing, if I understand it correctly. Just unfortunate timing.

Cheers,
andre
--
Andre Klapper  |  ak...@gmx.net
https://blogs.gnome.org/aklapper/


___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list