public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/bup] f44: Remove bup-web functionality in Fedora 31+
Date: Fri, 30 Oct 2026 14:55:06 GMT	[thread overview]
Message-ID: <179337210638.1.3786633956677290127.rpms-bup-b14777d7e8f5@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/bup
            Branch : f44
            Commit : b14777d7e8f5ff196e43afbb0ab50e4c2c7a4749
            Author : Tadej Janež <tadej.j@nez.si>
            Date   : 2019-06-10T10:02:15+02:00
            Stats  : +54/-3 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/bup/c/b14777d7e8f5ff196e43afbb0ab50e4c2c7a4749?branch=f44

            Log:
            Remove bup-web functionality in Fedora 31+

Starting with Fedora 31, Tornado doesn't support Python 2 anymore.
Hence, bup-web which requires it, can't be packaged anymore. For more
info, see:
https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org/thread/APMXYFWAMC3HIM6R2FVJBR3TUEDDMJ76/i

---
diff --git a/README.Fedora.md b/README.Fedora.md
index 7ef97d4..24aee0d 100644
--- a/README.Fedora.md
+++ b/README.Fedora.md
@@ -1,6 +1,14 @@
 Notes on Fedora bup Package
 ===========================
 
+The `bup-web` functionality is removed in Fedora 31+
+----------------------------------------------------
+
+Starting with Fedora 31, Tornado doesn't support Python 2 anymore. Hence,
+`bup-web` which requires it, can't be packaged anymore. For more info, see:
+https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org/thread/APMXYFWAMC3HIM6R2FVJBR3TUEDDMJ76/
+
+
 Changes requiring attention when upgrading from 0.29 to 0.29.1
 --------------------------------------------------------------
 

diff --git a/bup.spec b/bup.spec
index edd6c67..e45a104 100644
--- a/bup.spec
+++ b/bup.spec
@@ -15,9 +15,18 @@ EOF
 
 %global gittag 0.29.2
 
+%if 0%{?fedora} >= 31
+# NOTE: Tornado in Fedora 31+ doesn't support Python 2 anymore, so bup-web
+# can't be packaged anymore. For more info, see:
+# https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org/thread/APMXYFWAMC3HIM6R2FVJBR3TUEDDMJ76/
+%bcond_with bup_web
+%else
+%bcond_without bup_web
+%endif
+
 Name: bup
 Version: %{gittag}
-Release: 3%{?dist}
+Release: 4%{?dist}
 Summary: Very efficient backup system based on the git packfile format
 
 # all of the code is licensed as GNU Lesser General Public License v2, except:
@@ -37,8 +46,10 @@ BuildRequires: python2-devel
 BuildRequires: git-core
 # Required for building documentation
 BuildRequires: pandoc
+%if %{with bup_web}
 # Required for preparing systemd service for 'bup web' command
 BuildRequires: systemd
+%endif
 # Required for running tests
 BuildRequires: par2cmdline
 BuildRequires: perl(Getopt::Long)
@@ -50,7 +61,9 @@ BuildRequires: python2-pyxattr
 BuildRequires: pyxattr
 %endif
 BuildRequires: pylibacl
+%if %{with bup_web}
 BuildRequires: python2-tornado
+%endif
 BuildRequires: rsync
 
 Requires: git-core
@@ -69,6 +82,10 @@ Requires: fuse-python
 # Only required for 'bup fsck' command
 Requires: par2cmdline
 
+%if 0%{?fedora} >= 31
+# Remove bup-web subpackage from previous installations.
+Obsoletes: bup-web < 0.29.2-4
+%endif
 
 %description
 Very efficient backup system based on the git packfile format, providing fast
@@ -94,6 +111,7 @@ virtual machine images). Some of its features are:
 * One can mount a bup repository as a FUSE filesystem and access the contents
   that way, or even export it over Samba.
 
+%if %{with bup_web}
 #
 # bup-web
 #
@@ -110,6 +128,7 @@ Requires(postun): systemd
 %description web
 Provides the "bup web" command which runs a web server for browsing through
 bup repositories.
+%endif
 
 
 %prep
@@ -129,7 +148,9 @@ rm -r .git/
 %make_build CFLAGS="%{build_cflags}"
 
 %render_template %{SOURCE1} %{_builddir}/%{buildsubdir}/%{basename:%SOURCE1}
+%if %{with bup_web}
 %render_template %{SOURCE3} %{_builddir}/%{buildsubdir}/%{basename:%SOURCE3}
+%endif
 
 
 %install
@@ -146,9 +167,18 @@ rm -r .git/
 # Fix hard-coded libdir location in bup's executable
 sed -i 's|/lib/bup|/%{_lib}/bup|' %{buildroot}%{_bindir}/bup
 
-# Install systemd unit file
+%if %{with bup_web}
+# Install systemd unit file for bup-web.
 mkdir -p %{buildroot}%{_userunitdir}
 install -p -m 0644 %{SOURCE2} %{buildroot}%{_userunitdir}
+%else
+# Remove bup-web related stuff.
+rm %{buildroot}/%{_libdir}/%{name}/cmd/bup-web
+rm -r %{buildroot}/%{_libdir}/%{name}/web
+rm %{buildroot}/%{_mandir}/man1/bup-web.1*
+rm %{buildroot}/%{_pkgdocdir}/bup-web.html
+%endif
+
 
 # Install READMEs and Notable changes manually
 # NOTE: This is necessary since mixing the %%doc with relative paths and
@@ -161,10 +191,12 @@ install -p -m 0644 note/*.md %{buildroot}%{_pkgdocdir}
 
 
 %check
-# Run the built-in test suite containing 4200+ tests
+# Run the built-in test suite containing 4200+ tests.
+# NOTE: The bup-web tests will automatically skip if Tornado is not present.
 %make_build test
 
 
+%if %{with bup_web}
 %post web
 %systemd_user_post bup-web.service
 
@@ -184,22 +216,33 @@ install -p -m 0644 note/*.md %{buildroot}%{_pkgdocdir}
 %{_mandir}/man1/bup-web.1*
 %{_pkgdocdir}/bup-web.html
 %{_pkgdocdir}/README-bup-web.Fedora.md
+%endif
 
 %files
 %license LICENSE
 %{_bindir}/%{name}
 %{_libdir}/%{name}/
+%if %{with bup_web}
 %exclude %{_libdir}/%{name}/cmd/bup-web
 %exclude %{_libdir}/%{name}/web/
+%endif
 %{_mandir}/man1/%{name}.1*
 %{_mandir}/man1/%{name}-*.1*
+%if %{with bup_web}
 %exclude %{_mandir}/man1/bup-web.1*
+%endif
 %{_pkgdocdir}/
+%if %{with bup_web}
 %exclude %{_pkgdocdir}/bup-web.html
 %exclude %{_pkgdocdir}/README-bup-web.Fedora.md
+%endif
 
 
 %changelog
+* Mon Jun 10 2019 Tadej Janež <tadej.j@nez.si> - 0.29.2-4
+- Remove bup-web functionality in Fedora 31+. This accounts for the fact that
+  Tornado in F31+ doesn't support Python 2 anymore.
+
 * Thu Feb 07 2019 Tadej Janež <tadej.j@nez.si> - 0.29.2-3
 - Use %%{build_cflags} to specify the C compiler flags (i.e. CFLAGS). This
   will properly account for

                 reply	other threads:[~2026-10-30 14:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179337210638.1.3786633956677290127.rpms-bup-b14777d7e8f5@fedoraproject.org \
    --to=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox