mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Juergen Borleis <jbe@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH 1/4] libaio: add new package
Date: Tue, 24 May 2016 12:54:30 +0200	[thread overview]
Message-ID: <1464087273-8487-2-git-send-email-jbe@pengutronix.de> (raw)
In-Reply-To: <1464087273-8487-1-git-send-email-jbe@pengutronix.de>

This library simplifies the use of asynchronous I/O access the Linux kernel
supports. In order to make use of this feature, the kernel's CONFIG_AIO is
set.

Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
---
 .../0001-make-the-package-DESTDIR-aware.patch      | 22 +++++++++
 patches/libaio-0.3.110/series                      |  4 ++
 rules/host-libaio.in                               |  6 +++
 rules/host-libaio.make                             | 24 +++++++++
 rules/libaio.in                                    |  7 +++
 rules/libaio.make                                  | 57 ++++++++++++++++++++++
 6 files changed, 120 insertions(+)
 create mode 100644 patches/libaio-0.3.110/0001-make-the-package-DESTDIR-aware.patch
 create mode 100644 patches/libaio-0.3.110/series
 create mode 100644 rules/host-libaio.in
 create mode 100644 rules/host-libaio.make
 create mode 100644 rules/libaio.in
 create mode 100644 rules/libaio.make

diff --git a/patches/libaio-0.3.110/0001-make-the-package-DESTDIR-aware.patch b/patches/libaio-0.3.110/0001-make-the-package-DESTDIR-aware.patch
new file mode 100644
index 0000000..07a4235
--- /dev/null
+++ b/patches/libaio-0.3.110/0001-make-the-package-DESTDIR-aware.patch
@@ -0,0 +1,22 @@
+From: Juergen Borleis <jbe@pengutronix.de>
+Date: Wed, 6 Apr 2016 14:01:58 +0200
+Subject: [PATCH] make the package DESTDIR aware
+
+Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
+---
+ Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index 4cedbc9096fe..6d9d88670ad6 100644
+--- a/Makefile
++++ b/Makefile
+@@ -5,7 +5,7 @@ RELEASE=$(shell awk '/Release:/ { print $$2 }' $(SPECFILE))
+ CVSTAG = $(NAME)_$(subst .,-,$(VERSION))_$(subst .,-,$(RELEASE))
+ RPMBUILD=$(shell `which rpmbuild >&/dev/null` && echo "rpmbuild" || echo "rpm")
+ 
+-prefix=/usr
++prefix=$(DESTDIR)/usr
+ includedir=$(prefix)/include
+ libdir=$(prefix)/lib
+ 
diff --git a/patches/libaio-0.3.110/series b/patches/libaio-0.3.110/series
new file mode 100644
index 0000000..1c5e0b9
--- /dev/null
+++ b/patches/libaio-0.3.110/series
@@ -0,0 +1,4 @@
+# generated by git-ptx-patches
+#tag:base --start-number 1
+0001-make-the-package-DESTDIR-aware.patch
+# 2c519bc2ab00d1696f060ce28efb150a  - git-ptx-patches magic
diff --git a/rules/host-libaio.in b/rules/host-libaio.in
new file mode 100644
index 0000000..bf9657c
--- /dev/null
+++ b/rules/host-libaio.in
@@ -0,0 +1,6 @@
+## SECTION=hosttools_noprompt
+
+config HOST_LIBAIO
+	tristate
+	help
+	  Requiered host part of some buildsystems
diff --git a/rules/host-libaio.make b/rules/host-libaio.make
new file mode 100644
index 0000000..ce44561
--- /dev/null
+++ b/rules/host-libaio.make
@@ -0,0 +1,24 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2016 by Juergen Borleis <jbe@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+HOST_PACKAGES-$(PTXCONF_HOST_LIBAIO) += host-libaio
+
+# ----------------------------------------------------------------------------
+# Prepare + Compile
+# ----------------------------------------------------------------------------
+
+HOST_LIBAIO_CONF_TOOL	:= NO
+HOST_LIBAIO_MAKE_ENV	:= $(HOST_ENV)
+HOST_LIBAIO_MAKEVARS	:= prefix=$(PTXCONF_SYSROOT_HOST)
+
+# vim: syntax=make
diff --git a/rules/libaio.in b/rules/libaio.in
new file mode 100644
index 0000000..f10149c
--- /dev/null
+++ b/rules/libaio.in
@@ -0,0 +1,7 @@
+## SECTION=system_libraries
+
+config LIBAIO
+	tristate
+	prompt "libaio"
+	help
+	  Library for asynchronous I/O access
diff --git a/rules/libaio.make b/rules/libaio.make
new file mode 100644
index 0000000..206ae4b
--- /dev/null
+++ b/rules/libaio.make
@@ -0,0 +1,57 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2016 by Juergen Borleis <jbe@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_LIBAIO) += libaio
+
+#
+# Paths and names
+#
+LIBAIO_VERSION	:= 0.3.110
+LIBAIO_MD5	:= 2a35602e43778383e2f4907a4ca39ab8
+LIBAIO		:= libaio-$(LIBAIO_VERSION)
+LIBAIO_SUFFIX	:= tar.gz
+LIBAIO_URL	:= http://pkgs.fedoraproject.org/repo/pkgs/libaio/libaio-0.3.110.tar.gz/2a35602e43778383e2f4907a4ca39ab8/$(LIBAIO).$(LIBAIO_SUFFIX)
+LIBAIO_SOURCE	:= $(SRCDIR)/$(LIBAIO).$(LIBAIO_SUFFIX)
+LIBAIO_DIR	:= $(BUILDDIR)/$(LIBAIO)
+LIBAIO_LICENSE	:= LGPL-2.1
+
+# ----------------------------------------------------------------------------
+# Prepare + Compile
+# ----------------------------------------------------------------------------
+
+#
+# just a Makefile made by a creative Linux kernel hacker...
+#
+LIBAIO_CONF_TOOL	:= NO
+LIBAIO_MAKE_ENV		:= $(CROSS_ENV)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/libaio.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, libaio)
+	@$(call install_fixup, libaio,PRIORITY,optional)
+	@$(call install_fixup, libaio,SECTION,base)
+	@$(call install_fixup, libaio,AUTHOR,"Juergen Borleis <jbe@pengutronix.de>")
+	@$(call install_fixup, libaio,DESCRIPTION,"asynchronous I/O access library")
+
+	@$(call install_lib, libaio, 0, 0, 0644, libaio)
+
+	@$(call install_finish, libaio)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.8.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2016-05-24 10:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-24 10:54 [ptxdist] [PATCH] mySQL: exhume a gone package Juergen Borleis
2016-05-24 10:54 ` Juergen Borleis [this message]
2016-05-24 10:54 ` [ptxdist] [PATCH 2/4] mySQL: remove an orphaned file Juergen Borleis
2016-05-24 10:54 ` [ptxdist] [PATCH 3/4] mySQL: exhume a gone package by updating it to a new release Juergen Borleis
2016-05-24 10:54 ` [ptxdist] [PATCH 4/4] Qt5: add mySQL support Juergen Borleis
2016-05-26  9:57 ` [ptxdist] [PATCH] mySQL: exhume a gone package Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1464087273-8487-2-git-send-email-jbe@pengutronix.de \
    --to=jbe@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox