From patchwork Mon May 6 14:10:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jelle van der Waa X-Patchwork-Id: 1098 Return-Path: Delivered-To: patchwork@archlinux.org Received: from apollo.archlinux.org (localhost [127.0.0.1]) by apollo.archlinux.org (Postfix) with ESMTP id E7813E100D8C for ; Mon, 6 May 2019 14:10:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on apollo X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=DKIM_INVALID=1, DKIM_SIGNED=0.1,MAILING_LIST_MULTI=-1,RCVD_IN_DNSWL_MED=-2.3 autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-BL-Results: [127.0.0.11] [127.0.9.2] Received: from orion.archlinux.org (orion.archlinux.org [88.198.91.70]) by apollo.archlinux.org (Postfix) with ESMTPS for ; Mon, 6 May 2019 14:10:24 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id F11751264474C9; Mon, 6 May 2019 14:10:21 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [IPv6:2a01:4f8:160:3033::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits)) (No client certificate requested) by orion.archlinux.org (Postfix) with ESMTPS; Mon, 6 May 2019 14:10:21 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id CB85420F22; Mon, 6 May 2019 14:10:21 +0000 (UTC) Authentication-Results: luna.archlinux.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=vdwaa-nl.20150623.gappssmtp.com header.i=@vdwaa-nl.20150623.gappssmtp.com header.b=JlgOYkb1 Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id 344212086E for ; Mon, 6 May 2019 14:10:18 +0000 (UTC) Received: from orion.archlinux.org (orion.archlinux.org [88.198.91.70]) by luna.archlinux.org (Postfix) with ESMTPS for ; Mon, 6 May 2019 14:10:18 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id 4C5051264474C0 for ; Mon, 6 May 2019 14:10:16 +0000 (UTC) Received: from mail-ed1-x544.google.com (mail-ed1-x544.google.com [IPv6:2a00:1450:4864:20::544]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by orion.archlinux.org (Postfix) with ESMTPS for ; Mon, 6 May 2019 14:10:16 +0000 (UTC) Received: by mail-ed1-x544.google.com with SMTP id p26so15481288edr.2 for ; Mon, 06 May 2019 07:10:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vdwaa-nl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=A3C1oJYeOlMxef95hdPEB6os60PoIXe8vdCp+A/V2qs=; b=JlgOYkb19KjOt4n9qWyzv2TSJYwBzoNFmrnzbPREjfr4EsX8DZk8SRb4qLLy8nf+CG 8B142hAxr2h1W9SlyCW+L9nArEGVuWBG64vIivVeYIKrwiEbx4kIaSs5PuTMeyxN/cO+ Ni3FY8WEvkyutMG7v6Ekxcm6b/f/hIDcfbJwlMFTjLqc9vjoepGPao5NWeAhrUHymYtF 2QL9f+lI8rFAPVmJKdy2LVfzycfbVgzap+ReP7OGFlUBVURI8UPWv4/qGTIbhOt6D8wh g7+oJlLppVQkjQOSfWIdKJnDmcDO0o0Hmz8zGBNZfVT6cJMf4mSA8nYUzfoIZt5ufKHv SXPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=A3C1oJYeOlMxef95hdPEB6os60PoIXe8vdCp+A/V2qs=; b=eya9aoeoyCe1Og7/LgE/4ySHCg/tRbDY1Iik+WjVcYYXUnRNm07QA7WgSlgRNRIIPa cJNQo01BJiKmdlb0bv9q680o7gWh7sA4PpzQIAEvqzMA0H5nCCOK3wPfpfrcQQtr+YFK GZfZ26VUWdDp0RiWsARx8hVKGUgpxpv4SgEzMQftrK63QQMJdP/3QZ1NZXM8QsNRlI/E FH+/Rxnsf3TMWfb8JGwHra3B47U1doNzNXjHwEdl1gdfu6++0atK32O26uRjL/WeANuE e21OZVFhQ+34fNRFn9DFqkJ5I0oTVxYS8mZSMYSybG0bHjb3wx9YjLyx6ZrvLIRKetnE B+Sw== X-Gm-Message-State: APjAAAXHarxmc+YWhcS/qizmHjj4YAqtdPZ/gY1aUKyUGOUiHCz/SJQs tOcHkO5lb/pjt9L6FfRMdXHxWKRqLCY= X-Google-Smtp-Source: APXvYqyfNPBYFO4N0Wb33MEa9+aW1RgGhfMpeOHgZsYXKl2pRYg+F40aZE+ZStZdLAXJjuDzFvwZ0Q== X-Received: by 2002:a50:9143:: with SMTP id f3mr26195480eda.255.1557151814498; Mon, 06 May 2019 07:10:14 -0700 (PDT) Received: from localhost.localdomain (83-84-17-34.cable.dynamic.v4.ziggo.nl. [83.84.17.34]) by smtp.gmail.com with ESMTPSA id o3sm1585795ejb.71.2019.05.06.07.10.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 May 2019 07:10:13 -0700 (PDT) From: Jelle van der Waa X-Google-Original-From: Jelle van der Waa To: arch-projects@archlinux.org Date: Mon, 6 May 2019 16:10:09 +0200 Message-Id: <20190506141009.3556-1-jelle@vdwaa.nl> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [arch-projects] [devtools] [PATCH] Remove finddeps tool X-BeenThere: arch-projects@archlinux.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Arch Linux projects development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Arch Linux projects development discussion Errors-To: arch-projects-bounces@archlinux.org Sender: "arch-projects" From: Jelle van der Waa finddeps depends on a no longer existing ABS tree. This data can also be queried via archweb. --- .gitignore | 1 - Makefile | 1 - finddeps.in | 41 ----------------------------------------- zsh_completion.in | 6 +----- 4 files changed, 1 insertion(+), 48 deletions(-) delete mode 100644 finddeps.in diff --git a/.gitignore b/.gitignore index b63587b..49afce6 100644 --- a/.gitignore +++ b/.gitignore @@ -6,7 +6,6 @@ archrelease bash_completion checkpkg commitpkg -finddeps lddd makechrootpkg mkarchroot diff --git a/Makefile b/Makefile index ba2d3e4..15c2786 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,6 @@ IN_PROGS = \ archrelease \ archbuild \ lddd \ - finddeps \ rebuildpkgs \ find-libdeps \ crossrepomove\ diff --git a/finddeps.in b/finddeps.in deleted file mode 100644 index 2a085e5..0000000 --- a/finddeps.in +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -# -# finddeps - find packages that depend on a given depname -# -# License: Unspecified - -m4_include(lib/common.sh) - -match=$1 - -if [[ -z $match ]]; then - echo 'Usage: finddeps ' - echo '' - echo 'Find packages that depend on a given depname.' - echo 'Run this script from the top-level directory of your ABS tree.' - echo '' - exit 1 -fi - -find . -type d | while read -r d; do - if [[ -f "$d/PKGBUILD" ]]; then - pkgname=() depends=() makedepends=() optdepends=() - # shellcheck source=PKGBUILD.proto - . "$d/PKGBUILD" - for dep in "${depends[@]}"; do - # lose the version comparator, if any - depname=${dep%%[<>=]*} - [[ $depname = "$match" ]] && echo "$d (depends)" - done - for dep in "${makedepends[@]}"; do - # lose the version comparator, if any - depname=${dep%%[<>=]*} - [[ $depname = "$match" ]] && echo "$d (makedepends)" - done - for dep in "${optdepends[@]/:*}"; do - # lose the version comaparator, if any - depname=${dep%%[<>=]*} - [[ $depname = "$match" ]] && echo "$d (optdepends)" - done - fi -done diff --git a/zsh_completion.in b/zsh_completion.in index 45429bd..5f2111f 100644 --- a/zsh_completion.in +++ b/zsh_completion.in @@ -1,4 +1,4 @@ -#compdef archbuild archco arch-nspawn archrelease commitpkg finddeps makechrootpkg mkarchroot rebuildpkgs extrapkg=commitpkg corepkg=commitpkg testingpkg=commitpkg stagingpkg=commitpkg communitypkg=commitpkg community-testingpkg=commitpkg community-stagingpkg=commitpkg multilibpkg=commitpkg multilib-testingpkg=commitpkg extra-x86_64-build=archbuild testing-x86_64-build=archbuild staging-x86_64-build=archbuild multilib-build=archbuild multilib-testing-build=archbuild multilib-staging-build=archbuild kde-unstable-x86_64-build=archbuild gnome-unstable-x86_64-build=archbuild communityco=archco +#compdef archbuild archco arch-nspawn archrelease commitpkg makechrootpkg mkarchroot rebuildpkgs extrapkg=commitpkg corepkg=commitpkg testingpkg=commitpkg stagingpkg=commitpkg communitypkg=commitpkg community-testingpkg=commitpkg community-stagingpkg=commitpkg multilibpkg=commitpkg multilib-testingpkg=commitpkg extra-x86_64-build=archbuild testing-x86_64-build=archbuild staging-x86_64-build=archbuild multilib-build=archbuild multilib-testing-build=archbuild multilib-staging-build=archbuild kde-unstable-x86_64-build=archbuild gnome-unstable-x86_64-build=archbuild communityco=archco # License: Unspecified m4_include(lib/valid-tags.sh) @@ -29,10 +29,6 @@ _commitpkg_args=( '1:commit_msg' ) -_finddeps_args=( - '1:packages:_devtools_completions_all_packages' -) - _makechrootpkg_args=( '-I[Install a package into the working copy]:target:_files -g "*.pkg.tar.*(.)"' '-c[Clean the chroot before building]'