From owner-freebsd-hackers Fri Nov 29 00:25:24 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id AAA08101 for hackers-outgoing; Fri, 29 Nov 1996 00:25:24 -0800 (PST) Received: from nike.efn.org (resnet.uoregon.edu [128.223.170.28]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id AAA08083 for ; Fri, 29 Nov 1996 00:25:21 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by nike.efn.org (8.8.3/8.8.3) with SMTP id AAA09819 for ; Fri, 29 Nov 1996 00:25:17 -0800 (PST) Date: Fri, 29 Nov 1996 00:25:17 -0800 (PST) From: John-Mark Gurney X-Sender: jmg@nike Reply-To: John-Mark Gurney To: FreeBSD Hackers Subject: help with lorder and tsort not giving proper output... Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk well.. after looking at the source to tsort it looks like tsort imports the dependances backwards... either that... or when making libs another program is needed to reverse the output of tsort... I have a fix at the end of this message.. if you want me to submit a pr I will... output from lorder: fdprintf.o fdprintf.o genconvert.o genconvert.o linklist.o linklist.o genconvert.o linklist.o as you can see genconvert.o depends on linklist.o... but when you run this output through tsort you get: genconvert.o fdprintf.o linklist.o Index: tsort.c =================================================================== RCS file: /usr/cvs/src/usr.bin/tsort/tsort.c,v retrieving revision 1.4 diff -c -r1.4 tsort.c *** tsort.c 1996/08/02 04:50:44 1.4 --- tsort.c 1996/11/29 08:19:39 *************** *** 174,180 **** b->b_buf[nused] = '\0'; b->b_bsize = bsize; if (n) ! add_arc(bufs[0].b_buf, bufs[1].b_buf); n = !n; } (void)fclose(fp); --- 174,180 ---- b->b_buf[nused] = '\0'; b->b_bsize = bsize; if (n) ! add_arc(bufs[1].b_buf, bufs[0].b_buf); n = !n; } (void)fclose(fp); John-Mark gurney_j@efn.org http://resnet.uoregon.edu/~gurney_j/ Modem/FAX: (541) 683-6954 (FreeBSD Box) Live in Peace, destroy Micro$oft, support free software, run FreeBSD (unix)