Drop the catgets library and facility from packages being offered. msys2-runtime 2.10 now has it's own facility and indicate that msys2-runtime replaces catgets

Todo: figure out what to do about the "man" package as that package depends upon the catgets library and will to link with catgets.  I would suggest replacing "man" with "man-db" for consistanstancy with Cygwin and Archlinux.
This commit is contained in:
JPeterMugaas
2018-02-08 15:48:07 -05:00
parent f781b020f9
commit ee00ecc6aa
5 changed files with 4 additions and 213 deletions

View File

@@ -1,58 +0,0 @@
# Maintainer: Alexey Pavlov <alexpux@gmail.com>
pkgname=('catgets' 'libcatgets' 'libcatgets-devel')
pkgver=1.1
pkgrel=2
pkgdesc="catgets message catalog API"
groups=('base')
arch=('i686' 'x86_64')
license=('custom')
url="https://www.gnu.org/software/libc/"
makedepends=('libiconv-devel' 'gettext-devel')
source=(catgets-${pkgver}.tar.bz2
catgets-1.1-2.src.patch
catgets-1.1-msys2.patch)
sha256sums=('d957740de9a1582798f4cc227bd983baef2167da6da281a9d678c019156c1158'
'ffb78a4012cee2aff07e2010a75768c4faf96d7b1023b4c835a2f060b420d1bc'
'ce7d5551ef03edda4665ea867783f82b39761d6017705db538bc025e35602516')
prepare() {
cd "$srcdir/$pkgname-$pkgver"
patch -p2 -i $srcdir/catgets-1.1-2.src.patch
patch -p1 -i $srcdir/catgets-1.1-msys2.patch
}
build() {
cd "$srcdir/$pkgname-$pkgver"
make CC=gcc CCLD=gcc AR=ar OSTYPE=msys
make DESTDIR=${srcdir}/dest install
}
package_catgets() {
depends=('libiconv' 'libintl' 'libcatgets')
mkdir -p ${pkgdir}/usr/bin
cp -f ${srcdir}/dest/usr/bin/gencat.exe ${pkgdir}/usr/bin/
}
package_libcatgets() {
pkgesc="message catalog API library"
groups=('libraries')
depends=('gcc-libs')
mkdir -p ${pkgdir}/usr/bin
cp -f ${srcdir}/dest/usr/bin/*.dll ${pkgdir}/usr/bin/
}
package_libcatgets-devel() {
pkgdesc="Libcatgets headers and libraries"
groups=('development')
depends=("libcatgets=${pkgver}")
options=('staticlibs')
mkdir -p ${pkgdir}/usr/{include,lib}
cp -rf ${srcdir}/dest/usr/include ${pkgdir}/usr/
cp -rf ${srcdir}/dest/usr/lib ${pkgdir}/usr/
}

View File

@@ -1,106 +0,0 @@
--- origsrc/catgets-1.1/Makefile 2011-01-25 12:12:26.000000000 +0100
+++ src/catgets-1.1/Makefile 2013-03-06 15:34:28.259254315 +0100
@@ -2,11 +2,23 @@ SRCDIR=.
SUBDIRS = util test
+OSTYPE = $(shell echo $$OSTYPE)
+
+ifeq ($(OSTYPE),cygwin)
+ EXEEXT=.exe
+ ICONV_LIBOPT = -liconv
+ INTL_LIBOPT = -lintl
+else
+ EXEEXT=
+ ICONV_LIBOPT =
+ INTL_LIBOPT =
+endif
+
.PHONY: all
ifeq ($(OSTYPE),cygwin)
-all: libcatgets.a cygcatgets1.dll gencat
+all: libcatgets.a cygcatgets1.dll gencat$(EXEEXT)
else
-all: libcatgets.a libcatgets.so.1.0 gencat
+all: libcatgets.a libcatgets.so.1.0 gencat$(EXEEXT)
endif
# Though we have an infrastructure to work on other architectures, we
@@ -16,16 +28,6 @@ INCLUDES = -I bits/i386 -I util/include
SHELL = bash
-OSTYPE = $(shell echo $$OSTYPE)
-
-ifeq ($(OSTYPE),cygwin)
- ICONV_LIBOPT = -liconv
- INTL_LIBOPT = -lintl
-else
- ICONV_LIBOPT =
- INTL_LIBOPT =
-endif
-
OBJS = catgets.o open_catalog.o gencat.o
include $(SRCDIR)/Makefile.common
@@ -34,7 +36,7 @@ CATGETS_OBJS = catgets.o open_catalog.o
libcatgets.a: $(CATGETS_OBJS)
rm --force $@
- ar rc $@ $(CATGETS_OBJS)
+ $(AR) rc $@ $(CATGETS_OBJS)
ifeq ($(OSTYPE),cygwin)
cygcatgets1.dll: $(CATGETS_OBJS)
@@ -54,7 +56,7 @@ GENCAT_OBJS = \
util/argp/argp.o \
util/strchrnul.o
-gencat:%:%.o $(GENCAT_OBJS)
+gencat$(EXEEXT): $(GENCAT_OBJS)
$(CCLD) -g -o $@ $^ -L. -lcatgets $(ICONV_LIBOPT) $(INTL_LIBOPT) $(LADD)
util/%.o:
@@ -63,7 +65,7 @@ util/%.o:
include Makefile.depend
local-clean:
- rm --force gencat
+ rm --force gencat$(EXEEXT)
ifeq ($(OSTYPE),cygwin)
install-so:
@@ -79,9 +81,9 @@ install-so:
cd $(DESTDIR)/usr/lib/ && ln -s libcatgets.so.1.0 libcatgets.so
endif
-install: gencat nl_types.h libcatgets.a install-so
+install: gencat$(EXEEXT) nl_types.h libcatgets.a install-so
mkdir -p $(DESTDIR)/usr/bin
- install -s -m 755 gencat $(DESTDIR)/usr/bin/
+ install -s -m 755 gencat$(EXEEXT) $(DESTDIR)/usr/bin/
mkdir -p $(DESTDIR)/usr/include
install -m 644 nl_types.h $(DESTDIR)/usr/include/
mkdir -p $(DESTDIR)/usr/lib
--- origsrc/catgets-1.1/Makefile.common 2011-01-25 11:29:02.000000000 +0100
+++ src/catgets-1.1/Makefile.common 2013-03-06 11:23:26.071747184 +0100
@@ -1,5 +1,6 @@
CC = gcc
CCLD = gcc
+AR = ar
WARNING = -Wall -Wno-unused-parameter -Wimplicit -Wwrite-strings
WARNING2 = -W -Wunreachable-code -Winline -Wunused-parameter \
--- origsrc/catgets-1.1/util/argp/argp-parse.c 2005-05-28 02:54:49.000000000 +0200
+++ src/catgets-1.1/util/argp/argp-parse.c 2013-03-06 12:47:39.141372103 +0100
@@ -45,8 +45,10 @@ char *alloca ();
#include "catgets/getopt_int.h"
+#ifndef __CYGWIN__
const char * program_invocation_name = "???";
const char * program_invocation_short_name = "???";
+#endif
#ifndef _
/* This is for other GNU distributions with internationalized messages.

View File

@@ -1,46 +0,0 @@
diff -Naur catgets-1.1-orig/Makefile catgets-1.1/Makefile
--- catgets-1.1-orig/Makefile 2013-05-01 19:04:15.486328100 +0000
+++ catgets-1.1/Makefile 2013-05-01 19:03:04.533203100 +0000
@@ -8,6 +8,10 @@
EXEEXT=.exe
ICONV_LIBOPT = -liconv
INTL_LIBOPT = -lintl
+else ifeq ($(OSTYPE),msys)
+ EXEEXT=.exe
+ ICONV_LIBOPT = -liconv
+ INTL_LIBOPT = -lintl
else
EXEEXT=
ICONV_LIBOPT =
@@ -17,6 +21,8 @@
.PHONY: all
ifeq ($(OSTYPE),cygwin)
all: libcatgets.a cygcatgets1.dll gencat$(EXEEXT)
+else ifeq ($(OSTYPE),msys)
+all: libcatgets.a msys-catgets1.dll gencat$(EXEEXT)
else
all: libcatgets.a libcatgets.so.1.0 gencat$(EXEEXT)
endif
@@ -41,6 +47,9 @@
ifeq ($(OSTYPE),cygwin)
cygcatgets1.dll: $(CATGETS_OBJS)
$(CCLD) -shared $(CATGETS_OBJS) -o $@ -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker libcatgets.dll.a
+else ifeq ($(OSTYPE),msys)
+msys-catgets1.dll: $(CATGETS_OBJS)
+ $(CCLD) -shared $(CATGETS_OBJS) -o $@ -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker libcatgets.dll.a
else
libcatgets.so.1.0: $(CATGETS_OBJS)
$(CCLD) -shared -o $@ -Wl,-soname,libcatgets.so.1 -lc $(CATGETS_OBJS)
@@ -73,6 +82,12 @@
install -s -m 755 cygcatgets1.dll $(DESTDIR)/usr/bin/
mkdir -p $(DESTDIR)/usr/lib
install -m 644 libcatgets.dll.a $(DESTDIR)/usr/lib/
+else ifeq ($(OSTYPE),msys)
+install-so:
+ mkdir -p $(DESTDIR)/usr/bin
+ install -s -m 755 msys-catgets1.dll $(DESTDIR)/usr/bin/
+ mkdir -p $(DESTDIR)/usr/lib
+ install -m 644 libcatgets.dll.a $(DESTDIR)/usr/lib/
else
install-so:
mkdir -p $(DESTDIR)/usr/lib

Binary file not shown.

View File

@@ -4,7 +4,7 @@
pkgbase=msys2-runtime
pkgname=('msys2-runtime' 'msys2-runtime-devel')
pkgver=2.10.0
pkgrel=1
pkgrel=3
pkgdesc="Cygwin POSIX emulation engine"
arch=('i686' 'x86_64')
url="https://www.cygwin.com/"
@@ -21,6 +21,7 @@ makedepends=('cocom'
'gettext-devel'
'libiconv-devel'
'diffutils')
replaces=('catgets')
# options=('debug' '!strip')
source=('msys2-runtime'::git://sourceware.org/git/newlib-cygwin.git#tag=cygwin-${pkgver//./_}-release
0001-Add-MSYS-triplets.patch
@@ -166,8 +167,8 @@ package_msys2-runtime() {
pkgdesc="Posix emulation engine for Windows"
groups=('base')
options=('!strip')
conflicts=('catgets')
replaces=('libcatgets')
conflicts=('catgets' 'libcatgets')
replaces=('catgets' 'libcatgets')
#install=msys2-runtime.install
mkdir -p "${pkgdir}"/usr