============================== can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- server-ori/bin/netsvc.py 2006-08-22 10:43:17.000000000 +0200 |+++ server/bin/netsvc.py 2006-10-01 10:00:13.000000000 +0200 -------------------------- No file to patch. Skipping patch. 2 out of 2 hunks ignored ============================== cat tinyerp-server-3.4.1.ebuild # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils distutils DESCRIPTION="Tiny ERP is a company ERP and CRM solution" HOMEPAGE="http://tinyerp.org/" SRC_URI="http://tinyerp.org/download/sources/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND=">=dev-db/postgresql-7.4 dev-python/pypgsql dev-python/reportlab dev-python/pyparsing dev-python/pydot dev-python/psycopg dev-libs/libxml2 dev-libs/libxslt" src_unpack() { unpack "${A}" mv tinyerp-server-3.4.1 ${S} cd "${S}" epatch ${FILESDIR}/netsvc-${PV}.patch epatch ${FILESDIR}/setup-${PV}.patch } src_install() { distutils_src_install exeinto /etc/init.d newexe ${FILESDIR}/${PN}.initd ${PN} insinto /etc/conf.d newins ${FILESDIR}/${PN}.confd ${PN} } pkg_postinst() { if ! getent passwd terp >/dev/null; then enewuser terp fi einfo "" einfo "You should now setup the database if this is a new install." einfo "Run the command" einfo " ebuild /var/db/pkg/app-office/${PF}/${P}.ebuild config" einfo "to do this automatically with language set to english." einfo "" } pquery() { psql -q -At -U postgres -d template1 -c "$@" } pkg_config() { einfo "In the following, the 'postgres' user will be used." if ! pquery "SELECT usename FROM pg_user WHERE usename = 'terp'" | grep -q terp; then ebegin Creating database user terp createuser --quiet --username=postgres --no-createdb --no-adduser terp eend $? || die Failed to create database user fi if ! pquery "SELECT datname FROM pg_database WHERE datname = 'terp'" | grep -q terp; then ebegin Creating database terp createdb --quiet --username=postgres --owner=terp --encoding=UNICODE terp eend $? || die Failed to create database fi einfo The first time tinyerp-server is run it will initialize the database. } pkg_postrm(){ if pquery "SELECT datname FROM pg_database WHERE datname = 'terp'" | grep -q terp; then ebegin removing database terp dropdb terp eend $? || die Failed to erase database fi einfo The database has been removed. If you reinstall tinyerp-server, it will recreate the database and initialise it the first time it will be launched. cat files/netsvc-3.4.1.patch --- server-ori/bin/netsvc.py 2006-08-22 10:43:17.000000000 +0200 +++ server/bin/netsvc.py 2006-10-01 10:00:13.000000000 +0200 @@ -6,7 +6,7 @@ import SimpleXMLRPCServer,signal,sys,xmlrpclib import SocketServer import socket -import logging +import logging,logging.handlers try: from ssl import * @@ -119,7 +119,10 @@ fd = open(tools.config['logfile'], 'a') handler = logging.StreamHandler(fd) else: - handler = logging.StreamHandler(sys.stdout) + # Choose between a simple stream and syslog + # handler = logging.StreamHandler(sys.stderr) + handler = logging.handlers.SysLogHandler() + # create a format for log messages and dates formatter = logging.Formatter('%(asctime)s %(levelname)s:%(name)s:%(message)s', '%a, %d %b %Y %H:%M:%S') pwd /var/tmp/portage/tinyerp-server-3.4.1/work/tinyerp-server-3.4.1 tuxmobil tinyerp-server-3.4.1 # ls -la total 36 drwxr-xr-x 6 root root 4096 sep 12 15:13 . drwxr-xr-x 3 root root 4096 oct 1 10:31 .. drwxr-xr-x 12 root root 4096 sep 12 15:13 bin drwxr-xr-x 3 root root 4096 sep 12 15:13 doc drwxr-xr-x 2 root root 4096 sep 12 15:13 etc drwxr-xr-x 2 root root 4096 sep 12 15:13 man -rw-r--r-- 1 root root 85 aoĆ» 22 10:43 MANIFEST.in -rwxr-xr-x 1 root root 5960 sep 12 15:00 setup.py