Re: Is there a way to build only the port from source, and install dependencies from packages with the make command?

2019-05-03 Thread Samy Mahmoudi
Hi Yuri,

With the following in my .zshrc, I just run "ibd" before making a
particular port:

function ibd () {
   # Can also make all-depends-list
   pkg install --yes $(make build-depends-list run-depends-list | sort -u |
sed 's/\/usr\/ports\///')
}

Modify at will.

Le mer. 1 mai 2019 à 17:49, Dave Cottlehuber  a écrit :

> On Tue, 30 Apr 2019, at 21:17, Adam wrote:
> > On Tue, Apr 30, 2019 at 12:36 PM Yuri  wrote:
> >
> > > Sometimes instructions to build some port from source are needed. "cd
> > > /usr/ports/{caregory}/{port-name} && make" rebuilds everything from
> > > source, including dependencies.
> > >
> > > Is there an easy way to make it install missing dependencies with pkg,
> > > without listing them? I couldn't find such feature.
>
> from within the appropriate port directory:
>
> function make-depends --description 'installs runtime and buildtime
> dependencies for a given port'
> sudo pkg install -r FreeBSD --automatic (make build-depends-list
> run-depends-list | sed -E -e 's,^.+/([^/]+/[^/]+$),\1,')
> end
>
> function make-pkg --description 'test port build locally'
> make clean \
> check-sanity \
> fetch makesum checksum \
> extract patch \
> configure build \
> stage stage-qa \
> check-orphans \
> check-plist \
> package \
> && find /tmp/usr/ports -name \*.txz -type f
> end
>
> I use these locally while working on ports - should work similar for you
> too.
>
> A+
> Dave
> ___
> freebsd-ports@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
>
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: Is there a way to build only the port from source, and install dependencies from packages with the make command?

2019-05-01 Thread Dave Cottlehuber
On Tue, 30 Apr 2019, at 21:17, Adam wrote:
> On Tue, Apr 30, 2019 at 12:36 PM Yuri  wrote:
> 
> > Sometimes instructions to build some port from source are needed. "cd
> > /usr/ports/{caregory}/{port-name} && make" rebuilds everything from
> > source, including dependencies.
> >
> > Is there an easy way to make it install missing dependencies with pkg,
> > without listing them? I couldn't find such feature.

from within the appropriate port directory:

function make-depends --description 'installs runtime and buildtime 
dependencies for a given port'
sudo pkg install -r FreeBSD --automatic (make build-depends-list 
run-depends-list | sed -E -e 's,^.+/([^/]+/[^/]+$),\1,')
end

function make-pkg --description 'test port build locally'
make clean \
check-sanity \
fetch makesum checksum \
extract patch \
configure build \
stage stage-qa \
check-orphans \
check-plist \
package \
&& find /tmp/usr/ports -name \*.txz -type f
end

I use these locally while working on ports - should work similar for you too.

A+
Dave
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: Is there a way to build only the port from source, and install dependencies from packages with the make command?

2019-04-30 Thread Adam
On Tue, Apr 30, 2019 at 12:36 PM Yuri  wrote:

> Sometimes instructions to build some port from source are needed. "cd
> /usr/ports/{caregory}/{port-name} && make" rebuilds everything from
> source, including dependencies.
>
> Is there an easy way to make it install missing dependencies with pkg,
> without listing them? I couldn't find such feature.
>
>
> This can be useful:
>
> 1. When some software's README describes how to install it on FreeBSD
> from source.
>
> 2. When developers need to compile from source only a specific port
> without waiting for dependencies to build.
>

I usually do this with portmaster and -P.  Although generally speaking, you
will get more installed from pkg with an older ports tree all else being
equal.

-- 
Adam
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: Is there a way to build only the port from source, and install dependencies from packages with the make command?

2019-04-30 Thread Ernie Luzar

David Wolfskill wrote:

On Tue, Apr 30, 2019 at 10:35:21AM -0700, Yuri wrote:
Sometimes instructions to build some port from source are needed. "cd 
/usr/ports/{caregory}/{port-name} && make" rebuilds everything from 
source, including dependencies.


Is there an easy way to make it install missing dependencies with pkg, 
without listing them? I couldn't find such feature.




I won't claim it's especially "easy," but within the port directory --
prior to attempting to build the port -- one can run:

make missing

to find out what   are needed.  Given that list, one could
conceivably install the requisite packages.

Caveat: I have not actually done this.

Peace,
david



I do this every new release.

I build the ports tree with just the ports I want to compile and just 
the ports tree items required to perform the real compile. All those 
massive ports files are not contained in my ports tree.


make missing   on the port I want to compile to get dependencies
them pkg install for each dependence followed by the ports compile of 
the  selected port

___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: Is there a way to build only the port from source, and install dependencies from packages with the make command?

2019-04-30 Thread David Wolfskill
On Tue, Apr 30, 2019 at 10:35:21AM -0700, Yuri wrote:
> Sometimes instructions to build some port from source are needed. "cd 
> /usr/ports/{caregory}/{port-name} && make" rebuilds everything from 
> source, including dependencies.
> 
> Is there an easy way to make it install missing dependencies with pkg, 
> without listing them? I couldn't find such feature.
> 

I won't claim it's especially "easy," but within the port directory --
prior to attempting to build the port -- one can run:

make missing

to find out what dependencies are needed.  Given that list, one could
conceivably install the requisite packages.

Caveat: I have not actually done this.

Peace,
david
-- 
David H. Wolfskill  da...@catwhisker.org
Mr. Trump: "'very fine people' do not attend neo-Nazi rallies." - Nicole Hemmer

See http://www.catwhisker.org/~david/publickey.gpg for my public key.


signature.asc
Description: PGP signature


Is there a way to build only the port from source, and install dependencies from packages with the make command?

2019-04-30 Thread Yuri
Sometimes instructions to build some port from source are needed. "cd 
/usr/ports/{caregory}/{port-name} && make" rebuilds everything from 
source, including dependencies.


Is there an easy way to make it install missing dependencies with pkg, 
without listing them? I couldn't find such feature.



This can be useful:

1. When some software's README describes how to install it on FreeBSD 
from source.


2. When developers need to compile from source only a specific port 
without waiting for dependencies to build.



Yuri


___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"