Re: OS version upgrade detected. Running "pkg-static install -f pkg" recommended

2016-07-13 Thread Julian H. Stacey
Added CC: p...@freebsd.org from ports-mgmt/pkg/Makefile: MAINTAINER=
& CC: Baptiste Daroussin ,
  Julien Laffaye  from AUTHORS in pkg-1.8.7.tar.xz

> > On 13 Jul 2016, at 4:49 PM, Julian H. Stacey  wrote:
> > 
> > Hi ports@
> > With:
> >  uname -a
> >FreeBSD lapr.js.berklix.net 12.0-CURRENT FreeBSD 12.0-CURRENT \
> >#1 r302560M: Wed Jul 13 01:28:27 CEST 2016 \
> >j...@lapr.js.berklix.net:/usr/src/sys/amd64/compile/LAPR.small amd64
> > 
> >  cd /usr/ports; svn up
> >Updating '.':
> >At revision 418418
> > 
> >  make fetch
> >pkg-static: Warning: Major OS version upgrade detected.  \
> >Running "pkg-static install -f pkg" recommended
> > 
> > This is an incomplete thus bad reccomendation, based on a false
> > assumption all users of ports/ only want packages. It's quite obvious
> > from "make fetch" that here one wants to fetch distfiles to recompile,
> > not install binary packages, the warning should at least also provide
> > an alternate recipe for ports/ source based users who want to
> > recompile whatever to get rid of warning.
> > 
> > What causes the warning ? a grep of Mk/* doesnt show it, 
> > It's presumably coming from Mk/ calling some pkg ?
> > In /usr/src/usr.sbin/pkg ? I fail to grep for Major
> > 
> > What text can we add to which Mk/* to state the source upgrade route ?
> > 
> > Cheers,
> > Julian

... Corrected to bottom post ...

Franco Fichtner wrote Wed, 13 Jul 2016 16:58:59 +0200 :

> Hi Julian,
> 
> I ran into something similar, maybe this make.conf flag helps:
> 
> CLEAN_FETCH_ENV=yes
> 
> Cheers,
> Franco

Thanks for the idea Franco, I tried but it didn't help. 
Then I looked, only usage is here:  Mk/bsd.port.mk
.if !defined(PKG_DEPENDS) && !defined(CLEAN_FETCH_ENV)
PKG_DEPENDS+=   ${LOCALBASE}/sbin/pkg:${PKG_ORIGIN}
.endif
& adding a debug shows I have ${PKG_DEPENDS}:
/usr/local/sbin/pkg:ports-mgmt/pkg


Guido Falsi wrote Wed, 13 Jul 2016 17:13:55 +0200 :

> It' the "pkg-static" binary installed by the ports-mgmt/pkg port. It's
> invoked in  various ways by the ports framework.
>  
> You can ignore such warnings, they will go away once you forcibly update
> the pkg port.

cd /usr/ports/ports-mgmt/pkg ; make clean ; make install ; 
make package-recursive ; cd ../../ ; make fetch  

Now OK, so that fixes it, Thanks Guido !

Patch below, & copied here:
http://berklix.com/~jhs/src/bsd/fixes/freebsd/ports/gen/ports-mgmt/pkg/patch-ja
==
*** src/main.c.orig Wed Jul 13 22:13:46 2016
--- src/main.c  Wed Jul 13 22:19:56 2016
***
*** 742,749 
errx(EX_SOFTWARE, "register pkg_shutdown() to run at exit");
  
if (!pkg_compiled_for_same_os_major())
!   warnx("Warning: Major OS version upgrade detected.  Running "
!   "\"pkg-static install -f pkg\" recommended");
  
  
plugins_enabled = pkg_object_bool(pkg_config_get("PKG_ENABLE_PLUGINS"));
--- 742,751 
errx(EX_SOFTWARE, "register pkg_shutdown() to run at exit");
  
if (!pkg_compiled_for_same_os_major())
! //warnx("Warning: Major OS version upgrade detected.  Running "
! //"\"pkg-static install -f pkg\" recommended");
!   warnx("Warning: Major OS version upgrade detected.  
Recommended: "
!   "\"pkg-static install -f pkg\" OR \"cd 
/usr/ports/ports-mgmt/pkg;make clean;make install\"");
  
  
plugins_enabled = pkg_object_bool(pkg_config_get("PKG_ENABLE_PLUGINS"));
==


PS
Matthew Donovan wrote Wed, 13 Jul 2016 10:07:51 -0500 (17:07 CEST)

> Not sure how this is bad it just reinstalls pkg for the new ABI.
> Ports/packages is placed in the database by pkg. So you will get that
> warning when even doing pkg list

Sorry, I only meant it was bad in that it didn't tell users who
dont use packages how to fix the problem.  I could have better
written "this is [a poor reccomendation as] incomplete"


"Chris H" wrote Wed, 13 Jul 2016 13:32:56 -0700 (22:32 CEST)

> It *should* read:
>  pkg-static: Warning: Major OS version upgrade detected.  \
>  Running "pkg-static install -f pkg" recommended \
>  or run "pkg-static delete -f pkg" to remove this message.
> 
> Sorry. Couldn't resist. In all honesty Julian, I too had the
> same reaction/ understanding as you, when I saw it. Took me a bit
> before it dawned on me what it was *actually* trying to tell me. :P

Ah Thanks, I hadn't thought of that !

Hopefully the authors/ maintainers of pkg will add one or the other.

Cheers,
Julian
--
Julian Stacey, BSD Linux Unix Sys Eng Consultant Munich http://berklix.eu/jhs/
 Mail plain text,  No quoted-printable, HTML, base64, MS.doc.
 Prefix old lines '> '  Reply below old, like play script.  Break lines by 80.
 http://berklix.eu/brexit/#stolen_votes
___
freebsd-ports@freebsd.org mailing list

Re: OS version upgrade detected. Running "pkg-static install -f pkg" recommended

2016-07-13 Thread Chris H
On Wed, 13 Jul 2016 16:49:37 +0200 "Julian H. Stacey"  wrote

> Hi ports@
> With:
>   uname -a
> FreeBSD lapr.js.berklix.net 12.0-CURRENT FreeBSD 12.0-CURRENT \
> #1 r302560M: Wed Jul 13 01:28:27 CEST 2016 \
> j...@lapr.js.berklix.net:/usr/src/sys/amd64/compile/LAPR.small amd64
> 
>   cd /usr/ports; svn up
> Updating '.':
> At revision 418418
> 
>   make fetch
> pkg-static: Warning: Major OS version upgrade detected.  \
> Running "pkg-static install -f pkg" recommended
> 
> This is an incomplete thus bad reccomendation, based on a false
> assumption all users of ports/ only want packages. It's quite obvious
> from "make fetch" that here one wants to fetch distfiles to recompile,
> not install binary packages, the warning should at least also provide
> an alternate recipe for ports/ source based users who want to
> recompile whatever to get rid of warning.
> 
> What causes the warning ? a grep of Mk/* doesnt show it, 
> It's presumably coming from Mk/ calling some pkg ?
> In /usr/src/usr.sbin/pkg ? I fail to grep for Major
> 
> What text can we add to which Mk/* to state the source upgrade route ?
> 
> Cheers,
> Julian
> -- 
It *should* read:
 pkg-static: Warning: Major OS version upgrade detected.  \
 Running "pkg-static install -f pkg" recommended \
 or run "pkg-static delete -f pkg" to remove this message.

Sorry. Couldn't resist. In all honesty Julian, I too had the
same reaction/ understanding as you, when I saw it. Took me a bit
before it dawned on me what it was *actually* trying to tell me. :P

--Chris


___
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: Framework question....

2016-07-13 Thread Larry Rosenman

On 2016-07-13 14:05, Matthieu Volat wrote:

On Tue, 12 Jul 2016 20:45:55 -0500
Larry Rosenman  wrote:


Ports Folks,
I have a port (mail/dovecot2-pigeonhole) that I apparently need to
pick up
the mail/dovecot2 gssapi option, but do NOT want to make the user set 
it

via the normal
options dialog.  I.E. if dovecot2 has gssapi_heimdal set, I want to 
know

that.

Does the framework give me a way to get the OTHER ports option?


Last time I had to face such a problem (~1 year ago?), it did not...
You may end up doing something using a subshell command such as :

DOVECOT2_GSSAPI=${:!grep GSSAPI
${PORT_DBDIR}/mail_dovecot2/options|grep _SET|cut -d= -f2!}

Until somebody proposes something better...


yeah, I got that impression.

see my patch on https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211025 
which just
adds the gssapi options and tells the user to make sure they are the 
same for dovecot2{,-pigeonhole}




--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 214-642-9640 E-Mail: l...@lerctr.org
US Mail: 17716 Limpia Crk, Round Rock, TX 78664-7281
___
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: Framework question....

2016-07-13 Thread Matthieu Volat
On Tue, 12 Jul 2016 20:45:55 -0500
Larry Rosenman  wrote:

> Ports Folks,
> I have a port (mail/dovecot2-pigeonhole) that I apparently need to 
> pick up
> the mail/dovecot2 gssapi option, but do NOT want to make the user set it 
> via the normal
> options dialog.  I.E. if dovecot2 has gssapi_heimdal set, I want to know 
> that.
> 
> Does the framework give me a way to get the OTHER ports option?

Last time I had to face such a problem (~1 year ago?), it did not... You may 
end up doing something using a subshell command such as :

DOVECOT2_GSSAPI=${:!grep GSSAPI ${PORT_DBDIR}/mail_dovecot2/options|grep 
_SET|cut -d= -f2!}

Until somebody proposes something better...

> 
> 
> 
> -- 
> Larry Rosenman http://www.lerctr.org/~ler
> Phone: +1 214-642-9640 E-Mail: l...@lerctr.org
> US Mail: 17716 Limpia Crk, Round Rock, TX 78664-7281
> ___
> 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"


-- 
Matthieu Volat 



pgpdpR0KfwMg6.pgp
Description: OpenPGP digital signature


Re: OS version upgrade detected. Running "pkg-static install -f pkg" recommended

2016-07-13 Thread Franco Fichtner
Hi Julian,

I ran into something similar, maybe this make.conf flag helps:

CLEAN_FETCH_ENV=yes


Cheers,
Franco

> On 13 Jul 2016, at 4:49 PM, Julian H. Stacey  wrote:
> 
> Hi ports@
> With:
>  uname -a
>FreeBSD lapr.js.berklix.net 12.0-CURRENT FreeBSD 12.0-CURRENT \
>#1 r302560M: Wed Jul 13 01:28:27 CEST 2016 \
>j...@lapr.js.berklix.net:/usr/src/sys/amd64/compile/LAPR.small amd64
> 
>  cd /usr/ports; svn up
>Updating '.':
>At revision 418418
> 
>  make fetch
>pkg-static: Warning: Major OS version upgrade detected.  \
>Running "pkg-static install -f pkg" recommended
> 
> This is an incomplete thus bad reccomendation, based on a false
> assumption all users of ports/ only want packages. It's quite obvious
> from "make fetch" that here one wants to fetch distfiles to recompile,
> not install binary packages, the warning should at least also provide
> an alternate recipe for ports/ source based users who want to
> recompile whatever to get rid of warning.
> 
> What causes the warning ? a grep of Mk/* doesnt show it, 
> It's presumably coming from Mk/ calling some pkg ?
> In /usr/src/usr.sbin/pkg ? I fail to grep for Major
> 
> What text can we add to which Mk/* to state the source upgrade route ?
> 
> Cheers,
> Julian
> -- 
> Julian Stacey, BSD Linux Unix Sys Eng Consultant Munich http://berklix.eu/jhs/
> Mail plain text,  No quoted-printable, HTML, base64, MS.doc.
> Prefix old lines '> '  Reply below old, like play script.  Break lines by 80.
> http://berklix.eu/brexit/#stolen_votes
> ___
> 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: OS version upgrade detected. Running "pkg-static install -f pkg" recommended

2016-07-13 Thread Guido Falsi
On 07/13/16 16:49, Julian H. Stacey wrote:
> Hi ports@
> With:
>   uname -a
> FreeBSD lapr.js.berklix.net 12.0-CURRENT FreeBSD 12.0-CURRENT \
> #1 r302560M: Wed Jul 13 01:28:27 CEST 2016 \
> j...@lapr.js.berklix.net:/usr/src/sys/amd64/compile/LAPR.small amd64
> 
>   cd /usr/ports; svn up
> Updating '.':
> At revision 418418
> 
>   make fetch
> pkg-static: Warning: Major OS version upgrade detected.  \
> Running "pkg-static install -f pkg" recommended
> 
> This is an incomplete thus bad reccomendation, based on a false
> assumption all users of ports/ only want packages. It's quite obvious
> from "make fetch" that here one wants to fetch distfiles to recompile,
> not install binary packages, the warning should at least also provide
> an alternate recipe for ports/ source based users who want to
> recompile whatever to get rid of warning.
> 
> What causes the warning ? a grep of Mk/* doesnt show it, 
> It's presumably coming from Mk/ calling some pkg ?
> In /usr/src/usr.sbin/pkg ? I fail to grep for Major
> 
> What text can we add to which Mk/* to state the source upgrade route ?
> 

It' the "pkg-static" binary installed by the ports-mgmt/pkg port. It's
invoked in  various ways by the ports framework.

You can ignore such warnings, they will go away once you forcibly update
the pkg port.

-- 
Guido Falsi 
___
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: lang/rust doesn't play nice with portupgrade -a and probably pkg

2016-07-13 Thread John


On Wed, 13 Jul 2016, at 14:04, David Wolfskill wrote:
> On Wed, Jul 13, 2016 at 01:57:43PM +0100, John wrote:
> > Hi,
> > 
> > I periodically use portupgrade -a to upgrade the ports (after checking
> > UPDATING) and it upgrades practically all ports painlessly. But for the
> > last 6 months or so, the upgrade of rust always bails saying it can't
> > upgrade for example) to 1_0_10 because 1_0_9 is already installed. But 
> > with every other port, increments in version are handled by
> > pkg/portupgrade.
> > 
> 
> Ref:
> 
> * https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204401
>   Closed: "Not A Bug"
> 
> * https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210779
>   Closed: "Works As Intended"
> 
> Peace,
> david   (portmaster also brings the misbehavior in question to light)

Thanks for the pointers. I have to say though, this is really
ass-backwards. I have over 1200 packages installed on this desktop and
they all play nice in this particular respect but not this one. But
somehow this is the fault of pkg? No. IMOHO lang/rust should not be in
ports until it's made to behave like a port.

thanks,
-- 
  John
  tech-li...@zyxst.net
___
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: OS version upgrade detected. Running "pkg-static install -f pkg" recommended

2016-07-13 Thread Matthew Donovan
Not sure how this is bad it just reinstalls pkg for the new ABI.
Ports/packages is placed in the database by pkg. So you will get that
warning when even doing pkg list
On Jul 13, 2016 9:59 AM, "Franco Fichtner"  wrote:

> Hi Julian,
>
> I ran into something similar, maybe this make.conf flag helps:
>
> CLEAN_FETCH_ENV=yes
>
>
> Cheers,
> Franco
>
> > On 13 Jul 2016, at 4:49 PM, Julian H. Stacey  wrote:
> >
> > Hi ports@
> > With:
> >  uname -a
> >FreeBSD lapr.js.berklix.net 12.0-CURRENT FreeBSD 12.0-CURRENT \
> >#1 r302560M: Wed Jul 13 01:28:27 CEST 2016 \
> >j...@lapr.js.berklix.net:/usr/src/sys/amd64/compile/LAPR.small amd64
> >
> >  cd /usr/ports; svn up
> >Updating '.':
> >At revision 418418
> >
> >  make fetch
> >pkg-static: Warning: Major OS version upgrade detected.  \
> >Running "pkg-static install -f pkg" recommended
> >
> > This is an incomplete thus bad reccomendation, based on a false
> > assumption all users of ports/ only want packages. It's quite obvious
> > from "make fetch" that here one wants to fetch distfiles to recompile,
> > not install binary packages, the warning should at least also provide
> > an alternate recipe for ports/ source based users who want to
> > recompile whatever to get rid of warning.
> >
> > What causes the warning ? a grep of Mk/* doesnt show it,
> > It's presumably coming from Mk/ calling some pkg ?
> > In /usr/src/usr.sbin/pkg ? I fail to grep for Major
> >
> > What text can we add to which Mk/* to state the source upgrade route ?
> >
> > Cheers,
> > Julian
> > --
> > Julian Stacey, BSD Linux Unix Sys Eng Consultant Munich
> http://berklix.eu/jhs/
> > Mail plain text,  No quoted-printable, HTML, base64, MS.doc.
> > Prefix old lines '> '  Reply below old, like play script.  Break lines
> by 80.
> > http://berklix.eu/brexit/#stolen_votes
> > ___
> > 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"
>
___
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"


OS version upgrade detected. Running "pkg-static install -f pkg" recommended

2016-07-13 Thread Julian H. Stacey
Hi ports@
With:
  uname -a
FreeBSD lapr.js.berklix.net 12.0-CURRENT FreeBSD 12.0-CURRENT \
#1 r302560M: Wed Jul 13 01:28:27 CEST 2016 \
j...@lapr.js.berklix.net:/usr/src/sys/amd64/compile/LAPR.small amd64

  cd /usr/ports; svn up
Updating '.':
At revision 418418

  make fetch
pkg-static: Warning: Major OS version upgrade detected.  \
Running "pkg-static install -f pkg" recommended

This is an incomplete thus bad reccomendation, based on a false
assumption all users of ports/ only want packages. It's quite obvious
from "make fetch" that here one wants to fetch distfiles to recompile,
not install binary packages, the warning should at least also provide
an alternate recipe for ports/ source based users who want to
recompile whatever to get rid of warning.

What causes the warning ? a grep of Mk/* doesnt show it, 
It's presumably coming from Mk/ calling some pkg ?
In /usr/src/usr.sbin/pkg ? I fail to grep for Major

What text can we add to which Mk/* to state the source upgrade route ?

Cheers,
Julian
-- 
Julian Stacey, BSD Linux Unix Sys Eng Consultant Munich http://berklix.eu/jhs/
 Mail plain text,  No quoted-printable, HTML, base64, MS.doc.
 Prefix old lines '> '  Reply below old, like play script.  Break lines by 80.
 http://berklix.eu/brexit/#stolen_votes
___
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: Porting OpenCPN

2016-07-13 Thread thierry

Selon Kubilay Kocak  le mer 13 jul 11:50:03 2016 :


Hi Andrea,


Hello,


For GitHub there is ports infrastructure, using USE_GITHUB=yes and GH_*
variables. For usage, see our Porters Handbook:
https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/book.html#makefile-master_sites-github-description

If the code isn't already on github, you can clone -> push it into your
own repository, and use USE_GITHUB in the port from there.


It is allready available from GH: https://github.com/OpenCPN/OpenCPN
and the releases are downloadable, e.g.
https://github.com/OpenCPN/OpenCPN/archive/v4.4.0.tar.gz

Regards,

--
Th. Thomas.
___
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: lang/rust doesn't play nice with portupgrade -a and probably pkg

2016-07-13 Thread David Wolfskill
On Wed, Jul 13, 2016 at 01:57:43PM +0100, John wrote:
> Hi,
> 
> I periodically use portupgrade -a to upgrade the ports (after checking
> UPDATING) and it upgrades practically all ports painlessly. But for the
> last 6 months or so, the upgrade of rust always bails saying it can't
> upgrade for example) to 1_0_10 because 1_0_9 is already installed. But 
> with every other port, increments in version are handled by
> pkg/portupgrade.
> 

Ref:

* https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204401
  Closed: "Not A Bug"

* https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210779
  Closed: "Works As Intended"

Peace,
david   (portmaster also brings the misbehavior in question to light)
-- 
David H. Wolfskill  da...@catwhisker.org
Those who would murder in the name of God or prophet are blasphemous cowards.

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


signature.asc
Description: PGP signature


lang/rust doesn't play nice with portupgrade -a and probably pkg

2016-07-13 Thread John
Hi,

I periodically use portupgrade -a to upgrade the ports (after checking
UPDATING) and it upgrades practically all ports painlessly. But for the
last 6 months or so, the upgrade of rust always bails saying it can't
upgrade for example) to 1_0_10 because 1_0_9 is already installed. But 
with every other port, increments in version are handled by
pkg/portupgrade.

wish I had the full error output, I'll save it the next time it happens.
In the meantime, can anyone clue me in as to what's happening?

thanks,
-- 
  John
  tech-li...@zyxst.net
___
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: Wxlua / Zbstudio

2016-07-13 Thread Raymond Cheung
I tried but all failed.
LuaJIT:
wxlua/wxLua/modules/wxlua/lbitlib.c:86:22: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'lua_Unsigned'
 typedef LUA_UNSIGNED lua_Unsigned;

5.1 and 5.2:
Segmentation fault (core dumped)
$ file lua52.core
lua52.core: ELF 64-bit LSB core file x86-64, version 1 (FreeBSD),
FreeBSD-style, from 'lua52'

5.3:
Lua 5.3.3  Copyright (C) 1994-2016 Lua.org, PUC-Rio
> require 'libwx'
error loading module 'libwx' from file './libwx.so':
./libwx.so: Undefined symbol "luaL_openlib"
stack traceback:
[C]: in ?
[C]: in function 'require'
stdin:1: in main chunk
[C]: in ?
>


FYI
https://trac.macports.org/browser/trunk/dports/graphics/wxLua/Portfile

On Sat, Jul 9, 2016 at 1:40 AM, Raymond Cheung 
wrote:

> Hi Torsten,
>
> This is also my first time to use cmake. My guess is to use these
> variables to set path.
> CMAKE_LIBRARY_PATH
> CMAKE_INCLUDE_PATH
>
> Alternatively, you can try to use gcc, instead of clang.
>
> According to my experience on torch7, clang (I tested with versions: 3.4,
> 3.8 and 3.9) doesn't work properly to find Open BLAS. I have to switch to
> gcc with these lines:
> export LD_LIBRARY_PATH=/usr/local/lib/gcc48:$LD_LIBRARY_PATH
> export CC=gcc
> export CXX=g++
>
> Blas, lapack and cpow can be used in th with gcc. All torch.test() and
> nn.test() are passed.
>
> I tested to compile torch distro with luajit, lua51, lua52 and lua53 on
> FreeBSD 11.0. However, only luajit are working properly.
>
> Maybe you try luajit with wxlua.
>
> I'm also trying to build zbstudio/wxlua from the source. I'll post the
> results afterwards.
>
> Thanks for your help.
>
> Raymond
> On Jul 7, 2016 23:51, "Torsten Zuehlsdorff" 
> wrote:
>
>> Hello Raymond,
>>
>> I'm a developer of Lua/torch. Currently, I use Ubuntu to write my codes.
>>> However, Ubuntu has frequent updates and make my environment unstable.
>>>
>>> I tried to install Ghost BSD and compile wxlua and zbstudio but both
>>> failed. Do you have any plan to port these two to FreeBSD?
>>>
>>
>> I started some work on an wxlua port. I got some small progress, but i'm
>> hacking at this error:
>>
>> [  7%] Building CXX object
>> modules/luamodule/CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxstc_bind.cpp.o
>> In file included from
>> /usr/ports/x11-toolkits/wxlua/work/wxLua-2.8.12.3-src/modules/wxbind/src/wxgl_bind.cpp:19:
>> In file included from
>> /usr/ports/x11-toolkits/wxlua/work/wxLua-2.8.12.3-src/modules/wxbind/include/wxgl_bind.h:47:
>> In file included from /usr/local/include/wx-3.0/wx/glcanvas.h:192:
>> In file included from /usr/local/include/wx-3.0/wx/gtk/glcanvas.h:14:
>> /usr/local/include/wx-3.0/wx/unix/glx11.h:13:10: fatal error: 'GL/glx.h'
>> file not found
>> #include 
>>
>>
>> Since i never wrote cmake ports before, i do not know how to tell cmake,
>> that the file is there:
>>
>> $ ls -lah /usr/local/include/GL/glx.h
>> -rw-r--r--  1 root  wheel14K  3 Jun 16:18 /usr/local/include/GL/glx.h
>>
>> Any idea?
>>
>> Until now i can say i just works with lua 5.1. 5.2 fails because of
>> missing compat-mode. 5.3 is untested.
>>
>> Makefile of port looks currently like this:
>>
>> === Start ===
>>
>> PORTNAME=   wxlua
>> PORTVERSION=2.8.12.3
>> CATEGORIES= x11-toolkits
>> MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
>> DISTNAME= wxLua-${PORTVERSION}-src
>>
>> MAINTAINER= t...@freebsd.org
>> COMMENT=Follows later
>>
>> RUN_DEPENDS=wxgtk30:x11-toolkits/wxgtk30
>>
>> CMAKE_ARGS=
>>  -DwxWidgets_CONFIG_EXECUTABLE=/usr/local/bin/wxgtk2u-3.0-config
>> CMAKE_ARGS+=-DwxLua_LUA_INCLUDE_DIR=${LUA_INCDIR}
>> CMAKE_ARGS+=-DwxLua_LUA_LIBRARY=${LUA_LIBDIR}
>> CMAKE_ARGS+=-DwxLua_LUA_LIBRARY_USE_BUILTIN=FALSE
>>
>> CMAKE_BUILD_TYPE=   Release
>>
>> USES=   cmake:outsource lua:51
>>
>> .include 
>>
>> .include 
>>
>> === End ===
>>
>> Greetings,
>> Torsten
>>
>
___
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 you maintain which are out of date

2016-07-13 Thread portscout
Dear port maintainer,

The portscout new distfile checker has detected that one or more of your
ports appears to be out of date. Please take the opportunity to check
each of the ports listed below, and if possible and appropriate,
submit/commit an update. If any ports have already been updated, you can
safely ignore the entry.

You will not be e-mailed again for any of the port/version combinations
below.

Full details can be found at the following URL:
http://portscout.freebsd.org/po...@freebsd.org.html


Port| Current version | New version
+-+
math/giacxcas   | 1.2.2-57| 1.2.2-73
+-+


If any of the above results are invalid, please check the following page
for details on how to improve portscout's detection and selection of
distfiles on a per-port basis:

http://portscout.freebsd.org/info/portscout-portconfig.txt

Thanks.
___
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: Porting OpenCPN

2016-07-13 Thread Kubilay Kocak
On 13/07/2016 7:39 PM, Andrea Venturoli wrote:
> Please forgive me if you see this message twice: I think the first time
> it didn't get through...
> 
> 
> 
> 
> Hello.
> 
> I'm trying to port OpenCPN (http://opencpn.org/ocpn/) and I'm up to the
> point where the program seems to work; I couldn't try any GPS hardware,
> though.
> 
> In case anyone is interested in having a look, you can find it here:
> http://www.netfence.it/download/OpenCPN_port.tbz
> 
> Still, I've got a couple of questions...
> 
> There is no downloadable archive for OpenCPN, so I "git cloned" the
> source, created a tarball and put it on my website (as MASTER_SITE).
> Does the port infrastructure allow for direct "git clone" instead?

Hi Andrea,

For GitHub there is ports infrastructure, using USE_GITHUB=yes and GH_*
variables. For usage, see our Porters Handbook:
https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/book.html#makefile-master_sites-github-description

If the code isn't already on github, you can clone -> push it into your
own repository, and use USE_GITHUB in the port from there.

./koobs

___
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"


Porting OpenCPN

2016-07-13 Thread Andrea Venturoli
Please forgive me if you see this message twice: I think the first time 
it didn't get through...





Hello.

I'm trying to port OpenCPN (http://opencpn.org/ocpn/) and I'm up to the 
point where the program seems to work; I couldn't try any GPS hardware, 
though.


In case anyone is interested in having a look, you can find it here:
http://www.netfence.it/download/OpenCPN_port.tbz

Still, I've got a couple of questions...

There is no downloadable archive for OpenCPN, so I "git cloned" the 
source, created a tarball and put it on my website (as MASTER_SITE).

Does the port infrastructure allow for direct "git clone" instead?



There's the following code, which I'm no so sure how to translate:


 int isTTYreal(const char *dev)
 {
 struct serial_struct serinfo;
 int ret = 0;

 int fd = open(dev, O_RDWR | O_NONBLOCK | O_NOCTTY);

 // device name is pointing to a real device
 if(fd >= 0) {
   if (ioctl(fd, TIOCGSERIAL, )==0) {
 // If device type is no PORT_UNKNOWN we accept the port
 if (serinfo.type != PORT_UNKNOWN)
 ret = 1;
}
 close (fd);
 }


For now I commented the ioctl and just set ret=1 if open succeeds; do we 
have anything equivalent to this Linuxism, instead?


  bye & Thanks
av.
___
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"