Bug 241025 - devel/gperf31: conflicts with devel/gperf
Summary: devel/gperf31: conflicts with devel/gperf
Status: In Progress
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Li-Wen Hsu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-02 18:49 UTC by Martin Birgmeier
Modified: 2019-10-08 09:03 UTC (History)
5 users (show)

See Also:
dinoex: maintainer-feedback+


Attachments
proposed patch (1.10 KB, patch)
2019-10-06 20:19 UTC, Dirk Meyer
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Birgmeier 2019-10-02 18:49:06 UTC
Scenario:
- Using portmaster to update ports
- Various ports using gperf installed, as well as editors/libreoffice which uses devel/gperf31

Result:
- It is not possible anymore to use "portmaster -a" to update all ports because sooner or later the update chokes on a gperf/gperf31 conflict

It seems that gperf31 was introduced in order to be able to build libreoffice. What hinders an upgrade of devel/gperf itself to 3.1?

-- Martin
Comment 1 Joerg Pulz 2019-10-04 06:34:57 UTC
+1 from my side.

This is really annoying and needs clean up. Either both ports can co-exist or it should give only one of them and all other ports should depend on this one.

Kind regards
Joerg
Comment 2 Baptiste Daroussin freebsd_committer 2019-10-04 07:27:32 UTC
Please upgrade devel/gperf to 3.1 version instead of adding gperf31!
Comment 3 Joerg Pulz 2019-10-04 09:47:00 UTC
I've already tried this without success.

portmaster -vdw -o devel/gperf31 gperf-3.0.3_2

pkg set -n gperf-3.0.3_2:gperf31-3.1

pkg set -o devel/gperf:devel/gperf31

It's not working as ${PORTSDIR}/Mk/Uses/gperf.mk contains an explicit dependency on devel/gperf.

If devel/gperf31 is installed and yoy try to build a port that makes use of USES=gperf, devel/gperf is added as dependency and you will run into the conflict.
Comment 4 Li-Wen Hsu freebsd_committer 2019-10-05 02:10:54 UTC
Explicitly set the flag to ask maintainer's opinion to update devel/gperf.
Comment 5 Dirk Meyer freebsd_committer 2019-10-06 19:41:13 UTC
Sorry, upgrading gperf will cause LICENSE problems.

devel/gperf will not be updated as some ports need a GPLv2 version.
Linking the code conflicts with GPLv3.

A already asked the maintainer of devel/gperf31 to use a suffix for his version or use to the GPLv2 version.
Comment 6 Dirk Meyer freebsd_committer 2019-10-06 20:19:03 UTC
Created attachment 208144 [details]
proposed patch

This patch will rename gperf tp gperf31

libreoffice needs to be patched to use the changed name.
Comment 7 Dirk Meyer freebsd_committer 2019-10-06 20:27:04 UTC
(In reply to Martin Birgmeier from comment #0)

to build libreoffice, you need to deinstall devel/gperf
and reinstall it for building other ports.
Comment 8 commit-hook freebsd_committer 2019-10-07 17:26:58 UTC
A commit references this bug:

Author: lwhsu
Date: Mon Oct  7 17:26:39 UTC 2019
New revision: 513974
URL: https://svnweb.freebsd.org/changeset/ports/513974

Log:
  Install as bin/gperf31 to prevent conflict with devel/gperf

  PR:		241025
  Submitted by:	dinoex
  Reported by:	Martin Birgmeier <d8zNeCFG@aon.at>

Changes:
  head/devel/gperf31/Makefile
  head/devel/gperf31/pkg-plist
Comment 9 commit-hook freebsd_committer 2019-10-07 17:30:01 UTC
A commit references this bug:

Author: lwhsu
Date: Mon Oct  7 17:29:33 UTC 2019
New revision: 513975
URL: https://svnweb.freebsd.org/changeset/ports/513975

Log:
  Follow up r513974 to use bin/gperf31

  PR:		241025

Changes:
  head/editors/libreoffice/Makefile
Comment 10 Joerg Pulz 2019-10-08 08:51:09 UTC
Half way there:

Installing gperf31-3.1_1...
pkg-static: gperf31-3.1_1 conflicts with gperf-3.0.3_2 (installs files into the same place).  Problematic file: /usr/local/share/info/gperf.info
*** Error code 70

The info file needs renaming too.
Comment 11 commit-hook freebsd_committer 2019-10-08 09:03:25 UTC
A commit references this bug:

Author: lwhsu
Date: Tue Oct  8 09:02:25 UTC 2019
New revision: 514059
URL: https://svnweb.freebsd.org/changeset/ports/514059

Log:
  Complete renaming to gperf31

  PR:		241025
  Submitted by:	Joerg Pulz <Joerg.Pulz@frm2.tum.de>

Changes:
  head/devel/gperf31/Makefile