From owner-freebsd-ports Sun Aug 29 14:15:11 1999 Delivered-To: freebsd-ports@freebsd.org Received: from catarina.usc.edu (catarina.usc.edu [128.125.51.47]) by hub.freebsd.org (Postfix) with SMTP id C7448151E9 for ; Sun, 29 Aug 1999 14:15:04 -0700 (PDT) (envelope-from pavlin@catarina.usc.edu) Received: from rumi.usc.edu (rumi.usc.edu [128.125.51.41]) by catarina.usc.edu (8.6.10/8.6.9) with ESMTP id OAA07737; Sun, 29 Aug 1999 14:14:57 -0700 Received: from rumi (localhost [127.0.0.1]) by rumi.usc.edu (8.9.3/8.6.9) with ESMTP id OAA51025; Sun, 29 Aug 1999 14:14:41 -0700 (PDT) Message-Id: <199908292114.OAA51025@rumi.usc.edu> To: freebsd-ports@freebsd.org Cc: pavlin@catarina.usc.edu Subject: Patching the patches? Date: Sun, 29 Aug 1999 14:14:41 -0700 From: Pavlin Ivanov Radoslavov Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hello, Some background: In our lab we have one FreeBSD-3.2 machine exporting its /usr/local to all other machines so all the software we install on that machine appear on other machines under /import (each machine also has its own /usr/local). A one-time editing of /usr/ports/Mk/bsd.port.mk (replacing of all /usr/local with /import) makes life easier, so the programs in the port collection are eventually compiled and installed using /import in mind instead of /usr/local Well, I just found that the mh configuration (/usr/ports/mail/mh) does not use any definitions from the Makefile re. various paths. In this particular example patches/patch.aa contains a number of absolute paths, and as a result, all MH binaries have /usr/local/something path inside, and cannot be used by other hosts that expect the MH binaries under /import because one binary may call another using the hardcoded path to it. I was wondering whether there is an automatic method to change/modify the patches/* files according to the configuration in bsd.port.mk before applying them. Or maybe this is just one isolated example and doesn't worth the effort... Thanks, Pavlin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message