Discussion:
[bug-mailutils] how to download mailutils sources from git for next offline build
Franta Hanzlík
2017-06-10 11:24:19 UTC
Permalink
Please, what is best way for preparing mailutils package for subsequent
build on destination machine, where is only minimal build system (gcc +
devel libraries)? I thin somthin as project has already in its archive:

ftp://download.gnu.org.ua/pub/alpha/mailutils/mailutils-3.2.91.tar.xz

which has only 2.7 MB size!

What I tried:
I must download sources from git (need actual version), thus I did:

git clone git://git.savannah.gnu.org/mailutils.git mailutils

I got mailutils sources, it's have ~ 32 MB size, but there aren't some
needed files (./configure, .po files, maybe other). Thus I (IMO) must
run ./bootstrap

bootstrap script performs tons of downloads, some of them:
Cloning into 'doc/imprimatur'
Cloning into 'gint'
Cloning into 'gnulib' <= why? When I gave '--gnulib-srcdir'
wget 'm4/radius.m4'

Resulted mailutils-3.2.91-git263e2e9f directory has size 154 MB, and even
when I tar it excluding git stuff:

tar cf mailutils-3.2.91-git.tar --exclude-vcs mailutils-3.2.91-git263e2e9f

it has ~ 65 MB size; with xz compression it has 6.2 MB size - still much
more than 2.7 MB size.


I have already installed "gnulib-devel" package, which has dir structure
as:
/usr/bin/{check-module,gnulib-tool}
/usr/share/doc/gnulib-0/
/usr/share/gnulib/
/usr/share/gnulib/build-aux/
/usr/share/gnulib/config/
/usr/share/gnulib/lib/
/usr/share/gnulib/m4/
/usr/share/gnulib/modules/
/usr/share/gnulib/tests/
/usr/share/man/man1/{check-module.1.gz,gnulib-tool.1.gz}

thus I tried to reduce package size by referring to gnulib with
'--gnulib-srcdir' bootstrap option. It seems as bootstrap want gnulib-tool
to be in directory pointed by --gnulib-srcdir option (/usr/bin/ in my
case). Thus I run:

./bootstrap --gnulib-srcdir=/usr/bin --no-git --no-bootstrap-sync
or
./bootstrap --gnulib-srcdir=/usr/bin --no-bootstrap-sync

Despite it, bootstrap script still do lot of downloads, including gnulib,
and at end it fail. Outputs from both these bootstraps runs are attached.

How should I do that minimal tarbal, with ./configure for my system
autoconf, with .po files, radius.m4 and all needed files for mailutils
build - and withou other balast?

Thanks, Franta
--
I hope the Fedora will have a better init and no binary logs
Sergey Poznyakoff
2017-06-10 16:08:54 UTC
Permalink
Post by Franta Hanzlík
Please, what is best way for preparing mailutils package for subsequent
build on destination machine,
make distcheck

Regards,
Sergey
Franta Hanzlík
2017-07-06 15:39:31 UTC
Permalink
On Sat, 10 Jun 2017 19:08:54 +0300
Post by Sergey Poznyakoff
Post by Franta Hanzlík
Please, what is best way for preparing mailutils package for subsequent
build on destination machine,
make distcheck
All the necessary steps seem to me quite complicated (and this maybe also
reason, why mailutils are not in my Fedora distro).
It seems as:
- to perform "make distcheck", I must have Makefile.
- to have Makefile, I must run ./configure
- to have ./configure, I must run ./bootstrap
- for ./bootstrap I must have installed git, wget and maybe other toools,
bootstrap downloads tons of other files, it seems it ignore '--no-git'
option.

I've already build some packages before, where there also was no configure,
but it was very simple build it, usually it was enough to run autogen,
autoconf, autoreconf or so. I'm not programmer and I do not know the details
of this project, but build it seems be too hard for normal Linux user.
(but maybe it applies only to build from git, I hope build from official
releases (where is ./configure present) is easy also)

What I want, is prepare (and build for verification of feasibility) package
on my Fedora 19/i386 PC, and then compile it on my mailserver (which is
Fedora 25/x86_64). Yet it seems to me to be a very distant goal ;)

Regards, Franta
--
I hope the Fedora will have a better init and no binary logs

Loading...