Rebuild 4.13.1 to remove package notes
[fedora-ocaml-rebuild.git] / Goalfile
index 992af3b..2ef7879 100644 (file)
--- a/Goalfile
+++ b/Goalfile
@@ -6,11 +6,11 @@ let fedora-dir = "%HOME/d/fedora"
 
 let fedora-branch = "rawhide"
 #let fedora-branch = "f34"
-let fedora-tag = "f36-build-side-46495"
+let fedora-tag = "f36-build-side-50311"
 
 # The magic string that must appear in %changelog when the
 # package has been rebuilt.
-let fedora-rebuild-name = "OCaml 4.13.1 build"
+let fedora-rebuild-name = "OCaml 4.13.1 rebuild to remove package notes"
 
 # Packages that are ignored, which means they are treated as if
 # they have been rebuilt.
@@ -32,6 +32,7 @@ let packages = [
     "ocaml-biniou",
     "ocaml-bin-prot",
     "ocaml-bisect-ppx",
+    "ocaml-bos",
     "ocaml-cairo",
     "ocaml-calendar",
     "ocaml-camlbz2",
@@ -86,6 +87,7 @@ let packages = [
     "ocaml-lwt-log",
     "ocaml-markup",
     "ocaml-mccs",
+    "ocaml-mdx",
     "ocaml-menhir",
     "ocaml-merlin",
     "ocaml-mew",
@@ -99,7 +101,6 @@ let packages = [
     "ocaml-mysql",
     "ocaml-newt",
     "ocaml-num",
-    "ocaml-oasis",
     "ocaml-obuild",
     "ocaml-ocamlbuild",
     "ocaml-ocamlgraph",
@@ -109,6 +110,7 @@ let packages = [
     "ocaml-ocplib-simplex",
     "ocaml-octavius",
     "ocaml-odoc",
+    "ocaml-odoc-parser",
     "ocaml-omake",
     "ocaml-opam-file-format",
     "ocaml-ounit",
@@ -126,18 +128,20 @@ let packages = [
     "ocaml-ppx-deriving",
     "ocaml-ppx-deriving-yojson",
     "ocaml-ppx-enumerate",
+    "ocaml-ppx-expect",
     "ocaml-ppx-fields-conv",
     "ocaml-ppx-hash",
     "ocaml-ppx-here",
     "ocaml-ppx-inline-test",
     "ocaml-ppx-js-style",
+    "ocaml-ppx-let",
     "ocaml-ppxlib",
     "ocaml-ppx-optcomp",
     "ocaml-ppx-sexp-conv",
-    "ocaml-ppx-tools",
     "ocaml-ppx-variants-conv",
     "ocaml-psmt2-frontend",
     "ocaml-ptmap",
+    "ocaml-pyml",
     "ocaml-qcheck",
     "ocaml-qtest",
     "ocaml-re",
@@ -153,6 +157,7 @@ let packages = [
     "ocaml-sha",
     "ocaml-sqlite",
     "ocaml-ssl",
+    "ocaml-stdcompat",
     "ocaml-stdint",
     "ocaml-stdio",
     "ocaml-time-now",
@@ -204,15 +209,24 @@ let packages = [
     #"nbdkit",
 ]
 
+# Get the list of source packages.
 pure function get-source-packages () returning strings = {
     cd %fedora-dir
-    for f in %packages; do
-        if [ -f $f/%fedora-branch/$f.spec ]; then
-            echo "$f"
-        elif [ -f $f/%fedora-branch/dead.package ]; then
-            echo "WARNING: $f: is a dead package, ignored" >&2
+    for pkg in %packages; do
+        spec=$pkg/%fedora-branch/$pkg.spec
+        if [ -f $spec ]; then
+            # Check that all spec files have disabled the broken
+            # "package notes" misfeature.
+            if ! grep -sq "%%undefine _package_note_flags" $spec ; then
+                echo "ERROR: $pkg does not %%undefine _package_note_flags"
+                exit 1
+            fi
+            # OK to rebuild this package.
+            echo "$pkg"
+        elif [ -f $pkg/%fedora-branch/dead.package ]; then
+            echo "WARNING: $pkg: is a dead package, ignored" >&2
         else
-            echo "$f: package is not checked out locally" >&2
+            echo "$pkg: package is not checked out locally" >&2
             exit 1
         fi
     done