From patchwork Sat Apr 6 16:57:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1079485 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="YOODpjri"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44c2v95nQ7z9sQq for ; Sun, 7 Apr 2019 02:58:27 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 8D9088731C; Sat, 6 Apr 2019 16:58:25 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id g77+An5hKOns; Sat, 6 Apr 2019 16:58:22 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 8B9A88732F; Sat, 6 Apr 2019 16:58:22 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 395641BF42C for ; Sat, 6 Apr 2019 16:58:21 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 335B287A34 for ; Sat, 6 Apr 2019 16:58:21 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jWTuJvEIwBjX for ; Sat, 6 Apr 2019 16:58:20 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by hemlock.osuosl.org (Postfix) with ESMTPS id D56938789D for ; Sat, 6 Apr 2019 16:58:19 +0000 (UTC) Received: by mail-wm1-f66.google.com with SMTP id r186so11931920wmf.1 for ; Sat, 06 Apr 2019 09:58:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TTuMM9gZ5DKO/nN/Vz9A2FL+OHYH4xW8xO2hAafZZGE=; b=YOODpjriryMaTZ2qTn+y7VnRr+82km4kXA4pzRX03jvB1hjTsBQ8whAC3ifLwS0Cov SRfi6n250wUSs54OXWF1p7/KYyQ4bkfZfKE2RtWg6Awrodlu+pPJ7CW/C041s2TCfrNM Z5GQMh9+arFdyV/QENV+v9tC/yBVM9Bssg1y63Dydi4IGj0foqUqvZwEsRIgUjsPfzMP pcJfHjSbqO8GX72qbNfRhKrw58v060NeQXEYOEt1ZJy6KboODXdXIDE64A8YrRpvHVuc 0vgKDWxsYQZ1laRp69JbEFLKpNuVqmxnFU+fMowSh4gK3SFuskQoGvLSyg+s3iTwlJgh ajKw== 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=TTuMM9gZ5DKO/nN/Vz9A2FL+OHYH4xW8xO2hAafZZGE=; b=rAVY/Jt48vIigehfqFMUVi6wV0c/JgHLSBrWI3in5VCBLgkPYv1OKz5EUII4EJqrMt Ghihpwnaz7oJAs9Hv/193h1MonVI7AmeJFnKxyYVTmxVhhmzc2rxaqT4dYgZrT+ybzHu cxm81tjYeUH+u6uP/5L6ymxBVkg8d0y/m8NfxiCwfOwoD3oMMlLIqw6PacwEz5Ys9Wm1 gtSFcnnJecAeIq3Dl3qOm+N5AA4ksXDOp2KyksA4mT0NcYFdxaZ9g/i+YyutXlb0oS5V iqheu/vjKGA1mxU6HMwUoQqw1kbwkWVN7udIHatfSBeTASeH1KcgRMsvFDz4Ww3WJP7J TunQ== X-Gm-Message-State: APjAAAXJEu+HZaEmIpcq3b5LHL2bclhm0BcPiR7W1cQnB8gufv/pDhXv W3Af4Dc//6OPBz/GcltVjLuwdtIQ X-Google-Smtp-Source: APXvYqyzKw0LLIQQGdVFvNTq5hKlGvrFAn1dBh4cnZx4PX+E3laQ+POsj0Y8HulzFoORI3orgxm1WQ== X-Received: by 2002:a1c:55c3:: with SMTP id j186mr12095024wmb.127.1554569897879; Sat, 06 Apr 2019 09:58:17 -0700 (PDT) Received: from kali.home (lfbn-ren-1-314-196.w2-10.abo.wanadoo.fr. [2.10.15.196]) by smtp.gmail.com with ESMTPSA id v17sm4504513wmc.30.2019.04.06.09.58.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 06 Apr 2019 09:58:16 -0700 (PDT) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Sat, 6 Apr 2019 18:57:57 +0200 Message-Id: <20190406165800.4493-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/4] package/squeezelite: bump to version 71c012ad9ba102feb95823b7b9dc17e5305689c7 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Petazzoni , Bernd Kuhls , Hiroshi Kawashima , Fabrice Fontaine Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" - Switch site to https://github.com/ralph-irving/squeezelite - Remove all patches (already in version) - Update hash of license file (new author added: https://github.com/ralph-irving/squeezelite/commit/b8e5cd2d94fd280b8e858dd52ba05a7c6b07a514) Signed-off-by: Fabrice Fontaine --- ...ile-allow-passing-CFLAGS-and-LDFLAGS.patch | 54 --------------- ...utput_alsa-use-mallopt-only-on-glibc.patch | 34 ---------- .../0003-Replace-deprecated-FFmpeg-API.patch | 65 ------------------- .../0004-Fix-FTBFS-with-FFmpeg-4.0.patch | 31 --------- package/squeezelite/Config.in | 2 +- package/squeezelite/squeezelite.hash | 4 +- package/squeezelite/squeezelite.mk | 4 +- 7 files changed, 5 insertions(+), 189 deletions(-) delete mode 100644 package/squeezelite/0001-Makefile-allow-passing-CFLAGS-and-LDFLAGS.patch delete mode 100644 package/squeezelite/0002-output_alsa-use-mallopt-only-on-glibc.patch delete mode 100644 package/squeezelite/0003-Replace-deprecated-FFmpeg-API.patch delete mode 100644 package/squeezelite/0004-Fix-FTBFS-with-FFmpeg-4.0.patch diff --git a/package/squeezelite/0001-Makefile-allow-passing-CFLAGS-and-LDFLAGS.patch b/package/squeezelite/0001-Makefile-allow-passing-CFLAGS-and-LDFLAGS.patch deleted file mode 100644 index 2f002a80bc..0000000000 --- a/package/squeezelite/0001-Makefile-allow-passing-CFLAGS-and-LDFLAGS.patch +++ /dev/null @@ -1,54 +0,0 @@ -From a0f2e79d1373967dac9f3df4c500a71cd1b96b2b Mon Sep 17 00:00:00 2001 -From: Hiroshi Kawashima -Date: Sun, 7 Feb 2016 18:04:53 +0100 -Subject: [PATCH] Makefile: allow passing CFLAGS and LDFLAGS - -This patch is applied to squeezelite Makefile to add override -directive for CFLAGS and LDFLAGS assignment. -This enables adding flags to CFLAGS and LDFLAGS in Makefile. - -Signed-off-by: Hiroshi Kawashima ---- - Makefile | 12 +++++++----- - 1 file changed, 7 insertions(+), 5 deletions(-) - -diff --git a/Makefile b/Makefile -index dca2abd..286c725 100644 ---- a/Makefile -+++ b/Makefile -@@ -1,4 +1,6 @@ - # Cross compile support - create a Makefile which defines these three variables and then includes this Makefile... -+override CFLAGS += $(OPTS) -+override LDFLAGS += -lasound -lpthread -lm -lrt - CFLAGS ?= -Wall -fPIC -O2 $(OPTS) - LDFLAGS ?= -lasound -lpthread -lm -lrt - EXECUTABLE ?= squeezelite -@@ -52,20 +54,20 @@ endif - - # add optional link options - ifneq (,$(findstring $(OPT_LINKALL), $(CFLAGS))) -- LDFLAGS += $(LINKALL) -+ override LDFLAGS += $(LINKALL) - ifneq (,$(findstring $(OPT_FF), $(CFLAGS))) -- LDFLAGS += $(LINKALL_FF) -+ override LDFLAGS += $(LINKALL_FF) - endif - ifneq (,$(findstring $(OPT_RESAMPLE), $(CFLAGS))) -- LDFLAGS += $(LINKALL_RESAMPLE) -+ override LDFLAGS += $(LINKALL_RESAMPLE) - endif - ifneq (,$(findstring $(OPT_IR), $(CFLAGS))) -- LDFLAGS += $(LINKALL_IR) -+ override LDFLAGS += $(LINKALL_IR) - endif - else - # if not LINKALL and linux add LINK_LINUX - ifeq ($(UNAME), Linux) -- LDFLAGS += $(LINK_LINUX) -+ override LDFLAGS += $(LINK_LINUX) - endif - endif - --- -2.6.4 - diff --git a/package/squeezelite/0002-output_alsa-use-mallopt-only-on-glibc.patch b/package/squeezelite/0002-output_alsa-use-mallopt-only-on-glibc.patch deleted file mode 100644 index 6962b7b8fd..0000000000 --- a/package/squeezelite/0002-output_alsa-use-mallopt-only-on-glibc.patch +++ /dev/null @@ -1,34 +0,0 @@ -From 903922a7bcf06e04d9830b47bba6d65ed37304c1 Mon Sep 17 00:00:00 2001 -From: Thomas Petazzoni -Date: Sun, 7 Feb 2016 18:05:56 +0100 -Subject: [PATCH] output_alsa: use mallopt() only on glibc - -The musl C library does not provide the glibc specific mallopt() -functionality, so use it only when __GLIBC__ is defined. - -uClibc pretends to be glibc by defining __GLIBC__, but it implements -mallopt(), so it works fine. - -Signed-off-by: Thomas Petazzoni ---- - output_alsa.c | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/output_alsa.c b/output_alsa.c -index aa01560..44c9fc7 100644 ---- a/output_alsa.c -+++ b/output_alsa.c -@@ -862,8 +862,10 @@ void output_init_alsa(log_level level, const char *device, unsigned output_buf_s - LOG_INFO("memory locked"); - } - -+#ifdef __GLIBC__ - mallopt(M_TRIM_THRESHOLD, -1); - mallopt(M_MMAP_MAX, 0); -+#endif - - touch_memory(silencebuf, MAX_SILENCE_FRAMES * BYTES_PER_FRAME); - touch_memory(outputbuf->buf, outputbuf->size); --- -2.6.4 - diff --git a/package/squeezelite/0003-Replace-deprecated-FFmpeg-API.patch b/package/squeezelite/0003-Replace-deprecated-FFmpeg-API.patch deleted file mode 100644 index 74d8f1be55..0000000000 --- a/package/squeezelite/0003-Replace-deprecated-FFmpeg-API.patch +++ /dev/null @@ -1,65 +0,0 @@ -From cce6a0378ac319b87d2545d73f593d440bf686f5 Mon Sep 17 00:00:00 2001 -From: Andreas Cadhalpun -Date: Sat, 18 Aug 2018 13:25:23 +0200 -Subject: [PATCH] Replace deprecated FFmpeg API - -Fixes compilation with ffmpeg >= 2.9. - -Downloaded from Debian: -https://sources.debian.org/src/squeezelite/1.8-4.1/debian/patches/ffmpeg_2.9.patch/ - -Signed-off-by: Bernd Kuhls ---- - ffmpeg.c | 14 +++++++------- - 1 file changed, 7 insertions(+), 7 deletions(-) - -diff --git a/ffmpeg.c b/ffmpeg.c -index 279f31d..bc9136c 100644 ---- a/ffmpeg.c -+++ b/ffmpeg.c -@@ -52,8 +52,8 @@ struct ff_s { - unsigned (* avcodec_version)(void); - AVCodec * (* avcodec_find_decoder)(int); - int attribute_align_arg (* avcodec_open2)(AVCodecContext *, const AVCodec *, AVDictionary **); -- AVFrame * (* avcodec_alloc_frame)(void); -- void (* avcodec_free_frame)(AVFrame **); -+ AVFrame * (* av_frame_alloc)(void); -+ void (* av_frame_free)(AVFrame **); - int attribute_align_arg (* avcodec_decode_audio4)(AVCodecContext *, AVFrame *, int *, const AVPacket *); - // ffmpeg symbols to be dynamically loaded from libavformat - unsigned (* avformat_version)(void); -@@ -324,7 +324,7 @@ static decode_state ff_decode(void) { - - AVCODEC(ff, open2, ff->codecC, codec, NULL); - -- ff->frame = AVCODEC(ff, alloc_frame); -+ ff->frame = AV(ff, frame_alloc); - - ff->avpkt = AV(ff, malloc, sizeof(AVPacket)); - if (ff->avpkt == NULL) { -@@ -520,9 +520,9 @@ static void _free_ff_data(void) { - if (ff->frame) { - // ffmpeg version dependant free function - #if !LINKALL -- ff->avcodec_free_frame ? AVCODEC(ff, free_frame, &ff->frame) : AV(ff, freep, &ff->frame); -+ ff->av_frame_free ? AV(ff, frame_free, &ff->frame) : AV(ff, freep, &ff->frame); - #elif LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(54,28,0) -- AVCODEC(ff, free_frame, &ff->frame); -+ AV(ff, frame_free, &ff->frame); - #else - AV(ff, freep, &ff->frame); - #endif -@@ -607,8 +607,8 @@ static bool load_ff() { - ff->avcodec_version = dlsym(handle_codec, "avcodec_version"); - ff->avcodec_find_decoder = dlsym(handle_codec, "avcodec_find_decoder"); - ff->avcodec_open2 = dlsym(handle_codec, "avcodec_open2"); -- ff->avcodec_alloc_frame = dlsym(handle_codec, "avcodec_alloc_frame"); -- ff->avcodec_free_frame = dlsym(handle_codec, "avcodec_free_frame"); -+ ff->av_frame_alloc = dlsym(handle_codec, "av_frame_alloc"); -+ ff->av_frame_free = dlsym(handle_codec, "av_frame_free"); - ff->avcodec_decode_audio4 = dlsym(handle_codec, "avcodec_decode_audio4"); - ff->av_init_packet = dlsym(handle_codec, "av_init_packet"); - ff->av_free_packet = dlsym(handle_codec, "av_free_packet"); --- -2.18.0 - diff --git a/package/squeezelite/0004-Fix-FTBFS-with-FFmpeg-4.0.patch b/package/squeezelite/0004-Fix-FTBFS-with-FFmpeg-4.0.patch deleted file mode 100644 index 25a5db3cae..0000000000 --- a/package/squeezelite/0004-Fix-FTBFS-with-FFmpeg-4.0.patch +++ /dev/null @@ -1,31 +0,0 @@ -From 4ad37284447e768d641768c7c8a69c4640c83181 Mon Sep 17 00:00:00 2001 -From: James Cowgill -Date: Sat, 18 Aug 2018 13:26:59 +0200 -Subject: [PATCH] Fix FTBFS with FFmpeg 4.0 - -Bug-Debian: https://bugs.debian.org/888335 - -Downloaded from Debian: -https://sources.debian.org/src/squeezelite/1.8-4.1/debian/patches/ffmpeg4.0.patch/ - -Signed-off-by: Bernd Kuhls ---- - ffmpeg.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/ffmpeg.c b/ffmpeg.c -index bc9136c..d51b08e 100644 ---- a/ffmpeg.c -+++ b/ffmpeg.c -@@ -264,7 +264,7 @@ static decode_state ff_decode(void) { - ff->mmsh_bytes_left = ff->mmsh_bytes_pad = ff->mmsh_packet_len = 0; - - if (!ff->readbuf) { -- ff->readbuf = AV(ff, malloc, READ_SIZE + FF_INPUT_BUFFER_PADDING_SIZE); -+ ff->readbuf = AV(ff, malloc, READ_SIZE + AV_INPUT_BUFFER_PADDING_SIZE); - } - - avio = AVIO(ff, alloc_context, ff->readbuf, READ_SIZE, 0, NULL, _read_data, NULL, NULL); --- -2.18.0 - diff --git a/package/squeezelite/Config.in b/package/squeezelite/Config.in index 63b9183026..57f55ffc8c 100644 --- a/package/squeezelite/Config.in +++ b/package/squeezelite/Config.in @@ -14,7 +14,7 @@ config BR2_PACKAGE_SQUEEZELITE help Logitech Media Server client - https://code.google.com/p/squeezelite/ + https://github.com/ralph-irving/squeezelite/ if BR2_PACKAGE_SQUEEZELITE diff --git a/package/squeezelite/squeezelite.hash b/package/squeezelite/squeezelite.hash index d56f5da665..0b21d861b9 100644 --- a/package/squeezelite/squeezelite.hash +++ b/package/squeezelite/squeezelite.hash @@ -1,3 +1,3 @@ # Locally calculated -sha256 0c844e7714d3f15325629c59ee75e6309763116e61a6b73486b502e2e5cce5fd squeezelite-v1.8.tar.gz -sha256 3e4379e1f34b8c5da00e545cfe94369b94a57745902c5d12be43b6332c34c04e LICENSE.txt +sha256 7f0342f4943d3c3498d930060f5a1e8d63ccb7282b9c21f964926e310449d592 squeezelite-71c012ad9ba102feb95823b7b9dc17e5305689c7.tar.gz +sha256 dc01c3da33fea11ed918f9e437b88baa59c70401aab0dad747e33dd9e8035706 LICENSE.txt diff --git a/package/squeezelite/squeezelite.mk b/package/squeezelite/squeezelite.mk index 3b23b103c6..012b5304ab 100644 --- a/package/squeezelite/squeezelite.mk +++ b/package/squeezelite/squeezelite.mk @@ -4,8 +4,8 @@ # ################################################################################ -SQUEEZELITE_VERSION = v1.8 -SQUEEZELITE_SITE = $(call github,robadenshi,squeezelite,$(SQUEEZELITE_VERSION)) +SQUEEZELITE_VERSION = 71c012ad9ba102feb95823b7b9dc17e5305689c7 +SQUEEZELITE_SITE = $(call github,ralph-irving,squeezelite,$(SQUEEZELITE_VERSION)) SQUEEZELITE_LICENSE = GPL-3.0 SQUEEZELITE_LICENSE_FILES = LICENSE.txt SQUEEZELITE_DEPENDENCIES = alsa-lib flac libmad libvorbis faad2 mpg123