SHA256
1
0
forked from pool/kbuild
OBS User unknown 2008-04-05 02:39:08 +00:00 committed by Git OBS Bridge
commit 5a15746cbf
8 changed files with 169 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3e84f685cc70d67c703372266f45990aedeec51da68f73f157f867c6503066be
size 1842227

28
kbuild-man.diff Normal file
View File

@ -0,0 +1,28 @@
--- kmk.pod
+++ kmk.pod
@@ -0,0 +1,24 @@
+=head1 NAME
+
+kmk - framework for writing simple makefiles for complex tasks
+
+=head1 SYNOPSIS
+
+B<kmk> [S<I<options>>]
+
+=head1 DESCRIPTION
+
+kmk and its helper tools are an extension to GNU make to ease writing
+portable Makefile. There is not a lot of documentation though. A
+starting point is L<http://svn.netlabs.org/kbuild>.
+
+On SUSE the kBuild binaries can be found in F</usr/bin> and its data
+files in F</usr/share/kBuild>.
+
+=head1 SEE ALSO
+
+L<make(1)>
+
+=head1 AUTHOR
+
+Torsten Werner <twerner@debian.org>

5
kbuild.changes Normal file
View File

@ -0,0 +1,5 @@
-------------------------------------------------------------------
Wed Apr 2 09:19:37 CEST 2008 - dmueller@suse.de
- Initial package (0.1.2svn1480)

78
kbuild.spec Normal file
View File

@ -0,0 +1,78 @@
#
# spec file for package kbuild (Version 0.1.2svn1480)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Url: http://svn.netlabs.org/kbuild
Name: kbuild
BuildRequires: bison flex libacl-devel
License: GPL v2 or later
Group: Development/Tools/Building
Summary: framework for writing simple makefiles for complex tasks
Version: 0.1.2svn1480
Release: 2
Source0: %name-%{version}.tar.bz2
Patch0: kbuild-man.diff
Patch1: warnings.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The goals of the kBuild framework: - Similar behavior across all
supported platforms
- Flexibility, don't create unnecessary restrictions preventing
ad-hoc solutions
- Makefiles can be simple to write and maintain
- One configuration file for a subtree automatically included
- Target configuration templates as the primary mechanism for
makefile simplification
- Tools and SDKs for helping out the templates with flexibility
- Non-recursive makefile method by using sub-makefiles
Authors:
--------
Knut St. Osmundsen <bird-kbuild-spam@anduin.net>
%prep
%setup -q
%patch0
%patch1
%build
export CFLAGS="$RPM_OPT_FLAGS"
kBuild/env.sh make -f bootstrap.gmk SRCDIR=`pwd`
kBuild/env.sh kmk rebuild PATH_INS=`pwd`
pod2man -c 'kBuild for SUSE Linux' -r kBuild-%version kmk.pod > kmk.1
%install
kBuild/env.sh kmk NIX_INSTALL_DIR=/usr BUILD_TYPE=release PATH_INS=%{buildroot} LDFLAGS=-Wl,--as-needed
install -m 644 -D kmk.1 %buildroot/%_mandir/man1/kmk.1
chmod a-x %buildroot/usr/share/kBuild/*/*kmk
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%{_prefix}/bin/*
%{_mandir}/*/*
/usr/share/kBuild
%changelog
* Wed Apr 02 2008 dmueller@suse.de
- Initial package (0.1.2svn1480)

0
ready Normal file
View File

31
warnings.diff Normal file
View File

@ -0,0 +1,31 @@
--- src/ash/miscbltin.c
+++ src/ash/miscbltin.c
@@ -280,7 +280,7 @@ umaskcmd(int argc, char **argv)
#ifdef __INNOTEK_LIBC__
if ((set = bsd_setmode(ap)) != 0) {
#else
- if ((set = setmode(ap)) != 0) {
+ if ((set = (void*) setmode(ap))) {
#endif
mask = getmode(set, ~mask & 0777);
ckfree(set);
--- src/kmk/kmkbuiltin/kDepIDB.c
+++ src/kmk/kmkbuiltin/kDepIDB.c
@@ -433,7 +433,7 @@ static void *Pdb70AllocAndReadStream(PPDB70HDR pHdr, PPDB70ROOT pRoot, unsigned
if ( iStream >= pRoot->cStreams
|| cbStream == ~(uint32_t)0)
{
- fprintf(stderr, "%s: error: Invalid stream %d\n", iStream);
+ fprintf(stderr, "%s: error: Invalid stream %d\n", argv0, iStream);
return NULL;
}
@@ -695,7 +695,7 @@ static void *Pdb20AllocAndReadStream(PPDB20HDR pHdr, PPDB20ROOT pRoot, unsigned
if ( iStream >= pRoot->cStreams
|| cbStream == ~(uint32_t)0)
{
- fprintf(stderr, "%s: error: Invalid stream %d\n", iStream);
+ fprintf(stderr, "%s: error: Invalid stream %d\n", argv0, iStream);
return NULL;
}