ports/69802: [patch] ddd port forces gcc32 install although gcc33 is installed

Florian Liekweg liekweg at gmx.de
Fri Jul 30 13:30:23 UTC 2004


>Number:         69802
>Category:       ports
>Synopsis:       [patch] ddd port forces gcc32 install although gcc33 is installed
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 30 13:30:22 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Florian Liekweg
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
disorganized
>Environment:
System: FreeBSD sputnix.magic.de 4.9-STABLE FreeBSD 4.9-STABLE #15: Sun May 23 23:37:52 CEST 2004 root at sputnix.magic.de:/usr/src/sys/compile/SPUTNIX i386

Packages *after* portupgrade:
gcc-3.3.4_20040616
ddd-3.3.8

>Description:
I installed the lang/gcc33 port some time ago.
Now, I'm using cvsup and portupgrade -a.
Currently, devel/ddd is being upgraded.  As a dependency, gcc32 is installed.
The Makefile of devel/ddd says that ddd will build with either 3.1, 3.2 or
3.3, and chooses the 'right' version based on OSVERSION.  For my humble
4.9-STABLE, it chooses (and builds) gcc 3.2.

It would be nice if it could first check wether any of gcc31, gcc32 or gcc33
is installed, and use that, before doing the OSVERSION check.

>How-To-Repeat:
Use 4.9-STABLE (any 4.x should do according to the Makefile)
Install lang/gcc33
Install devel/ddd
See lang/gcc32 being installed
>Fix:
Change devel/ddd/Makefile:

diff -Bb -c /usr/ports/devel/ddd/Makefile tmp/Makefile
*** /usr/ports/devel/ddd/Makefile       Sun Jun 27 15:49:53 2004
--- tmp/Makefile        Wed Jul 21 22:59:35 2004
***************
*** 55,61 ****
  # DDD builds with either GCC 3.1, GCC 3.2 or GCC 3.3
  # Use 3.1 or 3.2 if it is available with base system
  # Otherwise, default to 3.3
! .if ${OSVERSION} >= 500035 && ${OSVERSION} <= 500038
  USE_GCC=3.1
  .elif ${OSVERSION} < 501103
  USE_GCC=3.2
--- 55,71 ----
  # DDD builds with either GCC 3.1, GCC 3.2 or GCC 3.3
  # Use 3.1 or 3.2 if it is available with base system
  # Otherwise, default to 3.3
!
! # since we can use any 3.x gcc, check wether one of them
! # is installed:
! .if exists /usr/local/bin/gcc31
! USE_GCC=3.1
! .elif exists /usr/local/bin/gcc32
! USE_GCC=3.2
! .elif exists /usr/local/bin/gcc33
! USE_GCC=3.3
! # ok, none installed.  Check OSVERSION:
! .elif ${OSVERSION} >= 500035 && ${OSVERSION} <= 500038
  USE_GCC=3.1
  .elif ${OSVERSION} < 501103
  USE_GCC=3.2
>Release-Note:
>Audit-Trail:
>Unformatted:
 X-send-pr-version: 3.113
 X-GNATS-Notify:
 
 



More information about the freebsd-ports-bugs mailing list