Skip to Content.
Sympa Menu

texmacs-users - Re: [TeXmacs] texmacs and debian package

Subject: mailing-list for TeXmacs Users

List archive

Re: [TeXmacs] texmacs and debian package


Chronological Thread 
  • From: Karl Hegbloom <address@hidden>
  • To: marc lalaude-labayle <address@hidden>
  • Cc: texmacs-users <address@hidden>
  • Subject: Re: [TeXmacs] texmacs and debian package
  • Date: Mon, 21 Mar 2016 18:32:56 +0000

Oops on that patch. Don't apply it unless you also use "git svn". Sorry. You can apply it then "rm configure configure.in", and then svn co configure configure.in and it will work, I think.

On Mon, Mar 21, 2016 at 12:31 PM Karl Hegbloom <address@hidden> wrote:
Use svn to check out a copy of it:

mkdir ~/src
cd ~/src
svn co svn://svn.savannah.gnu.org/texmacs/trunk texmacs-svn-trunk

Apply the attached patch (optional) which I have not submitted to the project yet but is obviously freely available the same as TeXmacs so if anyone wants to use it or look it over and incorporate it that's fine.

cd ~/src/texmacs-svn-trunk
patch -p1 < /path/to/karlhegs-deb-packaging-patch.diff

Set up the build environment:

cd ~/src/
vi ./setup_build_env.sh

8<------------------------------------------------------------------------->8
export GUILE_CFLAGS="`pkg-config --static --cflags guile-1.8`"
export GUILE_LDFLAGS="`pkg-config --static --libs guile-1.8`"
export GUILE_DATA_PATH="`pkg-config --variable=datadir guile-1.8`"
export GUILE_VERSION="`pkg-config --modversion guile-1.8`"

#export CCACHE_PREFIX=/usr/bin/distcc
#export DISTCC_HOSTS="localhost/8 192.168.1.64/4"
#export DEB_BUILD_OPTIONS=parallel=12
export DEB_BUILD_OPTIONS=parallel=8
8<------------------------------------------------------------------------->8

... and adapt that to your environment. I used to use distcc and had a server running on the desktop machine this laptop was on the same network with. The laptop has an i7 hyperthreading quad-core processor, so I run the build with 8 threads. The desktop had 4 cores, so I added 4 more when using distcc. Those lines are commented off now since I'm on the road right now.

Load that environment with:
. ./setup_build_env.sh

Link the debian directory to here so you can use it:

ln -s packages/debian .

Check to be sure you have everything installed that it will require:

dpkg-checkbuilddeps

If it prints anything, use sudo apt-get install to install the missing dependencies. Don't forget to do "sudo -k" after you are done to lock it again. Build with "fakeroot", not with "sudo":

fakeroot debian/rules clean binary

If all goes well, you'll have a deb package in the ~/src/texmacs-svn-trunk directory. If you have pkg-create-dbgsym installed, you'll also have a matching dbgsym package. Use: sudo dpkg -i packagefilename.deb  to install it.

On Mon, Mar 21, 2016 at 12:02 PM marc lalaude-labayle <address@hidden> wrote:
Hi Karl,

could you remind me, please, all the different steps to build a debian package for texmacs ?

Thx,

ML



Archive powered by MHonArc 2.6.19.

Top of Page