FreeBSD Bugzilla – Attachment 5539 Details for
Bug 13171
"config" not quite right for kernel not named "kernel"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.47 KB, created by
george+freebsd
on 1999-08-16 03:40:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
george+freebsd
Created:
1999-08-16 03:40:01 UTC
Size:
1.47 KB
patch
obsolete
>*** mkmakefile.c.orig Tue Sep 15 14:07:54 1998 >--- mkmakefile.c Sun Aug 15 18:27:16 1999 >*************** >*** 148,153 **** >--- 148,155 ---- > struct opt *op; > int warn_make_clean = 0; > int versreq; >+ struct file_list *fl; >+ char *kernel_name = 0; > > read_files(); > strcpy(line, "Makefile."); >*************** >*** 190,201 **** > fprintf(ofp, "PROF=-pg\n"); > fprintf(ofp, "PROFLEVEL=%d\n", profiling); > } > while (fgets(line, BUFSIZ, ifp) != 0) { >! if (*line != '%') { >! fprintf(ofp, "%s", line); >! continue; > } >! if (eq(line, "%BEFORE_DEPEND\n")) > do_before_depend(ofp); > else if (eq(line, "%OBJS\n")) > do_objs(ofp); >--- 192,223 ---- > fprintf(ofp, "PROF=-pg\n"); > fprintf(ofp, "PROFLEVEL=%d\n", profiling); > } >+ for (fl = conf_list; fl; fl = fl->f_next) { >+ if (fl->f_type == SYSTEMSPEC) { >+ kernel_name = fl->f_needs; >+ break; >+ } >+ } > while (fgets(line, BUFSIZ, ifp) != 0) { >! if ((*line != '%') || (strncmp (line, "%KERNEL", 7) == 0)) { >! char rewritten_line [256]; >! char *ip, *op; >! for (ip = line, op = rewritten_line; >! *ip != '\0'; >! ) { >! if ((*ip != '%') || >! (strncmp (ip, "%KERNEL", 7) != 0)) >! *op++ = *ip++; >! else { >! strcpy (op, kernel_name); >! op += strlen (op); >! ip += 7; >! } >! } >! *op = '\0'; >! fprintf(ofp, "%s", rewritten_line); > } >! else if (eq(line, "%BEFORE_DEPEND\n")) > do_before_depend(ofp); > else if (eq(line, "%OBJS\n")) > do_objs(ofp);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 13171
: 5539 |
5540