Struggling with an autotools problem

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Struggling with an autotools problem

Paul Schmehl-2
I'm working on an update to the barnyard2 port.  The developer has moved to
github, and everything is changed from the way it was previously compiled.
There's no install.sh script, there's no configure.ac, and I've had to fix
a number of errors where he uses deprecated macros.  I've sorted everything
out except a handful, and now I'm stuck.

Here's the output of make:

# make
===>  License GPLv2 accepted by the user
===>  Found saved configuration for barnyard2-1.10
===>  Extracting for barnyard2-1.10
=> SHA256 Checksum OK for barnyard2-1.10.tar.gz.
===>  Patching for barnyard2-1.10
===>  Applying FreeBSD patches for barnyard2-1.10
===>   barnyard2-1.10 depends on file: /usr/local/bin/automake-1.12 - found
===>   barnyard2-1.10 depends on file: /usr/local/bin/autoconf-2.69 - found
===>  Configuring for barnyard2-1.10
aclocal-1.12: warning: '--acdir' is deprecated
aclocal-1.12: warning: autoconf input should be named 'configure.ac', not
'configure.in'
configure.in:497: warning: macro 'AM_PATH_LIBPRELUDE' not found in library
automake-1.12: warning: autoconf input should be named 'configure.ac', not
'configure.in'
configure.in:8: error: required file './install-sh' not found
configure.in:8:   'automake --add-missing' can install 'install-sh'
configure.in:8: error: required file './missing' not found
configure.in:8:   'automake --add-missing' can install 'missing'
configure.in:7: error: required file 'config.h.in' not found
automake-1.12: warning: autoconf input should be named 'configure.ac', not
'configure.in'
*** Error code 1

How do I add the --add-missing option to automake?

My Makefile has this:

USE_AUTOTOOLS=  automake autoconf aclocal

I've searched and searched, and I've tried several different things, but I
can't seem to resolve this error.

--
Paul Schmehl, Senior Infosec Analyst
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
*******************************************
"It is as useless to argue with those who have
renounced the use of reason as to administer
medication to the dead." Thomas Jefferson
"There are some ideas so wrong that only a very
intelligent person could believe in them." George Orwell

_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: Struggling with an autotools problem

Ade Lovett
On 10/3/2012 13:12, Paul Schmehl wrote:
> How do I add the --add-missing option to automake?
>
> My Makefile has this:
>
> USE_AUTOTOOLS=  automake autoconf aclocal
>
> I've searched and searched, and I've tried several different things, but
> I can't seem to resolve this error.

Search harder ;)

Lines 34-35 of Mk/bsd.autotools.mk

AUTOMAKE_ARGS= --add-missing

Simple.

-aDe

_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: Struggling with an autotools problem

Jason E. Hale-3
In reply to this post by Paul Schmehl-2
On Wednesday, October 03, 2012 15:12:14 Paul Schmehl wrote:

> I'm working on an update to the barnyard2 port.  The developer has moved to
> github, and everything is changed from the way it was previously compiled.
> There's no install.sh script, there's no configure.ac, and I've had to fix
> a number of errors where he uses deprecated macros.  I've sorted everything
> out except a handful, and now I'm stuck.
>
> Here's the output of make:
>
> # make
> ===>  License GPLv2 accepted by the user
> ===>  Found saved configuration for barnyard2-1.10
> ===>  Extracting for barnyard2-1.10
> => SHA256 Checksum OK for barnyard2-1.10.tar.gz.
> ===>  Patching for barnyard2-1.10
> ===>  Applying FreeBSD patches for barnyard2-1.10
> ===>   barnyard2-1.10 depends on file: /usr/local/bin/automake-1.12 - found
> ===>   barnyard2-1.10 depends on file: /usr/local/bin/autoconf-2.69 - found
> ===>  Configuring for barnyard2-1.10
> aclocal-1.12: warning: '--acdir' is deprecated
> aclocal-1.12: warning: autoconf input should be named 'configure.ac', not
> 'configure.in'
> configure.in:497: warning: macro 'AM_PATH_LIBPRELUDE' not found in library
> automake-1.12: warning: autoconf input should be named 'configure.ac', not
> 'configure.in'
> configure.in:8: error: required file './install-sh' not found
> configure.in:8:   'automake --add-missing' can install 'install-sh'
> configure.in:8: error: required file './missing' not found
> configure.in:8:   'automake --add-missing' can install 'missing'
> configure.in:7: error: required file 'config.h.in' not found
> automake-1.12: warning: autoconf input should be named 'configure.ac', not
> 'configure.in'
> *** Error code 1
>
> How do I add the --add-missing option to automake?
>
> My Makefile has this:
>
> USE_AUTOTOOLS=  automake autoconf aclocal
>
> I've searched and searched, and I've tried several different things, but I
> can't seem to resolve this error.

Try adding this to your Makefile and remove MASTER_SITES:

USE_GITHUB=     yes
GH_ACCOUNT=     firnsy
GH_TAGNAME=     v2-${PORTVERSION}
GH_COMMIT=      2f5d496

USE_AUTOTOOLS=  libtoolize aclocal autoheader automake autoconf

LIBTOOLIZE_ARGS=--copy --force
AUTOMAKE_ARGS=  --add-missing --copy
ACLOCAL_ARGS=   -I m4 -I ${LOCALBASE}/share/aclocal

The macros seem fine, you shouldn't need additional patches to fix errors.
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[hidden email]"