From bdd351bde6ecc60db2316c703342b41207d2080d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dylan=20A=C3=AFssi?= <dylan.aissi@collabora.com>
Date: Tue, 4 Feb 2025 10:17:39 +0100
Subject: [PATCH] Revert "ci-buildpackage: use wrap-and-sort as a workaround
 for odd packages"
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This reverts commit e954d2be4e0e2b451f8da2bbd8d57afc5be58895.

This was a workaround for odd nodes packages that apt was
not able to parse. It has been fixed in apt 2.3.10 (Debian/Bookworm
& Apertis/v2024) with
https://salsa.debian.org/apt-team/apt/-/merge_requests/167.

Having this workaround leads to other apt failures
to resolve dependencies (because of conflicts between
rustc and rustc-web).

Signed-off-by: Dylan Aïssi <dylan.aissi@collabora.com>
---
 package-source-builder/overlay/usr/bin/ci-buildpackage | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/package-source-builder/overlay/usr/bin/ci-buildpackage b/package-source-builder/overlay/usr/bin/ci-buildpackage
index 465e175..970fdc8 100755
--- a/package-source-builder/overlay/usr/bin/ci-buildpackage
+++ b/package-source-builder/overlay/usr/bin/ci-buildpackage
@@ -11,17 +11,11 @@ set -ex
 
 export DEBIAN_FRONTEND=noninteractive
 
-# Works around node-* packages having Build-Depends apt can't parse
-wrap-and-sort -f debian/control
-
 apt-get -qy update
 apt-get -qy -o APT::Get::Build-Dep-Automatic=yes \
   -o Acquire::http::Pipeline-Depth=0 \
   build-dep "$(pwd)"
 
-# Revert changes made by `wrap-and-sort`
-git checkout debian/
-
 dpkg-checkbuilddeps
 
 dversion="$(dpkg-parsechangelog -S Version)"
-- 
GitLab