git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Question Building Deb Packages

From
Jon Loeliger <jdl@freescale.com>
Date
Nov 22, 2005, 02:53 UTC
Message-ID
<E1EeOHi-0007Bx-HH@jdl.com>
Guys,

So, a long and twisty path (all alike) later, I have a new desktop box with Ubuntu on it. So what.

It didn't have git on it at all, the proper git package wasn't available directly, and I didn't know the location of an apt source for one off the top of my head. So, first principles.

First, for the record, after you install ubuntu 5.10, you have to install a whole bunch of normal stuff, like, a compiler. When you get done with that, I also had to apt-get install some form of these:

    linux-kernel-headers
    libc6-dev
    libssl-dev
    libcurl3-dev
    libexpat-dev
    openssl
    zlib1g-dev
    asciidoc
    xmlto
    fakeroot
The control file lists these:
    Build-Depends-Indep: libz-dev, libssl-dev,
                    libcurl3-dev|libcurl3-gnutls-dev|libcurl3-openssl-dev,
		    asciidoc (>= 7), xmlto, debhelper (>= 4.0.0),
		    bc, libexpat-dev

So, that is in pretty-good agreement. The last 3 in my list were for "doc" and "deb" make targets, of course.

Second, I then decided to actually make the debian package and attempt to install it from the 99.9j tarball directly and then add that package to my system. No dice.

It _appears_ that the "deb" make target requires it to be done in an actual git repository. This struck me as odd, as I _think_ I have done an obvious progression:

    - I don't have git, but want it
    - I want to build it from a source drop, 0.99.9j
    - Grab tarball, unpack, build it
    - Build debian target
    - Install just-built deb package

Later, of course, I can use that 'official' installation to actually grab new (git) repositories and all. But I have to bootstrap the mess, and I want to do that in a "controlled" way. Namely, through the debian package target...

Did I get confused?

Thanks, jdl

    jdl@ubuntu:/usr/src/git-0.99.9j$ make prefix=/usr
    make -C templates
    make[1]: Entering directory `/usr/src/git-0.99.9j/templates'
    : no custom templates yet
    make[1]: Leaving directory `/usr/src/git-0.99.9j/templates'
    jdl@ubuntu:/usr/src/git-0.99.9j$ make prefix=/usr deb
    ./git-tar-tree HEAD git-0.99.9j > git-0.99.9j.tar
    usage: git-tar-tree <key> [basedir]
    make: *** [dist] Error 129
    jdl@ubuntu:/usr/src/git-0.99.9j$ ls .git*
    .gitignore
Next: Junio C Hamano
Message 1 of 2 in “Question Building Deb Packages”
  1. Jon LoeligerNov 22, 2005
  2. Junio C HamanoNov 22, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.