Re: Recover Make ARG's from a ports Install
On Mon, 12 Mar 2007 22:39:20 -0400 Randy Pratt [EMAIL PROTECTED] wrote: There is already a mechanism in place for this: /usr/local/etc/pkgtools.conf It better to put the configuaration in make.conf so it's seen by the ports system itself. ports-mgmt/portconf can simplify this The problem with pkgtools.conf is that it doesn't always work. Missing dependencies get built by the ports system itself, outside of portupgrade's control. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Recover Make ARG's from a ports Install
On a server I have a package installed using ports and now I have to install the package with exactly the same make arguments on another server. I just don't find a way to see what arguments where used to install it the first time. With Linux I would look into config.status is there something similar with FreeBSD? Sorry for having to ask but I am using FreeBSD for the first days now after 5 years using Linux only :) -Alex ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Recover Make ARG's from a ports Install
Hello Alexander, There's /var/db/ports/name of port for the result of make configure, if that is what you mean? Otherwise most ports should have their .conf and other settings in /usr/local/etc. Good luck! Alexander Schlichting skrev: On a server I have a package installed using ports and now I have to install the package with exactly the same make arguments on another server. I just don't find a way to see what arguments where used to install it the first time. With Linux I would look into config.status is there something similar with FreeBSD? Sorry for having to ask but I am using FreeBSD for the first days now after 5 years using Linux only :) -Alex ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Recover Make ARG's from a ports Install
On Mon, Mar 12, 2007 at 08:18:25AM +0100, Alexander Schlichting wrote: On a server I have a package installed using ports and now I have to install the package with exactly the same make arguments on another server. I just don't find a way to see what arguments where used to install it the first time. With Linux I would look into config.status is there something similar with FreeBSD? Sorry for having to ask but I am using FreeBSD for the first days now after 5 years using Linux only :) If the arguments are given on the command line when invonkig make in the port directory, they are not saved. A mechanism (called OPTIONS) was later added to the ports infrastructure that does save the arguments. Not all ports have been completely converted to using options, and some arguments cannot be set with options. But if arguments are set with the OPTIONS mechanism, you can find them in the file /var/db/ports/portname/options. Additionally, arguments can be set in /etc/make.conf. Those should look like this: .if ${.CURDIR:M*/graphics/povray} WITH_OPTIMIZED_FLAGS=yes .endif This means that when make is invoked in a directory that ends in graphics/povray, the variable WITH_OPTIMIZED_FLAGS is set. HTH, Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpZHSs7rme4o.pgp Description: PGP signature
Re: Recover Make ARG's from a ports Install
If you look below the port directory, there is a work directory and in that a directory where the actual files are configured and Make files created named for the port and version. In that directory is a file called: config.log This file at the top has the actual configure line used. -Derek At 02:18 AM 3/12/2007, Alexander Schlichting wrote: On a server I have a package installed using ports and now I have to install the package with exactly the same make arguments on another server. I just don't find a way to see what arguments where used to install it the first time. With Linux I would look into config.status is there something similar with FreeBSD? Sorry for having to ask but I am using FreeBSD for the first days now after 5 years using Linux only :) -Alex ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Recover Make ARG's from a ports Install
in message [EMAIL PROTECTED], wrote Alexander Schlichting thusly... On a server I have a package installed using ports and now I have to install the package with exactly the same make arguments on another server. I just don't find a way to see what arguments where used to install it the first time. With Linux I would look into config.status is there something similar with FreeBSD? There may be config.status present in $WRKSRC directory (in a port directory, run make -V WRKSRC to find the value) if that port's make process generates such a file AND you have not run make clean yet. (That also means you have to compile the port yourself.) To save make arguments for future use, you could write a wrapper which would save the arguments in a file|database before running appropriate make target. Use the same wrapper to retrieve the stored arguments. Below is my attempt at such a wrapper (feel free to change) ... http://www103.pair.com/parv/comp/src/sh/pmk ... to see available commands just run pmk without any arguments. Provide arguments to a make target as ... pmk command [ arg_1 arg_2 arg_3 ... ] - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Recover Make ARG's from a ports Install
On Mon, 12 Mar 2007 20:15:20 -0400 Parv [EMAIL PROTECTED] wrote: in message [EMAIL PROTECTED], wrote Alexander Schlichting thusly... On a server I have a package installed using ports and now I have to install the package with exactly the same make arguments on another server. I just don't find a way to see what arguments where used to install it the first time. With Linux I would look into config.status is there something similar with FreeBSD? There may be config.status present in $WRKSRC directory (in a port directory, run make -V WRKSRC to find the value) if that port's make process generates such a file AND you have not run make clean yet. (That also means you have to compile the port yourself.) To save make arguments for future use, you could write a wrapper which would save the arguments in a file|database before running appropriate make target. Use the same wrapper to retrieve the stored arguments. Below is my attempt at such a wrapper (feel free to change) ... http://www103.pair.com/parv/comp/src/sh/pmk ... to see available commands just run pmk without any arguments. Provide arguments to a make target as ... pmk command [ arg_1 arg_2 arg_3 ... ] There is already a mechanism in place for this: /usr/local/etc/pkgtools.conf See man 5 pkgtools.conf for a full description. It has the advantage that portupgrade will use the contents of that file when updating to new versions so that your settings are not lost. Make arguments as well as a variety of other options for installing and updating ports can reside there. Typically, I use this if there are no OPTIONS (ie, make config) settings available and I need to use non-default options. The only difference is that you would use portupgrade -N ... or portinstall to install new ports rather than make install. See the man pages for further information. HTH, Randy -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Recover Make ARG's from a ports Install
in message [EMAIL PROTECTED], wrote Randy Pratt thusly... On Mon, 12 Mar 2007 20:15:20 -0400 Parv [EMAIL PROTECTED] wrote: in message [EMAIL PROTECTED], wrote Alexander Schlichting thusly... On a server I have a package installed using ports and now I have to install the package with exactly the same make arguments on another server. I just don't find a way to see what arguments where used to install it the first time. With Linux I would look into config.status is there something similar with FreeBSD? There may be config.status present in $WRKSRC directory (in a port directory, run make -V WRKSRC to find the value) if that port's make process generates such a file AND you have not run make clean yet. (That also means you have to compile the port yourself.) To save make arguments for future use, you could write a wrapper which would save the arguments in a file|database before running appropriate make target. Use the same wrapper to retrieve the stored arguments. (removed self promotion) /usr/local/etc/pkgtools.conf See man 5 pkgtools.conf for a full description. I am personally aware of that but do not use it. Besides using /etc/make.conf OPTIONS, I am just fine with specifying options on the command line mostly because this is the most flexible way of experimenting with options. It has the advantage that portupgrade will use the contents of that file when updating to new versions so that your settings are not lost. Make arguments as well as a variety of other options for installing and updating ports can reside there. That is similar as specifying in /etc/make.conf as listed by someone else (with the added benefit of not having to install anything outside of base system). In any case, neither of /etc/make.conf or portupgrade provide the facility to store the arguments given on command line if one happen to do that instead of updating either of the two files. Note that the command line recording that I am trying to describe is not a substitute[0] to but complementary to various port|package tools (if they are happened to be installed). - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]