You are not logged in.

#1 2008-06-07 04:10:31

rdt
Member
Registered: 2007-04-26
Posts: 24

building pacman source tar file

If one has a pacman.git repository (from http://projects.archlinux.org/ ), how does one make the pacman-${pkgver}.tar.gz that reproduces the one available from ftp://ftp.archlinux.org/other/pacman/$p … ver.tar.gz ??

Is there a script in the pacman.git that I'm not seeing?

Last edited by rdt (2008-06-07 04:11:18)

Offline

#2 2008-06-07 04:31:58

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,398
Website

Re: building pacman source tar file

I have never done this but it is probably something like

./autoconf.sh
./configure
make dist

once you have check out the right branch.

Offline

#3 2008-06-07 17:33:58

toofishes
Developer
From: Chicago, IL
Registered: 2006-06-06
Posts: 602
Website

Re: building pacman source tar file

Allan wrote:

I have never done this but it is probably something like

./autoconf.sh
./configure
make dist

once you have check out the right branch.

Yep, thats about right. I also make sure I build first with asciidoc enabled so the most recent manpages end up in the tarball, as well as updating any version info necessary in configure.ac.

Offline

#4 2008-06-08 16:34:31

rdt
Member
Registered: 2007-04-26
Posts: 24

Re: building pacman source tar file

These are both good advice, they just don't work in a pacman git repository.  sad

There is an autogen.sh script in the directory that contains (in part):

aclocal
autoheader
automake --foreign
autoconf

After running this, './configure --help | grep doc' shows (in part):
  --disable-doc           prevent make from looking at doc/ dir
  --enable-doxygen        build your own API docs via Doxygen
  --enable-asciidoc       build your own manpages with Asciidoc

So, I tried (all in a clean copy) :
  ./autogen.sh
  ./configure --enable-ascidoc
  make dist

AND
  ./autogen.sh
  ./configure --enable-doxygen
  make dist

AND
  ./autogen.sh
  ./configure --disable-doc
  make dist

and they ALL give the same error message:
make[1]: Entering directory `/....../pacman/try/doc'
make[1]: *** No rule to make target `pacman.8', needed by `distdir'.  Stop.

Last edited by rdt (2008-06-08 16:38:50)

Offline

#5 2008-06-08 17:52:36

rdt
Member
Registered: 2007-04-26
Posts: 24

Re: building pacman source tar file

Well, the reason that the asciidoc failed is because asciidoc (from community) was not installed. So, I installed it, still failed but because xsltproc was not present.  Turns out asciidoc depends upon python (which was installed), but  'python-xlml' was needed, but not specified as a dependancy.  So after installing python-xlml, I still get an error about:
  "I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"

So probably some other dep. still not present.  sad

The --disable-doc doesn't work because it doesn't disable going into the doc dir for the dist & distdir targets as doc is coded on the end of the DIST_SUBDIRS unlike the usage of am__append_1 on SUBDIRS   Of course the docs are needed for the tar file thats why.

Last edited by rdt (2008-06-08 17:58:04)

Offline

#6 2008-06-08 23:52:06

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,398
Website

Re: building pacman source tar file

I'm sure python-xlml is not needed.  I don't have it installed and can do this.

Offline

Board footer

Powered by FluxBB