Kaydet (Commit) 6bb80d32 authored tarafından Suleyman Poyraz's avatar Suleyman Poyraz

Added repos before rewriting tests

üst ffe9ccd6
<PISI>
<INARY>
<Components>
<Component>
<Name>system</Name>
......@@ -7,8 +7,19 @@
<Description>System packages</Description>
<Group>system</Group>
<Maintainer>
<Name>Joe Maintainer</Name>
<Email>joe@pardus.org.tr</Email>
<Name>Inary Testers</Name>
<Email>admins@sulin.org</Email>
</Maintainer>
</Component>
<Component>
<Name>system.devel</Name>
<LocalName>System Devel</LocalName>
<Summary>System Devel component</Summary>
<Description>System devel packages</Description>
<Group>system</Group>
<Maintainer>
<Name>Inary Testers</Name>
<Email>admins@sulin.org</Email>
</Maintainer>
</Component>
<Component>
......@@ -18,31 +29,31 @@
<Description>Base System Packages</Description>
<Group>system</Group>
<Maintainer>
<Name>Joe Maintainer</Name>
<Email>joe@pardus.org.tr</Email>
<Name>Inary Testers</Name>
<Email>admins@sulin.org</Email>
</Maintainer>
</Component>
<Component>
<Name>util</Name>
<LocalName>FIXME</LocalName>
<Summary>FIXME</Summary>
<Description>FIXME</Description>
<LocalName>Util packages</LocalName>
<Summary>Util Packages</Summary>
<Description>Util Packages</Description>
<Group>accessories</Group>
<Maintainer>
<Name>Joe Maintainer</Name>
<Email>joe@pardus.org.tr</Email>
<Name>Inary Testers</Name>
<Email>admins@sulin.org</Email>
</Maintainer>
</Component>
<Component>
<Name>util.misc</Name>
<LocalName>FIXME</LocalName>
<Summary>FIXME</Summary>
<Description>FIXME</Description>
<LocalName>Util misc packages</LocalName>
<Summary>Util misc packages</Summary>
<Description>Util Misc Packages</Description>
<Group>accessories</Group>
<Maintainer>
<Name>Joe Maintainer</Name>
<Email>joe@pardus.org.tr</Email>
<Name>Inary Testers</Name>
<Email>admins@sulin.org</Email>
</Maintainer>
</Component>
</Components>
</PISI>
</INARY>
<INARY>
<Name>desktop.accessibility</Name>
</INARY>
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt
from inary.actionsapi import autotools
from inary.actionsapi import get
from inary.actionsapi import inarytools
from inary.actionsapi import shelltools
from inary.actionsapi import pythonmodules
def setup():
# autotools.autoreconf("-vfi")
autotools.configure("--disable-static")
def build():
autotools.make("-j1")
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
inarytools.dodoc("AUTHORS", "COPYING", "ChangeLog")
shelltools.export("LD_PRELOAD","%s/liblouis/.libs/liblouis.so.12" % get.curDIR())
shelltools.cd("python")
pythonmodules.install("--prefix=/usr --optimize=1")
pythonmodules.install("--prefix=/usr --optimize=1",pyVer = "3")
<?xml version="1.0" ?>
<!DOCTYPE INARY SYSTEM "www.sulin.com/standard/inary-spec.dtd">
<INARY>
<Source>
<Name>liblouis</Name>
<Homepage>http://liblouis.org/</Homepage>
<Packager>
<Name>Inary Testers</Name>
<Email>admin@sulin.com</Email>
</Packager>
<License>GPLv3</License>
<Summary>Open-source braille translator and back-translator</Summary>
<Description>Open-source braille translator and back-translator</Description>
<Archive sha1sum="b692e4ee37fb898a53e4fd5bdc86cd2f7b3be2e1" type="targz">https://github.com/liblouis/liblouis/releases/download/v3.0.0/liblouis-3.0.0.tar.gz</Archive>
</Source>
<Package>
<Name>liblouis</Name>
<Files>
<Path fileType="config">/etc</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="header">/usr/include</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="localedata">/usr/share/locale</Path>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="data">/usr/share</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2018-01-21</Date>
<Version>3.0.0</Version>
<Comment>First release</Comment>
<Name>Inary Testers</Name>
<Email>admin@sulin.com</Email>
</Update>
</History>
</INARY>
<INARY>
<Name>desktop</Name>
</INARY>
<PISI>
<SourceName>Pardus</SourceName>
<Version>2007</Version>
<INARY>
<SourceName>Sulin</SourceName>
<Version>2018</Version>
<Description>Sample Repository 1</Description>
<Type>Core</Type>
<Obsoletes>
<Package>wengophone</Package>
<Package>rar</Package>
<Package>live-streams</Package>
<Package>live-system</Package>
</Obsoletes>
</PISI>
</INARY>
<INARY>
<Name>multimedia</Name>
</INARY>
<INARY>
<Name>multimedia.graphics</Name>
</INARY>
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2018 Suleyman POYRAZ (Zaryob)
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from inary.actionsapi import autotools
from inary.actionsapi import inarytools
from inary.actionsapi import libtools
from inary.actionsapi import get
from inary.actionsapi import shelltools
def setup():
autotools.autoreconf("-vfi")
options = "--enable-shared \
--disable-static \
--enable-maxmem=64 \
--disable-dependency-tracking"
if get.buildTYPE() == "emul32":
options += " --prefix=/emul32 --libdir=/usr/lib32"
shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS())
autotools.configure(options)
def build():
autotools.make()
def install():
autotools.rawInstall('DESTDIR="%s"' % get.installDIR())
if get.buildTYPE() == "emul32":
inarytools.removeDir("/emul32")
return
# they say some programs use this
inarytools.insinto("/usr/include", "jpegint.h")
inarytools.insinto("/usr/include", "jinclude.h")
inarytools.dodoc("change.log", "example.c", "README","*.txt")
CC = @CC@
EXEEXT = @EXEEXT@
CFLAGS = @CFLAGS@
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
datarootdir = @datarootdir@
mandir = @mandir@
man1dir = $(mandir)/man1
MKDIR_P = @MKDIR_P@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
SCRIPTS = exifautotran
PROGRAMS = jpegexiforient$(EXEEXT)
all: $(SCRIPTS) $(PROGRAMS)
jpegexiforient$(EXEEXT): jpegexiforient.c
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $<
clean:
rm -f $(PROGRAMS) *.o
install: all
$(MKDIR_P) $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir)
$(INSTALL_PROGRAM) $(PROGRAMS) $(DESTDIR)$(bindir)
$(INSTALL_SCRIPT) $(SCRIPTS) $(DESTDIR)$(bindir)
$(INSTALL_DATA) *.1 $(DESTDIR)$(man1dir)
.PHONY: all clean install
Dike out a section of code that has no usefulness on Unix-like systems,
and will crash if fed a comment string exceeding 64K. Per report from
Lubomir Kundrak, RH bug #226965
diff -Naur jpeg-6b.orig/wrjpgcom.c jpeg-6b/wrjpgcom.c
--- jpeg-6b.orig/wrjpgcom.c 1997-10-23 00:47:03.000000000 -0400
+++ jpeg-6b/wrjpgcom.c 2007-06-25 22:26:42.000000000 -0400
@@ -446,6 +446,8 @@
} else if (keymatch(arg, "comment", 1)) {
if (++argn >= argc) usage();
comment_arg = argv[argn];
+#if 0
+#error "There is a buffer overflow in the code below"
/* If the comment text starts with '"', then we are probably running
* under MS-DOG and must parse out the quoted string ourselves. Sigh.
*/
@@ -466,6 +468,7 @@
strcat(comment_arg, argv[argn]);
}
}
+#endif
comment_length = (unsigned int) strlen(comment_arg);
} else
usage();
Force usage of our Makefile
sed -i '/all:/s:$:\n\t./config.status --file debian/extra/Makefile\n\t$(MAKE) -C debian/extra $@:' Makefile.in
diff -Nur jpeg-8b-old/Makefile.in jpeg-8b/Makefile.in
--- jpeg-8b-old/Makefile.in 2010-08-16 15:46:30.310000994 +0300
+++ jpeg-8b/Makefile.in 2010-08-16 15:46:32.308000941 +0300
@@ -391,6 +391,8 @@
testoutt.jpg
all: jconfig.h
+ ./config.status --file debian/extra/Makefile
+ $(MAKE) -C debian/extra $@
$(MAKE) $(AM_MAKEFLAGS) all-am
.SUFFIXES:
@@ -936,9 +938,13 @@
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
done
install: install-am
+ ./config.status --file debian/extra/Makefile
+ $(MAKE) -C debian/extra $@
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am
+ ./config.status --file debian/extra/Makefile
+ $(MAKE) -C debian/extra $@
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
# Make a reasonable guess about memory limits using sysconf().
# includes 5% slop factor as suggested in documentation.
--- jpeg-7/jmemansi.c
+++ jpeg-7/jmemansi.c
@@ -12,6 +12,15 @@
* is shoved onto the user.
*/
+#include <unistd.h>
+
+#ifdef __FreeBSD__
+# include <sys/types.h>
+# include <sys/sysctl.h>
+# include <sys/vmmeter.h>
+# include <vm/vm_param.h>
+#endif
+
#define JPEG_INTERNALS
#include "jinclude.h"
#include "jpeglib.h"
@@ -157,7 +166,26 @@
GLOBAL(long)
jpeg_mem_init (j_common_ptr cinfo)
{
- return DEFAULT_MAX_MEM; /* default for max_memory_to_use */
+#ifdef _SC_AVPHYS_PAGES
+ long phys_size;
+
+ if ((phys_size = sysconf(_SC_AVPHYS_PAGES)) == -1)
+ return DEFAULT_MAX_MEM; /* default for max_memory_to_use */
+ if ((phys_size *= sysconf(_SC_PAGESIZE)) < 0)
+ return DEFAULT_MAX_MEM;
+ return (long) (phys_size * 0.95);
+#elif defined(HAVE_SYSCTL) && defined(HW_PHYSMEM)
+ /* This works on *bsd and darwin. */
+ unsigned int physmem;
+ size_t len = sizeof physmem;
+ static int mib[2] = { CTL_HW, HW_PHYSMEM };
+
+ if (sysctl (mib, ARRAY_SIZE (mib), &physmem, &len, NULL, 0) == 0
+ && len == sizeof (physmem))
+ return (long) (physmem * 0.95);
+#endif
+
+ return DEFAULT_MAX_MEM;
}
GLOBAL(void)
<?xml version="1.0" ?>
<!DOCTYPE INARY SYSTEM "http://www.sulin.org.tr/projeler/inary/inary-spec.dtd">
<INARY>
<Source>
<Name>jpeg</Name>
<Homepage>http://www.ijg.org/</Homepage>
<Packager>
<Name>Inary Testers</Name>
<Email>admins@sulin.org</Email>
</Packager>
<License>as-is</License>
<IsA>library</IsA>
<Summary>Library to load, handle and manipulate images in the JPEG format</Summary>
<Description>jpeg is the library to load, handle and manipulate images in the JPEG format. It is used by many programs that operates on JPEG files.</Description>
<Archive sha1sum="15dc1939ea1a5b9d09baea11cceb13ca59e4f9df" type="targz">http://www.ijg.org/files/jpegsrc.v8b.tar.gz</Archive>
<AdditionalFiles>
<AdditionalFile owner="root" permission="0644" target="debian/extra/Makefile.in">Makefile.in.extra</AdditionalFile>
</AdditionalFiles>
<Patches>
<!-- From Debian -->
<Patch level="1">libjpeg7_7-2.diff</Patch>
<Patch level="1">maxmem-sysconf.patch</Patch>
<Patch level="1">makefile.patch</Patch>
<!-- probably not needed but since it is non-UNIX I am keeping it for now -->
<Patch level="1">libjpeg-buf-oflo.patch</Patch>
</Patches>
</Source>
<Package>
<Name>jpeg</Name>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="man">/usr/share/man</Path>
</Files>
</Package>
<Package>
<Name>jpeg-devel</Name>
<RuntimeDependencies>
<Dependency release="current">jpeg</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
</Files>
</Package>
<Package>
<Name>jpeg-32bit</Name>
<PartOf>emul32</PartOf>
<Summary>32-bit shared libraries for jpeg</Summary>
<BuildType>emul32</BuildType>
<RuntimeDependencies>
<Dependency release="current">jpeg</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib32</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2018-01-21</Date>
<Version>8b</Version>
<Comment>First release</Comment>
<Name>Inary Testers</Name>
<Email>admins@sulin.org</Email>
</Update>
</History>
</INARY>
<?xml version="1.0" ?>
<INARY>
<Source>
<Name>jpeg</Name>
<Summary xml:lang="tr">JPEG türündeki resimleri görüntüleyip işlemeye aracılık eden kitaplık</Summary>
<Description xml:lang="tr">jpeg, JPEG formatındaki resimlerin görüntülenmesi ve işlenmesine aracılık eden bir kütüphanedir. JPEG dosyaları ile çalışan birçok program tarafından kullanılır.</Description>
<Description xml:lang="fr">jpeg est une librairie permettant de charger, gérer et manipuler les images au format JPEG. Il est utilisé par de nombreux programmes qui utilisent les fichiers JPEG.</Description>
<Description xml:lang="de">jpeg ist eine Bibliothek, um Bilder im JPEG Format zu laden, zu verarbeiten und zu verändern. Sie wird von vielen Anwendungen, die JPEG Bilder verarbeiten verwendet</Description>
</Source>
<Package>
<Name>jpeg-devel</Name>
<Summary xml:lang="tr">jpeg için geliştirme dosyaları</Summary>
</Package>
<Package>
<Name>jpeg-32bit</Name>
<Summary xml:lang="tr">jpeg için 32-bit paylaşımlı kitaplıklar</Summary>
</Package>
</INARY>
#!/usr/bin/python
# -*- 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 pisitools
from inary.actionsapi import autotools
from inary.actionsapi import inarytools
from inary.actionsapi import shelltools
from inary.actionsapi import get
WorkDir = "skeleton"
cfgsettings = """-DDEFAULT_PATH_VALUE=\'\"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\"\' \
-DSTANDARD_UTILS_PATH=\'\"/bin:/usr/bin:/sbin:/usr/sbin\"\' \
-DSYS_BASHRC=\'\"/etc/bash/bashrc\"\' \
-DNON_INTERACTIVE_LOGIN_SHELLS \
-DSSH_SOURCE_BASHRC"""
#-DSYS_BASH_LOGOUT=\'\"/etc/bash/bash_logout\"\' \
def setup():
# Recycles pids is neccessary. When bash's last fork's pid was X and new fork's pid is also X,
# bash has to wait for this same pid. Without Recycles pids bash will not wait.
shelltools.export("CFLAGS", "%s -D_GNU_SOURCE -DRECYCLES_PIDS %s " % (get.CFLAGS(), cfgsettings))
autotools.autoconf()
autotools.configure("--without-installed-readline \
--disable-profiling \
--without-gnu-malloc \
--disable-rpath \
--with-curses")
def build():
autotools.make()
# FIXME: package build stops right after checking even when no errors happen (probably
# due to SIGHUP in test). It is the duty of the packager to run tests by hand.
#def check():
# autotools.make("check")
def install():
pisitools.dobin("skeleton.py")
pisitools.rename("/usr/bin/skeleton.py", "bash")
autotools.install()
inarytools.domove("/usr/bin/bash", "/bin")
inarytools.dosym("/bin/bash","/bin/sh")
inarytools.dosym("/bin/bash","/bin/rbash")
# Compatibility with old skels
# inarytools.dosym("/etc/bash/bashrc", "/etc/bashrc")
inarytools.dosym("bash.info", "/usr/share/info/bashref.info")
inarytools.doman("doc/bash.1", "doc/bashbug.1", "doc/builtins.1", "doc/rbash.1")
inarytools.dodoc("README", "NEWS", "AUTHORS", "CHANGES", "COMPAT", "Y2K", "doc/FAQ", "doc/INTRO")
# /etc/bash/bashrc
#
# This file is sourced by all *interactive* bash shells on startup,
# including some apparently interactive shells such as scp and rcp
# that can't tolerate any output. So make sure this doesn't display
# anything or bad things will happen !
# Test for an interactive shell. There is no need to set anything
# past this point for scp and rcp, and it's important to refrain from
# outputting anything in those cases.
if [[ $- != *i* ]] ; then
# Shell is non-interactive. Be done now!
return
fi
# Bash won't get SIGWINCH if another process is in the foreground.
# Enable checkwinsize so that bash will check the terminal size when
# it regains control. #65623
# http://cnswww.cns.cwru.edu/~chet/bash/FAQ (E11)
shopt -s checkwinsize
# Minor errors in the spelling of a directory component in a cd command
# will be corrected.
shopt -s cdspell
# Set colorful PS1 only on colorful terminals.
# dircolors --print-database uses its own built-in database
# instead of using /etc/DIR_COLORS. Try to use the external file
# first to take advantage of user additions.
use_color=false
safe_term=${TERM//[^[:alnum:]]/.} # sanitize TERM
if [[ -f /etc/DIR_COLORS ]] ; then
grep -q "^TERM ${safe_term}" /etc/DIR_COLORS && use_color=true
elif type -p dircolors >/dev/null ; then
if dircolors --print-database | grep -q "^TERM ${safe_term}" ; then
use_color=true
fi
fi
if ${use_color} ; then
if [ "$EUID" = 0 ] || [ "`whoami`" == 'root' ]; then
export PS1='\[\033[1;31m\]\h \[\033[1;34m\]\W \$ \[\033[00m\]'
else
export PS1='\[\033[1m\]\u@\h \[\033[0;31m\]\W \$ \[\033[00m\]'
fi
else
PS1='\u@\h: \W \$ '
fi
# Try to keep environment pollution down, EPA loves us.
unset use_color safe_term
# command-not-found handle support
if [ -x /usr/bin/command-not-found ]; then
function command_not_found_handle
{
/usr/bin/command-not-found $1
return $?
}
fi
--- bash-2.02-orig/parse.y Wed Mar 25 18:16:23 1998
+++ bash-2.02/parse.y Sun Apr 19 16:46:34 1998
@@ -923,7 +923,7 @@
#if defined (READLINE)
char *current_readline_prompt = (char *)NULL;
-char *current_readline_line = (char *)NULL;
+unsigned char *current_readline_line = (unsigned char *)NULL;
int current_readline_line_index = 0;
static int
--- bash-3.0/config-top.h.paths 2003-08-05 15:36:12.000000000 +0100
+++ bash-3.0/config-top.h 2004-07-28 09:36:27.117205637 +0100
@@ -66,7 +66,7 @@
the Posix.2 confstr () function, or CS_PATH define are not present. */
#ifndef STANDARD_UTILS_PATH
#define STANDARD_UTILS_PATH \
- "/bin:/usr/bin:/sbin:/usr/sbin:/etc:/usr/etc"
+ "/bin:/usr/bin:/usr/sbin:/sbin"
#endif
/* Default primary and secondary prompt strings. */
diff -up bash-3.2/config-top.h.profile bash-3.2/config-top.h
--- bash-3.2/config-top.h.profile 2008-07-17 13:35:39.000000000 +0200
+++ bash-3.2/config-top.h 2008-07-17 13:42:18.000000000 +0200
@@ -26,6 +26,8 @@
what POSIX.2 specifies. */
#define CONTINUE_AFTER_KILL_ERROR
+#define NON_INTERACTIVE_LOGIN_SHELLS
+
/* Define BREAK_COMPLAINS if you want the non-standard, but useful
error messages about `break' and `continue' out of context. */
#define BREAK_COMPLAINS
diff --git a/config.h.in b/config.h.in
index a5ad9e7..62a6b32 100644
--- a/config.h.in
+++ b/config.h.in
@@ -748,6 +748,9 @@
/* Define if you have the pselect function. */
#undef HAVE_PSELECT
+/* Define if you have the pread function. */
+#undef HAVE_PREAD
+
/* Define if you have the putenv function. */
#undef HAVE_PUTENV
@@ -946,6 +949,9 @@
/* Define if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
+/* Define if you have the <elf.h> header file. */