ports/162088: inconsistencies in locally generated INDEX file

Alfred Bartsch bartsch at dssgmbh.de
Fri Oct 28 09:50:10 UTC 2011

>Number:         162088
>Category:       ports
>Synopsis:       inconsistencies in locally generated INDEX file
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 28 09:50:09 UTC 2011
>Originator:     Alfred Bartsch
>Release:        FreeBSD 8.2-stable
Data-Service GmbH
FreeBSD pcadmin.incore 8.2-STABLE FreeBSD 8.2-STABLE #0: Thu Jul 28 15:53:55 CEST 2011     root at pcadmin.incore:/usr/obj/usr/src/sys/PCADMIN  i386

setting "A4=yes" and "PAPERSIZE=a4" in /etc/make.conf, which is needed in our environment causes some warning messages while generating local index file:
Warning: Duplicate INDEX entry: jpeg2ps-a4-1.9_2
Warning: Duplicate INDEX entry: a2ps-a4-4.13b_4
Warning: Duplicate INDEX entry: c2ps-a4-4.0_1
Warning: Duplicate INDEX entry: enscript-a4-1.6.4_4
Warning: Duplicate INDEX entry: html2ps-a4-1.0.b5_4,1
Warning: Duplicate INDEX entry: lprps-a4-2.5
Warning: Duplicate INDEX entry: mp-a4-3.0.1
Warning: Duplicate INDEX entry: psutils-a4-1.17_2

the first part of the resulting lines in INDEX-8 then read:
a2ps-a4-4.13b_4|/usr/ports/print/a2ps-letter|/usr/local|Formats an asc
c2ps-a4-4.0_1|/usr/ports/print/c2ps-letter|/usr/local|A PostScript pre
lprps-a4-2.5|/usr/ports/print/lprps-letter|/usr/local|PostScript print
mp-a4-3.0.1|/usr/ports/print/mp-letter|/usr/local|A PostScript printin

The origins of the installed packages all correctly show the a4-version:
$ pkg_info -qo psutils-a4-1.17_2

Checking the version of the installed package against /usr/ports/INDEX-8 fails: 
$ pkg_version -vIL= -s psutils-a4-1.17_2
psutils-a4-1.17_2                   !   Comparison failed

At least in these cases "make index" picks the wrong combination of package name and originating port directory.

add "A4=yes" and "PAPERSIZE=a4" to /etc/make.conf
cd /usr/ports
make index


More information about the freebsd-ports-bugs mailing list