Bug 1108395

Summary: Review Request: netgen-mesher - Automatic mesh generation tool
Product: [Fedora] Fedora Reporter: Sandro Mani <manisandro>
Component: Package ReviewAssignee: Mukundan Ragavan <nonamedotc>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: dave.love, nonamedotc, package-review
Target Milestone: ---Flags: nonamedotc: fedora-review+
kevin: fedora-cvs+
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: netgen-mesher-5.3.1-3.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-29 02:54:04 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:
Bug Depends On: 1108355    
Bug Blocks:    
Attachments:
Description Flags
EPEL6 fix
none
Comment
none
Comment none

Description Sandro Mani 2014-06-11 23:23:19 UTC
Spec URL: http://smani.fedorapeople.org/review/netgen-mesher.spec
SRPM URL: http://smani.fedorapeople.org/review/netgen-mesher-5.1-1.fc21.src.rpm
Description: Automatic mesh generation tool
Fedora Account System Username: smani

Comment 1 Sandro Mani 2014-06-12 15:03:24 UTC
Spec URL: http://smani.fedorapeople.org/review/netgen-mesher.spec
SRPM URL: http://smani.fedorapeople.org/review/netgen-mesher-5.1-2.fc21.src.rpm

%changelog
* Thu Jun 12 2014 Sandro Mani <manisandro> - 5.1-2
- Split off libraries in libs subpackages
- Rename shared libraries to less generic names


Note: rpmlint will complain about *tons* of undefined-non-weak-symbols. These are caused by the fact that all libraries except libnglib are heavily under-linked. This could be fixed to some extent, but not completely (at least, not in a straight forward way), since the libng* libraries would have to be inter-linked, which is hard to so since link dependencies for one library have not yet been built, but conversely those link dependencies would need to be linked against the library currently being built. All these affected libraries seem to be private libraries, in the sense that only the netgen_mesher executable uses these, third-party code should only use libnglib, which is linked against the remaining libraries.

Comment 2 Sandro Mani 2014-06-12 15:33:10 UTC
Spec URL: http://smani.fedorapeople.org/review/netgen-mesher.spec
SRPM URL: http://smani.fedorapeople.org/review/netgen-mesher-5.1-3.fc21.src.rpm

%changelog
* Thu Jun 12 2014 Sandro Mani <manisandro> - 5.1-3
- Fix libgnlib soname

Comment 3 Sandro Mani 2014-06-13 16:24:55 UTC
Spec URL: http://smani.fedorapeople.org/review/netgen-mesher.spec
SRPM URL: http://smani.fedorapeople.org/review/netgen-mesher-5.1-4.fc21.src.rpm

* Fri Jun 13 2014 Sandro Mani <manisandro> - 5.1-4
- Update netgen-5.1_build.patch
- Add netgen-5.1_msc-ver.patch

Comment 4 Mukundan Ragavan 2014-06-14 00:23:04 UTC
Created attachment 915922 [details]
Comment

(This comment was longer than 65,535 characters and has been moved to an attachment by Red Hat Bugzilla).

Comment 5 Sandro Mani 2014-06-14 01:05:58 UTC
> ---> About this - Is there a specific reason why .desktop and icons are in -common instead of the base package?

Yes, you should theoretically be able to install just netgen-mesher-openmpi or netgen-mesher-mpich and then, when loading the respective MPI environment, i.e. /usr/lib64/openmpi/bin will be added to the PATH, and the desktop file should *theoretically* launch that executable. So putting the desktop file in common makes is valid for all variants of the netgen-mesher executable. Probably somewhat of an overkill, but yeah :)

> ---> Could this (and few more shared-libs-calls-exit) be fixed or brought to attention of the upstream folks?

Yes, could also try to get some of the patches upstreamed

> ---> From the build log and buildroot, the patches are applied during build. 

%autosetup does this


Spec URL: http://smani.fedorapeople.org/review/netgen-mesher.spec
SRPM URL: http://smani.fedorapeople.org/review/netgen-mesher-5.1-5.fc21.src.rpm

%changelog
* Sat Jun 14 2014 Sandro Mani <manisandro> - 5.1-5
- Add subpackage for private headers
- Add patches from salome
- Make common package noarch
- Add missing %%{?_isa}

Remarks about private headers and salome patch:
- Private headers are needed to compile the salome-smesh netgen plugin (which is in turn required for salome-meca -> code aster). Instead of going the way of a bundling exception and what not, I guess this is the simplest approach.
- Salome patches: reviewing the patch, they just fixed various issues with the code, not otherwise changing the behaviour of the code. So again, just patching the sources directly is easier than bundling a separate netgen in salome.

Comment 6 Mukundan Ragavan 2014-06-14 01:22:28 UTC
(In reply to Sandro Mani from comment #5)

> > ---> From the build log and buildroot, the patches are applied during build. 
> 
> %autosetup does this
> 

I may not have been clear here but I was not complaining. All was well here. :)

Looking at the rest now.

Comment 7 Sandro Mani 2014-06-14 01:23:50 UTC
Sure, just to clarify ;)

Comment 8 Sandro Mani 2014-06-14 12:19:31 UTC
Spec URL: http://smani.fedorapeople.org/review/netgen-mesher.spec
SRPM URL: http://smani.fedorapeople.org/review/netgen-mesher-5.1-6.fc21.src.rpm

%changelog
* Sat Jun 14 2014 Sandro Mani <manisandro> - 5.1-6
- Add netgen-5.1_relative-includes.patch

Comment 9 Mukundan Ragavan 2014-06-14 16:55:23 UTC
Isn't it better to call -private subpackage -private-devel since it contains headers

@@ -74,6 +75,13 @@
 %description    devel
 Development files for netgen.
 
+%package        private
+Summary:        Private headers of netgen
+Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
+
+%description    private
+Private headers of netgen, needed to build certain netgen based software packages.
+
 
+# Install private headers
+(
+cd libsrc
+find \( -name *.hpp -or -name *.hxx -or -name *.h -or -name *.ixx -or -name *.jxx \) -exec install -Dpm 0644 {} %{buildroot}%{_includedir}/%{name}/private/{} \;
+)
+
  
+%files private
+%{_includedir}/%{name}/private
+

Comment 10 Sandro Mani 2014-06-14 17:11:32 UTC
Good idea, I'll go with devel-private as was done in the qt package.

Spec URL: http://smani.fedorapeople.org/review/netgen-mesher.spec
SRPM URL: http://smani.fedorapeople.org/review/netgen-mesher-5.1-7.fc21.src.rpm

%changelog
* Sat Jun 14 2014 Sandro Mani <manisandro> - 5.1-7
- Rename subpackage private -> devel-private

Comment 11 Mukundan Ragavan 2014-06-14 20:20:30 UTC
Created attachment 915923 [details]
Comment

(This comment was longer than 65,535 characters and has been moved to an attachment by Red Hat Bugzilla).

Comment 12 Sandro Mani 2014-06-14 20:33:20 UTC
Spec updated (without release bump), and to my knowledge all versioned dependencies are correct.

Comment 13 Mukundan Ragavan 2014-06-14 20:35:22 UTC
(In reply to Sandro Mani from comment #12)
> .... to my knowledge all versioned
> dependencies are correct.

That's my "evaluation" as well.

Package Approved!

Comment 14 Sandro Mani 2014-06-14 20:37:46 UTC
Thanks! Any time you need a review, just ping me!

New Package SCM Request
=======================
Package Name: netgen-mesher
Short Description: Automatic mesh generation tool
Owners: smani
Branches: f20
InitialCC:

Comment 15 Kevin Fenzi 2014-06-18 16:22:39 UTC
Git done (by process-git-requests).

Comment 16 Fedora Update System 2014-06-19 16:56:31 UTC
netgen-mesher-5.1-8.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/netgen-mesher-5.1-8.fc20

Comment 17 Fedora Update System 2014-06-19 18:07:37 UTC
netgen-mesher-5.1-9.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/netgen-mesher-5.1-9.fc20

Comment 18 Dave Love 2014-06-19 20:14:00 UTC
Created attachment 910517 [details]
EPEL6 fix

This doesn't build on EPEL6, which is what I'm interested in and which must be a
major platform for this sort of thing.
Patch attached in the hope it can get into EPEL.  It currently requires the
epel-testing repo.

Comment 19 Sandro Mani 2014-06-19 21:03:57 UTC
Thanks for the patch. Do you want to maintain epel or should I do it (I'm happy to do so). Personally I'd probably apply the patch only in the epel branch.

Comment 20 Fedora Update System 2014-06-21 02:59:19 UTC
Package netgen-mesher-5.1-9.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing netgen-mesher-5.1-9.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-7576/netgen-mesher-5.1-9.fc20
then log in and leave karma (feedback).

Comment 21 Dave Love 2014-06-23 13:20:57 UTC
(In reply to Sandro Mani from comment #19)
> Thanks for the patch. Do you want to maintain epel or should I do it (I'm
> happy to do so). Personally I'd probably apply the patch only in the epel
> branch.

I don't yet have sponsorship, but I'm happy to send changes for gmsh/aster stuff
to work on EPEL6, at least, if that's OK.

Comment 22 Sandro Mani 2014-06-23 15:33:42 UTC
Ok. Yeah, patches are always welcome, since personally I don't run EL often.

Package Change Request
======================
Package Name: netgen-mesher
New Branches: el6 epel7
Owners: smani
InitialCC:

Comment 23 Kevin Fenzi 2014-06-23 17:09:12 UTC
Git done (by process-git-requests).

Comment 24 Fedora Update System 2014-06-29 02:54:04 UTC
netgen-mesher-5.1-9.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 25 Fedora Update System 2015-02-09 12:54:44 UTC
netgen-mesher-5.3.1-3.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/netgen-mesher-5.3.1-3.el6

Comment 26 Fedora Update System 2015-02-09 12:55:20 UTC
netgen-mesher-5.3.1-3.el7 has been submitted as an update for Fedora EPEL 7.
https://admin.fedoraproject.org/updates/netgen-mesher-5.3.1-3.el7

Comment 27 Fedora Update System 2015-03-01 22:00:03 UTC
netgen-mesher-5.3.1-3.el6 has been pushed to the Fedora EPEL 6 stable repository.

Comment 28 Fedora Update System 2015-03-01 22:00:30 UTC
netgen-mesher-5.3.1-3.el7 has been pushed to the Fedora EPEL 7 stable repository.