Re: help update cad/z88 port

2015-07-07 Thread Anton Shterenlikht
>In general, when a new release introduces major changes in a program,
>you might have to start over.

ok, thanks for the advice.
I got to here:

cc -I/usr/ports/cad/z88/work/z88v14os/src/z88o/common -O2 -fomit-frame-pointer 
-DFR_UNIX -DFR_XDOUB -DFR_XLONG -DFR_LINUX  `pkg-config --cflags --libs 
gtk+-2.0 gdkglext-1.0 gdkglext-x11-1.0 gtkglext-1.0 gtkglext-x11-1.0` -o z88o 
z88o.o cb88o.o lan88o.o dyn88o.o wlog88o.o ale88o.o rcoo88.o  m9.o m10.o m12.o 
m15.o oc88.o m16.o man88o.o
/usr/bin/ld: undefined reference to symbol `cos@@FBSD_1.0' (try adding -lm)
//lib/libm.so.5: could not read symbols: Bad value
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1

Is this symbol in libm?

Thanks

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


Re: help update cad/z88 port

2015-07-06 Thread Torfinn Ingolfsen
On Mon, Jul 6, 2015 at 4:21 PM, Anton Shterenlikht  wrote:
> The PR provides a patch to update the new location
> of the disfile and a new distinfo accordingly.
>
> I cannot figure out how the patch files should be updated
> after make extract. I tried, but got lost in paths so
> I cannot apply even the first patch cleanly.
> This is what I need help with. It also seems that the
> code structure might have changed, so the build process
> might have to change too. But for now I just want to
> update all patches under files.
>

Aha, because of this:

===>  Found saved configuration for z88-14.0_1
===>   z88-14.0_1 depends on file: /usr/local/sbin/pkg - found
=> z88v14os_english.tar.gz doesn't seem to exist in /usr/ports/distfiles/z88.
=> Attempting to fetch http://download.z88.de/z88os/z88v14os_english.tar.gz
z88v14os_english.tar.gz   100% of   61 MB  739 kBps 01m26s
===> Fetching all distfiles required by z88-14.0_1 for building
===>  Extracting for z88-14.0_1
=> SHA256 Checksum OK for z88/z88v14os_english.tar.gz.
===>  Patching for z88-14.0_1
===>  Applying FreeBSD patches for z88-14.0_1
File to patch:

In general, when a new release introduces major changes in a program,
you might have to start over.
So in this case, it might be better to start with an empty files
directory and then add to it as you find it necessary.
The same goes for the post-patch and other targets in the Makefile;
they must be adapted to the new release.

In general, you create a patched version of a source file, then you
use a tool (I used patchtool[1]) to create the patch and put it into
the files directory for you.
Repeat until the program compiles. Test, fix and repeat until the program works.
This requires human help, there are no tools which can do all of this
automatically.

References:
1) /usr/ports/Tools/scripts/patchtool.py
-- 
Regards,
Torfinn
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: help update cad/z88 port

2015-07-06 Thread Anton Shterenlikht
>On Fri, Jul 3, 2015 at 11:37 AM, Anton Shterenlikht  wrote:
>> I'm stuck on the patching stage:
>>
>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201250
>>
>
>Your bug report was difficult to interpret; what exactly is the problem?
>You know about 'make makesum' to update distinfo checksums, right?

The PR provides a patch to update the new location
of the disfile and a new distinfo accordingly.

I cannot figure out how the patch files should be updated
after make extract. I tried, but got lost in paths so
I cannot apply even the first patch cleanly.
This is what I need help with. It also seems that the
code structure might have changed, so the build process
might have to change too. But for now I just want to
update all patches under files.

Thank you

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


Re: help update cad/z88 port

2015-07-04 Thread Torfinn Ingolfsen
On Fri, Jul 3, 2015 at 11:37 AM, Anton Shterenlikht  wrote:
> I'm stuck on the patching stage:
>
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201250
>

Your bug report was difficult to interpret; what exactly is the problem?
You know about 'make makesum' to update distinfo checksums, right?


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