View previous topic :: View next topic |
Author |
Message |
der bastler Apprentice
Joined: 13 Apr 2003 Posts: 262
|
Posted: Sun Sep 01, 2013 11:11 am Post subject: [solved] force ebuild to ignore files during installation? |
|
|
Recently I've created Python bindings for the timerfd system calls:
https://pypi.python.org/pypi/pytimerfd
The source distribution contains the following files:
- timerfd.c: the source
- README: some information on pytimerfd
- COPYING: LGPL text
- setup.py: the setup script
- PKG-INFO: generated by setup.py for source distribution
Now I'm trying to get it into portage. I've created the following ebuild:
Code: | # Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
PYTHON_COMPAT=( python{2_7,3_2} )
inherit distutils-r1 linux-info
DESCRIPTION="Python bindings for the Linux timerfd_* syscalls"
HOMEPAGE="http://pypi.python.org/pypi/pytimerfd http://abelbeck.wordpress.com/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="LGPL"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
DEPEND=""
RDEPEND=""
DOCS=( README )
CONFIG_CHECK="TIMERFD"
ERROR_TIMERFD="${PN} requires support for timerfd() system calls (TIMERFD), being enabled in 'General setup -> Configure standard kernel features (expert users)'."
pkg_setup() {
linux-info_pkg_setup
} |
My system is an amd64 machine and I've checked that my extension can be built for Python v2 and v3 (using compiler directives). Linux-info is used to check for timerfd support in the kernel.
It works so far, but the COPYING file of my tarball is copied to /usr and I don't know how to prevent my ebuild from doing this. Do I have to catch COPYING from being installed? _________________ Tempus fugit.
@frank@troet.cafe
Last edited by der bastler on Tue Sep 17, 2013 9:19 pm; edited 1 time in total |
|
Back to top |
|
|
der bastler Apprentice
Joined: 13 Apr 2003 Posts: 262
|
Posted: Tue Sep 17, 2013 4:22 pm Post subject: |
|
|
Finally, I found the error.
I had declared the file COPYING as a data file in order to add it to the source distribution. This way it was pulled into /usr/.
I fixed this by creating a MANIFEST.in:
and building a new source distribution (pytimerfd 1.2 on pypi)
Now the ebuild works and will be submitted to bugzilla in a few minutes... _________________ Tempus fugit.
@frank@troet.cafe |
|
Back to top |
|
|
|