Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 633950 - media-gfx/gmic-2.4.0 version bump
Summary: media-gfx/gmic-2.4.0 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
: 623400 628906 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-10-10 17:09 UTC by DrSlony
Modified: 2018-12-30 08:27 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
CMakeOutput.log (CMakeOutput.log,54.27 KB, text/plain)
2018-10-08 10:35 UTC, urcindalo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description DrSlony 2017-10-10 17:09:58 UTC
media-gfx/gmic-2.1.0 version bump
https://discuss.pixls.us/t/release-of-gmic-2-1-0/5256
Comment 1 DrSlony 2017-10-10 17:10:53 UTC
*** Bug 628906 has been marked as a duplicate of this bug. ***
Comment 2 DrSlony 2017-10-10 17:14:43 UTC
*** Bug 623400 has been marked as a duplicate of this bug. ***
Comment 3 DrSlony 2017-10-10 17:19:12 UTC
Should probably use the new Qt front-end, not the GTK+ one, https://bugs.gentoo.org/622466
Comment 4 Ștefan Talpalaru 2017-10-14 16:11:51 UTC
media-gfx/gmic-2.1.1 is available in my overlay: https://github.com/stefantalpalaru/gentoo-overlay

The deprecated GTK+ Gimp plugin was replaced with the Qt one. A standalone GUI, a Krita plugin and ZArt (live webcam manipulation) were added.

The libgmic library cannot be used by any of those tools, unfortunately, so it's optional now.

A CMake problem with gimp-2.9.6 lead to this upstream contribution: https://github.com/c-koi/gmic-qt/pull/29

The build times are terrible because each and every binary recompiles and links as an object gmic.cpp - which is not only big, but includes the huge header CImg.h. The solution would be to convince upstream to allow linking against libgmic.
Comment 5 DrSlony 2017-11-08 10:52:46 UTC
2.1.5 is out.
Comment 6 DrSlony 2017-11-08 10:53:50 UTC
"The solution would be to convince upstream to allow linking against libgmic."

Stefan Talpalaru have you contacted upstream about that?
If not, you can do so here:
https://discuss.pixls.us/t/release-of-gmic-2-1-5/5494
Comment 7 Ștefan Talpalaru 2017-11-16 18:25:34 UTC
gmic-2.1.5 added to my overlay.

DrSlony, I started to implement myself the use of the shared library for all binaries that currently link the object statically and I'll contribute it upstream when I'm done.
Comment 8 DrSlony 2017-11-16 19:23:15 UTC
Stefan I use Sabayon now but I still compile some ebuilds. I will test yours.
Comment 9 DrSlony 2017-11-16 20:45:52 UTC
I confirm that Stefan's ebuild works fine in Sabayon, G'MIC-2.1.5 works fine in GIMP-2.9.6.
Comment 10 Ștefan Talpalaru 2017-11-20 23:51:13 UTC
gmic-2.1.5-r3 links all the binaries against libgmic.so

The patches were sent upstream, but upstream does not understand why I would want to do that instead of compiling and installing that common code for each and every one of those six binaries:

https://github.com/dtschump/gmic/pull/29
https://github.com/c-koi/gmic-qt/pull/31
https://github.com/dtschump/gmic-community/pull/105
Comment 11 DrSlony 2018-02-16 18:53:24 UTC
Please bump to version 2.2.0.
Comment 12 Ștefan Talpalaru 2018-02-16 21:25:38 UTC
media-gfx/gmic-2.2.0 is available in my overlay, along with media-libs/cimg-2.2.0.

media-gfx/zart-3.2.1_p20171127 is a separate package
Comment 13 urcindalo 2018-03-02 09:20:02 UTC
(In reply to Ștefan Talpalaru from comment #12)
> media-gfx/gmic-2.2.0 is available in my overlay, along with
> media-libs/cimg-2.2.0.
> 
> media-gfx/zart-3.2.1_p20171127 is a separate package

Thanks very much, Stefan. Your ebuild works like a charm.
Comment 14 Ștefan Talpalaru 2018-03-12 15:39:28 UTC
Ebuild updated in my overlay.
Comment 15 DrSlony 2018-03-12 16:34:38 UTC
I emerged it without problems:
ebuild gmic-2.2.1.ebuild merge --skip-manifest
sudo ebuild gmic-2.2.1.ebuild merge --skip-manifest
(running sudo first fails with permissions issues, I had to run it without sudo first, then with sudo to install it)

However, I ran GIMP-2.9.8 and there was no G'MIC plugin, so I recompiled using:
USE="gimp gui fftw" ebuild gmic-2.2.1.ebuild merge --skip-manifest

and now I have a working G'MIC-2.2.1 in GIMP-2.9.8 in Sabayon.

Regarding the USE flags, what does "gui" do if one doesn't specify neither "gimp" nor "krita"?
Comment 16 Ștefan Talpalaru 2018-03-12 16:52:57 UTC
(In reply to DrSlony from comment #15)
> (running sudo first fails with permissions issues, I had to run it without
> sudo first, then with sudo to install it)

How about using a root shell for your system administration needs?

> However, I ran GIMP-2.9.8 and there was no G'MIC plugin, so I recompiled
> using:
> USE="gimp gui fftw" ebuild gmic-2.2.1.ebuild merge --skip-manifest

It's much easier to use overlays the way they are intended to:

layman -a stefantalpalaru
# edit /etc/portage/package.use and add the USE flags you need for media-gfx/gmic
emerge gmic

> Regarding the USE flags, what does "gui" do if one doesn't specify neither
> "gimp" nor "krita"?

It builds a stand-alone GUI for G'MIC that you can run independently from image editors. There are additional steps for loading an image at start and saving it at the end, of course, but otherwise it's the same functionality and interface as in the Gimp/Krita plugins.
Comment 17 Ștefan Talpalaru 2018-05-16 22:30:25 UTC
gmic-2.2.3 is available in my overlay
Comment 18 DrSlony 2018-05-16 22:55:27 UTC
Any idea why it's not in portage?
Comment 19 DrSlony 2018-06-25 14:35:00 UTC
Please add 2.3.0 (or at least 2.2.3) to Portage now that GIMP-2.10.2 is in Portage.
Comment 20 DrSlony 2018-06-25 14:37:56 UTC
s/2.3.0/2.3.1/

https://discuss.pixls.us/t/release-of-gmic-2-3-0/6800
Comment 21 Ștefan Talpalaru 2018-06-25 16:20:32 UTC
cimg-2.3.1 and gmic-2.3.1 added to my overlay: https://github.com/stefantalpalaru/gentoo-overlay
Comment 22 urcindalo 2018-06-29 10:31:59 UTC
(In reply to Ștefan Talpalaru from comment #21)
> cimg-2.3.1 and gmic-2.3.1 added to my overlay:
> https://github.com/stefantalpalaru/gentoo-overlay

Thanks!
2.3.2 was released soon after. Could you please update it in your overlay?
Comment 23 Ștefan Talpalaru 2018-06-29 15:11:38 UTC
Updated.
Comment 24 urcindalo 2018-07-01 11:08:53 UTC
(In reply to Ștefan Talpalaru from comment #23)
> Updated.

Thanks very much indeed!
Comment 25 DrSlony 2018-07-04 23:19:42 UTC
2.3.3 is out.
Comment 26 Ștefan Talpalaru 2018-07-05 15:43:12 UTC
Ebuilds updated.
Comment 27 urcindalo 2018-08-26 09:11:39 UTC
Current version is 2.3.5, with 2.3.6 apparently to be released soon.

Abusing your generosity, could you update the ebuild in your overlay, Stefan?
Comment 28 Ștefan Talpalaru 2018-08-26 10:49:33 UTC
updated to 2.3.5
Comment 29 DrSlony 2018-08-26 15:00:56 UTC
Thank you.
Comment 30 urcindalo 2018-08-28 21:28:28 UTC
(In reply to urcindalo from comment #27)
> Current version is 2.3.5, with 2.3.6 apparently to be released soon.
> 
> Abusing your generosity, could you update the ebuild in your overlay, Stefan?

2.3.6 was released today:
https://plus.google.com/+GMIC_software/posts/3riJxeZ5gR1
Comment 31 Ștefan Talpalaru 2018-08-28 21:35:58 UTC
We have to wait until upstream remembers to also release a new version of gmic-qt: https://github.com/c-koi/gmic-qt/releases
Comment 32 Ștefan Talpalaru 2018-08-29 10:22:02 UTC
ebuilds updated to 2.3.6
Comment 33 DrSlony 2018-10-04 20:04:59 UTC
G'MIC 2.4.0 has just been released.
Comment 35 Ștefan Talpalaru 2018-10-04 21:33:45 UTC
As usual, we have to wait until upstream remembers to tag some GitHub releases:

https://github.com/dtschump/gmic/releases
https://github.com/c-koi/gmic-qt/releases
Comment 36 DrSlony 2018-10-05 12:54:40 UTC
Done, the releases are now tagged.
Comment 37 Ștefan Talpalaru 2018-10-05 13:49:21 UTC
gmic-2.4.0, cimg-2.4.0 and zart-3.2.2_p20180704 are now available in my overlay.
Comment 38 urcindalo 2018-10-08 10:34:33 UTC
(In reply to Ștefan Talpalaru from comment #37)
> gmic-2.4.0, cimg-2.4.0 and zart-3.2.2_p20180704 are now available in my
> overlay.

Thanks again.
When trying to update, gmic-2.4.0 fails this way:
===
Calculating dependencies... done!
[ebuild     U ~] media-gfx/gmic-2.4.0::stefantalpalaru [2.3.6::stefantalpalaru] USE="X bash-completion cli ffmpeg fftw gimp graphicsmagick gui jpeg krita opencv openexr openmp png tiff -static-libs" 0 KiB

Total: 1 package (1 upgrade), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] Y

>>> Verifying ebuild manifests
>>> Running pre-merge checks for media-gfx/gmic-2.4.0

>>> Emerging (1 of 1) media-gfx/gmic-2.4.0::stefantalpalaru
 * gmic-2.4.0.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                          [ ok ]
 * gmic-qt-2.4.0.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                       [ ok ]
>>> Unpacking source...
>>> Unpacking gmic-2.4.0.tar.gz to /var/tmp/portage/media-gfx/gmic-2.4.0/work
>>> Unpacking gmic-qt-2.4.0.tar.gz to /var/tmp/portage/media-gfx/gmic-2.4.0/work
>>> Source unpacked in /var/tmp/portage/media-gfx/gmic-2.4.0/work
>>> Preparing source in /var/tmp/portage/media-gfx/gmic-2.4.0/work/gmic-v.2.4.0 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/media-gfx/gmic-2.4.0/work/gmic-v.2.4.0 ...
>>> Working in BUILD_DIR: "/var/tmp/portage/media-gfx/gmic-2.4.0/work/gmic-2.4.0_build"
cmake -C /var/tmp/portage/media-gfx/gmic-2.4.0/work/gmic-2.4.0_build/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_LIB=ON -DBUILD_LIB_STATIC=OFF -DBUILD_CLI=ON -DBUILD_MAN=ON -DENABLE_X=ON -DENABLE_FFMPEG=ON -DENABLE_FFTW=ON -DENABLE_GRAPHICSMAGICK=ON -DENABLE_JPEG=ON -DENABLE_OPENCV=ON -DENABLE_OPENEXR=ON -DENABLE_OPENMP=ON -DENABLE_PNG=ON -DENABLE_TIFF=ON -DENABLE_ZLIB=ON -DENABLE_DYNAMIC_LINKING=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/media-gfx/gmic-2.4.0/work/gmic-2.4.0_build/gentoo_toolchain.cmake  /var/tmp/portage/media-gfx/gmic-2.4.0/work/gmic-v.2.4.0
loading initial cache file /var/tmp/portage/media-gfx/gmic-2.4.0/work/gmic-2.4.0_build/gentoo_common_config.cmake
-- The CXX compiler identification is GNU 7.3.0
-- The C compiler identification is GNU 7.3.0
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found PkgConfig: x86_64-pc-linux-gnu-pkg-config (found version "0.29.2") 
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.11") 
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/libX11.so
X11_INCLUDE_DIR: /usr/include
X11_INCLUDE_DIRs: 
X11_LIBRARY_DIR: /usr/lib
X11_LIBRARY_DIRS: 
-- Checking for module 'fftw3>=3.0'
--   Found fftw3, version 3.3.6-pl2
-- Checking for module 'opencv'
--   Found opencv, version 2.4.13
-- Checking for module 'GraphicsMagick++'
--   Found GraphicsMagick++, version 1.3.30
-- Found TIFF: /usr/lib/libtiff.so (found version "4.0.9") 
-- Found PNG: /usr/lib/libpng.so (found version "1.6.34+apng") 
-- Found JPEG: /usr/lib/libjpeg.so  
-- Checking for module 'OpenEXR'
--   Found OpenEXR, version 2.2.0
CMake Error at CMakeLists.txt:247 (file):
  file does not recognize sub-command TOUCH


-- The following OPTIONAL packages have been found:

 * PkgConfig
 * X11
 * TIFF
 * ZLIB
 * PNG
 * JPEG

-- <<< Gentoo configuration >>>
Build type      Release
Install path    /usr
Compiler flags:
C               -march=native -O2 -pipe
C++             -march=native -O2 -pipe
Linker flags:
Executable      -Wl,-O1 -Wl,--as-needed
Module          -Wl,-O1 -Wl,--as-needed
Shared          -Wl,-O1 -Wl,--as-needed

-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/media-gfx/gmic-2.4.0/work/gmic-2.4.0_build/CMakeFiles/CMakeOutput.log".
 * ERROR: media-gfx/gmic-2.4.0::stefantalpalaru failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line  124:  Called src_configure
 *   environment, line 2957:  Called cmake-utils_src_configure
 *   environment, line  989:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
===
Comment 39 urcindalo 2018-10-08 10:35:15 UTC
Created attachment 549870 [details]
CMakeOutput.log
Comment 40 Ștefan Talpalaru 2018-10-08 12:07:30 UTC
You need at least cmake-3.12.1 to build gmic. I added the minimum CMake version to the ebuilds.
Comment 41 urcindalo 2018-11-20 16:48:14 UTC
GMIC 2.4.1 was released three weeks ago.
Comment 42 Ștefan Talpalaru 2018-11-20 20:55:54 UTC
The new version is available in my overlay.
Comment 43 DrSlony 2018-11-20 21:23:00 UTC
That's great Stefan, thank you. But why isn't it available in portage yet?
Comment 44 Ștefan Talpalaru 2018-11-20 22:09:21 UTC
(In reply to DrSlony from comment #43)
> why isn't it available in portage yet?

I don't know. Maybe the maintainers are not interested.
Comment 45 urcindalo 2018-12-22 10:23:32 UTC
Latest stable version is 2.4.3.
Comment 46 Ștefan Talpalaru 2018-12-22 16:09:18 UTC
Version bumped in my overlay.
Comment 47 urcindalo 2018-12-23 10:51:53 UTC
(In reply to Ștefan Talpalaru from comment #46)
> Version bumped in my overlay.

Merry Xmas, Stefan!
Thanks for your kindness and proven generosity!
Comment 48 Ștefan Talpalaru 2018-12-23 11:21:40 UTC
You're welcome. Merry Christmas!
Comment 49 Larry the Git Cow gentoo-dev 2018-12-30 08:27:30 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4de7949186333cfd1c8ef2c29ac015591f3fba28

commit 4de7949186333cfd1c8ef2c29ac015591f3fba28
Author:     Tim Harder <radhermit@gentoo.org>
AuthorDate: 2018-12-30 08:06:08 +0000
Commit:     Tim Harder <radhermit@gentoo.org>
CommitDate: 2018-12-30 08:26:39 +0000

    media-gfx/gmic: version bump to 2.4.3
    
    Closes: https://bugs.gentoo.org/556116
    Closes: https://bugs.gentoo.org/621270
    Closes: https://bugs.gentoo.org/622466
    Closes: https://bugs.gentoo.org/628318
    Closes: https://bugs.gentoo.org/629194
    Closes: https://bugs.gentoo.org/633950
    Closes: https://bugs.gentoo.org/643090
    Closes: https://bugs.gentoo.org/657764
    
    Signed-off-by: Tim Harder <radhermit@gentoo.org>

 media-gfx/gmic/Manifest                    |   1 +
 media-gfx/gmic/files/gmic-2.4.3-curl.patch | 100 +++++++++++++++++
 media-gfx/gmic/gmic-2.4.3.ebuild           | 170 +++++++++++++++++++++++++++++
 media-gfx/gmic/metadata.xml                |   1 +
 4 files changed, 272 insertions(+)