Catalog > warpsys.org/gettext > v0.21 > Replay

warpsys.org/gettext

{
  "inputs": {
    "glibc": "catalog:warpsys.org/bootstrap/glibc:v2.35:amd64",
    "ld": "catalog:warpsys.org/bootstrap/glibc:v2.35:ld-amd64",
    "ldshim": "catalog:warpsys.org/bootstrap/ldshim:v1.0:amd64",
    "make": "catalog:warpsys.org/bootstrap/make:v4.3:amd64",
    "gcc": "catalog:warpsys.org/bootstrap/gcc:v11.2.0:amd64",
    "grep": "catalog:warpsys.org/bootstrap/grep:v3.7:amd64",
    "coreutils": "catalog:warpsys.org/bootstrap/coreutils:v9.1:amd64",
    "binutils": "catalog:warpsys.org/bootstrap/binutils:v2.38:amd64",
    "sed": "catalog:warpsys.org/bootstrap/sed:v4.8:amd64",
    "gawk": "catalog:warpsys.org/bootstrap/gawk:v5.1.1:amd64",
    "busybox": "catalog:warpsys.org/bootstrap/busybox:v1.35.0:amd64",
    "src": "catalog:warpsys.org/gettext:v0.21:src"
  },
  "steps": {
    "build": {
      "protoformula": {
        "inputs": {
          "/src": "pipe::src",
          "/lib64": "pipe::ld",
          "/pkg/glibc": "pipe::glibc",
          "/pkg/make": "pipe::make",
          "/pkg/coreutils": "pipe::coreutils",
          "/pkg/binutils": "pipe::binutils",
          "/pkg/gcc": "pipe::gcc",
          "/pkg/sed": "pipe::sed",
          "/pkg/grep": "pipe::grep",
          "/pkg/gawk": "pipe::gawk",
          "/pkg/busybox": "pipe::busybox",
          "$PATH": "literal:/pkg/make/bin:/pkg/gcc/bin:/pkg/coreutils/bin:/pkg/binutils/bin:/pkg/sed/bin:/pkg/grep/bin:/pkg/gawk/bin:/pkg/busybox/bin",
          "$CPATH": "literal:/pkg/glibc/include:/pkg/glibc/include/x86_64-linux-gnu"
        },
        "action": {
          "script": {
            "interpreter": "/pkg/busybox/bin/sh",
            "contents": [
              "mkdir -p /bin /tmp /prefix /usr/include/",
              "ln -s /pkg/glibc/lib /prefix/lib",
              "ln -s /pkg/glibc/lib /lib",
              "ln -s /pkg/busybox/bin/sh /bin/sh",
              "ln -s /pkg/gcc/bin/cpp /lib/cpp",
              "cd /src/*",
              "mkdir -v build",
              "cd build",
              "export SOURCE_DATE_EPOCH=1262304000",
              "../configure --prefix=/warpsys-placeholder-prefix LDFLAGS=-Wl,-rpath=XORIGIN/../lib ARFLAGS=rvD",
              "make",
              "make DESTDIR=/out install",
              "sed -i '0,/XORIGIN/{s/XORIGIN/$ORIGIN/}' /out/warpsys-placeholder-prefix/bin/*"
            ]
          }
        },
        "outputs": {
          "out": {
            "from": "/out/warpsys-placeholder-prefix",
            "packtype": "tar"
          }
        }
      }
    },
    "pack": {
      "protoformula": {
        "inputs": {
          "/pack": "pipe:build:out",
          "/pkg/glibc": "pipe::glibc",
          "/pkg/ldshim": "pipe::ldshim",
          "/pkg/busybox": "pipe::busybox",
          "$PATH": "literal:/pkg/busybox/bin"
        },
        "action": {
          "script": {
            "interpreter": "/pkg/busybox/bin/sh",
            "contents": [
              "mkdir -vp /pack/lib",
              "mkdir -vp /pack/dynbin",
              "cp /pkg/glibc/lib/libc.so.6 /pack/lib",
              "cp /pkg/glibc/lib/libdl.so.2 /pack/lib",
              "cp /pkg/glibc/lib/libm.so.6 /pack/lib",
              "mv /pack/bin/envsubst /pack/dynbin",
              "mv /pack/bin/gettext /pack/dynbin",
              "mv /pack/bin/msgattrib /pack/dynbin",
              "mv /pack/bin/msgcat /pack/dynbin",
              "mv /pack/bin/msgcmp /pack/dynbin",
              "mv /pack/bin/msgcomm /pack/dynbin",
              "mv /pack/bin/msgconv /pack/dynbin",
              "mv /pack/bin/msgen /pack/dynbin",
              "mv /pack/bin/msgexec /pack/dynbin",
              "mv /pack/bin/msgfilter /pack/dynbin",
              "mv /pack/bin/msgfmt /pack/dynbin",
              "mv /pack/bin/msggrep /pack/dynbin",
              "mv /pack/bin/msginit /pack/dynbin",
              "mv /pack/bin/msgmerge /pack/dynbin",
              "mv /pack/bin/msgunfmt /pack/dynbin",
              "mv /pack/bin/msguniq /pack/dynbin",
              "mv /pack/bin/ngettext /pack/dynbin",
              "mv /pack/bin/recode-sr-latin /pack/dynbin",
              "mv /pack/bin/xgettext /pack/dynbin",
              "cp /pkg/ldshim/ldshim /pack/bin/envsubst",
              "cp /pkg/ldshim/ldshim /pack/bin/gettext",
              "cp /pkg/ldshim/ldshim /pack/bin/msgattrib",
              "cp /pkg/ldshim/ldshim /pack/bin/msgcat",
              "cp /pkg/ldshim/ldshim /pack/bin/msgcmp",
              "cp /pkg/ldshim/ldshim /pack/bin/msgcomm",
              "cp /pkg/ldshim/ldshim /pack/bin/msgconv",
              "cp /pkg/ldshim/ldshim /pack/bin/msgen",
              "cp /pkg/ldshim/ldshim /pack/bin/msgexec",
              "cp /pkg/ldshim/ldshim /pack/bin/msgfilter",
              "cp /pkg/ldshim/ldshim /pack/bin/msgfmt",
              "cp /pkg/ldshim/ldshim /pack/bin/msggrep",
              "cp /pkg/ldshim/ldshim /pack/bin/msgmerge",
              "cp /pkg/ldshim/ldshim /pack/bin/msgunfmt",
              "cp /pkg/ldshim/ldshim /pack/bin/msguniq",
              "cp /pkg/ldshim/ldshim /pack/bin/ngettext",
              "cp /pkg/ldshim/ldshim /pack/bin/recode-sr-latin",
              "cp /pkg/ldshim/ldshim /pack/bin/xgettext",
              "cp /pkg/glibc/lib/ld-linux-x86-64.so.2 /pack/lib"
            ]
          }
        },
        "outputs": {
          "out": {
            "from": "/pack",
            "packtype": "tar"
          }
        }
      }
    },
    "test-run": {
      "protoformula": {
        "inputs": {
          "/pkg/gettext": "pipe:pack:out"
        },
        "action": {
          "exec": {
            "command": [
              "/pkg/gettext/bin/msgfmt",
              "--version"
            ]
          }
        },
        "outputs": {}
      }
    }
  },
  "outputs": {
    "amd64": "pipe:pack:out"
  }
}