Re: [Cluster-devel] [ClusterLabs] gfs2-utils 3.5.0 released

2023-02-14 Thread Fabio M. Di Nitto




On 14/02/2023 21.17, Valentin Vidic wrote:

On Tue, Feb 14, 2023 at 06:18:55AM +0100, Fabio M. Di Nitto wrote:

The process would have to look like:

 (usual)
apt-get install 
git clone gfs2-utils
export CFLAGS/LDFLAGS/CC or whatever env var

./autogen.sh
./configure..
make
make 

Using other build tools like debbuild or mock has been problematic in the
past for other projects, might not be the case for gfs2-utils.

so you can try that all in a local VM and let me know the steps, then we can
add it to CI.


Sure, the commands to build and test a 32-bit version look like this for me:

dpkg --add-architecture i386


doh.. didnĀ“t think of cross compilation.


apt-get update
apt-get install --yes build-essential crossbuild-essential-i386 autoconf 
automake autopoint autotools-dev bison flex check:i386 libblkid-dev:i386 
libbz2-dev:i386 libncurses-dev:i386 libtool pkg-config:i386 zlib1g-dev:i386
./configure --build=x86_64-linux-gnu --host=i686-linux-gnu
make
make check



ack perfect, we already have a Debian CI builder dedicated to arm cross 
compilation, we can tweak it to add i386 as well.


Thanks
Fabio



Re: [Cluster-devel] [ClusterLabs] gfs2-utils 3.5.0 released

2023-02-14 Thread Valentin Vidic
On Tue, Feb 14, 2023 at 06:18:55AM +0100, Fabio M. Di Nitto wrote:
> The process would have to look like:
> 
>  (usual)
> apt-get install 
> git clone gfs2-utils
> export CFLAGS/LDFLAGS/CC or whatever env var
> 
> ./autogen.sh
> ./configure..
> make
> make 
> 
> Using other build tools like debbuild or mock has been problematic in the
> past for other projects, might not be the case for gfs2-utils.
> 
> so you can try that all in a local VM and let me know the steps, then we can
> add it to CI.

Sure, the commands to build and test a 32-bit version look like this for me:

dpkg --add-architecture i386
apt-get update
apt-get install --yes build-essential crossbuild-essential-i386 autoconf 
automake autopoint autotools-dev bison flex check:i386 libblkid-dev:i386 
libbz2-dev:i386 libncurses-dev:i386 libtool pkg-config:i386 zlib1g-dev:i386
./configure --build=x86_64-linux-gnu --host=i686-linux-gnu
make
make check

-- 
Valentin