Bug 431161

Summary: Review Request: mathmap - A gimp plugin and commandline tool
Product: [Fedora] Fedora Reporter: Robin Norwood <robin.norwood>
Component: Package ReviewAssignee: Mamoru TASAKA <mtasaka>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: fedora-package-review, mtasaka, notting
Target Milestone: ---Flags: mtasaka: fedora-review+
kevin: fedora-cvs+
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 1.2.4-4.fc9 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-06-03 07:29:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Robin Norwood 2008-02-01 03:25:20 UTC
Spec URL: http://people.redhat.com/rnorwood/rpms/mathmap.spec
SRPM URL: http://people.redhat.com/rnorwood/rpms/mathmap-1.2.4-1.fc9.src.rpm
Description: MathMap is a GIMP plug-in which allows distortion of images specified
by mathematical formulae.  For each pixel in the generated image, an
expression is evaluated which should return a pixel value.  The
expression can either refer to a pixel in the source image or can
generate pixels completely independent of the source.

Comment 1 Robin Norwood 2008-02-01 03:27:55 UTC
There are unfortunately a few rpmlint warnings:

mathmap.i386: W: devel-file-in-non-devel-package
/usr/share/gimp/2.0/mathmap/new_template.c
mathmap.i386: W: devel-file-in-non-devel-package
/usr/share/gimp/2.0/mathmap/blender_opmacros.h
mathmap.i386: W: devel-file-in-non-devel-package /usr/share/gimp/2.0/mathmap/pools.h
mathmap.i386: W: devel-file-in-non-devel-package
/usr/share/gimp/2.0/mathmap/opmacros.h
mathmap.i386: W: devel-file-in-non-devel-package
/usr/share/gimp/2.0/mathmap/blender_template.c

These seem to be required for the plugin to work at runtime, despite being
source files.

mathmap.i386: W: symlink-should-be-relative /usr/lib/gimp/2.0/plug-ins/mathmap
/usr/bin/mathmap

Not sure if this matters.

mathmap.i386: E: only-non-binary-in-usr-lib

I don't think I can fix this, because the gimp plugin path isn't picked by me


Comment 2 Mamoru TASAKA 2008-02-06 13:17:00 UTC
First of all, rebuild doesn't succeed.
http://koji.fedoraproject.org/koji/taskinfo?taskID=398683
You can check this by koji scratch build.

From just glancing at your spec file:
- Source must be given with full URL
- Fedora specific compilation flags don't seem to be honored
  correctly.
- Would you try to use relative symlink instead of absolute one?
- When using "install" or "cp" commands, add "-p" option to keep
  timestamps on installed files.
- It seems "Requires: gimp" is needed because 
  `gimptool --gimpdatadir` is owned by gimp but not by gimp-libs.

Comment 3 Robin Norwood 2008-02-07 19:14:45 UTC
- Source must be given with full URL

Fixed.

- Fedora specific compilation flags don't seem to be honored
  correctly.

Maybe I'm being dense, but I'm not sure what you mean.

- Would you try to use relative symlink instead of absolute one?

Fixed.

- When using "install" or "cp" commands, add "-p" option to keep
  timestamps on installed files.

Fixed.

- It seems "Requires: gimp" is needed because 
  `gimptool --gimpdatadir` is owned by gimp but not by gimp-libs.

Fixed.

New spec and srpm at:
http://people.redhat.com/rnorwood/rpms/mathmap.spec
http://people.redhat.com/rnorwood/rpms/mathmap-1.2.4-2.fc9.src.rpm


Comment 4 Mamoru TASAKA 2008-02-08 15:06:14 UTC
* compiler falgs
  - Well, what "Fedora specific compilation flags are not honored" means
    is related to "Compiler flags" of
    http://fedoraproject.org/wiki/Packaging/Guidelines
    When using gcc or g++, we must ensure that the compiler option specified
    as %optflags are correctly used. On rawhide i386 system, currently
    they are:
-----------------------------------------------------------------------------
[tasaka1@localhost ~]$ rpm --eval %optflags
-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables
------------------------------------------------------------------------------
    However the build log (from:
    http://koji.fedoraproject.org/koji/taskinfo?taskID=402716 )
    shows:
-------------------------------------------------------------------------------
gcc -I. -D_GNU_SOURCE -DCGEN_CC="\"gcc -O2 -c -fPIC -o\"" -DCGEN_LD="\"gcc
-shared -o\"" -O2 -Wall `gimptool-2.0 --cflags` `pkg-config --cflags gmodule-2.0
gthread-2.0 gtksourceview-1.0` -DLOCALEDIR=\"/usr/local/share/locale\"
-DTEMPLATE_DIR=\"`gimptool-2.0 --gimpdatadir`/mathmap\"
-DPIXMAP_DIR=\"`gimptool-2.0 --gimpdatadir`/mathmap\" -DENABLE_NLS 
-DMATHMAP_CMDLINE -DGIMPDATADIR=\"`gimptool-2.0 --gimpdatadir`\"
-DMATHMAP_VERSION=\"1.2.4\" -DRWIMG_JPEG -DRWIMG_PNG -DRWIMG_GIF -o
mathmap_common.o -c mathmap_common.c
-------------------------------------------------------------------------------
   , where %optflags are not correctly honored.

* LOCALEDIR
  - And as far as I checked build.log, perhaps LOCALEDIR is wrong.

Comment 5 Mamoru TASAKA 2008-02-22 17:32:10 UTC
ping?

Comment 6 Robin Norwood 2008-02-22 17:52:46 UTC
I need to take the time to convince it to honor the %optflags, but I haven't had
a chance yet.

Comment 7 Mamoru TASAKA 2008-03-31 13:30:23 UTC
ping again?

Comment 8 Mamoru TASAKA 2008-04-29 15:58:38 UTC
ping again?

Comment 9 Mamoru TASAKA 2008-05-08 14:38:44 UTC
I will close this bug as NOTABUG if no response is received from the
reporter within ONE WEEK.

Comment 10 Robin Norwood 2008-05-12 17:50:34 UTC
Sorry about the delay, I've been knee deep in other stuff for awhile.  I'll take
another look at this today.

Comment 11 Robin Norwood 2008-05-12 19:11:35 UTC
Ok, I think this new spec and SRPM fix both the optflags problem and the locale
directory problem:

http://people.redhat.com/rnorwood/rpms/mathmap.spec
http://people.redhat.com/rnorwood/rpms/mathmap-1.2.4-3.fc9.src.rpm

Koji build against dist-f10:

http://koji.fedoraproject.org/koji/taskinfo?taskID=605186

Comment 12 Mamoru TASAKA 2008-05-13 17:03:30 UTC
Well, for 1.2.4-3:

* This package should have explicit "Requires: gimp" as
  - currently only gimp-libs is installed together by yum from library
    dependency
  - on the other hand $(gimptool --gimpdatadir) is owned by gimp,
    not by gimp-libs

Other things are okay.
-----------------------------------------------------------------------
       This package (mathmap) is APPROVED by me
-----------------------------------------------------------------------

Comment 13 Mamoru TASAKA 2008-05-21 16:03:24 UTC
ping?

Comment 14 Robin Norwood 2008-05-21 18:26:14 UTC
Added the 'Requires: gimp':

http://people.redhat.com/rnorwood/rpms/mathmap.spec
http://people.redhat.com/rnorwood/rpms/mathmap-1.2.4-4.fc9.src.rpm

Since you've approved it with this change, here's the cvs request:

New Package CVS Request
=======================
Package Name: mathmap
Short Description: A gimp plugin and commandline tool
Owners: rnorwood
Branches: F-9
InitialCC: 
Cvsextras Commits: Yes



Comment 15 Kevin Fenzi 2008-05-22 18:31:40 UTC
cvs done.

Comment 16 Mamoru TASAKA 2008-05-25 12:05:08 UTC
Please submit a F-9 updates request on bodhi. closing.

Comment 17 Fedora Update System 2008-05-27 15:50:06 UTC
mathmap-1.2.4-4.fc9 has been submitted as an update for Fedora 9

Comment 18 Fedora Update System 2008-06-03 07:29:30 UTC
mathmap-1.2.4-4.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.