Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Mar 2001 00:12:37 -0700 (MST)
From:      jjreynold@home.com
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        sobomax@freebsd.org
Subject:   ports/25506: changes to sysutils/cd9660_unicode breaks 'make index'
Message-ID:  <200103030712.f237Cbq01219@whale.home-net>

next in thread | raw e-mail | index | archive | help

>Number:         25506
>Category:       ports
>Synopsis:       changes to sysutils/cd9660_unicode breaks 'make index'
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 02 23:20:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     John Reynolds
>Release:        FreeBSD 4.2-STABLE i386
>Organization:
>Environment:

FreeBSD whale 4.2-STABLE FreeBSD 4.2-STABLE #0: Sat Jan 20 20:48:40 MST 2001
root@dolphin:/usr/obj/usr/src/sys/WHALE  i386 

with fresh ports tree as of ~ Sat Mar  3 00:06:20 MST 2001


>Description:

Recent changes to the sysutils/cd9660_unicode Makefile break 'make index' from
the root of the ports tree IFF you don't have kernel sources on the machine.

The port itself needs kernel sources to exist but a makefile shell command (!=)
uses grep on a file in the /sys tree. If this file isn't there grep
complains. This happens even on a "make describe" which is what is required by
a "make index" from the root of the ports tree--thereby introducing garbage
from the failed grep command into the INDEX building script's input.

>How-To-Repeat:

Unmount or temporarily move your /usr/src directory so that it does not exist.

  # cd /usr/ports/sysutils/cd9660_unicode
  # make describe
  grep: /usr/src/sys/isofs/cd9660/cd9660_util.c: No such file or directory
  cd9660_unicode-1.0|/usr/ports/sysutils/cd9660_unicode|/usr/local|A kernel driver for reading CD disks with non-English filenames|/usr/ports/sysutils/cd9660_unicode/pkg-descr|sobomax@FreeBSD.org|sysutils|||


>Fix:

Apply this quickie diff to the Makefile redirecting stderr to /dev/null. I've
tested this with sources unmounted and mount on my machine and it seems to work.

--- Makefile.orig       Fri Mar  2 23:54:55 2001
+++ Makefile    Sat Mar  3 00:01:44 2001
@@ -21,7 +21,7 @@
                        ${SED} 's|\.txt|,|g'
 FMT=           /usr/bin/fmt
 FLAG!=         /usr/bin/grep -e cd9660_wchar2char \
-                       ${SRCPREFIX}/sys/isofs/cd9660/cd9660_util.c || \
+                       ${SRCPREFIX}/sys/isofs/cd9660/cd9660_util.c 2> /dev/null || \
                        /usr/bin/true
 
 .if (${FLAG} == "")

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103030712.f237Cbq01219>