community/portablexdr: drop package

use libtirpc for XDR functions instead, which is actively maintained
This commit is contained in:
Ariadne Conill 2024-09-08 15:39:20 -07:00
parent d3e40a9f82
commit 094e7d2696
4 changed files with 0 additions and 148 deletions

View File

@ -1,50 +0,0 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=portablexdr
pkgver=4.9.1
pkgrel=2
pkgdesc="external data representation (XDR) library"
url="https://people.redhat.com/~rjones/portablexdr/"
arch="all"
license="GPL-2.0-or-later"
makedepends="libtool"
subpackages="$pkgname-dev $pkgname-rpcgen"
source="https://people.redhat.com/~rjones/portablexdr/files/portablexdr-$pkgver.tar.gz
portablexdr-4.9.1-no-config-h.patch
portablexdr-build-use-intptr_t-and-uintptr_t-to-cast-ptr-to-int.patch
quad-types.patch
"
prepare() {
default_prepare
update_config_guess
update_config_sub
}
build() {
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var
make
}
package() {
make DESTDIR="$pkgdir" install
ln -s portable-rpcgen "$pkgdir"/usr/bin/rpcgen
}
rpcgen() {
pkgdesc="Portable rpcgen"
mkdir -p "$subpkgdir"/usr
mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}
sha512sums="
47f2402e7ed9f2f518e2a45e76e8ad6c4b1e7ae1bd9408ca4dca3d0883697e755460ee64eef405e23b1840ad3b89ad54555bdf59dc8bae3cd8b67086d6ab3b1f portablexdr-4.9.1.tar.gz
4d7dd2c6a40438ca9df8da93dad91295802ddd0cf51f4c2710a0213c34255f119a1c397c8aee9ffb6499baba2c3a39ce2f7ef5a46a2ce87cd8e881f8ab41d1c2 portablexdr-4.9.1-no-config-h.patch
f650a12897256a7194ec125dcac008b4a75b1907bfddcc34c4d23f40f93718072c9958b9eca7afeb1e356a64b5189d71077f765b5592b847d3473b2ee346ae8f portablexdr-build-use-intptr_t-and-uintptr_t-to-cast-ptr-to-int.patch
8057db443cdb956945a40c2cf9d1f4d59086bd8affc819e36be146c50a7109bf18bd47e1ff69979d1e9187413d37836426b02cec6761987cf1c3483f6ed1f911 quad-types.patch
"

View File

@ -1,6 +0,0 @@
--- portablexdr-4.9.1/rpc/rpc.h.old 2011-07-05 14:36:57.938389205 +0100
+++ portablexdr-4.9.1/rpc/rpc.h 2011-07-05 14:37:04.213519063 +0100
@@ -1,3 +1,2 @@
-#include "config.h"
#include <rpc/types.h>
#include <rpc/xdr.h>

View File

@ -1,79 +0,0 @@
From a7461e1430fcc26b02457f7b8f53dc423c062e1e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= <marcandre.lureau@redhat.com>
Date: Mon, 23 Jan 2012 19:31:10 +0100
Subject: [PATCH] build: use intptr_t and uintptr_t to cast ptr to int
---
xdr_mem.c | 2 +-
xdr_rec.c | 16 ++++++++--------
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/xdr_mem.c b/xdr_mem.c
index 701cad2..f8a2d3a 100644
--- a/xdr_mem.c
+++ b/xdr_mem.c
@@ -169,7 +169,7 @@ xdrmem_setpos(xdrs, pos)
register caddr_t newaddr = xdrs->x_base + pos;
register caddr_t lastaddr = xdrs->x_private + xdrs->x_handy;
- if ((long)newaddr > (long)lastaddr)
+ if ((intptr_t)newaddr > (intptr_t)lastaddr)
return (FALSE);
xdrs->x_private = newaddr;
xdrs->x_handy = lastaddr - newaddr;
diff --git a/xdr_rec.c b/xdr_rec.c
index 6859c42..a0d34c6 100644
--- a/xdr_rec.c
+++ b/xdr_rec.c
@@ -173,7 +173,7 @@ xdrrec_create(xdrs, sendsize, recvsize, tcp_handle, readit, writeit)
return;
}
for (rstrm->out_base = rstrm->the_buffer;
- (long) rstrm->out_base % BYTES_PER_XDR_UNIT != 0;
+ (intptr_t) rstrm->out_base % BYTES_PER_XDR_UNIT != 0;
rstrm->out_base++);
rstrm->in_base = rstrm->out_base + sendsize;
/*
@@ -472,12 +472,12 @@ xdrrec_endofrecord(xdrs, sendnow)
register u_long len; /* fragment length */
if (sendnow || rstrm->frag_sent ||
- ((u_long)rstrm->out_finger + sizeof(u_long) >=
- (u_long)rstrm->out_boundry)) {
+ ((uintptr_t)rstrm->out_finger + sizeof(u_long) >=
+ (uintptr_t)rstrm->out_boundry)) {
rstrm->frag_sent = FALSE;
return (flush_out(rstrm, TRUE));
}
- len = (u_long)(rstrm->out_finger) - (u_long)(rstrm->frag_header) -
+ len = (uintptr_t)(rstrm->out_finger) - (uintptr_t)(rstrm->frag_header) -
sizeof(u_long);
*(rstrm->frag_header) = htonl((u_long)len | LAST_FRAG);
rstrm->frag_header = (u_long *)rstrm->out_finger;
@@ -495,11 +495,11 @@ flush_out(rstrm, eor)
bool_t eor;
{
register u_long eormask = (eor == TRUE) ? LAST_FRAG : 0;
- register u_long len = (u_long)(rstrm->out_finger) -
- (u_long)(rstrm->frag_header) - sizeof(u_long);
+ register u_long len = (uintptr_t)(rstrm->out_finger) -
+ (uintptr_t)(rstrm->frag_header) - sizeof(u_long);
*(rstrm->frag_header) = htonl(len | eormask);
- len = (u_long)(rstrm->out_finger) - (u_long)(rstrm->out_base);
+ len = (uintptr_t)(rstrm->out_finger) - (uintptr_t)(rstrm->out_base);
if ((*(rstrm->writeit))(rstrm->tcp_handle, rstrm->out_base, (int)len)
!= (int)len)
return (FALSE);
@@ -517,7 +517,7 @@ fill_input_buf(rstrm)
register int len;
where = rstrm->in_base;
- i = (long) rstrm->in_boundry % BYTES_PER_XDR_UNIT;
+ i = (intptr_t) rstrm->in_boundry % BYTES_PER_XDR_UNIT;
where += i;
len = rstrm->in_size - i;
if ((len = (*(rstrm->readit))(rstrm->tcp_handle, where, len)) == -1)
--
1.7.7.5

View File

@ -1,13 +0,0 @@
--- ./rpc/types.h.orig
+++ ./rpc/types.h
@@ -41,8 +41,8 @@
typedef uint16_t u_short;
typedef uint32_t u_int;
typedef unsigned long u_long;
-typedef uint64_t u_quad_t;
-typedef int64_t quad_t;
+//typedef uint64_t u_quad_t;
+//typedef int64_t quad_t;
typedef char * caddr_t;
#ifndef TRUE