Continue WIP
authorKen Brown <kbrown@cornell.edu>
Sat, 20 May 2017 02:47:56 +0000 (22:47 -0400)
committerKen Brown <kbrown@cornell.edu>
Sat, 20 May 2017 02:47:56 +0000 (22:47 -0400)
14 files changed:
biber_prereqs.txt
prereqs00_do_twice/build.sh
prereqs01/build.sh [new file with mode: 0755]
prereqs01/fix_names.sh [new file with mode: 0755]
prereqs01/perl-ExtUtils-Config/perl-ExtUtils-Config.cygport [new file with mode: 0644]
prereqs01/perl-Try-Tiny/perl-Try-Tiny.cygport [new file with mode: 0644]
prereqs02/build.sh [new file with mode: 0755]
prereqs02/fix_names.sh [new file with mode: 0755]
prereqs02/perl-ExtUtils-Helpers-0.026-1.src/perl-ExtUtils-Helpers-0.026-1.cygport [new file with mode: 0644]
prereqs02/perl-Importer-0.024-1.src/perl-Importer-0.024-1.cygport [new file with mode: 0644]
prereqs02/perl-Module-Runtime-0.014-1.src/perl-Module-Runtime.cygport [new file with mode: 0644]
prereqs02/perl-Test-Fatal-0.014-2.src/perl-Test-Fatal-0.014-2.cygport [new file with mode: 0755]
prereqs02/perl-Test-Requires-0.10-1.src/perl-Test-Requires-0.10-1.cygport [new file with mode: 0755]
prereqs02/perl-Test-Simple-1.302078-1.src/perl-Test-Simple-1.302078-1.cygport [moved from perl-Test-Simple-1.302078-1.src/perl-Test-Simple-1.302078-1.cygport with 100% similarity]

index 4732c7820487e4db4e1721e77c7459d526f94fea..923607bf2633255bedef10cd0cb058466b48d67b 100644 (file)
@@ -157,3 +157,10 @@ perl-XML-LibXML-Simple
 perl-XML-LibXSLT
 perl-XML-Writer
 perl-autovivification
+
+
+Missing
+=======
+         perl-ExtUtils-Config
+        perl-ExtUtils-InstallPaths
+       perl-Module-Build-Tiny
index 9cecf15650b5e5d1bab7ad273a0e4d81fe666a35..eb2a5083c7f01fa0b6030fe3e5e279198eccf691 100755 (executable)
@@ -1,6 +1,7 @@
 #! /bin/bash
 
 # Run in elevated shell as kbrown-admin.
+# Copy setup-*.exe to *.exe to avoid prompt.
 
 SYSARCH=$(uname -m)
 if [ ${SYSARCH} = i686 ]
@@ -27,7 +28,9 @@ install() {
     pushd /c/downloads/cygwin/myrepo
     GENINI
     popd
-    ${setup} -M -X -L -P $1
+    # ${setup} -q -X -L -P $1
+    # Need -M on second run so can reinstall.
+    ${setup} -M -X -L
 }
 
 mods="
@@ -56,12 +59,6 @@ do
     eval $(grep '^VERSION=' ${m}/${m}.cygport)
     eval $(grep '^RELEASE=' ${m}/${m}.cygport)
     PVR=${NAME}-${VERSION}-${RELEASE}
-    if [ ${RELEASE} = 1 ]
-    then
-       RELEASE=2
-       PVR=${NAME}-${VERSION}-2
-       sed -i -e 's/^RELEASE=.*/RELEASE=2/' ${m}/${m}.cygport
-    fi
     ARCH=${SYSARCH}
     eval $(grep '^ARCH=' ${m}/${m}.cygport)
     if [ ${ARCH} = i686 -o ${SYSARCH} = x86_64 ]
diff --git a/prereqs01/build.sh b/prereqs01/build.sh
new file mode 100755 (executable)
index 0000000..f85d401
--- /dev/null
@@ -0,0 +1,94 @@
+#! /bin/bash
+
+# Run in elevated shell as kbrown-admin.
+# Copy setup-*.exe to *.exe to avoid prompt.
+
+SYSARCH=$(uname -m)
+if [ ${SYSARCH} = i686 ]
+then
+    GENINI="GEN-ini"
+    DEST_ARCH="x86"
+else
+    GENINI="GEN-ini64"
+    DEST_ARCH="x86_64"
+fi
+
+setup="/c/downloads/cygwin/${DEST_ARCH}.exe"
+
+GENINI() {
+    mksetupini --arch=${DEST_ARCH} --release=kbrown --inifile=${DEST_ARCH}/setup.ini \
+              --okmissing=required-package --okmissing=curr --releasearea .
+cd ${DEST_ARCH}
+xz -c setup.ini > setup.xz
+chown kbrown setup.ini setup.xz
+cd ..
+}
+
+install() {
+    local command
+    pushd /c/downloads/cygwin/myrepo
+    GENINI
+    popd
+    command="${setup} -q -X -L"
+    for m in ${mods}
+    do
+       command+=" -P ${m}"
+    done
+    echo "Running ${command}"
+    ${command}
+}
+
+mods="
+         perl-ExtUtils-Config
+         perl-Try-Tiny
+"
+
+rm -f build_failures.txt test_failures.txt
+touch build_failures.txt test_failures.txt
+chown kbrown build_failures.txt test_failures.txt
+
+export cygport_no_error=1
+
+for m in ${mods}
+do
+    eval $(grep '^NAME=' ${m}/${m}.cygport)
+    eval $(grep '^VERSION=' ${m}/${m}.cygport)
+    eval $(grep '^RELEASE=' ${m}/${m}.cygport)
+    PVR=${NAME}-${VERSION}-${RELEASE}
+    ARCH=${SYSARCH}
+    eval $(grep '^ARCH=' ${m}/${m}.cygport)
+    if [ ${ARCH} = i686 -o ${SYSARCH} = x86_64 ]
+    then
+       echo "Entering ${m}..."
+       cd ${m} || exit 1
+       echo "Running cygport..."
+       rm -rf ${PVR}.${ARCH}
+       if cygport ${m}.cygport fetch all
+       then
+           cygport ${m}.cygport test || echo $m >> ../test_failures.txt
+           if [ ${ARCH} = noarch ]
+           then
+               dest=/c/downloads/cygwin/myrepo/noarch/release/
+           else
+               dest=/c/downloads/cygwin/myrepo/${DEST_ARCH}/release/
+           fi
+           chown -R kbrown .
+           rm -rf ${dest}/${m}
+           cp -alf ${PVR}.${ARCH}/dist/${m} ${dest}
+       else
+           echo ${m} >> ../build_failures.txt
+           chown -R kbrown .
+       fi
+       echo "Leaving ${m}."
+       cd ..
+    fi
+done
+install
+if [ -n "$(cat *.txt)" ]
+then
+    echo There were failures.
+    exit 1
+else
+    exit 0
+fi
+
diff --git a/prereqs01/fix_names.sh b/prereqs01/fix_names.sh
new file mode 100755 (executable)
index 0000000..4a5937f
--- /dev/null
@@ -0,0 +1,31 @@
+#! /bin/bash
+
+for d in *.src
+do
+    if [ -d ${d} ]
+    then
+       m=$(echo ${d} | sed -e 's/[-.0-9]*\.src$//')
+       mv ${d} ${m} || exit 1
+       echo "Entering ${m}..."
+       cd ${m} || exit 1
+       eval $(grep '^VERSION=' *.cygport)
+       if [ -f ${m}-${VERSION}-1.cygport ]
+       then
+           mv ${m}-${VERSION}-1.cygport ${m}.cygport || exit 1
+       fi
+       if [ -f ${m}-${VERSION}-1.src.patch ]
+       then
+           mv ${m}-${VERSION}-1.src.patch achim.patch || exit 1
+           echo 'PATCH_URI="achim.patch"' >> ${m}/${m}.cygport || exit 1
+       fi
+       eval $(grep '^RELEASE=' *.cygport)
+       if [ ${RELEASE} = 1 ]
+       then
+           sed -i -e 's/^RELEASE=.*/RELEASE=2/' ${m}.cygport
+       else
+           echo "Warning: RELEASE = ${RELEASE}."
+       fi
+       echo "Leaving ${m}."
+       cd ..
+    fi
+done
diff --git a/prereqs01/perl-ExtUtils-Config/perl-ExtUtils-Config.cygport b/prereqs01/perl-ExtUtils-Config/perl-ExtUtils-Config.cygport
new file mode 100644 (file)
index 0000000..ca80346
--- /dev/null
@@ -0,0 +1,14 @@
+NAME="perl-ExtUtils-Config"
+VERSION="0.008"
+RELEASE="1"
+CPAN_AUTHOR="LEONT"
+DESCRIPTION="Perl distribution ExtUtils-Config, providing Perl modules:
+ExtUtils::Config.
+
+A wrapper for perl's configuration."
+
+DIFF_EXCLUDES="MYMETA.*"
+
+NO_PERL_DEPS=1
+ARCH=noarch
+inherit perl
diff --git a/prereqs01/perl-Try-Tiny/perl-Try-Tiny.cygport b/prereqs01/perl-Try-Tiny/perl-Try-Tiny.cygport
new file mode 100644 (file)
index 0000000..2cb0cb9
--- /dev/null
@@ -0,0 +1,14 @@
+NAME="perl-Try-Tiny"
+VERSION="0.28"
+RELEASE=2
+CPAN_AUTHOR="ETHER"
+DESCRIPTION="Perl distribution Try-Tiny, providing Perl modules:
+Try::Tiny.
+
+Minimal try/catch with proper preservation of $@."
+
+ARCH=noarch
+DIFF_EXCLUDES="MYMETA.*"
+
+NO_PERL_DEPS=1
+inherit perl
diff --git a/prereqs02/build.sh b/prereqs02/build.sh
new file mode 100755 (executable)
index 0000000..e53c0e9
--- /dev/null
@@ -0,0 +1,99 @@
+#! /bin/bash
+
+# Run in elevated shell as kbrown-admin.
+# Copy setup-*.exe to *.exe to avoid prompt.
+
+SYSARCH=$(uname -m)
+if [ ${SYSARCH} = i686 ]
+then
+    GENINI="GEN-ini"
+    DEST_ARCH="x86"
+else
+    GENINI="GEN-ini64"
+    DEST_ARCH="x86_64"
+fi
+
+setup="/c/downloads/cygwin/${DEST_ARCH}.exe"
+
+GENINI() {
+    mksetupini --arch=${DEST_ARCH} --release=kbrown --inifile=${DEST_ARCH}/setup.ini \
+              --okmissing=required-package --okmissing=curr --releasearea .
+cd ${DEST_ARCH}
+xz -c setup.ini > setup.xz
+chown kbrown setup.ini setup.xz
+cd ..
+}
+
+install() {
+    local command
+    pushd /c/downloads/cygwin/myrepo
+    GENINI
+    popd
+    command="${setup} -q -X -L"
+    for m in ${mods}
+    do
+       command+=" -P ${m}"
+    done
+    echo "Running ${command}"
+    ${command}
+}
+
+mods="
+        perl-ExtUtils-Helpers
+        perl-ExtUtils-InstallPaths
+        perl-Importer
+        perl-Module-Runtime
+        perl-Test-Fatal
+        perl-Test-Requires
+        perl-Test-Simple
+"
+
+rm -f build_failures.txt test_failures.txt
+touch build_failures.txt test_failures.txt
+chown kbrown build_failures.txt test_failures.txt
+
+export cygport_no_error=1
+
+for m in ${mods}
+do
+    eval $(grep '^NAME=' ${m}/${m}.cygport)
+    eval $(grep '^VERSION=' ${m}/${m}.cygport)
+    eval $(grep '^RELEASE=' ${m}/${m}.cygport)
+    PVR=${NAME}-${VERSION}-${RELEASE}
+    ARCH=${SYSARCH}
+    eval $(grep '^ARCH=' ${m}/${m}.cygport)
+    if [ ${ARCH} = i686 -o ${SYSARCH} = x86_64 ]
+    then
+       echo "Entering ${m}..."
+       cd ${m} || exit 1
+       echo "Running cygport..."
+       rm -rf ${PVR}.${ARCH}
+       if cygport ${m}.cygport fetch all
+       then
+           cygport ${m}.cygport test || echo $m >> ../test_failures.txt
+           if [ ${ARCH} = noarch ]
+           then
+               dest=/c/downloads/cygwin/myrepo/noarch/release/
+           else
+               dest=/c/downloads/cygwin/myrepo/${DEST_ARCH}/release/
+           fi
+           chown -R kbrown .
+           rm -rf ${dest}/${m}
+           cp -alf ${PVR}.${ARCH}/dist/${m} ${dest}
+       else
+           echo ${m} >> ../build_failures.txt
+           chown -R kbrown .
+       fi
+       echo "Leaving ${m}."
+       cd ..
+    fi
+done
+install
+if [ -n "$(cat *.txt)" ]
+then
+    echo There were failures.
+    exit 1
+else
+    exit 0
+fi
+
diff --git a/prereqs02/fix_names.sh b/prereqs02/fix_names.sh
new file mode 100755 (executable)
index 0000000..4a5937f
--- /dev/null
@@ -0,0 +1,31 @@
+#! /bin/bash
+
+for d in *.src
+do
+    if [ -d ${d} ]
+    then
+       m=$(echo ${d} | sed -e 's/[-.0-9]*\.src$//')
+       mv ${d} ${m} || exit 1
+       echo "Entering ${m}..."
+       cd ${m} || exit 1
+       eval $(grep '^VERSION=' *.cygport)
+       if [ -f ${m}-${VERSION}-1.cygport ]
+       then
+           mv ${m}-${VERSION}-1.cygport ${m}.cygport || exit 1
+       fi
+       if [ -f ${m}-${VERSION}-1.src.patch ]
+       then
+           mv ${m}-${VERSION}-1.src.patch achim.patch || exit 1
+           echo 'PATCH_URI="achim.patch"' >> ${m}/${m}.cygport || exit 1
+       fi
+       eval $(grep '^RELEASE=' *.cygport)
+       if [ ${RELEASE} = 1 ]
+       then
+           sed -i -e 's/^RELEASE=.*/RELEASE=2/' ${m}.cygport
+       else
+           echo "Warning: RELEASE = ${RELEASE}."
+       fi
+       echo "Leaving ${m}."
+       cd ..
+    fi
+done
diff --git a/prereqs02/perl-ExtUtils-Helpers-0.026-1.src/perl-ExtUtils-Helpers-0.026-1.cygport b/prereqs02/perl-ExtUtils-Helpers-0.026-1.src/perl-ExtUtils-Helpers-0.026-1.cygport
new file mode 100644 (file)
index 0000000..7262e25
--- /dev/null
@@ -0,0 +1,15 @@
+NAME="perl-ExtUtils-Helpers"
+VERSION="0.026"
+RELEASE="1"
+CPAN_AUTHOR="LEONT"
+DESCRIPTION="Perl distribution ExtUtils-Helpers, providing Perl modules:
+ExtUtils::Helpers ExtUtils::Helpers::Unix ExtUtils::Helpers::VMS
+ExtUtils::Helpers::Windows.
+
+Various portability utilities for module builders."
+
+ARCH=noarch
+DIFF_EXCLUDES="MYMETA.*"
+
+NO_PERL_DEPS=1
+inherit perl
diff --git a/prereqs02/perl-Importer-0.024-1.src/perl-Importer-0.024-1.cygport b/prereqs02/perl-Importer-0.024-1.src/perl-Importer-0.024-1.cygport
new file mode 100644 (file)
index 0000000..db74e63
--- /dev/null
@@ -0,0 +1,14 @@
+NAME="perl-Importer"
+VERSION="0.024"
+RELEASE="1"
+CPAN_AUTHOR="EXODIST"
+DESCRIPTION="Perl distribution Importer, providing Perl modules:
+Importer.
+
+Alternative but compatible interface to modules that export symbols."
+
+ARCH=noarch
+DIFF_EXCLUDES="MYMETA.*"
+
+NO_PERL_DEPS=1
+inherit perl
diff --git a/prereqs02/perl-Module-Runtime-0.014-1.src/perl-Module-Runtime.cygport b/prereqs02/perl-Module-Runtime-0.014-1.src/perl-Module-Runtime.cygport
new file mode 100644 (file)
index 0000000..1fbf2ab
--- /dev/null
@@ -0,0 +1,13 @@
+CPAN_AUTHOR=zefram
+inherit perl
+
+NAME="perl-Module-Runtime"
+VERSION=0.014
+RELEASE=1
+CATEGORY="Perl"
+SUMMARY="Perl distribution Module-Runtime"
+DESCRIPTION="The functions exported by this module deal with runtime handling of
+Perl modules, which are normally handled at compile time.  This module avoids
+using any other modules, so that it can be used in low-level infrastructure."
+
+ARCH=noarch
diff --git a/prereqs02/perl-Test-Fatal-0.014-2.src/perl-Test-Fatal-0.014-2.cygport b/prereqs02/perl-Test-Fatal-0.014-2.src/perl-Test-Fatal-0.014-2.cygport
new file mode 100755 (executable)
index 0000000..f24873f
--- /dev/null
@@ -0,0 +1,14 @@
+NAME="perl-Test-Fatal"
+VERSION="0.014"
+RELEASE="2"
+CPAN_AUTHOR="RJBS"
+DESCRIPTION="Perl distribution Test-Fatal, providing Perl modules:
+Test::Fatal.
+
+Incredibly simple helpers for testing code with exceptions."
+
+DIFF_EXCLUDES="MYMETA.*"
+
+NO_PERL_DEPS=1
+REQUIRES="perl-Try-Tiny"
+inherit perl
diff --git a/prereqs02/perl-Test-Requires-0.10-1.src/perl-Test-Requires-0.10-1.cygport b/prereqs02/perl-Test-Requires-0.10-1.src/perl-Test-Requires-0.10-1.cygport
new file mode 100755 (executable)
index 0000000..aa4f954
--- /dev/null
@@ -0,0 +1,13 @@
+NAME="perl-Test-Requires"
+VERSION="0.10"
+RELEASE="1"
+CPAN_AUTHOR="TOKUHIROM"
+DESCRIPTION="Perl distribution Test-Requires, providing Perl modules:
+Test::Requires.
+
+Checks to see if the module can be loaded."
+
+DIFF_EXCLUDES="MYMETA.*"
+
+NO_PERL_DEPS=1
+inherit perl
This page took 0.036082 seconds and 5 git commands to generate.