Bug 196000 - graphics/xsane: Not recognized by gimp when installed as a package
Summary: graphics/xsane: Not recognized by gimp when installed as a package
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Dmitry Marakasov
URL:
Keywords: needs-qa, patch-ready
Depends on:
Blocks:
 
Reported: 2014-12-15 21:27 UTC by Mike Clarke
Modified: 2015-06-25 21:57 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (koalative)


Attachments
trivial fix (419 bytes, patch)
2015-06-04 11:47 UTC, Andriy Gapon
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Clarke 2014-12-15 21:27:00 UTC
curlew:/home/mike% freebsd-version -uk
10.1-RELEASE
10.1-RELEASE-p1

Gimp produces the error message

     /home/mike/.gimp-2.8/plug-ins/xsane: GIMP support missing
     (gimp:31420): LibGimpBase-WARNING **: gimp: gimp_wire_read(): error

But the package claims to have been built with gimp support:

############################################################################## 

curlew:/home/mike% pkg info xsane
xsane-0.999_3
Name           : xsane
Version        : 0.999_3
Installed on   : Mon Dec 15 21:16:53 GMT 2014
Origin         : graphics/xsane
Architecture   : freebsd:10:x86:64
Prefix         : /usr/local
Categories     : graphics                                                       
Licenses       : GPLv2                                                          
Maintainer     : koalative@gmail.com                                            
WWW            : http://www.xsane.org/                                          
Comment        : Gtk-based X11 frontend for SANE (Scanner Access Now Easy)      
Options        :                                                                
        DOCS           : on                                                     
        GIMP           : on                                                     
        NLS            : on                                                     
Shared Libs required:                                                           
        libtiff.so.5                                                            
        libsane.so.1                                                            
        libpng15.so.15                                                          
        libpangoft2-1.0.so.0                                                    
        libpangocairo-1.0.so.0                                                  
        libpango-1.0.so.0                                                       
        liblcms.so.1                                                            
        libjpeg.so.8                                                            
        libintl.so.8                                                            
        libgtk-x11-2.0.so.0                                                     
        libgobject-2.0.so.0                                                     
        libglib-2.0.so.0                                                        
        libgio-2.0.so.0                                                         
        libgdk_pixbuf-2.0.so.0                                                  
        libgdk-x11-2.0.so.0                                                     
        libfreetype.so.6                                                        
        libfontconfig.so.1                                                      
        libcairo.so.2                                                           
        libatk-1.0.so.0                                                         
Annotations    :                                                                
        repo_type      : binary                                                 
        repository     : FreeBSD                                                
Flat size      : 4.69MiB                                                        
Description    :                                                                
XSANE is a gtk based X11 frontend for SANE (Scanner Access Now Easy).           
It works either standalone or as a GIMP plugin.                                 
                                                                                
WWW: http://www.xsane.org/ 

##############################################################################  

Building from ports cures the problem and produces a different list of shared libs required

##############################################################################

curlew:/home/mike% pkg info xsane
xsane-0.999_3
Name           : xsane
Version        : 0.999_3
Installed on   : Mon Dec 15 21:19:37 GMT 2014
Origin         : graphics/xsane
Architecture   : freebsd:10:x86:64
Prefix         : /usr/local
Categories     : graphics
Licenses       : GPLv2
Maintainer     : koalative@gmail.com
WWW            : http://www.xsane.org/
Comment        : Gtk-based X11 frontend for SANE (Scanner Access Now Easy)
Options        :
        DOCS           : on
        GIMP           : on
        NLS            : on
Shared Libs required:
        libtiff.so.5
        libsane.so.1
        libpng15.so.15
        libpangoft2-1.0.so.0
        libpangocairo-1.0.so.0
        libpango-1.0.so.0
        liblcms.so.1
        libjpeg.so.8
        libintl.so.8
        libgtk-x11-2.0.so.0
        libgobject-2.0.so.0
        libglib-2.0.so.0
        libgio-2.0.so.0
        libgimpwidgets-2.0.so.0
        libgimpui-2.0.so.0
        libgimpmodule-2.0.so.0
        libgimpmath-2.0.so.0
        libgimpconfig-2.0.so.0
        libgimpcolor-2.0.so.0
        libgimpbase-2.0.so.0
        libgimp-2.0.so.0
        libgdk_pixbuf-2.0.so.0
        libgdk-x11-2.0.so.0
        libfreetype.so.6
        libfontconfig.so.1
        libcairo.so.2
        libatk-1.0.so.0
Annotations    :
Flat size      : 4.71MiB
Description    :
XSANE is a gtk based X11 frontend for SANE (Scanner Access Now Easy).
It works either standalone or as a GIMP plugin.

WWW: http://www.xsane.org/
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2014-12-15 21:27:00 UTC
Maintainer CC'd
Comment 2 Dave Shar 2014-12-22 02:12:10 UTC
(In reply to Bugzilla Automation from comment #1)
> Maintainer CC'd

(In reply to Mike Clarke from comment #0)
> curlew:/home/mike% freebsd-version -uk
> 10.1-RELEASE
> 10.1-RELEASE-p1
> 
> Gimp produces the error message
> 
>      /home/mike/.gimp-2.8/plug-ins/xsane: GIMP support missing
>      (gimp:31420): LibGimpBase-WARNING **: gimp: gimp_wire_read(): error
> 

Hi, I am in the middle of holidays, will take a look in first week of Jan. IRC this does not happen on FreeBSD-9.
Comment 3 Mike Clarke 2014-12-22 09:49:52 UTC
(In reply to Dave Shar from comment #2)

> Hi, I am in the middle of holidays, will take a look in first week of Jan.
> IRC this does not happen on FreeBSD-9.

I did have the same problem with 9.3-RELEASE <https://lists.freebsd.org/pipermail/freebsd-ports/2014-September/095300.html> but held back with a bug report until I'd upgraded to 10 in case it went away. It seems to affect xsane installed from the FreeBSD repository or a local poudriere repository but no problem when built directly from ports.
Comment 4 Dave Shar 2014-12-22 10:55:19 UTC
(In reply to Mike Clarke from comment #3)
> 
> I did have the same problem with 9.3-RELEASE
> <https://lists.freebsd.org/pipermail/freebsd-ports/2014-September/095300.
> html> but held back with a bug report until I'd upgraded to 10 in case it
> went away. It seems to affect xsane installed from the FreeBSD repository or
> a local poudriere repository but no problem when built directly from ports.

This is poudriere related issue since install from ports works. Packages in FreeBSD repositories are built with poudriere or tinderbox and that is why it does not work in your case. I believe the plugin softlink is already there in ~/.gimp-\* 

I will still check why it does not work and see what can be done.
Comment 5 Mike Clarke 2014-12-22 11:10:02 UTC
(In reply to Dave Shar from comment #4)
> (In reply to Mike Clarke from comment #3)
> I believe the plugin softlink is already there in ~/.gimp-\* 

Yes it is

curlew:/home/mike% ls -l ~/.gimp-2.8/plug-ins/
total 1
lrwxr-xr-x  1 mike  mike  20  1 Sep 15:53 xsane@ -> /usr/local/bin/xsane
curlew:/home/mike% ls -l /usr/local/bin/xsane
-r-xr-xr-x  1 root  wheel  620008 15 Dec 21:19 /usr/local/bin/xsane*
Comment 6 Stefan Ehmann 2014-12-29 21:10:05 UTC
Currently, gimp is listed as run dependency.

For the plugin to work, gimp has to be available during the build.
Otherwise:

checking for GIMP - version >= 1.3.23... 
*** Could not run GIMP test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GIMP is incorrectly installed.
*** When gimp-2.0 is not installed but gimp-1.x is installed then you can
*** ignore this error message.

The problem should also occur if you build xsane from ports when gimp is not yet installed.
Comment 7 Andriy Gapon freebsd_committer freebsd_triage 2015-06-02 11:28:05 UTC
Comment #6 correctly identified the problem.
Are there any news on this bug?
Comment 8 Andriy Gapon freebsd_committer freebsd_triage 2015-06-04 11:47:36 UTC
Created attachment 157407 [details]
trivial fix

This trivial patch seems to fix the problem.
Comment 9 Mike Clarke 2015-06-04 16:50:03 UTC
(In reply to Andriy Gapon from comment #8)
Yes, the patch fixes the problem here
Comment 10 commit-hook freebsd_committer freebsd_triage 2015-06-25 21:57:59 UTC
A commit references this bug:

Author: amdmi3
Date: Thu Jun 25 21:57:49 UTC 2015
New revision: 390603
URL: https://svnweb.freebsd.org/changeset/ports/390603

Log:
  - Fix dependency on gimp: this is in face lib-depend

  PR:		196000
  Submitted by:	jmc-freebsd2@milibyte.co.uk, avg
  Approved by:	maintainer timeout (koalative@gmail.com, 7 months)

Changes:
  head/graphics/xsane/Makefile