1) added autoconf for popt directory to make archive

2) version 2.4.103

CVS patchset: 2006
CVS date: 1998/02/17 16:46:13
This commit is contained in:
ewt 1998-02-17 16:46:13 +00:00
parent 7388abf88b
commit 597927f2db
11 changed files with 45 additions and 18 deletions

View File

@ -1,4 +1,7 @@
2.4.100 -> 2.4.102:
2.4.102 -> 2.4.103:
- need to create popt/configure during make archive
2.4.101 -> 2.4.102:
- fixed spelling of "instchangelog" in lib-rpmrc.in
- fixed memory leak in headerSprintf() extension cache
- fixed memory allocation for header formatting extension cache
@ -14,6 +17,10 @@
are not net shared
- changed --setugids to use separate chown and chgrp programs, for
better portability
- popt moved to autoconf
- Makefiles changed to allow building in a different directory then
the source code resides in
- finally fixed the Build Host spacing in rpmpopt
2.4.100 -> 2.4.101:
- handle files with spaces (put double quotes around them)

View File

@ -191,6 +191,8 @@ archive:
@rm /tmp/rpm-$(VERSION)/popt/popt.spec
@cd /tmp/rpm-$(VERSION); \
autoconf
@cd /tmp/rpm-$(VERSION)/popt; \
autoconf
@cd /tmp; tar czSpf rpm-$(VERSION).tar.gz rpm-$(VERSION)
@rm -rf /tmp/rpm-$(VERSION)
@cp /tmp/rpm-$(VERSION).tar.gz .

View File

@ -16,6 +16,6 @@ CFLAGS = @CFLAGS@ @INCPATH@ $(WARNINGS) $(OPTS) -I$(topdir) -I$(topsrcdir)\
-I$(topsrcdir)/lib -I$(topsrcdir)/misc -Wall -Wstrict-prototypes
LDFLAGS = @LDFLAGS@ -L$(topdir)/lib -L$(topdir)/build -L$(topdir)/misc \
-L$(topdir)/popt
VERSION = 2.4.102
VERSION = 2.4.103
CC = @CC@

View File

@ -19,11 +19,11 @@ These are the things you'll have to do to install this package.
* cd <your-build-directory>
* tar -xzvf rpm-2.2.9-src.tar.gz
* cd rpm-2.2.9
* configure --prefix=/ade
* configure --prefix=/gg
* make
* make install
Now it's time to edit the file "ade:lib/rpmrc" to correspond to your
Now it's time to edit the file "gg:lib/rpmrc" to correspond to your
system setup. Change the following entry:
* topdir: /place/to/store/RPM/packages
Make sure <tmppath> points to a _harddisk_ directory (the ram disk doesn't
@ -42,8 +42,8 @@ Now create the following directories in <topdir>:
* SRPMS
* SPECS
Create the "rpm" directory in "ade:lib".
makedir ade:lib/rpm
Create the "rpm" directory in "gg:lib".
makedir gg:lib/rpm
Now it's time to initialise the rpm database with:
rpm --initdb

View File

@ -7,12 +7,14 @@ WARNINGS = -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes
SOURCES = $(addprefix $(srcdir)/,$(subst .o,.c,$(LIBOBJECTS)))
LIBPOPT = libpopt.a
LIBS=/usr/lib
INCLUDE=/usr/include
prefix=@prefix@
LIBS=$(prefix)/lib
INCLUDE=$(prefix)/include
# -----------------------------------------------------------------------
CFLAGS = @CFLAGS@ $(WARNINGS) $(OPTS)
CFLAGS = @CFLAGS@ @DEFS@ $(WARNINGS) $(OPTS)
ifeq ($(RANLIB),)
RANLIB=ranlib
@ -28,6 +30,7 @@ $(LIBPOPT): $(LIBPOPT)($(LIBOBJECTS))
$(RANLIB) $@
distclean: clean
rm -f Makefile config.h config.cache config.status config.log
clean:
rm -f *.a *.o *~ $(PROGS) test.out tagtable.c

View File

@ -3,6 +3,8 @@ AC_INIT(popt.h)
AC_PROG_CC
AC_GCC_TRADITIONAL
AC_CHECK_HEADER(unistd.h)
AC_CHECK_FUNCS(mmap)
AC_CHECK_FUNCS(strerror)
AC_OUTPUT(Makefile)

View File

@ -24,7 +24,7 @@ struct poptContext_s {
char ** leftovers;
int numLeftovers;
int nextLeftover;
struct poptOption * options;
const struct poptOption * options;
int restLeftover;
char * appName;
struct poptAlias * aliases;
@ -32,8 +32,20 @@ struct poptContext_s {
int flags;
};
#ifndef HAVE_STRERROR
static char * strerror(int errno) {
extern int sys_nerr;
extern char * sys_errlist[];
if ((0 <= errno) && (errno < sys_nerr))
return sys_errlist[errno];
else
return "unknown errno";
}
#endif
poptContext poptGetContext(char * name ,int argc, char ** argv,
struct poptOption * options, int flags) {
const struct poptOption * options, int flags) {
poptContext con = malloc(sizeof(*con));
con->os = con->optionStack;
@ -84,7 +96,7 @@ int poptGetNextOpt(poptContext con) {
char * origOptString;
long aLong;
char * end;
struct poptOption * opt = NULL;
const struct poptOption * opt = NULL;
int done = 0;
int i;

View File

@ -38,7 +38,7 @@ struct poptAlias {
typedef struct poptContext_s * poptContext;
poptContext poptGetContext(char * name, int argc, char ** argv,
struct poptOption * options, int flags);
const struct poptOption * options, int flags);
void poptResetContext(poptContext con);
/* returns 'val' element, -1 on last item, POPT_ERROR_* on error */

View File

@ -1,10 +1,11 @@
Summary: C library for parsing command line parameters
Name: popt
Version: 1.0
%define version 1.1
Version: %{version}
Release: 1
Copyright: LGPL
Group: Utilities/System
Source: ftp://ftp.redhat.com/pub/redhat/code/popt/popt-1.0.tar.gz
Source: ftp://ftp.redhat.com/pub/redhat/code/popt/popt-%{version}.tar.gz
BuildRoot: /var/tmp/popt.root
%description
@ -17,7 +18,7 @@ files and includes utility functions for parsing arbitrary strings into
argv[] arrays using shell-like rules.
%prep
%setup -n popt
%setup
%build
make CFLAGS="$RPM_OPT_FLAGS"

View File

@ -1,6 +1,6 @@
Summary: Red Hat Package Manager
Name: rpm
%define version 2.4.99
%define version 2.4.103
Version: %{version}
Release: 1
Group: Utilities/System

View File

@ -35,7 +35,7 @@ rpm alias -R --requires
rpm alias --info --qf 'Name : %-27{NAME} Distribution: %{DISTRIBUTION}\n\
Version : %-27{VERSION} Vendor: %{VENDOR}\n\
Release : %-27{RELEASE} Build Date: %{BUILDTIME:date}\n\
Install date: %|INSTALLTIME?{%-27{INSTALLTIME:date}}:{(not installed) }| Build Host: %{BUILDHOST}\n\
Install date: %|INSTALLTIME?{%-27{INSTALLTIME:date}}:{(not installed) }| Build Host: %{BUILDHOST}\n\
Group : %-27{GROUP} Source RPM: %{SOURCERPM}\n\
Size : %{SIZE}\n\
%|PACKAGER?{Packager : %{PACKAGER}\n}|\