added my Recipes

This commit is contained in:
2024-07-11 14:16:35 +02:00
parent 38bc4f53ac
commit 09b621d929
7118 changed files with 525762 additions and 3 deletions

View File

@@ -0,0 +1,28 @@
From 11c78232aa589d5ed43eea3683e6e3de0362ffdc Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Tue, 26 Apr 2022 10:00:32 -0700
Subject: [PATCH] lockdev: Define MAJOR/MINOR for non-glibc case
gnu_dev_major and gnu_dev_minor are glibc extensions but we do have
major/minor macros on musl too, so use them to define MINOR/MAJOR here
Upstream-Status: Inappropriate [No active upstream]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
src/lockdev.c | 3 +++
1 file changed, 3 insertions(+)
--- a/src/lockdev.c
+++ b/src/lockdev.c
@@ -125,8 +125,8 @@
#include <sys/file.h>
#if defined (__GNU_LIBRARY__)
# include <sys/sysmacros.h>
-# define MAJOR(dev) gnu_dev_major (dev)
-# define MINOR(dev) gnu_dev_minor (dev)
+# define MAJOR(dev) major (dev)
+# define MINOR(dev) minor (dev)
#else
# error "put here a define for MAJOR and MINOR"
#endif

View File

@@ -0,0 +1,28 @@
commit 0dd47123655c52d68185f06b9da8fb0e1b925400
Author: Ludwig Nussel <ludwig.nussel@suse.de>
Date: Tue Feb 9 14:56:23 2010 +0100
RedHat patch 2
- change library file name
- install devel symlink
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@ VER = $(shell expr `pwd` : '.*-\([0-9.]*
MVER = ${shell expr `pwd` : '.*-\([0-9]*\).[0-9]*'}
static = ${libname}.a
-shared = ${libname}.${VER}.so
+shared = ${libname}.so.${VER}
soname = ${libname}.so.${MVER}
# overwritten by caller (e.g.: debian/rules)
@@ -73,6 +73,7 @@ install_doc: docs/lockdev.3
install_run: ${shared}
install -m755 -d ${libdir}
install -m644 ${shared} ${libdir}
+ ln -s ${shared} ${libdir}/liblockdev.so
.PHONY: clean distclean perl-clean mostyclean
perl-clean: clean

View File

@@ -0,0 +1,27 @@
--- a/Makefile
+++ b/Makefile
@@ -15,17 +15,18 @@ shared = ${libname}.${VER}.so
soname = ${libname}.so.${MVER}
# overwritten by caller (e.g.: debian/rules)
-basedir = /usr/local
+basedir ?= /usr/local
+baselib ?= lib
srcdir=.
-libdir = ${basedir}/lib
+libdir = ${basedir}/${baselib}
incdir = ${basedir}/include
mandir = ${basedir}/share/man
-CC = gcc
-LCFLAGS = -g -O2 -fPIC -Wall -pipe -D_REENTRANT
-CFLAGS = -g
-LDLIBS = -llockdev
+CC ?= gcc
+LCFLAGS ?= -g -O2 -fPIC -Wall -pipe -D_REENTRANT
+CFLAGS ?= -g
+LDLIBS ?= -llockdev
.PHONY: shared static perl-lib
ALL: shared static perl-lib

View File

@@ -0,0 +1,27 @@
SUMMARY = "Locking devices library"
SECTION = "libs"
LICENSE = "LGPL-2.1-only"
LIC_FILES_CHKSUM="file://LICENSE;md5=d8045f3b8f929c1cb29a1e3fd737b499"
PE = "1"
SRC_URI = "http://snapshot.debian.org/archive/debian/20141023T043132Z/pool/main/l/lockdev/lockdev_${PV}.orig.tar.gz \
file://cross_compile.patch \
file://build.patch \
file://0001-lockdev-Define-MAJOR-MINOR-for-non-glibc-case.patch \
"
SRC_URI[sha256sum] = "ccae635d7ac3fdd50897eceb250872b3d9a191d298f213e7f0c836910d869f82"
inherit lib_package perlnative
TARGET_CC_ARCH += "${LDFLAGS}"
CFLAGS:append:libc-musl = " -D__GNU_LIBRARY__"
EXTRA_OEMAKE = "basedir=${D}${prefix} baselib=${baselib} LD='${CC}'"
do_compile() {
oe_runmake shared static
}
do_install() {
oe_runmake DESTDIR=${D} install
}