SV: Sent out a pull-request to upgrade the packaging system....

2022-03-22 Thread Gunnarsson, Gunnar
Hi,

I'm testing the amanda-3_5-packaging-upgrade-wip  and now it builds on my 
solaris 11.4 system. 
Amrecover fails to connect to the amindexd server see trace from below. 
Complains  about  too big  message  size  see  trace  below.  
Server works if the amrecover client is 3.4.5 and the backup client seems to be 
working using th 3.4.5 version.

Thanks Gunnar

Tue Mar 22 15:42:21.445289090 2022: pid 11472: thd-100124a00: amindexd: pid 
11472 ruid 91 euid 91 version 3.5.1+233: start at Tue Mar 22 15:4
2:21 2022
Tue Mar 22 15:42:21.445353790 2022: pid 11472: thd-100124a00: amindexd: version 
3.5.1+233

11484/2:setsockopt(4, SOL_SOCKET, SO_REUSEADDR, 0x7E8FB07C, 4, 
SOV_DEFAULT) = 0
11484/2:setsockopt(4, SOL_SOCKET, SO_KEEPALIVE, 0x7E8FB07C, 4, 
SOV_DEFAULT) = 0
11484/2:so_socket(PF_UNIX, SOCK_DGRAM|SOCK_NONBLOCK, 0, NULL, 
SOV_XPG4_2) = 5
11484/2:so_socket(PF_UNIX, SOCK_DGRAM|SOCK_NONBLOCK, 0, NULL, 
SOV_XPG4_2) = 6
11484/2:so_socketpair(5, 6) = 0
11484/2:pipe()  = 7 [8]
11484/2:lwp_suspend(1)  = 0
11484/2:forkx(0)= 11487
11487:  forkx() (returning as child of pid 11484) = 0
11484/2:lwp_continue(1) = 0
11487:  getpid()= 11487 [11484]
11484/2:lwp_sigmask(SIG_SETMASK, 0x, 0x, 0x, 
0x) = 0xFFBFFEFF [0x]
11487:  lwp_self()  = 2
11484/2:close(6)= 0
11484/2:close(8)= 0
11487:  lwp_sigmask(SIG_SETMASK, 0x, 0x, 0x, 
0x) = 0xFFBFFEFF [0x]
11484/2:sendmsg(5, 0x7E8F8E48, MSG_XPG4_2)  Err#97 EMSGSIZE
 
11487:  schedctl()  = 0x7F5E4000
11484/2:shutdown(5, SHUT_RDWR, SOV_DEFAULT) = 0
11484/2:close(5)= 0
11484/2:close(7)= 0
11487:  close(5)= 0
11484/2:close(4)= 0
11484/2:getpid()= 11484 [11483]
11487:  fcntl(8, F_DUP2FD, 0x0002)  = 2
11484/2:write(10, 0x100147A64, 124) = 124
11484/2:   r e c o v e r :   a m b i n d   f a i l e d :   s e n d m s g
11484/2:   f a i l e d   A :   M e s s a g e   t o o   l o n g\n\n
11487:  fcntl(0, F_GETFD)   = 0
11484/2:getpid()= 11484 [11483]
11487:  fcntl(1, F_GETFD)   = 0
11484/2:write(10, 0x100147A64, 130) = 130
11484/2:   T u e   M a r   2 2   1 5 : 4 4 : 5 4 . 0 4 9 9 5 3 7 3 0   
2 0
11484/2:   2 2 :   p i d   1 1 4 8 4 :   t h d - 1 0 0 1 5 5 0 0 0 :   
a m
11484/2:   r e c o v e r :   s t r e a m _ c l i e n t :   C o u l d   
n o
11484/2:   t   b i n d   t o   p o r t   i n   r a n g e   5 1 2 - 1 0 
2 3
11484/2:   .\n
11487:  fcntl(2, F_GETFD)   = 0
11484/2:getpid()= 11484 [11483]
11487:  close(3)= 0
11484/2:write(10, 0x100147A64, 185) = 185
11484/2:   T u e   M a r   2 2   1 5 : 4 4 : 5 4 . 0 5 0 0 8 5 5 1 0   
2 0
11484/2:   2 2 :   p i d   1 1 4 8 4 :   t h d - 1 0 0 1 5 5 0 0 0 :   
a m
11484/2:   r e c o v e r :   s e c u r i t y _ s e t e r r o r ( h a n 
d l
11484/2:   e = 1 0 0 1 5 6 4 0 0 ,   d r i v e r = f f f f f f f f 7 1 
3 9
11484/2:   2 f 4 0   ( B S D T C P )   e r r o r = s e n d m s g   f a 
i l
11484/2:   e d   A :   M e s s a g e   t o o   l o n g\n )\n


-Ursprungligt meddelande-
Från: Chris Hassell  
Skickat: den 21 mars 2022 20:37
Till: li...@xunil.at; ? amanda users ; Gunnarsson, 
Gunnar 
Ämne: RE: Sent out a pull-request to upgrade the packaging system

NOTE:  it seems at least gcc 7 is a good idea for the Solaris build.   Autoconf 
2.69 seems to be the minimal level.

To start from a clean set of source.

% git clean -dfx
% ./autogen

( Not sure if autogen is necessary any more.   It can be done automatically in 
the scripts. )

To build binaries and packages in the top directory (where the source is) ... 
depending what you are running on.   [Same dir setup as old].

% ./packaging/rpm/build client
% ./packaging/deb/build client
% ./packaging/sun-pkg/build client

To build current working dirs in a subdirectory (rpmbuild

SV: Sent out a pull-request to upgrade the packaging system....

2022-03-21 Thread Gunnarsson, Gunnar
Hi, 

I had missed  some packets but know autogen works. I'm getting this error.

Thanks Gunnar 

libtool: link: gcc -Wall -Wextra -Wparentheses -Wdeclaration-after-statement 
-Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wformat 
-Wformat-security -Wsign-compare -Wfloat-equal -Wold-style-definition 
-Wno-strict-aliasing -Wno-unknown-pragmas -Wno-deprecated-declarations 
"-DAMANDA_FILE=\"amflock-test.o\"" -g -O2 -fno-strict-aliasing 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -o .libs/amflock-test amflock-test.o 
 -L/usr/lib/64 ./.libs/libamanda.so -L/usr/lib/sparcv9 ./.libs/libtestutils.a 
-lgobject-2.0 -lgthread-2.0 -lglib-2.0 -lsocket -lnsl -lresolv -lintl -lssl 
-lcrypto -R/opt/lib/amanda
ld: fatal: symbol 'tu_debugging_enabled' is multiply-defined:
(file amflock-test.o type=OBJT; file 
./.libs/libtestutils.a(testutils.o) type=OBJT);
collect2: error: ld returned 1 exit status
gmake[3]: *** [Makefile:2371: amflock-test] Error 1
gmake[3]: Leaving directory 
'/root/amanda_compile/amanda-3_5-packaging-upgrade-wip/amanda/common-src'
gmake[2]: *** [Makefile:2171: all] Error 2
gmake[2]: Leaving directory 
'/root/amanda_compile/amanda-3_5-packaging-upgrade-wip/amanda/common-src'
gmake[1]: *** [Makefile:1737: all-recursive] Error 1
gmake[1]: Leaving directory 
'/root/amanda_compile/amanda-3_5-packaging-upgrade-wip/amanda'
gmake: *** [Makefile:1661: all] Error 2

-Ursprungligt meddelande-
Från: owner-amanda-us...@amanda.org  För 
Gunnarsson, Gunnar
Skickat: den 19 mars 2022 11:58
Till: li...@xunil.at; Chris Hassell ; ? amanda users 

Ämne: SV: Sent out a pull-request to upgrade the packaging system

Hi,

git clone -b 3_5-packaging-upgrade-wip https://github.com/zmanda/amanda.git
git branch
* 3_5-packaging-upgrade-wip

On solaris these packages are needed
pkg install git automake  autoconf  pkg:/developer/build/libtool gcc cd Amanda 
./autogen

+ set -x
+ /usr/bin/autoconf
configure.ac:25: error: possibly undefined macro: AC_DEFINE
  If this token and others are legitimate, please use m4_pattern_allow.
  See the Autoconf documentation.
+ die 'autoconf  [default autoconf version] failed'
+ echo 'autoconf  [default autoconf version] failed'
autoconf  [default autoconf version] failed
+ exit 1

This works on the master branch ?

Thanks Gunnar 

-Ursprungligt meddelande-
Från: owner-amanda-us...@amanda.org  För Stefan 
G. Weichinger
Skickat: den 18 mars 2022 10:31
Till: Chris Hassell ; ? amanda users 

Ämne: Re: Sent out a pull-request to upgrade the packaging system

Am 17.03.22 um 22:28 schrieb Chris Hassell:
> First of many.  It is not configured-and-tested as is but it is very 
> close to our working version.
> 
> -Versioning based on tags from git
> 
> -An in-directory build as well as below-directory package build
> 
> -Solaris 10 and Solaris 11 packages
> 
> -Better handling of pre/post scripts (may need to update Debian
> ones??)
> 
> -Systemd services are included as well.
> 
> If I can get someone to look over it and give it a spin I’d really 
> appreciate it.
> 
> I have more fixes for the installcheck directory to allow some good 
> and solid self-tests.

Nice to see progress.

I assume you want us to try to build the code in that PR?

pls point to some howto, I can't remember the procedure anymore (autoconf? etc)

I can test on Debian 11, for example.




SV: Sent out a pull-request to upgrade the packaging system....

2022-03-19 Thread Gunnarsson, Gunnar
Hi,

git clone -b 3_5-packaging-upgrade-wip https://github.com/zmanda/amanda.git
git branch
* 3_5-packaging-upgrade-wip

On solaris these packages are needed 
pkg install git automake  autoconf  pkg:/developer/build/libtool gcc
cd Amanda 
./autogen

+ set -x
+ /usr/bin/autoconf
configure.ac:25: error: possibly undefined macro: AC_DEFINE
  If this token and others are legitimate, please use m4_pattern_allow.
  See the Autoconf documentation.
+ die 'autoconf  [default autoconf version] failed'
+ echo 'autoconf  [default autoconf version] failed'
autoconf  [default autoconf version] failed
+ exit 1

This works on the master branch ?

Thanks Gunnar 

-Ursprungligt meddelande-
Från: owner-amanda-us...@amanda.org  För Stefan 
G. Weichinger
Skickat: den 18 mars 2022 10:31
Till: Chris Hassell ; ? amanda users 

Ämne: Re: Sent out a pull-request to upgrade the packaging system

Am 17.03.22 um 22:28 schrieb Chris Hassell:
> First of many.  It is not configured-and-tested as is but it is very 
> close to our working version.
> 
> -Versioning based on tags from git
> 
> -An in-directory build as well as below-directory package build
> 
> -Solaris 10 and Solaris 11 packages
> 
> -Better handling of pre/post scripts (may need to update Debian 
> ones??)
> 
> -Systemd services are included as well.
> 
> If I can get someone to look over it and give it a spin I’d really 
> appreciate it.
> 
> I have more fixes for the installcheck directory to allow some good 
> and solid self-tests.

Nice to see progress.

I assume you want us to try to build the code in that PR?

pls point to some howto, I can't remember the procedure anymore (autoconf? etc)

I can test on Debian 11, for example.