get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/110255/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 110255,
    "url": "http://patches.dpdk.org/api/patches/110255/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220426071828.1810-2-david.marchand@redhat.com/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20220426071828.1810-2-david.marchand@redhat.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220426071828.1810-2-david.marchand@redhat.com",
    "date": "2022-04-26T07:18:28",
    "name": "[2/2] ci: add mingw cross compilation in GHA",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "15d372e8cbf1283d98c88d66a60d56e81c7fc764",
    "submitter": {
        "id": 1173,
        "url": "http://patches.dpdk.org/api/people/1173/?format=api",
        "name": "David Marchand",
        "email": "david.marchand@redhat.com"
    },
    "delegate": {
        "id": 24651,
        "url": "http://patches.dpdk.org/api/users/24651/?format=api",
        "username": "dmarchand",
        "first_name": "David",
        "last_name": "Marchand",
        "email": "david.marchand@redhat.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20220426071828.1810-2-david.marchand@redhat.com/mbox/",
    "series": [
        {
            "id": 22669,
            "url": "http://patches.dpdk.org/api/series/22669/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=22669",
            "date": "2022-04-26T07:18:28",
            "name": "[1/2] ci: switch to Ubuntu 20.04",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/22669/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/110255/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/110255/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 6D228A00C3;\n\tTue, 26 Apr 2022 09:19:13 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 6004340691;\n\tTue, 26 Apr 2022 09:19:13 +0200 (CEST)",
            "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.133.124])\n by mails.dpdk.org (Postfix) with ESMTP id 76F054068E\n for <dev@dpdk.org>; Tue, 26 Apr 2022 09:19:12 +0200 (CEST)",
            "from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com\n [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS\n (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n us-mta-86-J8U6LrF9N5y9tjGRBQlFKQ-1; Tue, 26 Apr 2022 03:19:10 -0400",
            "from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com\n [10.11.54.5])\n (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n (No client certificate requested)\n by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A3B8985A5BC;\n Tue, 26 Apr 2022 07:19:04 +0000 (UTC)",
            "from dmarchan.remote.csb (unknown [10.40.193.200])\n by smtp.corp.redhat.com (Postfix) with ESMTP id 9D95D9E8F;\n Tue, 26 Apr 2022 07:19:00 +0000 (UTC)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1650957552;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=eP1N9CELhfcuzclBPOgrIlodNKqlxBIvBOC2QVB5W7I=;\n b=AQAwR6b2ib0tm1XTemNiNK+GUt6RlppQ/GaqnfI6NEyLXTSs53oCyJA+R4h3bQHsfZDpTx\n oNEVq4nNdCShrBQPPjKQyGgk9RG8n/40AToDfTVJna/3nYAVuEf2Spr5YW8t2b6yt/Wqnz\n JFxiPen/GMED3HKvGNULF7GBS1mqovw=",
        "X-MC-Unique": "J8U6LrF9N5y9tjGRBQlFKQ-1",
        "From": "David Marchand <david.marchand@redhat.com>",
        "To": "dev@dpdk.org",
        "Cc": "Aaron Conole <aconole@redhat.com>,\n Michael Santana <maicolgabriel@hotmail.com>",
        "Subject": "[PATCH 2/2] ci: add mingw cross compilation in GHA",
        "Date": "Tue, 26 Apr 2022 09:18:28 +0200",
        "Message-Id": "<20220426071828.1810-2-david.marchand@redhat.com>",
        "In-Reply-To": "<20220426071828.1810-1-david.marchand@redhat.com>",
        "References": "<20220426071828.1810-1-david.marchand@redhat.com>",
        "MIME-Version": "1.0",
        "X-Scanned-By": "MIMEDefang 2.79 on 10.11.54.5",
        "Authentication-Results": "relay.mimecast.com;\n auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=david.marchand@redhat.com",
        "X-Mimecast-Spam-Score": "0",
        "X-Mimecast-Originator": "redhat.com",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain; charset=\"US-ASCII\"; x-default=true",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org"
    },
    "content": "Add mingw cross compilation in our public CI so that users with their\nown github repository have a first level of checks for Windows compilation\nbefore submitting to the mailing list.\nThis does not replace our better checks in other entities of the CI.\n\nOnly the helloworld example is compiled (same as what is tested in\ntest-meson-builds.sh).\n\nNote: the mingw cross compilation toolchain (version 5.0) in Ubuntu\n18.04 was broken (missing a ENOMSG definition).\n\nSigned-off-by: David Marchand <david.marchand@redhat.com>\n---\n .ci/linux-build.sh          | 22 +++++++++++++++++-----\n .github/workflows/build.yml |  8 ++++++++\n 2 files changed, 25 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/.ci/linux-build.sh b/.ci/linux-build.sh\nindex 30119b61ba..06dd20772d 100755\n--- a/.ci/linux-build.sh\n+++ b/.ci/linux-build.sh\n@@ -37,16 +37,26 @@ catch_coredump() {\n     return 1\n }\n \n+cross_file=\n+\n if [ \"$AARCH64\" = \"true\" ]; then\n     if [ \"${CC%%clang}\" != \"$CC\" ]; then\n-        OPTS=\"$OPTS --cross-file config/arm/arm64_armv8_linux_clang_ubuntu2004\"\n+        cross_file=config/arm/arm64_armv8_linux_clang_ubuntu2004\n     else\n-        OPTS=\"$OPTS --cross-file config/arm/arm64_armv8_linux_gcc\"\n+        cross_file=config/arm/arm64_armv8_linux_gcc\n     fi\n fi\n \n+if [ \"$MINGW\" = \"true\" ]; then\n+    cross_file=config/x86/cross-mingw\n+fi\n+\n if [ \"$PPC64LE\" = \"true\" ]; then\n-    OPTS=\"$OPTS --cross-file config/ppc/ppc64le-power8-linux-gcc-ubuntu2004\"\n+    cross_file=config/ppc/ppc64le-power8-linux-gcc-ubuntu2004\n+fi\n+\n+if [ -n \"$cross_file\" ]; then\n+    OPTS=\"$OPTS --cross-file $cross_file\"\n fi\n \n if [ \"$BUILD_DOCS\" = \"true\" ]; then\n@@ -59,7 +69,9 @@ if [ \"$BUILD_32BIT\" = \"true\" ]; then\n     export PKG_CONFIG_LIBDIR=\"/usr/lib32/pkgconfig\"\n fi\n \n-if [ \"$DEF_LIB\" = \"static\" ]; then\n+if [ \"$MINGW\" = \"true\" ]; then\n+    OPTS=\"$OPTS -Dexamples=helloworld\"\n+elif [ \"$DEF_LIB\" = \"static\" ]; then\n     OPTS=\"$OPTS -Dexamples=l2fwd,l3fwd\"\n else\n     OPTS=\"$OPTS -Dexamples=all\"\n@@ -76,7 +88,7 @@ fi\n meson build --werror $OPTS\n ninja -C build\n \n-if [ \"$AARCH64\" != \"true\" ] && [ \"$PPC64LE\" != \"true\" ]; then\n+if [ -z \"$cross_file\" ]; then\n     failed=\n     configure_coredump\n     devtools/test-null.sh || failed=\"true\"\ndiff --git a/.github/workflows/build.yml b/.github/workflows/build.yml\nindex 812aa7055d..e2f94d786b 100644\n--- a/.github/workflows/build.yml\n+++ b/.github/workflows/build.yml\n@@ -21,6 +21,7 @@ jobs:\n       CC: ccache ${{ matrix.config.compiler }}\n       DEF_LIB: ${{ matrix.config.library }}\n       LIBABIGAIL_VERSION: libabigail-1.8\n+      MINGW: ${{ matrix.config.cross == 'mingw' }}\n       MINI: ${{ matrix.config.mini != '' }}\n       PPC64LE: ${{ matrix.config.cross == 'ppc64le' }}\n       REF_GIT_TAG: v22.03\n@@ -52,6 +53,10 @@ jobs:\n             compiler: gcc\n             library: static\n             cross: i386\n+          - os: ubuntu-20.04\n+            compiler: gcc\n+            library: static\n+            cross: mingw\n           - os: ubuntu-20.04\n             compiler: gcc\n             library: static\n@@ -119,6 +124,9 @@ jobs:\n       if: env.AARCH64 == 'true'\n       run: sudo apt install -y gcc-aarch64-linux-gnu libc6-dev-arm64-cross\n         pkg-config-aarch64-linux-gnu\n+    - name: Install mingw cross compiling packages\n+      if: env.MINGW == 'true'\n+      run: sudo apt install -y mingw-w64 mingw-w64-tools\n     - name: Install ppc64le cross compiling packages\n       if: env.PPC64LE == 'true'\n       run: sudo apt install -y gcc-powerpc64le-linux-gnu libc6-dev-ppc64el-cross\n",
    "prefixes": [
        "2/2"
    ]
}