Re: net/libarcus fails to install

2021-03-22 Thread Torfinn Ingolfsen
On Thu, Dec 31, 2020 at 11:11 AM Torfinn Ingolfsen  wrote:
>
> On Thu, Dec 31, 2020 at 12:59 AM Shane Ambler  wrote:
> >
> > On 31/12/20 7:49 am, Diane Bruce wrote:
> > > On Wed, Dec 30, 2020 at 11:01:05AM +1030, Shane Ambler wrote:
> > >>
> > >> The issue is in cmake - I have just reported it as a bug
> > >>
> > >> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252277
> > >
> > > Thanks for tracking this down! This bug of course fails to show
> > > up on poudriere.
> >
> > poudriere builds ports in a clean environment, there is usually just one
> > python version available when it builds a port.
> >
> > >>
> > >> For a workaround try adding the following to the end of the libarcus
> > >> Makefile (above the last .include line) indents are tabs not spaces
> > >> The same addition should also work for libsavitar
> > >>
> > >> post-patch:
> > >>  ${REINPLACE_CMD} -e 's|VERSION_LESS 3.12|VERSION_LESS 4.12|g' \
> > >>  ${WRKSRC}/CMakeLists.txt \
> > >>  ${WRKSRC}/cmake/FindSIP.cmake
> > >>
> > >
> > > Should we do this for now? Or wait for CMake to be fixed?
> > > I can certainly add this snippet to the port for now.
> >
> > You can use that yourself to allow you to build your own ports until
> > cmake gets an update relating to this.
>
> (for completeness) I can confirm that the workaround works, for both
> libarcus and libsavitar.
> Thanks!
> --
> Regards,
> Torfinn Ingolfsen

FYI, the workaround is still needed for libSavitar 4.5.0_5, as cmake
3.19.6 still has the bug described in
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252277
Have a nice day.
-- 
Regards,
Torfinn Ingolfsen
___
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: net/libarcus fails to install

2020-12-31 Thread Torfinn Ingolfsen
On Thu, Dec 31, 2020 at 12:59 AM Shane Ambler  wrote:
>
> On 31/12/20 7:49 am, Diane Bruce wrote:
> > On Wed, Dec 30, 2020 at 11:01:05AM +1030, Shane Ambler wrote:
> >>
> >> The issue is in cmake - I have just reported it as a bug
> >>
> >> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252277
> >
> > Thanks for tracking this down! This bug of course fails to show
> > up on poudriere.
>
> poudriere builds ports in a clean environment, there is usually just one
> python version available when it builds a port.
>
> >>
> >> For a workaround try adding the following to the end of the libarcus
> >> Makefile (above the last .include line) indents are tabs not spaces
> >> The same addition should also work for libsavitar
> >>
> >> post-patch:
> >>  ${REINPLACE_CMD} -e 's|VERSION_LESS 3.12|VERSION_LESS 4.12|g' \
> >>  ${WRKSRC}/CMakeLists.txt \
> >>  ${WRKSRC}/cmake/FindSIP.cmake
> >>
> >
> > Should we do this for now? Or wait for CMake to be fixed?
> > I can certainly add this snippet to the port for now.
>
> You can use that yourself to allow you to build your own ports until
> cmake gets an update relating to this.

(for completeness) I can confirm that the workaround works, for both
libarcus and libsavitar.
Thanks!
-- 
Regards,
Torfinn Ingolfsen
___
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: net/libarcus fails to install

2020-12-30 Thread Shane Ambler
On 31/12/20 7:49 am, Diane Bruce wrote:
> On Wed, Dec 30, 2020 at 11:01:05AM +1030, Shane Ambler wrote:
>> On 28/12/20 4:40 am, Torfinn Ingolfsen wrote:
>>> On Sun, Dec 27, 2020 at 2:41 PM Torfinn Ingolfsen  wrote:

 net/libarcus builds, but fails to install:
>>
>>> FWIW, devel/libsavitar has the same "problem"; with python38 installed
>>> it fails to install because it builds for 3.8 instead of 3.7.
>>
>> The issue is in cmake - I have just reported it as a bug
>>
>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252277
> 
> Thanks for tracking this down! This bug of course fails to show
> up on poudriere.

poudriere builds ports in a clean environment, there is usually just one
python version available when it builds a port.

>>
>> For a workaround try adding the following to the end of the libarcus
>> Makefile (above the last .include line) indents are tabs not spaces
>> The same addition should also work for libsavitar
>>
>> post-patch:
>>  ${REINPLACE_CMD} -e 's|VERSION_LESS 3.12|VERSION_LESS 4.12|g' \
>>  ${WRKSRC}/CMakeLists.txt \
>>  ${WRKSRC}/cmake/FindSIP.cmake
>>
> 
> Should we do this for now? Or wait for CMake to be fixed?
> I can certainly add this snippet to the port for now.

You can use that yourself to allow you to build your own ports until
cmake gets an update relating to this.

-- 
FreeBSD - the place to B...Software Developing

Shane Ambler

___
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: net/libarcus fails to install

2020-12-30 Thread Diane Bruce
On Wed, Dec 30, 2020 at 11:01:05AM +1030, Shane Ambler wrote:
> On 28/12/20 4:40 am, Torfinn Ingolfsen wrote:
> > On Sun, Dec 27, 2020 at 2:41 PM Torfinn Ingolfsen  wrote:
> >>
> >> net/libarcus builds, but fails to install:
> 
> > FWIW, devel/libsavitar has the same "problem"; with python38 installed
> > it fails to install because it builds for 3.8 instead of 3.7.
> 
> The issue is in cmake - I have just reported it as a bug
> 
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252277

Thanks for tracking this down! This bug of course fails to show
up on poudriere.

> 
> For a workaround try adding the following to the end of the libarcus
> Makefile (above the last .include line) indents are tabs not spaces
> The same addition should also work for libsavitar
> 
> post-patch:
>   ${REINPLACE_CMD} -e 's|VERSION_LESS 3.12|VERSION_LESS 4.12|g' \
>   ${WRKSRC}/CMakeLists.txt \
>   ${WRKSRC}/cmake/FindSIP.cmake
> 

Should we do this for now? Or wait for CMake to be fixed?
I can certainly add this snippet to the port for now.



> 
> -- 
> FreeBSD - the place to B...Software Developing
> 
> Shane Ambler
> 
> ___
> 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"

-- 
- d...@freebsd.org d...@db.net http://www.db.net/~db
___
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: net/libarcus fails to install

2020-12-29 Thread Shane Ambler
On 28/12/20 4:40 am, Torfinn Ingolfsen wrote:
> On Sun, Dec 27, 2020 at 2:41 PM Torfinn Ingolfsen  wrote:
>>
>> net/libarcus builds, but fails to install:

> FWIW, devel/libsavitar has the same "problem"; with python38 installed
> it fails to install because it builds for 3.8 instead of 3.7.

The issue is in cmake - I have just reported it as a bug

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252277

For a workaround try adding the following to the end of the libarcus
Makefile (above the last .include line) indents are tabs not spaces
The same addition should also work for libsavitar

post-patch:
${REINPLACE_CMD} -e 's|VERSION_LESS 3.12|VERSION_LESS 4.12|g' \
${WRKSRC}/CMakeLists.txt \
${WRKSRC}/cmake/FindSIP.cmake


-- 
FreeBSD - the place to B...Software Developing

Shane Ambler

___
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: net/libarcus fails to install

2020-12-27 Thread Torfinn Ingolfsen
On Sun, Dec 27, 2020 at 2:41 PM Torfinn Ingolfsen  wrote:
>
> net/libarcus builds, but fails to install:
> root@kg-core2# make install
> ===>  Installing for libArcus-4.7.1_2,1
> ===>  Checking if libArcus is already installed
> ===>   Registering installation for libArcus-4.7.1_2,1
> pkg-static: Unable to access file
> /usr/ports/net/libarcus/work/stage/usr/local/lib/python3.7/site-packages/Arcus.so:No
> such file or directory
> *** Error code 1
>
> Stop.
> make: stopped in /usr/ports/net/libarcus
> the reason seems to be that it builds for Python 3.8 instead of python 3.7:
> root@kg-core2# ll work/stage/usr/local/lib
> total 100
> drwxr-xr-x   6 root  wheel512 Dec 27 14:06 ./
> drwxr-xr-x  13 root  wheel512 Dec 27 14:06 ../
> drwxr-xr-x   3 root  wheel512 Dec 27 14:06 X11/
> drwxr-xr-x   3 root  wheel512 Dec 27 14:06 cmake/
> drwxr-xr-x   2 root  wheel512 Dec 27 14:06 debug/
> lrwxr-xr-x   1 root  wheel 13 Dec 27 14:06 libArcus.so@ -> libArcus.so.3
> -rwxr-xr-x   1 root  wheel  75328 Dec 27 14:06 libArcus.so.1.1.0*
> lrwxr-xr-x   1 root  wheel 17 Dec 27 14:06 libArcus.so.3@ ->
> libArcus.so.1.1.0
> drwxr-xr-x   3 root  wheel512 Dec 27 14:06 python3.8/
> root@kg-core2# ll work/stage/usr/local/lib/python3.8/site-packages/
> total 68
> drwxr-xr-x  2 root  wheel512 Dec 27 14:06 ./
> drwxr-xr-x  3 root  wheel512 Dec 27 14:06 ../
> -rwxr-xr-x  1 root  wheel  59608 Dec 27 14:06 Arcus.so*
> I'm not sure why, since pyton37 is still default, according to
> FreshPorts. Both pythons are installed here:
> root@kg-core2# pkg info python3*
> python37-3.7.9_1
> python38-3.8.7
>
> This on FreeBSD 11.4-release-p5:
> root@kg-core2# uname -a
> FreeBSD kg-core2.kg4.no 11.4-RELEASE-p5 FreeBSD 11.4-RELEASE-p5 #0:
> Tue Dec  1 11:46:55 UTC 2020
> r...@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
>
> Any more info I can provide?

Just for the fun of it I tried this: removed the installed python38
package (via pkg delete) which also took away blender, but I can fix
that later.
Then libArcus built and installed without problems.
FWIW, devel/libsavitar has the same "problem"; with python38 installed
it fails to install because it builds for 3.8 instead of 3.7.
HTH
-- 
mvh
Torfinn
___
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"