Re: Logitechmediaserver fails to build

2018-04-03 Thread Eric Masson
Walter Schwarzenfeld  writes:

Hi Walter,

Thanks for your detailed explanations.

> So I think it is better, you make a PR.

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

Regards

Éric Masson

-- 
 > C'est malheureux de constater k'apres kelkes millers d'années d'evolution,
 > les hommes sont encore au stade *primitive* : peur de ce k'on ne connait
 > pas, juger ses sembles a tout prix, coller une etiquette et j'en passe.
 -+- Gl in :  - fufe, c'est du Darwin -+-
___
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: Logitechmediaserver fails to build

2018-04-03 Thread Walter Schwarzenfeld

forgot I included  from the first part of the extrapatch

@@ -92,7 +92,7 @@
 exit
 fi

-for i in gcc cpp rsync make rsync ; do
+for i in cc cpp rsync make rsync ; do
 which $i > /dev/null
 if [ $? -ne 0 ] ; then
 echo "$i not found - please install it"

in my buildme.sh-patch.

___
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: Logitechmediaserver fails to build

2018-04-03 Thread Walter Schwarzenfeld

It is a little more complicated as I thought in the first moment:

You also need add to your patch:

@@ -520,7 +537,7 @@ function build {
 ;;

 Class::XSAccessor)
-    if [ "$PERL_516" -o "$PERL_518" -o "$PERL_520" -o 
"$PERL_522" -o "$PERL_524" ]; then
+    if [ "$PERL_516" -o "$PERL_518" -o "$PERL_520" -o 
"$PERL_522" -o "$PERL_524" -o "$PERL_526" ]; then

 build_module Class-XSAccessor-1.18
 cp -pR $PERL_BASE/lib/perl5/$ARCH/Class $PERL_ARCH/
 else
@@ -536,7 +553,7 @@ function build {
 ;;

 DBI)
-    if [ "$PERL_518" -o "$PERL_520" -o "$PERL_522" -o 
"$PERL_524" ]; then
+    if [ "$PERL_518" -o "$PERL_520" -o "$PERL_522" -o 
"$PERL_524" -o "$PERL_526" ]; then

 build_module DBI-1.628
 cp -p $PERL_BASE/lib/perl5/$ARCH/DBI.pm $PERL_ARCH/
 cp -pR $PERL_BASE/lib/perl5/$ARCH/DBI $PERL_ARCH/
@@ -546,7 +563,7 @@ function build {
 ;;

 DBD::SQLite)
-    if [ "$PERL_518" -o "$PERL_520" -o "$PERL_522" -o 
"$PERL_524" ]; then
+    if [ "$PERL_518" -o "$PERL_520" -o "$PERL_522" -o 
"$PERL_524" -o "$PERL_526" ]; then

 build_module DBI-1.628 "" 0
 else
 build_module DBI-1.616 "" 0
@@ -632,7 +649,7 @@ function build {
 rm -rf DBD-SQLite-1.34_01
 else
 cd ..
-    if [ "$PERL_516" -o "$PERL_518" -o "$PERL_520" -o 
"$PERL_522" -o "$PERL_524" ]; then
+    if [ "$PERL_516" -o "$PERL_518" -o "$PERL_520" -o 
"$PERL_522" -o "$PERL_524" -o "$PERL_526" ]; then

    build_module DBD-SQLite-1.34_01 "" 0
 fi
 build_module DBD-SQLite-1.34_01
@@ -714,7 +731,7 @@ function build {
 JSON::XS)
 build_module common-sense-2.0

-    if [ "$PERL_518" -o "$PERL_520" -o "$PERL_522" -o 
"$PERL_524" ]; then
+    if [ "$PERL_518" -o "$PERL_520" -o "$PERL_522" -o 
"$PERL_524" -o "$PERL_526" ]; then

 build_module JSON-XS-2.34
 cp -pR $PERL_BASE/lib/perl5/$ARCH/JSON $PERL_ARCH/
 else
@@ -744,7 +761,7 @@ function build {
 ;;

 YAML::LibYAML)
-    if [ "$PERL_516" -o "$PERL_518" -o "$PERL_520" -o 
"$PERL_522" -o "$PERL_524" ]; then
+    if [ "$PERL_516" -o "$PERL_518" -o "$PERL_520" -o 
"$PERL_522" -o "$PERL_524" -o "$PERL_526" ]; then

 build_module YAML-LibYAML-0.35 "" 0
 else
 build_module YAML-LibYAML-0.35
@@ -1403,7 +1420,7 @@ find $BUILD -name '*.packlist' -exec rm

 # create our directory structure
 # rsync is used to avoid copying non-binary modules or other extra stuff
-if [ "$PERL_512" -o "$PERL_514" -o "$PERL_516" -o "$PERL_518" -o 
"$PERL_520" -o "$PERL_522" -o "$PERL_524" ]; then
+if [ "$PERL_512" -o "$PERL_514" -o "$PERL_516" -o "$PERL_518" -o 
"$PERL_520" -o "$PERL_522" -o "$PERL_524" -o "$PERL_526" ]; then

 # Check for Perl using use64bitint and add -64int
 ARCH=`$PERL_BIN -MConfig -le 'print $Config{archname}' | sed 
's/gnu-//' | sed 's/^i[3456]86-/i386-/' | sed 's/armv.*?-/arm-/' `

 fi


but this conflicts with the extrapatch.

(vendorpatch-CPAN_buildme.sh)

It build if I remove the first part 
(./slimserver-vendor-1463b00/CPAN/buildme.sh) of this patch.


But in this patch is another conditional patch. And if I remove the 
first part of it, there is no condition anymore:


# because it takes so damn long on slow platforms
 if [ ! -f build/lib/libicudata_s.a ]; then
 tar_wrapper zxvf icu4c-4_6-src.tgz
=>+   patch << END

 So the second part will applied if needed or not.

I got it to build.

For installation we need a new pkg-plist.

I could install it with a new pkg-plist, but it has the variable 
%%AMD64_ONLY%% (must added per hand). And I am not really clear


in which line it is needed.


So I think it is better, you make a PR.




___
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: Logitechmediaserver fails to build

2018-04-03 Thread Eric Masson
Walter Schwarzenfeld  writes:

Hi,

> work/slimserver-vendor-1463b00/CPAN/buildme.sh misses perl5.26 entry.

I've changed this file by adding perl5.26 entry (see attached diff), LMS
still doesn't build correctly :
(errors on work/slimserver-vendor-1463b00/CPAN/Class-XSAccessor-1.05)
make typescript attached.

Regards

Éric Masson

-- 
 Il y en a qui ne savent pas déballer leur ordinateur de la boîte
 d'emballage. Faudrait aussi prévoir une doc là-dessus (parce que celle
 fournie avec la boîte, il y a plein de mots et pas beaucoup d'images)
 -+- Jaco in Guide du Linuxien pervers - "[OUI] à fcol.deballage" -+-
--- buildme.sh	2018-04-03 09:50:06.635491000 +0200
+++ /home/emss/buildme.sh	2018-04-03 09:46:48.470468000 +0200
@@ -322,6 +322,19 @@
 PERL_ARCH=$BUILD/arch/5.24
 fi
 
+# Path to Perl 5.26
+if [ -x "/usr/bin/perl5.26.1" ]; then
+PERL_526=/usr/bin/perl5.26.1
+fi
+   
+if [ $PERL_526 ]; then
+echo "Building with Perl 5.26 at $PERL_526"
+PERL_BIN=$PERL_526
+# Install dir for 5.26
+PERL_BASE=$BUILD/5.26
+PERL_ARCH=$BUILD/arch/5.26
+fi
+
 # try to use default perl version
 if [ "$PERL_BIN" = "" ]; then
 PERL_BIN=`which perl`
@@ -355,6 +368,9 @@
 "5.24")
 	PERL_524=$PERL_BIN
 ;;
+"5.26")
+	PERL_526=$PERL_BIN
+;;
 *)
 echo "Failed to find supported Perl version for '$PERL_BIN'"
 exit


LMS_make.gz
Description: Binary data
___
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: Logitechmediaserver fails to build

2018-04-02 Thread Walter Schwarzenfeld

work/slimserver-vendor-1463b00/CPAN/buildme.sh misses perl5.26 entry.

___
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: Logitechmediaserver fails to build

2018-04-02 Thread Michael Grimm
Eric Masson  wrote:

> Seems Logitech Media Server doesn't build on 11-STABLE (I had to rebuild
> it after perl5 defaults from 5.24 to 5.26).
> 
> root@newsrv:/usr/ports/audio/logitechmediaserver # make
[…]
> cd: 
> /storage/work/ports/build/usr/ports/audio/logitechmediaserver/work/slimserver-vendor-1463b00/CPAN/build:
>  No such file or directory
> *** Error code 2
> 
> Stop.
> make[1]: stopped in /usr/ports/audio/logitechmediaserver
> *** Error code 1
> 
> Stop.
> make: stopped in /usr/ports/audio/logitechmediaserver
> root@newsrv:/usr/ports/audio/logitechmediaserver #

FYI: Same here, starting a couple of days ago.

Regarda,
Michael

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