Reply
Thread Tools
Posts: 48 | Thanked: 32 times | Joined on Nov 2009 @ CT
#1
Hi,

I'm following the packaging tutorial listed on the development wiki http://wiki.maemo.org/Packaging. I am at the point where I am calling autoreconf in a directory where I have the hello.c, configure.ac, and Makefile.am files.
The (autoreconf --force --install) command does not give me any errors, but does not generate anything in that folder.

do I need to call autoconf first? Do I need a different directory structure? Could something be wrong with my scratchbox installation? (I installed scratchbox on my Arch system which seemed to install without any issues)

Thank you
Ken
 

The Following User Says Thank You to verhagke For This Useful Post:
Halftux's Avatar
Posts: 868 | Thanked: 2,516 times | Joined on Feb 2012 @ Germany
#2
Scratchbox has by its own some buildtools. So install the right automake version from extras and redirect to installed version.
See the code below.

Code:
fakeroot apt-get install automake
export SBOX_REDIRECT_IGNORE=/usr/bin/automake:/usr/bin/autoreconf:/usr/bin/aclocal:/usr/bin/autoconf
export AUTOMAKE=/usr/bin/automake
export ACLOCAL=/usr/bin/aclocal
export AUTOCONF=/usr/bin/autoconf
export AUTORECONF=/usr/bin/autoreconf
 

The Following 3 Users Say Thank You to Halftux For This Useful Post:
Posts: 48 | Thanked: 32 times | Joined on Nov 2009 @ CT
#3
Thank you, have been trying to get that to work.

when I ran the apt-get command I got:
Code:
[sbox-FREMANTLE_X86: ~/projects/hello] > fakeroot apt-get install automake
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting automake1.4 instead of automake
The following extra packages will be installed:
  autoconf automake1.4 autotools-dev m4
Suggested packages:
  autoconf2.13 autobook autoconf-archive gnu-standards autoconf-doc
Recommended packages:
  automaken
The following NEW packages will be installed:
  autoconf automake1.4 autotools-dev m4
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 957kB of archives.
After this operation, 3355kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
WARNING: The following packages cannot be authenticated!
  m4 autoconf autotools-dev automake1.4
Install these packages without verification [y/N]? y
Get:1 http://repository.maemo.org fremantle/sdk/free m4 1.4.8-2 [178kB]
Get:2 http://repository.maemo.org fremantle/sdk/free autoconf 2.61-4maemo1+0m5 [451kB]
Get:3 http://repository.maemo.org fremantle/sdk/free autotools-dev 20050422.1 [56.7kB]
Get:4 http://repository.maemo.org fremantle/sdk/free automake1.4 1:1.4-p6-9 [272kB]
Fetched 957kB in 2s (375kB/s)     
Selecting previously deselected package m4.
(Reading database ... 28440 files and directories currently installed.)
Unpacking m4 (from .../archives/m4_1.4.8-2_i386.deb) ...
Selecting previously deselected package autoconf.
Unpacking autoconf (from .../autoconf_2.61-4maemo1+0m5_all.deb) ...
Selecting previously deselected package autotools-dev.
Unpacking autotools-dev (from .../autotools-dev_20050422.1_all.deb) ...
Selecting previously deselected package automake1.4.
Unpacking automake1.4 (from .../automake1.4_1%3a1.4-p6-9_all.deb) ...
Setting up m4 (1.4.8-2) ...
install-info: warning: maintainer scripts should not call install-info anymore,
install-info: warning: this is handled now by a dpkg trigger provided by the
install-info: warning: install-info package; package m4 should be updated.
Setting up autoconf (2.61-4maemo1+0m5) ...
install-info: warning: maintainer scripts should not call install-info anymore,
install-info: warning: this is handled now by a dpkg trigger provided by the
install-info: warning: install-info package; package autoconf should be updated.
install-info: warning: maintainer scripts should not call install-info anymore,
install-info: warning: this is handled now by a dpkg trigger provided by the
install-info: warning: install-info package; package autoconf should be updated.
install-info: warning: maintainer scripts should not call install-info anymore,
install-info: warning: this is handled now by a dpkg trigger provided by the
install-info: warning: install-info package; package autoconf should be updated.
Setting up autotools-dev (20050422.1) ...
Setting up automake1.4 (1:1.4-p6-9) ...
update-alternatives: using /usr/bin/automake-1.4 to provide /usr/bin/automake (automake) in auto mode.
install-info: warning: maintainer scripts should not call install-info anymore,
install-info: warning: this is handled now by a dpkg trigger provided by the
install-info: warning: install-info package; package automake1.4 should be updated.
when I then run /usr/bin/autoreconf, it still does not generate anything and completes with no errors. I tried reinstalling everything again and still got the same result. Any thoughts?
 

The Following User Says Thank You to verhagke For This Useful Post:
Halftux's Avatar
Posts: 868 | Thanked: 2,516 times | Joined on Feb 2012 @ Germany
#4
Originally Posted by verhagke View Post
when I then run /usr/bin/autoreconf, it still does not generate anything and completes with no errors. I tried reinstalling everything again and still got the same result. Any thoughts?
That you will get no errors is strange. But try once more because you did not activate the extras repository. The example which I downloaded from archive.org was created with automake 1.10 and the sdk has 1.8.5. I deleted "rm *.in" files and could create new ones with automake 1.10.1.

Using this example here (helloworld_cc-0.5.tar.gz):

https://web.archive.org/web/20121029...omake/automake


Login into scratchbox and:

Code:
echo "deb http://repository.maemo.org/extras/ fremantle free non-free" >> /etc/apt/sources.list
apt-get update
fakeroot apt-get install automake
export SBOX_REDIRECT_IGNORE=/usr/bin/automake:/usr/bin/autoreconf:/usr/bin/aclocal:/usr/bin/autoconf
export AUTOMAKE=/usr/bin/automake
export ACLOCAL=/usr/bin/aclocal
export AUTOCONF=/usr/bin/autoconf
export AUTORECONF=/usr/bin/autoreconf
cd helloworld_cc-0.5
rm *.in
autoreconf --force --install
Here some information how to use automake1.11
https://talk.maemo.org/showthread.php?t=86181
 

The Following User Says Thank You to Halftux For This Useful Post:
Reply

Tags
autoreconf, scratchbox

Thread Tools

 
Forum Jump


All times are GMT. The time now is 17:57.