Class PbuilderInterface

java.lang.Object
com.rm5248.debianpbuilder.PbuilderInterface
Direct Known Subclasses:
PbuilderHelper

public abstract class PbuilderInterface extends Object
An interface to allow us to easily switch between using pbuilder or cowbuilder. Notes on architectures: https://gcc.gnu.org/onlinedocs/gccint/Configure-Terms.html: "build is the machine you’re building on (no change there), host is the machine you’re building for" Pbuilder option "--architecture" is the same as "build architecture" Pbuilder option "--host-arch" is the machine we are building for
  • Field Details

    • m_hostArch

      protected String m_hostArch
    • m_distribution

      protected String m_distribution
    • m_launcher

      protected Launcher m_launcher
    • m_buildArch

      protected String m_buildArch
    • m_hookdir

      protected String m_hookdir
    • m_logger

      protected PrintStream m_logger
    • m_pbuilderrc

      protected FilePath m_pbuilderrc
    • m_workspace

      protected FilePath m_workspace
  • Constructor Details

    • PbuilderInterface

      public PbuilderInterface()
  • Method Details

    • getDebootstrap

      protected final String getDebootstrap()
    • setBuildArch

      protected final void setBuildArch() throws IOException, InterruptedException
      Throws:
      IOException
      InterruptedException
    • getArch

      protected final String getArch()
      Returns the system architecture if 'architecture' is set to 'all', otherwise get the architecture to build for.
      Returns:
    • getPID

      protected final int getPID() throws IOException
      We *could* resort to JNA here... but what's the fun in that? ;)
      Returns:
      Throws:
      IOException