Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
aports
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
651
Issues
651
List
Boards
Labels
Service Desk
Milestones
Merge Requests
188
Merge Requests
188
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
aports
Commits
70da3b60
Commit
70da3b60
authored
Dec 18, 2012
by
Ariadne Conill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testing/rpm: new aport
parent
5c1ef1a5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
92 additions
and
0 deletions
+92
-0
testing/rpm/APKBUILD
testing/rpm/APKBUILD
+62
-0
testing/rpm/rpm-uclibc.patch
testing/rpm/rpm-uclibc.patch
+30
-0
No files found.
testing/rpm/APKBUILD
0 → 100644
View file @
70da3b60
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname
=
rpm
pkgver
=
4.10.2
pkgrel
=
0
pkgdesc
=
"the RPM package manager"
url
=
"http://www.rpm.org/"
arch
=
"all"
license
=
"GPL"
depends
=
""
depends_dev
=
"nspr-dev nss-dev db-dev lua-dev zlib-dev bzip2-dev xz-dev libelf-dev file-dev popt-dev
libcap-dev acl-dev"
makedepends
=
"
$depends_dev
graphviz gettext-dev python-dev"
install
=
""
subpackages
=
"
$pkgname
-dev
$pkgname
-doc
$pkgname
-lang py-rpm:py_rpm"
source
=
"http://rpm.org/releases/rpm-4.10.x/rpm-
$pkgver
.tar.bz2
rpm-uclibc.patch"
_builddir
=
"
$srcdir
"
/rpm-
$pkgver
prepare
()
{
local
i
cd
"
$_builddir
"
for
i
in
$source
;
do
case
$i
in
*
.patch
)
msg
$i
;
patch
-p1
-i
"
$srcdir
"
/
$i
||
return
1
;;
esac
done
}
build
()
{
cd
"
$_builddir
"
_EXT_CPPFLAGS
=
"-I/usr/include/nspr -I/usr/include/nss"
\
CFLAGS
=
"
$CFLAGS
$_EXT_CPPFLAGS
"
CPPFLAGS
=
"
$CPPFLAGS
$_EXT_CPPFLAGS
"
\
LIBS
=
"
$LIBS
-lintl"
\
./configure
--prefix
=
/usr
\
--sysconfdir
=
/etc
\
--mandir
=
/usr/share/man
\
--infodir
=
/usr/share/info
\
--localstatedir
=
/var
\
--with-external-db
\
--with-cap
--with-acl
\
--enable-python
\
||
return
1
make
||
return
1
}
package
()
{
cd
"
$_builddir
"
make
DESTDIR
=
"
$pkgdir
"
install
||
return
1
rm
"
$pkgdir
"
/usr/lib/
*
.la
"
$pkgdir
"
/usr/lib/rpm-plugins/
*
.la
}
py_rpm
()
{
mkdir
-p
"
$subpkgdir
"
/usr/lib
mv
"
$pkgdir
"
/usr/lib/python
*
"
$subpkgdir
"
/usr/lib
||
return
1
for
dir
in
"
$subpkgdir
"
/usr/lib/python
*
;
do
rm
"
$dir
"
/site-packages/rpm/
*
.la
done
}
md5sums
=
"a644aea351c9b3889bbaded5d6a377c9 rpm-4.10.2.tar.bz2
5b52ad780c3ec753d1124d6d53697612 rpm-uclibc.patch"
testing/rpm/rpm-uclibc.patch
0 → 100644
View file @
70da3b60
--- rpm-4.10.2.orig/misc/fts.c
+++ rpm-4.10.2/misc/fts.c
@@ -42,6 +42,11 @@
#include <string.h>
#include <unistd.h>
#else
+#include "system.h"
+#include <stdlib.h>
+#include <string.h>
+#include <errno.h>
+#include "misc/fts.h"
#if defined(hpux)
# define _INCLUDE_POSIX_SOURCE
# define __errno_location() (&errno)
@@ -61,11 +66,10 @@
# define _STAT_VER 0
# define __fxstat64(_stat_ver, _fd, _sbp) fstat64((_fd), (_sbp))
#endif
-#include "system.h"
-#include <stdlib.h>
-#include <string.h>
-#include <errno.h>
-#include "misc/fts.h"
+#if defined(__UCLIBC__)
+# define _STAT_VER 0
+# define __fxstat64(_stat_ver, _fd, _sbp) fstat64((_fd), (_sbp))
+#endif
# define __set_errno(val) (*__errno_location ()) = (val)
# define __open open
# define __close close
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment