openpkg/rpm.patch

Thu, 04 Oct 2012 20:30:05 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 04 Oct 2012 20:30:05 +0200
changeset 715
c10fb90893b9
parent 431
127559aa0c5e
permissions
-rw-r--r--

Correct out of date build configuration, porting to Solaris 11 network
link infrastructure and new libpcap logic. This additionally allows for
device drivers in subdirectories of /dev. Correct packaged nmap
personalities and signatures to work out of the box. Finally, hack
arpd logic to properly close sockets and quit on TERM by repeating
signaling in the run command script. Sadly, all this fails to correct
the run time behaviour of honeyd which fails to bind to the IP layer.

michael@428 1 Index: Makefile.in
michael@428 2 --- Makefile.in.orig 2009-04-13 17:50:53 +0200
michael@428 3 +++ Makefile.in 2009-04-13 17:55:37 +0200
michael@428 4 @@ -502,7 +502,7 @@
michael@428 5 @WITH_PCRE_SUBDIR@ @WITH_LUA_SUBDIR@ @WITH_FILE_SUBDIR@ \
michael@428 6 @WITH_SYCK_SUBDIR@ @WITH_XAR_SUBDIR@ @WITH_XZ_SUBDIR@ misc \
michael@428 7 rpmio rpmdb lib build rpmconstant @WITH_PYTHON_SUBDIR@ \
michael@428 8 - @WITH_PERL_SUBDIR@ tools scripts tests doc .
michael@428 9 + @WITH_PERL_SUBDIR@ tools scripts doc .
michael@428 10 AM_CPPFLAGS = \
michael@428 11 -I$(srcdir) \
michael@428 12 -I$(top_srcdir) \
michael@428 13 Index: configure
michael@428 14 --- configure.orig 2009-04-13 17:50:56 +0200
michael@428 15 +++ configure 2009-04-13 17:55:37 +0200
michael@428 16 @@ -45970,7 +45970,7 @@
michael@428 17 fi
michael@428 18
michael@428 19 case "$host" in
michael@428 20 - *-*-linux* ) USE_LUA_SHADOW=yes; USE_LUA_CHKCONFIG=yes; ;;
michael@428 21 + *-*-linux* ) USE_LUA_SHADOW=no; USE_LUA_CHKCONFIG=no; ;;
michael@428 22 esac
michael@428 23
michael@428 24 cat >>confdefs.h <<\_ACEOF
michael@428 25 Index: macros.in
michael@428 26 --- macros.in.orig 2009-04-12 21:46:09 +0200
michael@428 27 +++ macros.in 2009-04-13 17:55:37 +0200
michael@428 28 @@ -692,8 +692,8 @@
michael@428 29
michael@428 30 # database tag configuration
michael@428 31 %_dbi_tags %{expand:%%{_dbi_tags_%{_dbapi_used}}}
michael@428 32 -%_dbi_tags_3 Packages:Name:Basenames:Group:Providename:Requirename:Conflictname:Obsoletename:Triggername:Dirnames:Requireversion:Provideversion:Installtid:Sigmd5:Sha1header:Filedigests:Pubkeys:Packagecolor:Nvra:Sourcepkgid:Filepaths
michael@428 33 -%_dbi_tags_4 Packages:Name:Basenames:Group:Providename:Requirename:Conflictname:Obsoletename:Triggername:Dirnames:Requireversion:Provideversion:Installtid:Sigmd5:Sha1header:Filedigests:Pubkeys:Packagecolor:Nvra:Sourcepkgid:Filepaths
michael@428 34 +%_dbi_tags_3 Packages:Name:Basenames:Group:Providename:Requirename:Conflictname:Obsoletename:Triggername:Dirnames:Requireversion:Provideversion:Installtid:Sigmd5:Sha1header:Filedigests:Pubkeys:Packagecolor:Nvra:Sourcepkgid:Filepaths:BuildEnvironment
michael@428 35 +%_dbi_tags_4 Packages:Name:Basenames:Group:Providename:Requirename:Conflictname:Obsoletename:Triggername:Dirnames:Requireversion:Provideversion:Installtid:Sigmd5:Sha1header:Filedigests:Pubkeys:Packagecolor:Nvra:Sourcepkgid:Filepaths:BuildEnvironment
michael@428 36
michael@428 37 # database configuration: Berkeley-DB [dbapi 3 hooks]
michael@428 38 %_dbi_config_3 %{_dbi_btconfig}
michael@428 39 @@ -720,6 +720,7 @@
michael@428 40 %_dbi_config_3_Triggername %{_dbi_btconfig}
michael@428 41 %_dbi_config_3_Packages %{_dbi_btconfig} lockdbfd
michael@428 42 %_dbi_config_3_Depends %{_dbi_btconfig} temporary private
michael@428 43 +%_dbi_config_3_BuildEnvironment %{_dbi_btconfig}
michael@428 44
michael@428 45 # database configuration: SQLite [dbapi 4 hooks]
michael@428 46 %_dbi_config_4 %{_dbi_sqlconfig}
michael@428 47 @@ -746,6 +747,7 @@
michael@428 48 %_dbi_config_4_Triggername %{_dbi_sqlconfig}
michael@428 49 %_dbi_config_4_Packages %{_dbi_sqlconfig}
michael@428 50 %_dbi_config_4_Depends %{_dbi_sqlconfig} temporary private
michael@428 51 +%_dbi_config_4_BuildEnvironment %{_dbi_sqlconfig}
michael@428 52
michael@428 53 # database configuration [code entry hooks]
michael@428 54 %_dbi_config %{expand:%%{_dbi_config_%{_dbapi_used}}}
michael@428 55 @@ -772,6 +774,7 @@
michael@428 56 %_dbi_config_Nvra %{expand:%%{_dbi_config_%{_dbapi_used}_Nvra}}
michael@428 57 %_dbi_config_Sourcepkgid %{expand:%%{_dbi_config_%{_dbapi_used}_Sourcepkgid}}
michael@428 58 %_dbi_config_Filepaths %{expand:%%{_dbi_config_%{_dbapi_used}_Filepaths}}
michael@428 59 +%_dbi_config_BuildEnvironment %{expand:%%{_dbi_config_%{_dbapi_used}_BuildEnvironment}}
michael@428 60
michael@428 61 # Database API configuration:
michael@428 62 #
michael@428 63 @@ -1404,11 +1407,11 @@
michael@428 64 %_build_cpu %{_host_cpu}
michael@428 65 %_build_vendor %{_host_vendor}
michael@428 66 %_build_os %{_host_os}
michael@428 67 -%_host @host@
michael@428 68 -%_host_alias @host_alias@%{nil}
michael@428 69 -%_host_cpu @host_cpu@
michael@428 70 -%_host_vendor @host_vendor@
michael@428 71 -%_host_os @host_os@
michael@428 72 +#%_host @host@
michael@428 73 +#%_host_alias @host_alias@%{nil}
michael@428 74 +#%_host_cpu @host_cpu@
michael@428 75 +#%_host_vendor @host_vendor@
michael@428 76 +#%_host_os @host_os@
michael@428 77 %_target %{_host}
michael@428 78 %_target_alias %{_host_alias}
michael@428 79 %_target_cpu %{_host_cpu}
michael@428 80 Index: rpmqv.c
michael@428 81 --- rpmqv.c.orig 2009-04-12 21:46:09 +0200
michael@428 82 +++ rpmqv.c 2009-04-13 17:55:37 +0200
michael@428 83 @@ -1,6 +1,9 @@
michael@428 84 #include "system.h"
michael@428 85 extern const char *__progname;
michael@428 86
michael@428 87 +#define RPM_INTEGRITY_FP "0000000000000000000000000000000000000000"
michael@428 88 +#define RPM_INTEGRITY_MV "0.0.0"
michael@428 89 +
michael@428 90 /* Copyright (C) 1998-2002 - Red Hat, Inc. */
michael@428 91
michael@428 92 #define _AUTOHELP
michael@428 93 Index: tools/Makefile.in
michael@428 94 --- tools/Makefile.in.orig 2009-04-13 17:50:53 +0200
michael@428 95 +++ tools/Makefile.in 2009-04-13 17:55:37 +0200
michael@428 96 @@ -35,9 +35,8 @@
michael@428 97 host_triplet = @host@
michael@428 98 target_triplet = @target@
michael@428 99 EXTRA_PROGRAMS = debugedit$(EXEEXT) rpmkey$(EXEEXT) txar$(EXEEXT)
michael@428 100 -bin_PROGRAMS = rpm2cpio$(EXEEXT) rpmcache$(EXEEXT) rpmdigest$(EXEEXT) \
michael@428 101 - rpmgrep$(EXEEXT) rpmmtree$(EXEEXT) rpmrepo$(EXEEXT) \
michael@428 102 - rpmspecdump$(EXEEXT) rpmwget$(EXEEXT)
michael@428 103 +bin_PROGRAMS = rpm2cpio$(EXEEXT) rpmcache$(EXEEXT) rpmgrep$(EXEEXT)
michael@428 104 +
michael@428 105 pkglib_PROGRAMS = rpmcmp$(EXEEXT) rpmdeps$(EXEEXT) \
michael@428 106 @WITH_LIBELF_DEBUGEDIT@ $(am__EXEEXT_1)
michael@428 107 @WITH_DB_INTERNAL_TRUE@@WITH_DB_TOOLS_INTEGRATED_TRUE@am__append_1 = db_tool
michael@428 108 Index: rpmio/rpmlua.c
michael@428 109 --- rpmio/rpmlua.c 18 Apr 2009 16:45:17 -0000 2.52.2.10
michael@428 110 +++ rpmio/rpmlua.c 6 May 2009 19:40:54 -0000
michael@428 111 @@ -1147,7 +1147,7 @@
michael@428 112 if ((hbn = gethostbyname(hostname)) != NULL)
michael@428 113 h = hbn->h_name;
michael@428 114 else
michael@428 115 - h = "localhost";
michael@428 116 + h = hostname;
michael@428 117 /*@=multithreaded@*/
michael@428 118 lua_pushstring(L, (const char *)h);
michael@428 119 return 1;
michael@428 120 Index: lib/rpmfc.c
michael@428 121 --- lib/rpmfc.c 6 Apr 2009 00:21:21 -0000 1.64
michael@428 122 +++ lib/rpmfc.c 11 Apr 2009 14:17:58 -0000 1.65
michael@431 123 @@ -1834,7 +1834,7 @@
michael@428 124 /*@=mustmod@*/
michael@428 125
michael@428 126 /*@unchecked@*/ /*@only@*/ /*@null@*/
michael@428 127 -rpmioPool _rpmfcPool;
michael@428 128 +rpmioPool _rpmfcPool = NULL;
michael@428 129
michael@428 130 static rpmfc rpmfcGetPool(/*@null@*/ rpmioPool pool)
michael@428 131 /*@globals _rpmfcPool, fileSystem, internalState @*/
michael@428 132 Index: rpmio/rpmmg.c
michael@428 133 --- rpmio/rpmmg.c 25 Mar 2009 20:26:47 -0000 2.10
michael@428 134 +++ rpmio/rpmmg.c 11 Apr 2009 14:17:58 -0000 2.11
michael@431 135 @@ -36,7 +36,7 @@
michael@428 136 /*@=mustmod@*/
michael@428 137
michael@428 138 /*@unchecked@*/ /*@only@*/ /*@null@*/
michael@428 139 -rpmioPool _rpmmgPool;
michael@428 140 +rpmioPool _rpmmgPool = NULL;
michael@428 141
michael@428 142 static rpmmg rpmmgGetPool(/*@null@*/ rpmioPool pool)
michael@428 143 /*@globals _rpmmgPool, fileSystem @*/
michael@428 144 Index: rpmio/glob.c
michael@428 145 --- rpmio/glob.c.orig 2009-03-06 23:53:52 +0100
michael@428 146 +++ rpmio/glob.c 2009-09-19 19:46:41 +0200
michael@428 147 @@ -47,6 +47,18 @@
michael@428 148
michael@428 149 # include "system.h"
michael@428 150
michael@428 151 +#ifndef PATH_MAX
michael@428 152 +#ifdef _POSIX_VERSION
michael@428 153 +#define PATH_MAX _POSIX_PATH_MAX
michael@428 154 +#else
michael@428 155 +#ifdef MAXPATHLEN
michael@428 156 +#define PATH_MAX MAXPATHLEN
michael@428 157 +#else
michael@428 158 +#define PATH_MAX 1024
michael@428 159 +#endif
michael@428 160 +#endif
michael@428 161 +#endif
michael@428 162 +
michael@428 163 /* Needed for offsetof() */
michael@428 164 # include <stddef.h>
michael@428 165
michael@428 166 @@ -1111,7 +1123,7 @@
michael@428 167 {
michael@428 168 struct dirent64 d64;
michael@428 169 char room [offsetof (struct dirent64, d_name[0])
michael@428 170 - + NAME_MAX + 1];
michael@428 171 + + PATH_MAX + 1];
michael@428 172 }
michael@428 173 d64buf;
michael@428 174
michael@435 175 Index: rpmio/fnmatch.c
michael@435 176 --- rpmio/fnmatch.c 2012-08-01 21:24:05.278487112 +0200
michael@435 177 +++ rpmio/fnmatch.c.orig 2008-10-12 12:38:58.000000000 +0200
michael@435 178 @@ -24,6 +24,9 @@
michael@435 179
michael@435 180 #include "system.h"
michael@435 181
michael@435 182 +/* Provide nonstandard constructs */
michael@435 183 +#include "nonstandard.h"
michael@435 184 +
michael@435 185 #include <string.h>
michael@435 186
michael@435 187 #include "debug.h"
michael@428 188 Index: lua/local/lposix.c
michael@428 189 --- lua/local/lposix.c.orig 2009-03-06 23:52:45 +0100
michael@428 190 +++ lua/local/lposix.c 2009-09-20 19:57:28 +0200
michael@428 191 @@ -538,6 +538,7 @@
michael@428 192 return pushresult(L, mkdir(path, 0777), path);
michael@428 193 }
michael@428 194
michael@428 195 +#if 0
michael@428 196 static int Pmkdtemp(lua_State *L) /** mkdtemp(template) */
michael@428 197 /*@globals fileSystem @*/
michael@428 198 /*@modifies L, fileSystem @*/
michael@428 199 @@ -555,6 +556,7 @@
michael@428 200 return 1;
michael@428 201 }
michael@428 202 }
michael@428 203 +#endif
michael@428 204
michael@428 205
michael@428 206 static int Pchdir(lua_State *L) /** chdir(path) */
michael@428 207 @@ -1196,7 +1198,9 @@
michael@428 208 {"kill", Pkill},
michael@428 209 {"link", Plink},
michael@428 210 {"mkdir", Pmkdir},
michael@428 211 +#if 0
michael@428 212 {"mkdtemp", Pmkdtemp},
michael@428 213 +#endif
michael@428 214 {"mkfifo", Pmkfifo},
michael@428 215 {"pathconf", Ppathconf},
michael@428 216 {"putenv", Pputenv},
michael@428 217 Index: db/os/os_yield.c
michael@428 218 --- db/os/os_yield.c.orig 2008-06-15 10:56:46.000000000 +0200
michael@428 219 +++ db/os/os_yield.c 2010-04-30 21:30:35.000000000 +0200
michael@428 220 @@ -58,7 +58,7 @@
michael@428 221 #elif defined(HAVE_YIELD)
michael@428 222 yield();
michael@428 223 #else
michael@428 224 - __os_sleep(dbenv, 0, 0);
michael@428 225 + __os_sleep(env, 0, 0);
michael@428 226 #endif
michael@428 227 }
michael@428 228 }
michael@428 229 Index: lib/depends.c
michael@428 230 --- lib/depends.c.orig 2009-04-12 21:46:17.000000000 +0200
michael@428 231 +++ lib/depends.c 2011-03-08 20:33:59.000000000 +0100
michael@428 232 @@ -2654,7 +2654,7 @@
michael@428 233 #endif
michael@428 234 const char * dp;
michael@428 235 int msglvl = (anaconda || (rpmtsDFlags(ts) & RPMDEPS_FLAG_DEPLOOPS))
michael@428 236 - ? RPMLOG_WARNING : RPMLOG_ERR;
michael@428 237 + ? RPMLOG_WARNING : RPMLOG_DEBUG;
michael@428 238 ;
michael@428 239
michael@428 240 /* Unchain predecessor loop. */
michael@428 241 Index: doc/rpm.8
michael@428 242 --- doc/rpm.8.orig 2007-11-10 03:16:22.000000000 +0100
michael@428 243 +++ doc/rpm.8 2011-05-11 17:41:36.000000000 +0200
michael@428 244 @@ -177,16 +177,7 @@
michael@428 245 \fBrpm\fR {\fB-F|--freshen\fR} [\fBinstall-options\fR] \fB\fIPACKAGE_FILE\fB\fR\fI ...\fR
michael@428 246 .PP
michael@428 247 This will upgrade packages, but only if an earlier version
michael@428 248 -currently exists. The \fIPACKAGE_FILE\fR
michael@428 249 -may be specified as an
michael@428 250 -\fBftp\fR or
michael@428 251 -\fBhttp\fR URL,
michael@428 252 -in which case the package will be downloaded before being
michael@428 253 -installed. See \fBFTP/HTTP OPTIONS\fR
michael@428 254 -for information on \fBrpm\fR's internal
michael@428 255 -\fBftp\fR and
michael@428 256 -\fBhttp\fR
michael@428 257 -client support.
michael@428 258 +currently exists.
michael@428 259 .PP
michael@428 260 .TP
michael@428 261 \fB--aid\fR
michael@428 262 @@ -496,14 +487,7 @@
michael@428 263 .TP
michael@428 264 \fB-p, --package \fIPACKAGE_FILE\fB\fR
michael@428 265 Query an (uninstalled) package \fIPACKAGE_FILE\fR.
michael@428 266 -The \fIPACKAGE_FILE\fR may be specified
michael@428 267 -as an \fBftp\fR or \fBhttp\fR style URL, in
michael@428 268 -which case the package header will be downloaded and queried.
michael@428 269 -See \fBFTP/HTTP OPTIONS\fR for information on
michael@428 270 -\fBrpm\fR's internal
michael@428 271 -\fBftp\fR and
michael@428 272 -\fBhttp\fR
michael@428 273 -client support. The \fIPACKAGE_FILE\fR argument(s),
michael@428 274 +The \fIPACKAGE_FILE\fR argument(s),
michael@428 275 if not a binary package, will be interpreted as an ASCII package
michael@428 276 manifest. Comments are permitted, starting with a '#', and each
michael@428 277 line of a package manifest file may include white space separated
michael@428 278 @@ -796,53 +780,6 @@
michael@428 279 \fIrpmrc\fR and
michael@428 280 \fImacros\fR
michael@428 281 configuration file(s).
michael@428 282 -.SS "FTP/HTTP OPTIONS"
michael@428 283 -.PP
michael@428 284 -\fBrpm\fR can act as an FTP and/or HTTP client so
michael@428 285 -that packages can be queried or installed from the internet.
michael@428 286 -Package files for install, upgrade, and query operations may be
michael@428 287 -specified as an
michael@428 288 -\fBftp\fR or
michael@428 289 -\fBhttp\fR
michael@428 290 -style URL:
michael@428 291 -.PP
michael@428 292 -ftp://USER:PASSWORD@HOST:PORT/path/to/package.rpm
michael@428 293 -.PP
michael@428 294 -If the \fB:PASSWORD\fR portion is omitted, the password will be
michael@428 295 -prompted for (once per user/hostname pair). If both the user and
michael@428 296 -password are omitted, anonymous \fBftp\fR is used.
michael@428 297 -In all cases, passive (PASV) \fBftp\fR transfers are
michael@428 298 -performed.
michael@428 299 -.PP
michael@428 300 -\fBrpm\fR allows the following options to be used with
michael@428 301 -ftp URLs:
michael@428 302 -.TP
michael@428 303 -\fB--ftpproxy \fIHOST\fB\fR
michael@428 304 -The host \fIHOST\fR will be used as a proxy server
michael@428 305 -for all ftp transfers, which allows users to ftp through firewall
michael@428 306 -machines which use proxy systems. This option may also be specified
michael@428 307 -by configuring the macro \fB%_ftpproxy\fR.
michael@428 308 -.TP
michael@428 309 -\fB--ftpport \fIPORT\fB\fR
michael@428 310 -The TCP \fIPORT\fR number to use for
michael@428 311 -the ftp connection on the proxy ftp server instead of the default
michael@428 312 -port. This option may also be specified by configuring the macro
michael@428 313 -\fB%_ftpport\fR.
michael@428 314 -.PP
michael@428 315 -\fBrpm\fR allows the following options to be used with
michael@428 316 -\fBhttp\fR URLs:
michael@428 317 -.TP
michael@428 318 -\fB--httpproxy \fIHOST\fB\fR
michael@428 319 -The host \fIHOST\fR will be used as
michael@428 320 -a proxy server for all \fBhttp\fR transfers. This
michael@428 321 -option may also be specified by configuring the macro
michael@428 322 -\fB%_httpproxy\fR.
michael@428 323 -.TP
michael@428 324 -\fB--httpport \fIPORT\fB\fR
michael@428 325 -The TCP \fIPORT\fR number to use for the
michael@428 326 -\fBhttp\fR connection on the proxy http server instead
michael@428 327 -of the default port. This option may also be specified by configuring
michael@428 328 -the macro \fB%_httpport\fR.
michael@428 329 .SH "LEGACY ISSUES"
michael@428 330 .SS "Executing rpmbuild"
michael@428 331 .PP
michael@428 332 Index: lua/local/lrexlib_lposix.c
michael@428 333 --- lua/local/lrexlib_lposix.c.orig 2008-06-15 10:56:54.000000000 +0200
michael@428 334 +++ lua/local/lrexlib_lposix.c 2012-02-06 20:51:46.000000000 +0100
michael@428 335 @@ -242,10 +242,16 @@
michael@428 336 { "ESPACE", REG_ESPACE },
michael@428 337 { "BADRPT", REG_BADRPT },
michael@428 338 #ifdef REX_POSIX_EXT
michael@428 339 +#ifdef REG_EMPTY
michael@428 340 { "EMPTY", REG_EMPTY },
michael@428 341 +#endif
michael@428 342 +#ifdef REG_ASSERT
michael@428 343 { "ASSERT", REG_ASSERT },
michael@428 344 +#endif
michael@428 345 +#ifdef REG_INVARG
michael@428 346 { "INVARG", REG_INVARG },
michael@428 347 #endif
michael@428 348 +#endif
michael@428 349 /*---------------------------------------------------------------------------*/
michael@428 350 { NULL, 0 }
michael@428 351 };

mercurial