Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Apr 1997 21:20:59 +0900 (JST)
From:      sanpei@yy.cs.keio.ac.jp
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/3192: sysinstall does not read RUN_DEPEND in package install phase
Message-ID:  <199704041220.VAA00839@lavender.sanpei.org>
Resent-Message-ID: <199704041230.EAA05434@freefall.freebsd.org>

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

>Number:         3192
>Category:       ports
>Synopsis:       sysinstall does not read RUN_DEPEND in package install phase
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-ports
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr  4 04:30:01 PST 1997
>Last-Modified:
>Originator:     MIHIRA Yoshiro
>Organization:
Keio Univ. Japan
>Release:        FreeBSD 2.2.1-RELEASE
>Environment:

	2.2.1-RELEASE

>Description:

	/stand/sysinstall is not install RUN_DEPEND packages at
	package install phase.

I think:
	(1) sysintall read INDEX file via sysinstall/index.c
	    index_parse function
	(2) index_parse function uses copy_to_sep function as:

>  (void)copy_to_sep(rdeps, cp, '|');

	Ļģ) information of RUN_DEPEND is listed at end of field, 
	    more over that field is not ended with `|'.

	(4) copy_to_sep is as below:

1> copy_to_sep(char *to, char *from, int sep)
2> {
3>     char *tok;
4> 
5>    tok = strchr(from, sep);
6>    if (!tok) {
7>         *to = '\0';
8>         return 0;
9>     }

	(5) In copy_to_sep(rdeps, cp, '|'), *strchr* in line 5 returns
	    0 and return via line 8 to index_parse function, because
	    there is no `|' string after RUN_DEPEND field.
	(6) copy_to_sep copy any strings from INDEX file.
	(7) RUN_DEPEND infomation is not reflected.

I hope to fix this.

Thank you.

>How-To-Repeat:

	

>Fix:
	
	

>Audit-Trail:
>Unformatted:



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