Pisi Linux Geliştirici Klavuzu
  • Giriş
  • Paket Yapımı
    • Örnek pspec.xml
    • Örnek actions.py dosyaları
    • Örnek translations.xml
    • Örnek package.py
    • Örnek service.py
  • ActionsAPI
  • GitHub Kullanımı
  • Gönüllü Kullanımı
  • Docker Kullanımı
  • Yerel Dizindeki Paketleri Toplu Derlemek
  • Sistemde Kurulu Paketlerin Listesini Alma
  • Yama Hazırlama
  • Docker Imajı Hazırlama
  • Docker İmajı İçe/Dışa Aktarma
  • Yeni ToolChain Oluşturma
  • Swap Alanı Oluşturma
  • elogind entegrasyonu
  • Geliştiriciler İçin Notlar
Powered by GitBook
On this page
  • Autotools¶
  • configure¶
  • rawConfigure¶
  • compile¶
  • make¶
  • install¶
  • rawInstall¶
  • aclocal¶
  • autoconf¶
  • autoreconf¶
  • automake¶
  • autoheader¶
  • Cmaketools¶
  • configure¶
  • make¶
  • install¶
  • rawInstall¶
  • Get¶
  • Global Functions¶
  • PISI Related Functions¶
  • Pardus Release Related Functions¶
  • PSPEC Related Functions¶
  • Build Related Functions¶
  • Directory Related Functions¶
  • Binutils Related Functions¶
  • KDE¶
  • configure¶
  • make¶
  • install¶
  • Kerneltools¶
  • Configuration Part¶
  • Building and Installing Part¶
  • Libtools¶
  • preplib¶
  • gnuconfig_update¶
  • libtoolize¶
  • gen_usr_ldscript¶

Was this helpful?

ActionsAPI

PreviousÖrnek service.pyNextGitHub Kullanımı

Last updated 5 years ago

Was this helpful?

Autotools

Author:

Semen Cirit

Date:

October 26, 2011

Version:

0.1

configure

configure(parameters)

Configures the package according to the parameters given by the user and PISI’s default parameters.

The default parameters: (You can see the these defaults from and )

--prefix
--build
--mandir
--infodir
--datadir
--sysconfdir
--localstatedir
--libexecdir

Examples:

autotools.configure()
autotools.configure("--with-libusb")
rawConfigure(parameters)

Configures the package according to the parameters given by the user.

Examples:

autotools.rawConfigure()
autotools.rawConfigure("--prefix=/usr --libdir=/usr/lib --with-doxywizard")
autotools.rawConfigure("--enable-nls --enable-freetype --disable-xmltest)
compile(parameters)

Compile the package with default GCC binutils, C flags and the parameters given by the user.

Example:

autotools.compile("-I/usr/include/dvdread -o dvdbackup src/dvdbackup.c -ldvdread")
make(parameters)

Builds the package according to the parameters given by the user.

Examples:

autotools
.
make
()
autotools
.
make
(
"local-all"
)
autotools
.
make
(
"LIBS=
%s
"
%
get
.
LDFLAGS
())
autotools
.
make
(
"-j1"
)
install
(
parameters
)

Install the package according to the parameters given by the user and PISI’s default parameters.

Examples:

autotools
.
install
()
autotools
.
install
(
"libdir=
%s
/usr/lib"
%
get
.
installDIR
())
rawInstall
(
parameters
)

Install the package according to the parameters given by the user.

Exmples:

autotools
.
rawInstall
(
"DESTDIR=
%s
"
%
get
.
installDIR
())
autotools
.
rawInstall
(
"DESTDIR=
\"
%s
\"
 docdir=/usr/share/doc/
%s
/html"
%
(
get
.
installDIR
(),
get
.
srcTAG
()))
aclocal
(
parameters
)

Creates an aclocal.m4 file according to the configure.in file.

Examples:

autotools
.
aclocal
(
"-I cmulocal -I config"
)
autotools
.
aclocal
(
"-I m4"
)
autotools
.
aclocal
()
autoconf
(
parameters
)

Creates the configure script, with given parameters.

Example:

autotools
.
autoconf
()
autoreconf
(
parameters
)

Recreates the configure script with given parameters.

Example:

autotools
.
autoreconf
()
automake
(
parameters
)

Creates the makefile with given parameters.

Examples:

autotools
.
automake
(
"-afc"
)
autotools
.
automake
(
"--add-missing"
)
autotools
.
automake
()
autoheader
(
parameters
)

Creates the header file for the configure script.

Examples:

autotools
.
autoheader
()

Author:

Semen Cirit

Date:

October 26, 2011

Version:

0.1

configure
(
parameters
,
sourceDir
,
installPrefix
=
'
%s
'
%
get
.
defaultprefixDIR
())

Configures the source with the given cmake parameters.

Examples:

cmaketools
.
configure
()
cmaketools
.
configure
(
installPrefix
=
"
%s
"
%
(
get
.
kdeDIR
()))
cmaketools
.
configure
(
"-DCMAKE_BUILD_TYPE=None -DKDEDIR=
%s
"
%
get
.
kdeDIR
(),
sourceDir
=
".."
)
make
(
parameters
)

Builds the source with the given parameters.

Example:

cmaketools
.
make
()
cmaketools
.
make
(
"LIBS=
%s
"
%
get
.
LDFLAGS
())
cmaketools
.
make
(
"-j1"
)
install
(
parameters
,
argument
=
'install'
)

Installs the source with the parameters given by the user and PISI’s default parameters.

Example:

cmaketools
.
install
()
cmaketools
.
install
(
"libdir=
%s
/usr/lib"
%
get
.
installDIR
())
rawInstall
(
parameters
,
argument
=
'install'
)

Installs the source with the parameters given by the user.

Example:

cmaketools
.
rawInstall
(
"PREFIX=
%s
"
%
get
.
installDIR
())

Author:

Semen Cirit

Date:

October 26, 2011

Version:

0.1

get
.
curDIR
()

Returns current work directory’s path.

get
.
curKERNEL
()

Returns currently running kernel’s version.

get
.
curPYTHON
()

Returns currently used python’s version.

get
.
curPERL
()

Returns currently used perl’s version.

get
.
ENV
(
environ
)

Returns any given environ variable.

Example:

get
.
ENV
(
"MAKE_DOC"
)
get
.
ENV
(
"LD_LIBRARY_PATH"
)
get
.
pkgDIR
()

Returns the path of binary packages. Default is”/var/cache/pisi/packages”.

get
.
workDIR
()

Returns the path of package work directory. For example it can return a path like “/var/pisi/texlive-core-0.0_20091107-4/work”.

get
.
installDIR
()

Returns the package install directory. For example it can return a path like “/var/pisi/texlive-core-0.0_20091107-4/install”

get
.
lsbINFO
()

Returns a dictionary filled through /etc/lsb-release.

get
.
srcNAME
()

Returns the name of source package. (i.e. flashplugin)

get
.
srcVERSION
()

Returns the version of source package. (i.e. 5.2_p1, 10.1.82.76)

get
.
srcRELEASE
()

Returns the release number of source package. (i.e. 28)

get
.
srcTAG
()

Returns the name, version and release number of source package. (i.e. 5.2_p1-28)

get
.
srcDIR
()

Returns the directory name of the package source under “/var/pisi/”. (i.e. teeworlds-0.5.2)

get
.
ARCH
()
get
.
HOST
()
get
.
CFLAGS
()
get
.
CXXFLAGS
()
get
.
LDFLAGS
()
get
.
makeJOBS
()
get
.
buildTYPE
()

Return the current build type included in pspec.xml with <BuildType> tag.

get
.
docDIR
()
get
.
sbinDIR
()
get
.
infoDIR
()
get
.
manDIR
()
get
.
dataDIR
()
get
.
confDIR
()
get
.
localstateDIR
()
get
.
libexecDIR
()
get
.
defaultprefixDIR
()
get
.
kdeDIR
()
get
.
qtDIR
()
get
.
AR
()

Return GNU ar binutil executable variable of the system where the package being compiled. (i.e. ar)

get
.
AS
()

Return GNU assembler binutil executable variable of the system where the package being compiled. (i.e. as)

get
.
CC
()

Return gcc binutil executable variable of the system where the package being compiled. (i.e. i686-pc-linux-gnu-gcc)

get
.
CXX
()

Return gcc C++ binutil executable variable of the system where the package being compiled. (i.e. i686-pc-linux-gnu-g++)

get
.
LD
()

Return GNU linker binutil executable variable of the system where the package being compiled. (i.e. ld)

get
.
NM
()

Return GNU nm binutil executable variable of the system where the package being compiled. (i.e. nm)

get
.
RANLIB
()

Return ranlib binutil executable variable of the system where the package being compiled. (i.e. ranlib)

get
.
F77
()

Return GNU fortran compiler binutil executable variable of the system where the package being compiled. (i.e. g77)

get
.
GCJ
()

Return GNU java compiler binutil executable variable of the system where the package being compiled. (i.e. gcj)

Author:

Semen Cirit

Date:

October 26, 2011

Version:

0.1

configure
(
parameters
)

Configures the kde packages according to the parameters given by the user and PISI’s

default parameters.

--prefix
--build
--with-x
--enable-mitshm
--with-xinerama
--with-qt-dir
--enable-mt
--with-qt-libraries
--disable-dependency-tracking
--disable-debug

Example:

kde.configure("--without-included-sqlite")
kde.configure("--with-libsamplerate")
kde.configure()
make(parameters)

Builds the kde packages according to the parameters given by the user.

Example::

kde.make("-f admin/Makefile.common")
kde.make()
install(parameters='install')

Install the package according to the parameters given by the user and PISI’s default parameters.

Example:

kde.install()

Author:

Semen Cirit

Date:

October 26, 2011

Version:

0.1

getKernelVersion(flavour=None)

Returns the kernel version information to use with external module compilation This is something like 2.6.30_rc7-119 which will be appended to /lib/modules. If flavour==None, it will return the kernel version in the /etc/kernel/kernel file, else /etc/kernel/<flavour>. If it fails, it will return the running kernel version.

configure()

It first cleans the system form .orig files, then starts kernel configuration.

updateKConfig()

Call this to set newly added symbols to their defaults after sedding some Kernel Configuration parameters.

dumpVersion()

Writes the specific kernel version into /etc/kernel.

build(debugSymbols=False)

Builds the kernel with given debug symbols, the default debugSymbols is False.

install(installFirmwares=True)

It first controls whether loadable module support is available, then it installs the kernel image.

If installFirmwares==False it removes firmwares.

installHeaders(extra=[])

Installs the additional kernel headers needed to build out-of-tree kernel modules.

Example:

kerneltools.installHeaders(extra=["drivers/media/dvb/dvb-core"
,"drivers/media/dvb/frontends","drivers/media/video"])
installLibcHeaders(excludes=[]):

Installs the Linux-Libc-Headers exculuding the givens.

Example:

kerneltools.installLibcHeaders(excludes=["scsi"])
installSource()

Installs the kernel source files.

cleanModuleFiles()

Cleans module.* files generated by depmod.

mkinitramfs()

Create and install the initramfs image into the package.

Author:

Semen Cirit

Date:

October 26, 2011

Version:

0.1

prelib
(
sourceDirectory
)

Executes ldconfig command in the sourceDirectory.

Example:

libtools
.
preplib
()
gnuconfig_update
()

Copies the newest config.sub and config.guess files to the source.

Example:

libtools
.
gnuconfig_update
()
libtoolize
(
parameters
)

Makes it possible to execute libtoolize with given parameters on the source.

Examples:

libtools
.
libtoolize
()
libtools
.
libtoolize
(
"--force --copy"
)
libtools
.
libtoolize
(
"--force --install"
)
gen_usr_ldscript
(
dynamicLib
)

Since Pardus has critical dynamic libraries in /lib, and the static versions in /usr/lib, we need to have a dynamic lib in /usr/lib, otherwise we run into linking problems.

Examples:

libtools
.
gen_usr_ldscript
(
"libhandle.so"
)
libtools
.
gen_usr_ldscript
(
"libhandle.so"
)
libtools
.
gen_usr_ldscript
(
"libdevmapper.so"
)

rawConfigure

compile

make

install

rawInstall

aclocal

autoconf

autoreconf

automake

autoheader

Cmaketools

configure

make

install

rawInstall

Get

Global Functions

curDIR

curKERNEL

curPYTHON

curPERL

ENV

PISI Related Functions

pkgDIR

workDIR

installDIR

Pardus Release Related Functions

lsbINFO

PSPEC Related Functions

srcNAME

srcVERSION

srcRELEASE

srcTAG

srcDIR

Build Related Functions

ARCH

Returns the default arch value written at “” in class GeneralDefaults. (i.e i686)

HOST

Returns the default host value written at “” in class BuildDefaults. (i.e i686-pc-linux-gnu)

CFLAGS

Return the default cflags used for Pardus. You can see them from “” in class BuildDefaults.

CXXFLAGS

Return the default cxxflags used for Pardus. You can see them from “” in class BuildDefaults.

LDFLAGS

Return the default ldflags used for pardus. You can see them from “” in class BuildDefaults.

makeJOBS

Return the default jobs value used for pardus. You can see it from “” in class BuildDefaults.

buildTYPE

Directory Related Functions

docDIR

Returns the default doc files directory used for Pardus. You can see it from “” in class Dirs.

sbinDIR

Returns the default sbin directory used for Pardus. You can see it from “” in class Dirs.

infoDIR

Returns the default info files directory used for Pardus. You can see it from “” in class Dirs.

manDIR

Returns the default man files directory used for Pardus. You can see it from “” in class Dirs.

dataDIR

Returns the default data files directory used for Pardus. You can see it from “” in class Dirs.

confDIR

Returns the default configure files directory used for Pardus. You can see it from “” in class Dirs.

localstateDIR

Returns the default locale files directory used for Pardus. You can see it from “” in class Dirs.

libexecDIR

Returns the default library executable directory used for Pardus. You can see it from “” in

defaultprefixDIR

Returns the default prefix directory used for Pardus. You can see it from “” in class Dirs.

kdeDIR

Returns the default kde directory used for Pardus. You can see it from “” in class DirectoriesDefaults.

qtDIR

Returns the default qt directory used for Pardus. You can see it from “” in class DirectoriesDefaults.

Binutils Related Functions

AR

AS

CC

CXX

LD

NM

RANLIB

F77

GCJ

KDE

configure

The default parameters: (You can see the these defaults from and )

make

install

Kerneltools

Configuration Part

getKernelVersion

Configure

updateKConfig()

Building and Installing Part

dumpVersion

build

install

installHeaders

installLibcHeaders

installSource

cleanModuleFiles

mkinitramfs

Libtools

preplib

gnuconfig_update

libtoolize

gen_usr_ldscript

¶
¶
http://svn.pardus.org.tr/uludag/trunk/pisi/pisi/configfile.py
http://svn.pardus.org.tr/uludag/trunk/pisi/pisi/actionsapi/variables.py
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶
http://svn.pardus.org.tr/uludag/trunk/pisi/pisi/configfile.py
¶
http://svn.pardus.org.tr/uludag/trunk/pisi/pisi/configfile.py
¶
http://svn.pardus.org.tr/uludag/trunk/pisi/pisi/configfile.py
¶
http://svn.pardus.org.tr/uludag/trunk/pisi/pisi/configfile.py
¶
http://svn.pardus.org.tr/uludag/trunk/pisi/pisi/configfile.py
¶
http://svn.pardus.org.tr/uludag/trunk/pisi/pisi/configfile.py
¶
¶
¶
http://svn.pardus.org.tr/uludag/trunk/pisi/pisi/actionsapi/variables.py
¶
http://svn.pardus.org.tr/uludag/trunk/pisi/pisi/actionsapi/variables.py
¶
http://svn.pardus.org.tr/uludag/trunk/pisi/pisi/actionsapi/variables.py
¶
http://svn.pardus.org.tr/uludag/trunk/pisi/pisi/actionsapi/variables.py
¶
http://svn.pardus.org.tr/uludag/trunk/pisi/pisi/actionsapi/variables.py
¶
http://svn.pardus.org.tr/uludag/trunk/pisi/pisi/actionsapi/variables.py
¶
http://svn.pardus.org.tr/uludag/trunk/pisi/pisi/actionsapi/variables.py
¶
http://svn.pardus.org.tr/uludag/trunk/pisi/pisi/actionsapi/variables.py
¶
http://svn.pardus.org.tr/uludag/trunk/pisi/pisi/actionsapi/variables.py
¶
http://svn.pardus.org.tr/uludag/trunk/pisi/pisi/configfile.py
¶
http://svn.pardus.org.tr/uludag/trunk/pisi/pisi/configfile.py
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶
http://svn.pardus.org.tr/uludag/trunk/pisi/pisi/configfile.py
http://svn.pardus.org.tr/uludag/trunk/pisi/pisi/actionsapi/variables.py
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶