math/mpft will not build

Paul Schmehl pschmehl_lists at
Wed Dec 19 01:55:38 UTC 2018

--On December 19, 2018 at 4:40:22 AM +0300 Yuri Pankov <yuripv at> 

> Paul Schmehl wrote:
>> --On December 19, 2018 at 3:58:27 AM +0300 Yuri Pankov
>> <yuripv at> wrote:
>>> Paul Schmehl wrote:
>>>> Can someone explain what this line does? It's keeping math/mpfr from
>>>> building, and that causes tons of other ports to fail.
>>>> /usr/bin/jot -s " " -w patch%02d ${PATCHLEVEL} 1 ${PATCHLEVEL}
>>>> I can't even find PATCHLEVEL in the Porters Handbook, and it's not
>>>> defined in the port Makefile.
>>> PATCHLEVEL is defined just above the line with jot, it looks like this
>>> for me:
>>> PATCHLEVEL=     13
>>> PATCHFILES!=    /usr/bin/jot -s " " -w patch%02d ${PATCHLEVEL} 1
>>> So it's simply a local variable, and the whole construct is there just
>>> to make it easier to define the list of patches, i.e. when you run it
>>> from shell, it outputs the following:
>>> $ jot -s " " -w patch%02d 13 1 13
>>> patch01 patch02 patch03 patch04 patch05 patch06 patch07 patch08 patch09
>>> patch10 patch11 patch12 patch13
>>> And I'm wondering how exactly it's failing the build for you?
>> This is the error:
>> ===>  Applying distribution patches for mpfr-4.0.1_2
>> No such line 4470 in input file, ignoring
>> 3 out of 4 hunks failed--saving rejects to doc/
>> *** Error code 1
>> The .rej file is attached.
> Not seeing this.  Looking at the Makefile log, I see the dependency on
> gpatch dropped with 10.x EOL -- I guess you aren't running 10.x?

I just upgraded the server today from 10.4 to 11.0. (The 11.2 fetch kept 

Now I'm trying to rebuild all the ports so I can complete the install.

> And if you aren't, try to exclude possible problems by cleaning up the
> patchfiles, i.e. do a `make clean; make distclean`.  If that doesn't
> help, paste the full output of `make clean; make patch`.

I just tried this, and the build still failed in the same place.

Paul Schmehl, Retired
My opinions are my own.
"It is as useless to argue with those who have
renounced the use of reason as to administer
medication to the dead." Thomas Jefferson
"There are some ideas so wrong that only a very
intelligent person could believe in them." George Orwell

More information about the freebsd-questions mailing list