Bug 218838 - lang/pypy: is lang/pypy and lang/pypy3 in conflict?
Summary: lang/pypy: is lang/pypy and lang/pypy3 in conflict?
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: David Naylor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-24 09:08 UTC by Yunchih Chen
Modified: 2017-06-02 00:54 UTC (History)
3 users (show)

See Also:
koobs: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yunchih Chen 2017-04-24 09:08:49 UTC
I have a custom meta package that depends on both lang/pypy and lang/pypy3.
After updating port tree to r438820, the build fails with the following messages:
 
===>   local-217-2017.04.21 depends on package: pypy>=a - not found
===>   Installing existing package /packages/All/pypy-5.7.1_1.txz
[freebsd10-default-workstation-job-01] Installing pypy-5.7.1_1...
[freebsd10-default-workstation-job-01] Extracting pypy-5.7.1_1: .......... done
....
===>   local-217-2017.04.21 depends on package: pypy>=a - found
===>   Returning to build of local-217-2017.04.21
===>   local-217-2017.04.21 depends on package: pypy3>=a - not found
===>   Installing existing package /packages/All/pypy3-5.7.1_1.txz
[freebsd10-default-workstation-job-01] Installing pypy3-5.7.1_1...
pkg-static: pypy3-5.7.1_1 conflicts with pypy-5.7.1_1 (installs files into the same place).  Problematic file: /usr/local/pypy-5.7/LICENSE

Failed to install the following 1 package(s): /packages/All/pypy3-5.7.1_1.txz
*** Error code 70

It turns out that the %%PYPY_DIR%% variable in lang/pypy and lang/pypy3 both resolve to /usr/local/pypy-5.7/.  

Relevant commit: r438095 that might cause this:
The DISTVERSION in Makefile is modified as
lang/pypy: 5.6.0 --> 5.7.1
lang/pypy3: 5.5.0-alpha --> 5.7.1
Comment 1 commit-hook freebsd_committer freebsd_triage 2017-05-01 18:01:55 UTC
A commit references this bug:

Author: dbn
Date: Mon May  1 18:00:57 UTC 2017
New revision: 439901
URL: https://svnweb.freebsd.org/changeset/ports/439901

Log:
  lang/pypy3: un-conflict with pypy

   - ensure pypy3's directory under $PREFIX is unique to pypy's.
   - remove swap files from pkg-plist (i.e. revert r439409).

  PR:		218838
  Reported by:	Yunchih Chen <yunchih@csie.ntu.edu.tw>

Changes:
  head/lang/pypy/Makefile
  head/lang/pypy/bsd.pypy.mk
  head/lang/pypy3/Makefile
  head/lang/pypy3/pkg-plist
Comment 2 David Naylor freebsd_committer freebsd_triage 2017-05-01 18:03:05 UTC
Fixed, thank you for the report.
Comment 3 commit-hook freebsd_committer freebsd_triage 2017-05-01 18:10:06 UTC
A commit references this bug:

Author: dbn
Date: Mon May  1 18:09:47 UTC 2017
New revision: 439903
URL: https://svnweb.freebsd.org/changeset/ports/439903

Log:
  lang/pypy3: bump PORTREVISION due to commit r439901

   - lang/pypy overrides lang/pypy3's PORTREVISION field

  PR:		218838

Changes:
  head/lang/pypy/Makefile
Comment 4 Kubilay Kocak freebsd_committer freebsd_triage 2017-06-02 00:54:12 UTC
Assign to committer that resolved