create core package
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
def setup():
|
||||
#autotools.autoreconf("-vfi")
|
||||
autotools.configure()
|
||||
|
||||
def build():
|
||||
autotools.make('LDFLAGS="%s"' % get.LDFLAGS())
|
||||
|
||||
def check():
|
||||
autotools.make("check")
|
||||
|
||||
def install():
|
||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
|
||||
pisitools.dodoc("AUTHORS", "ChangeLog", "NEWS", "README")
|
||||
@@ -0,0 +1,81 @@
|
||||
From 291ec175812b7ba291d124e4cf2fbf9efec590c8 Mon Sep 17 00:00:00 2001
|
||||
From: Andreas Gruenbacher <agruen@linbit.com>
|
||||
Date: Thu, 4 Oct 2012 12:33:09 +0200
|
||||
Subject: [PATCH] Initialize data structures early enough
|
||||
|
||||
* src/patch.c (main): Initialize data structures early enough, before error
|
||||
paths can access them.
|
||||
* tests/bad-usage: Test bad command line usage.
|
||||
* tests/Makefile.am (TESTS): Add bad-usage here.
|
||||
---
|
||||
src/patch.c | 8 ++++----
|
||||
tests/Makefile.am | 1 +
|
||||
tests/bad-usage | 18 ++++++++++++++++++
|
||||
3 files changed, 23 insertions(+), 4 deletions(-)
|
||||
create mode 100644 tests/bad-usage
|
||||
|
||||
diff --git a/src/patch.c b/src/patch.c
|
||||
index 828943b..0255fbb 100644
|
||||
--- a/src/patch.c
|
||||
+++ b/src/patch.c
|
||||
@@ -150,6 +150,10 @@ main (int argc, char **argv)
|
||||
else if ((version_control = getenv ("VERSION_CONTROL")))
|
||||
version_control_context = "$VERSION_CONTROL";
|
||||
|
||||
+ init_backup_hash_table ();
|
||||
+ init_files_to_delete ();
|
||||
+ init_files_to_output ();
|
||||
+
|
||||
/* parse switches */
|
||||
Argc = argc;
|
||||
Argv = argv;
|
||||
@@ -162,10 +166,6 @@ main (int argc, char **argv)
|
||||
if (make_backups | backup_if_mismatch)
|
||||
backup_type = get_version (version_control_context, version_control);
|
||||
|
||||
- init_backup_hash_table ();
|
||||
- init_files_to_delete ();
|
||||
- init_files_to_output ();
|
||||
-
|
||||
init_output (&outstate);
|
||||
if (outfile)
|
||||
outstate.ofp = open_outfile (outfile);
|
||||
diff --git a/tests/Makefile.am b/tests/Makefile.am
|
||||
index 02fc6de..5cea52d 100644
|
||||
--- a/tests/Makefile.am
|
||||
+++ b/tests/Makefile.am
|
||||
@@ -20,6 +20,7 @@ TESTS = \
|
||||
asymmetric-hunks \
|
||||
backup-prefix-suffix \
|
||||
bad-filenames \
|
||||
+ bad-usage \
|
||||
concat-git-diff \
|
||||
copy-rename \
|
||||
corrupt-reject-files \
|
||||
diff --git a/tests/bad-usage b/tests/bad-usage
|
||||
new file mode 100644
|
||||
index 0000000..022eeda
|
||||
--- /dev/null
|
||||
+++ b/tests/bad-usage
|
||||
@@ -0,0 +1,18 @@
|
||||
+# Copyright (C) 2009, 2011-2012 Free Software Foundation, Inc.
|
||||
+#
|
||||
+# Copying and distribution of this file, with or without modification,
|
||||
+# in any medium, are permitted without royalty provided the copyright
|
||||
+# notice and this notice are preserved.
|
||||
+
|
||||
+. $srcdir/test-lib.sh
|
||||
+
|
||||
+require_cat
|
||||
+use_local_patch
|
||||
+use_tmpdir
|
||||
+
|
||||
+# ==============================================================
|
||||
+
|
||||
+check 'patch -px || echo "status: $?"' <<EOF
|
||||
+$PATCH: **** strip count x is not a number
|
||||
+status: 2
|
||||
+EOF
|
||||
--
|
||||
1.8.0.3
|
||||
|
||||
@@ -0,0 +1,77 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>patch</Name>
|
||||
<Homepage>http://www.gnu.org/software/patch/patch.html</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>GPLv2</License>
|
||||
<IsA>app:console</IsA>
|
||||
<Summary>Applies patch files</Summary>
|
||||
<Description>Patch takes a patch file generated by diff command, and applies it to the original files, thus producing patched files.</Description>
|
||||
<Archive sha1sum="b2e29867263095e0f8bfd4b1319124b04102f2b0" type="tarxz">ftp://ftp.gnu.org/gnu/patch/patch-2.7.4.tar.xz</Archive>
|
||||
<Patches>
|
||||
<!--<Patch level="1">patch-2.7.1-initialize-data-structures-early-enough.patch</Patch>-->
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>patch</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>attr</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
<Path fileType="man">/usr/share/man</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="6">
|
||||
<Date>2015-02-01</Date>
|
||||
<Version>2.7.4</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Hakan Yıldız</Name>
|
||||
<Email>hknyldz93@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="5">
|
||||
<Date>2014-05-11</Date>
|
||||
<Version>2.7.1</Version>
|
||||
<Comment>Release bump.</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="4">
|
||||
<Date>2013-08-27</Date>
|
||||
<Version>2.7.1</Version>
|
||||
<Comment>Add patch.</Comment>
|
||||
<Name>Serdar Soytetir</Name>
|
||||
<Email>kaptan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="3">
|
||||
<Date>2013-08-01</Date>
|
||||
<Version>2.7.1</Version>
|
||||
<Comment>Fix deps.</Comment>
|
||||
<Name>Serdar Soytetir</Name>
|
||||
<Email>kaptan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2013-02-17</Date>
|
||||
<Version>2.7.1</Version>
|
||||
<Comment>New release</Comment>
|
||||
<Name>Serdar Soytetir</Name>
|
||||
<Email>kaptan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2012-09-23</Date>
|
||||
<Version>2.7</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Yusuf Aydemir</Name>
|
||||
<Email>yusuf.aydemir@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>patch</Name>
|
||||
<Summary xml:lang="tr">Yama dosyalarını uygular</Summary>
|
||||
<Description xml:lang="tr">Özgün dosyaları, diff komutu ile üretilmiş yama dosyasını uygulayarak, yeni biçimlerine çevirir.</Description>
|
||||
<Description xml:lang="fr">Permet d'appliquer un patch générer par la commande diff aux fichiers originels, obtenant ainsi les fichiers patchés.</Description>
|
||||
<Summary xml:lang="es">Aplicación de archivos de parches</Summary>
|
||||
<Description xml:lang="es">Recibe una archivo de parche generado por el comando diff y lo aplica a los archivos originales, así produciendo archivos parcheados.</Description>
|
||||
</Source>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user