312 | run-time tests). |
312 | run-time tests). |
313 +--------------------------------------------------------------------------- |
313 +--------------------------------------------------------------------------- |
314 Index: build/build.c |
314 Index: build/build.c |
315 --- build/build.c 4 Mar 2003 15:27:33 -0000 1.1.1.20 |
315 --- build/build.c 4 Mar 2003 15:27:33 -0000 1.1.1.20 |
316 +++ build/build.c 6 Feb 2004 15:37:57 -0000 1.4 |
316 +++ build/build.c 6 Feb 2004 15:37:57 -0000 1.4 |
317 @@ -113,6 +129,14 @@ |
317 @@ -129,6 +129,14 @@ |
318 mTemplate = "%{__spec_clean_template}"; |
318 mTemplate = "%{__spec_clean_template}"; |
319 mPost = "%{__spec_clean_post}"; |
319 mPost = "%{__spec_clean_post}"; |
320 break; |
320 break; |
321 +#ifdef OPENPKG |
321 +#ifdef OPENPKG |
322 + case RPMBUILD_TRACK: |
322 + case RPMBUILD_TRACK: |
339 if (what != RPMBUILD_PREP && what != RPMBUILD_RMBUILD && spec->buildSubdir) |
339 if (what != RPMBUILD_PREP && what != RPMBUILD_RMBUILD && spec->buildSubdir) |
340 +#endif |
340 +#endif |
341 fprintf(fp, "cd %s\n", spec->buildSubdir); |
341 fprintf(fp, "cd %s\n", spec->buildSubdir); |
342 |
342 |
343 if (what == RPMBUILD_RMBUILD) { |
343 if (what == RPMBUILD_RMBUILD) { |
344 @@ -215,6 +243,9 @@ |
344 @@ -231,6 +243,9 @@ |
345 buildCmd = rpmExpand("%{___build_cmd}", " ", buildScript, NULL); |
345 buildCmd = rpmExpand("%{___build_cmd}", " ", buildScript, NULL); |
346 (void) poptParseArgvString(buildCmd, &argc, &argv); |
346 (void) poptParseArgvString(buildCmd, &argc, &argv); |
347 |
347 |
348 +#ifdef OPENPKG |
348 +#ifdef OPENPKG |
349 + if (what != RPMBUILD_TRACK) |
349 + if (what != RPMBUILD_TRACK) |
350 +#endif |
350 +#endif |
351 rpmMessage(RPMMESS_NORMAL, _("Executing(%s): %s\n"), name, buildCmd); |
351 rpmMessage(RPMMESS_NORMAL, _("Executing(%s): %s\n"), name, buildCmd); |
352 if (!(child = fork())) { |
352 if (!(child = fork())) { |
353 |
353 |
354 @@ -290,6 +323,12 @@ |
354 @@ -306,6 +323,12 @@ |
355 /*@=boundsread@*/ |
355 /*@=boundsread@*/ |
356 } |
356 } |
357 } else { |
357 } else { |
358 +#ifdef OPENPKG |
358 +#ifdef OPENPKG |
359 + if ((what & RPMBUILD_TRACK) && |
359 + if ((what & RPMBUILD_TRACK) && |
396 | removal failures (if they are still not empty). |
396 | removal failures (if they are still not empty). |
397 +--------------------------------------------------------------------------- |
397 +--------------------------------------------------------------------------- |
398 Index: build/build.c |
398 Index: build/build.c |
399 --- build/build.c 4 Mar 2003 15:27:33 -0000 1.1.1.20 |
399 --- build/build.c 4 Mar 2003 15:27:33 -0000 1.1.1.20 |
400 +++ build/build.c 6 Feb 2004 15:37:57 -0000 1.4 |
400 +++ build/build.c 6 Feb 2004 15:37:57 -0000 1.4 |
401 @@ -338,6 +377,21 @@ |
401 @@ -377,6 +377,21 @@ |
402 if (what & RPMBUILD_RMSPEC) |
402 if (what & RPMBUILD_RMSPEC) |
403 (void) Unlink(spec->specFile); |
403 (void) Unlink(spec->specFile); |
404 |
404 |
405 +#ifdef OPENPKG |
405 +#ifdef OPENPKG |
406 + if (what & RPMBUILD_RMSOURCE) { |
406 + if (what & RPMBUILD_RMSOURCE) { |
449 | .src.rpm files. |
449 | .src.rpm files. |
450 +--------------------------------------------------------------------------- |
450 +--------------------------------------------------------------------------- |
451 Index: build/files.c |
451 Index: build/files.c |
452 --- build/files.c 4 Mar 2003 17:04:13 -0000 1.1.1.20 |
452 --- build/files.c 4 Mar 2003 17:04:13 -0000 1.1.1.20 |
453 +++ build/files.c 6 Feb 2004 15:37:57 -0000 1.3 |
453 +++ build/files.c 6 Feb 2004 15:37:57 -0000 1.3 |
454 @@ -2183,6 +2185,12 @@ |
454 @@ -2185,6 +2185,12 @@ |
455 case RPMTAG_CHANGELOGTEXT: |
455 case RPMTAG_CHANGELOGTEXT: |
456 case RPMTAG_URL: |
456 case RPMTAG_URL: |
457 case HEADER_I18NTABLE: |
457 case HEADER_I18NTABLE: |
458 +#ifdef OPENPKG |
458 +#ifdef OPENPKG |
459 + case RPMTAG_PROVIDENAME: |
459 + case RPMTAG_PROVIDENAME: |
471 | up there, too. |
471 | up there, too. |
472 +--------------------------------------------------------------------------- |
472 +--------------------------------------------------------------------------- |
473 Index: build/files.c |
473 Index: build/files.c |
474 --- build/files.c 4 Mar 2003 17:04:13 -0000 1.1.1.20 |
474 --- build/files.c 4 Mar 2003 17:04:13 -0000 1.1.1.20 |
475 +++ build/files.c 6 Feb 2004 15:37:57 -0000 1.3 |
475 +++ build/files.c 6 Feb 2004 15:37:57 -0000 1.3 |
476 @@ -2253,8 +2261,20 @@ |
476 @@ -2261,8 +2261,20 @@ |
477 } |
477 } |
478 |
478 |
479 { const char * sfn; |
479 { const char * sfn; |
480 +#ifndef OPENPKG |
480 +#ifndef OPENPKG |
481 sfn = rpmGetPath( ((srcPtr->flags & RPMBUILD_ISNO) ? "!" : ""), |
481 sfn = rpmGetPath( ((srcPtr->flags & RPMBUILD_ISNO) ? "!" : ""), |
492 + sfn2 = _free(sfn2); |
492 + sfn2 = _free(sfn2); |
493 +#endif |
493 +#endif |
494 appendLineStringBuf(sourceFiles, sfn); |
494 appendLineStringBuf(sourceFiles, sfn); |
495 sfn = _free(sfn); |
495 sfn = _free(sfn); |
496 } |
496 } |
497 @@ -2263,8 +2283,20 @@ |
497 @@ -2271,8 +2283,20 @@ |
498 for (pkg = spec->packages; pkg != NULL; pkg = pkg->next) { |
498 for (pkg = spec->packages; pkg != NULL; pkg = pkg->next) { |
499 for (srcPtr = pkg->icon; srcPtr != NULL; srcPtr = srcPtr->next) { |
499 for (srcPtr = pkg->icon; srcPtr != NULL; srcPtr = srcPtr->next) { |
500 const char * sfn; |
500 const char * sfn; |
501 +#ifndef OPENPKG |
501 +#ifndef OPENPKG |
502 sfn = rpmGetPath( ((srcPtr->flags & RPMBUILD_ISNO) ? "!" : ""), |
502 sfn = rpmGetPath( ((srcPtr->flags & RPMBUILD_ISNO) ? "!" : ""), |
751 | up there, too. |
751 | up there, too. |
752 +--------------------------------------------------------------------------- |
752 +--------------------------------------------------------------------------- |
753 Index: build/parsePrep.c |
753 Index: build/parsePrep.c |
754 --- build/parsePrep.c 7 Aug 2002 14:20:45 -0000 1.1.1.10 |
754 --- build/parsePrep.c 7 Aug 2002 14:20:45 -0000 1.1.1.10 |
755 +++ build/parsePrep.c 6 Jun 2005 15:53:04 -0000 1.4 |
755 +++ build/parsePrep.c 6 Jun 2005 15:53:04 -0000 1.4 |
756 @@ -87,7 +88,15 @@ |
756 @@ -88,7 +88,15 @@ |
757 return NULL; |
757 return NULL; |
758 } |
758 } |
759 |
759 |
760 +#ifndef OPENPKG |
760 +#ifndef OPENPKG |
761 urlfn = rpmGetPath("%{_sourcedir}/", sp->source, NULL); |
761 urlfn = rpmGetPath("%{_sourcedir}/", sp->source, NULL); |
870 | we build against an external one. |
870 | we build against an external one. |
871 +--------------------------------------------------------------------------- |
871 +--------------------------------------------------------------------------- |
872 Index: configure.ac |
872 Index: configure.ac |
873 --- configure.ac 2 Jul 2003 19:20:52 -0000 1.1.1.4 |
873 --- configure.ac 2 Jul 2003 19:20:52 -0000 1.1.1.4 |
874 +++ configure.ac 13 Sep 2006 13:39:09 -0000 |
874 +++ configure.ac 13 Sep 2006 13:39:09 -0000 |
875 @@ -310,7 +311,7 @@ |
875 @@ -311,7 +311,7 @@ |
876 WITH_ZLIB_SUBDIR= |
876 WITH_ZLIB_SUBDIR= |
877 WITH_ZLIB_INCLUDE= |
877 WITH_ZLIB_INCLUDE= |
878 WITH_ZLIB_LIB= |
878 WITH_ZLIB_LIB= |
879 -if test -d zlib ; then |
879 -if test -d zlib ; then |
880 +if false; then |
880 +if false; then |
888 | would make RPM pick up things which we do not want to be picked up. |
888 | would make RPM pick up things which we do not want to be picked up. |
889 +--------------------------------------------------------------------------- |
889 +--------------------------------------------------------------------------- |
890 Index: configure.ac |
890 Index: configure.ac |
891 --- configure.ac 2 Jul 2003 19:20:52 -0000 1.1.1.4 |
891 --- configure.ac 2 Jul 2003 19:20:52 -0000 1.1.1.4 |
892 +++ configure.ac 13 Sep 2006 13:39:11 -0000 |
892 +++ configure.ac 13 Sep 2006 13:39:11 -0000 |
893 @@ -324,38 +325,38 @@ |
893 @@ -325,38 +325,38 @@ |
894 |
894 |
895 localdone= |
895 localdone= |
896 |
896 |
897 -dirs=$prefix |
897 -dirs=$prefix |
898 -if test "$cross_compiling" != "yes"; then |
898 -if test "$cross_compiling" != "yes"; then |
966 | Adjust paths for OpenPKG filesystem layout. |
966 | Adjust paths for OpenPKG filesystem layout. |
967 +--------------------------------------------------------------------------- |
967 +--------------------------------------------------------------------------- |
968 Index: configure.ac |
968 Index: configure.ac |
969 --- configure.ac 2 Jul 2003 19:20:52 -0000 1.1.1.4 |
969 --- configure.ac 2 Jul 2003 19:20:52 -0000 1.1.1.4 |
970 +++ configure.ac 13 Sep 2006 13:39:12 -0000 |
970 +++ configure.ac 13 Sep 2006 13:39:12 -0000 |
971 @@ -1200,12 +1201,12 @@ |
971 @@ -1201,12 +1201,12 @@ |
972 AC_SUBST(LOCALEDIR) |
972 AC_SUBST(LOCALEDIR) |
973 LIBDIR="`echo $libdir | sed 's-/lib$-/%{_lib}-'`" |
973 LIBDIR="`echo $libdir | sed 's-/lib$-/%{_lib}-'`" |
974 AC_SUBST(LIBDIR) |
974 AC_SUBST(LIBDIR) |
975 -RPMCONFIGDIR="`echo ${usrprefix}/lib/rpm`" |
975 -RPMCONFIGDIR="`echo ${usrprefix}/lib/rpm`" |
976 +RPMCONFIGDIR="@l_prefix@/lib/openpkg" |
976 +RPMCONFIGDIR="@l_prefix@/lib/openpkg" |
981 -SYSCONFIGDIR="`echo /etc/rpm`" |
981 -SYSCONFIGDIR="`echo /etc/rpm`" |
982 +SYSCONFIGDIR="@l_prefix@/etc/openpkg" |
982 +SYSCONFIGDIR="@l_prefix@/etc/openpkg" |
983 AC_DEFINE_UNQUOTED(SYSCONFIGDIR, "$SYSCONFIGDIR", |
983 AC_DEFINE_UNQUOTED(SYSCONFIGDIR, "$SYSCONFIGDIR", |
984 [Full path to rpm system configuration directory (usually /etc/rpm)]) |
984 [Full path to rpm system configuration directory (usually /etc/rpm)]) |
985 AC_SUBST(SYSCONFIGDIR) |
985 AC_SUBST(SYSCONFIGDIR) |
986 @@ -1215,17 +1216,17 @@ |
986 @@ -1216,17 +1216,17 @@ |
987 [Colon separated paths of macro files to read.]) |
987 [Colon separated paths of macro files to read.]) |
988 AC_SUBST(MACROFILES) |
988 AC_SUBST(MACROFILES) |
989 |
989 |
990 -LIBRPMRC_FILENAME="${RPMCONFIGDIR}/rpmrc" |
990 -LIBRPMRC_FILENAME="${RPMCONFIGDIR}/rpmrc" |
991 +LIBRPMRC_FILENAME="${SYSCONFIGDIR}/rpmrc" |
991 +LIBRPMRC_FILENAME="${SYSCONFIGDIR}/rpmrc" |
1558 | "unzip" out of the bootstrap package. |
1558 | "unzip" out of the bootstrap package. |
1559 +--------------------------------------------------------------------------- |
1559 +--------------------------------------------------------------------------- |
1560 Index: rpmio/macro.c |
1560 Index: rpmio/macro.c |
1561 --- rpmio/macro.c 15 May 2003 13:42:01 -0000 1.1.1.7 |
1561 --- rpmio/macro.c 15 May 2003 13:42:01 -0000 1.1.1.7 |
1562 +++ rpmio/macro.c 22 Jan 2004 21:42:32 -0000 1.2 |
1562 +++ rpmio/macro.c 22 Jan 2004 21:42:32 -0000 1.2 |
1563 @@ -1116,9 +1119,11 @@ |
1563 @@ -1119,9 +1119,11 @@ |
1564 case 2: /* COMPRESSED_BZIP2 */ |
1564 case 2: /* COMPRESSED_BZIP2 */ |
1565 sprintf(be, "%%_bzip2 %s", b); |
1565 sprintf(be, "%%_bzip2 %s", b); |
1566 break; |
1566 break; |
1567 +#if 0 |
1567 +#if 0 |
1568 case 3: /* COMPRESSED_ZIP */ |
1568 case 3: /* COMPRESSED_ZIP */ |
1570 break; |
1570 break; |
1571 +#endif |
1571 +#endif |
1572 } |
1572 } |
1573 b = be; |
1573 b = be; |
1574 } else if (STREQ("S", f, fn)) { |
1574 } else if (STREQ("S", f, fn)) { |
1575 @@ -1720,9 +1725,11 @@ |
1575 @@ -1723,9 +1725,11 @@ |
1576 |
1576 |
1577 if ((magic[0] == 'B') && (magic[1] == 'Z')) { |
1577 if ((magic[0] == 'B') && (magic[1] == 'Z')) { |
1578 *compressed = COMPRESSED_BZIP2; |
1578 *compressed = COMPRESSED_BZIP2; |
1579 +#if 0 |
1579 +#if 0 |
1580 } else if ((magic[0] == 0120) && (magic[1] == 0113) && |
1580 } else if ((magic[0] == 0120) && (magic[1] == 0113) && |
1590 | processing. Else it would be nothing more than a %{warn:<msg>}. |
1590 | processing. Else it would be nothing more than a %{warn:<msg>}. |
1591 +--------------------------------------------------------------------------- |
1591 +--------------------------------------------------------------------------- |
1592 Index: rpmio/macro.c |
1592 Index: rpmio/macro.c |
1593 --- rpmio/macro.c 15 May 2003 13:42:01 -0000 1.1.1.7 |
1593 --- rpmio/macro.c 15 May 2003 13:42:01 -0000 1.1.1.7 |
1594 +++ rpmio/macro.c 22 Jan 2004 21:42:32 -0000 1.2 |
1594 +++ rpmio/macro.c 22 Jan 2004 21:42:32 -0000 1.2 |
1595 @@ -1332,7 +1337,7 @@ |
1595 @@ -1337,7 +1337,7 @@ |
1596 STREQ("error", f, fn)) { |
1596 STREQ("error", f, fn)) { |
1597 int waserror = 0; |
1597 int waserror = 0; |
1598 if (STREQ("error", f, fn)) |
1598 if (STREQ("error", f, fn)) |
1599 - waserror = 1; |
1599 - waserror = 1; |
1600 + waserror = 1, rc = 1; |
1600 + waserror = 1, rc = 1; |
1821 | run-time tests). |
1821 | run-time tests). |
1822 +--------------------------------------------------------------------------- |
1822 +--------------------------------------------------------------------------- |
1823 Index: rpmqv.c |
1823 Index: rpmqv.c |
1824 --- rpmqv.c 4 Mar 2003 15:32:57 -0000 1.1.1.8 |
1824 --- rpmqv.c 4 Mar 2003 15:32:57 -0000 1.1.1.8 |
1825 +++ rpmqv.c 6 Feb 2004 15:37:56 -0000 1.4 |
1825 +++ rpmqv.c 6 Feb 2004 15:37:56 -0000 1.4 |
1826 @@ -703,7 +707,19 @@ |
1826 @@ -707,7 +707,19 @@ |
1827 /*@innerbreak@*/ break; |
1827 /*@innerbreak@*/ break; |
1828 case 's': |
1828 case 's': |
1829 ba->buildAmount |= RPMBUILD_PACKAGESOURCE; |
1829 ba->buildAmount |= RPMBUILD_PACKAGESOURCE; |
1830 + /* enforce no dependency checking */ |
1830 + /* enforce no dependency checking */ |
1831 + ba->noDeps = 1; |
1831 + ba->noDeps = 1; |
2091 + p->testFile = NULL; |
2091 + p->testFile = NULL; |
2092 +#endif |
2092 +#endif |
2093 |
2093 |
2094 p->specialDoc = NULL; |
2094 p->specialDoc = NULL; |
2095 |
2095 |
2096 @@ -444,6 +455,9 @@ |
2096 @@ -452,6 +463,9 @@ |
2097 spec->install = NULL; |
2097 spec->install = NULL; |
2098 spec->check = NULL; |
2098 spec->check = NULL; |
2099 spec->clean = NULL; |
2099 spec->clean = NULL; |
2100 +#ifdef OPENPKG |
2100 +#ifdef OPENPKG |
2101 + spec->track = NULL; |
2101 + spec->track = NULL; |
2102 +#endif |
2102 +#endif |
2103 |
2103 |
2104 spec->sources = NULL; |
2104 spec->sources = NULL; |
2105 spec->packages = NULL; |
2105 spec->packages = NULL; |
2106 @@ -491,6 +505,9 @@ |
2106 @@ -499,6 +513,9 @@ |
2107 spec->install = freeStringBuf(spec->install); |
2107 spec->install = freeStringBuf(spec->install); |
2108 spec->check = freeStringBuf(spec->check); |
2108 spec->check = freeStringBuf(spec->check); |
2109 spec->clean = freeStringBuf(spec->clean); |
2109 spec->clean = freeStringBuf(spec->clean); |
2110 +#ifdef OPENPKG |
2110 +#ifdef OPENPKG |
2111 + spec->track = freeStringBuf(spec->track); |
2111 + spec->track = freeStringBuf(spec->track); |
2191 { RPMTAG_DISTRIBUTION, "%{distribution}" }, |
2191 { RPMTAG_DISTRIBUTION, "%{distribution}" }, |
2192 + { RPMTAG_CLASS, "%{class}" }, |
2192 + { RPMTAG_CLASS, "%{class}" }, |
2193 { RPMTAG_DISTURL, "%{disturl}" }, |
2193 { RPMTAG_DISTURL, "%{disturl}" }, |
2194 { -1, NULL } |
2194 { -1, NULL } |
2195 }; |
2195 }; |
2196 @@ -537,6 +547,7 @@ |
2196 @@ -545,6 +547,7 @@ |
2197 (void) stashSt(spec, pkg->header, tag, lang); |
2197 (void) stashSt(spec, pkg->header, tag, lang); |
2198 /*@fallthrough@*/ |
2198 /*@fallthrough@*/ |
2199 case RPMTAG_DISTRIBUTION: |
2199 case RPMTAG_DISTRIBUTION: |
2200 + case RPMTAG_CLASS: |
2200 + case RPMTAG_CLASS: |
2201 case RPMTAG_VENDOR: |
2201 case RPMTAG_VENDOR: |
2202 case RPMTAG_LICENSE: |
2202 case RPMTAG_LICENSE: |
2203 case RPMTAG_PACKAGER: |
2203 case RPMTAG_PACKAGER: |
2204 @@ -743,6 +754,7 @@ |
2204 @@ -751,6 +754,7 @@ |
2205 {RPMTAG_LICENSE, 0, 0, "copyright"}, |
2205 {RPMTAG_LICENSE, 0, 0, "copyright"}, |
2206 {RPMTAG_LICENSE, 0, 0, "license"}, |
2206 {RPMTAG_LICENSE, 0, 0, "license"}, |
2207 {RPMTAG_DISTRIBUTION, 0, 0, "distribution"}, |
2207 {RPMTAG_DISTRIBUTION, 0, 0, "distribution"}, |
2208 + {RPMTAG_CLASS, 0, 0, "class"}, |
2208 + {RPMTAG_CLASS, 0, 0, "class"}, |
2209 {RPMTAG_DISTURL, 0, 0, "disturl"}, |
2209 {RPMTAG_DISTURL, 0, 0, "disturl"}, |