Changes between Version 22 and Version 23 of AndreesStuff


Ignore:
Timestamp:
Feb 23, 2007, 11:22:23 AM (17 years ago)
Author:
andree
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AndreesStuff

    v22 v23  
    11Mixed bag of things I'm just jotting down for now... I'd prefer if people could refrain from updating this page - get your own mixed bag! ;-)
    22
    3 == Restore Problems ==
     3= Building Packages for Debian (and Derivatives) =
     4
     5== Prepare ==
     6
     7To be able to build Debian packages, install the following packages to start with:
     8- '''build-essential'''
     9- '''fakeroot'''
     10
     11== Download ==
     12
     13Firstly, download the package sources from:
     14
     15[http://packages.debian.org/]
     16
     17or my download site for the bleeding edge (in Debian packages):
     18
     19[http://people.debian.org/~andree/packages/]
     20
     21You need to download the following three files for every package you want to build:
     22- '''<package>_<upstream version>.orig.tar.gz'''
     23- '''<package>_<upstream version>-<package version>.diff.gz'''
     24- '''<package>_<upstream version>-<package version>.dsc'''
     25
     26== Unpack ==
     27
     28To create the build directory with the package source run:
     29{{{
     30dpkg-source -x <package>_<upstream version>-<package version>.dsc
     31}}}
     32
     33== Build ==
     34
     35Change into the newly create directory named '''<package>-<upstream version>''' and run:
     36{{{
     37dpkg-buildpackage -rfakeroot -us -uc > /tmp/build-<package>.log
     38}}}
     39
     40'''Note:''' The above command may fail because build dependencies are not fulfilled. If the build fails, read the error message carefully and install any missing packages.
     41
     42'''Note:''' Appart from missing build-dependencies, there may be other issues building the packages on Debian derivatives or older versions of Debian. Often, toning down the dependencies defined in '''debian/control''' inside the build directory can help here. However, this is a bit more advanced.
     43
     44== Install ==
     45
     46In the parent of the build directory run:
     47{{{
     48dpkg -i  mindi_<package>-<upstream version>_<arch>.deb
     49}}}
     50
     51'''Note:''' The above command may fail because binary dependencies are not fulfilled. If the install fails, read the error message carefully and install any missing packages.
     52
     53== Further Reading ==
     54
     55For more, information about the fascinating world of Debian packaging, please have a look here:
     56
     57[http://www.debian.org/doc/maint-guide/]
     58
     59and for a more comprehensive overview here:
     60
     61[http://www.debian.org/doc/developers-reference/]
     62
     63For all information about Debian development including but not limited to package manangement, please see here:
     64
     65[http://www.debian.org/devel/]
     66
     67= Restore Problems =
    468
    569{{{
     
    1175busybox 1.1.3 (and possbily other version) may be broken on amd64 in that they seem to require the existence of /etc/mtab regardless of whether the corresponding configuration option is set or not. This is not an issue on i386.
    1276
    13 === mondorestore killed ===
     77== mondorestore killed ==
    1478
    1579If mondorestore gets killed during restore for no apparent reason, this may be a memory problem. If there is still swap space available, the underlying issue maybe the kernel OOM killer.
     
    1781On Debian Sid amd64, kernel linux-image-2.6.16-2-amd64-k8, version 2.6.16-14 has this problem, whereas kernel linux-image-2.6.16-2-amd64-generic, version 2.6.16-14 is fine.
    1882
    19 == Compilation Problems ==
    20 
    21 === Compiler Warnings ===
     83= Compilation Problems =
     84
     85== Compiler Warnings ==
    2286
    2387gcc 4.1.2 appears to be stricter than earlier versions when '-Wall' is used. The following is fine in earlier versions of gcc:
     
    40104(No '*' at the front!)
    41105
    42 === busybox Error './sh: Cannot set tty process group (Operation not permitted)' ===
     106== busybox Error './sh: Cannot set tty process group (Operation not permitted)' ==
    43107
    44108On Debian sid amd64, busybox versions 1.00, 1.1.3 and possibly others may give the following error when called as sh:
     
    52116This problem does not occur on i386.
    53117
    54 == Build from SVN on Debian (and maybe others) ==
     118= Build from SVN on Debian (and maybe others) =
    55119
    56120Trying to build packages from SVN may currently have some issues. The following tries to address the ones I experience on Debian. They may be applicable to other environments as well.
     
    158222Install Debian package 'docbook'.
    159223
    160 === Tip ===
     224== Tip ==
    161225Run the following to just get mindi and mondo source tarballs:
    162226{{{