sgml2x is not available on ubuntu 24.04.
version is slower than that from ubuntu 24.04 mirrors.
Change-Id: I209cf79a219d016c40e6ec71d80879572bb6ec97
Signed-off-by: xuhy <huayong.xu@samsung.com>
+git-buildpackage (0.9.36+tizen20240605) unstable; urgency=medium
+
+ * Upgrade version to override the version from mirrors.
+ * Fix build errors on ubuntu 24.04.
+
+ -- Xu Huayong <huayong.xu@samsung.com> Tue, 18 Jun 2024 18::02 +0800
+
git-buildpackage (0.9.28-tizen20231130) unstable; urgency=medium
* Fix git-buildpackage issue to adapt the librpm-tizen 4.14 version.
python3-pkg-resources,
python3-setuptools,
python3-dateutil,
- sgml2x,
librpm-tizen,
# For rpm (epydoc)
python3-rpm
-usr/lib/python*/dist-packages/gbp/bb/
-usr/lib/python*/dist-packages/gbp/scripts/*bb*.py*
+usr/local/lib/python*/dist-packages/gbp/bb/
+usr/local/lib/python*/dist-packages/gbp/scripts/*bb*.py*
-usr/bin/gbp
-usr/bin/gbp-clone
-usr/bin/gbp-pull
-usr/lib/python*/dist-packages/gbp/*.py*
-usr/lib/python*/dist-packages/gbp/scripts/__init__.py*
-usr/lib/python*/dist-packages/gbp/scripts/clone.py*
-usr/lib/python*/dist-packages/gbp/scripts/config.py*
-usr/lib/python*/dist-packages/gbp/scripts/pull.py*
-usr/lib/python*/dist-packages/gbp/scripts/supercommand.py*
-usr/lib/python*/dist-packages/gbp/scripts/common/*.py*
-usr/lib/python*/dist-packages/gbp/git/*.py*
-usr/lib/python*/dist-packages/gbp/pkg/*.py*
+usr/local/bin/gbp /usr/bin
+usr/local/bin/gbp-clone /usr/bin
+usr/local/bin/gbp-pull /usr/bin
+usr/local/lib/python*/dist-packages/gbp/*.py*
+usr/local/lib/python*/dist-packages/gbp/scripts/__init__.py*
+usr/local/lib/python*/dist-packages/gbp/scripts/clone.py*
+usr/local/lib/python*/dist-packages/gbp/scripts/config.py*
+usr/local/lib/python*/dist-packages/gbp/scripts/pull.py*
+usr/local/lib/python*/dist-packages/gbp/scripts/supercommand.py*
+usr/local/lib/python*/dist-packages/gbp/scripts/common/*.py*
+usr/local/lib/python*/dist-packages/gbp/git/*.py*
+usr/local/lib/python*/dist-packages/gbp/pkg/*.py*
etc/git-buildpackage/gbp.conf
-usr/bin/*rpm*
-usr/lib/python*/dist-packages/gbp/rpm/*.py*
-usr/lib/python*/dist-packages/gbp/scripts/*rpm*.py*
+usr/local/bin/*rpm* /usr/bin
+usr/local/lib/python*/dist-packages/gbp/rpm/*.py*
+usr/local/lib/python*/dist-packages/gbp/scripts/*rpm*.py*
-usr/bin/gbp-pq
-usr/bin/git-buildpackage
-usr/bin/git-dch
-usr/bin/git-import-dsc
-usr/bin/git-import-dscs
-usr/bin/git-import-orig
-usr/bin/git-pbuilder
-usr/bin/gbp-create-remote-repo
-usr/lib/python*/dist-packages/gbp/deb/*.py*
-usr/lib/python*/dist-packages/gbp/scripts/pq.py*
-usr/lib/python*/dist-packages/gbp/scripts/buildpackage.py*
-usr/lib/python*/dist-packages/gbp/scripts/dch.py*
-usr/lib/python*/dist-packages/gbp/scripts/import_dsc.py*
-usr/lib/python*/dist-packages/gbp/scripts/import_dscs.py*
-usr/lib/python*/dist-packages/gbp/scripts/import_orig.py*
-usr/lib/python*/dist-packages/gbp/scripts/create_remote_repo.py*
+usr/local/bin/gbp-pq /usr/bin
+usr/local/bin/git-buildpackage /usr/bin
+usr/local/bin/git-dch /usr/bin
+usr/local/bin/git-import-dsc /usr/bin
+usr/local/bin/git-import-dscs /usr/bin
+usr/local/bin/git-import-orig /usr/bin
+usr/local/bin/git-pbuilder /usr/bin
+usr/local/bin/gbp-create-remote-repo /usr/bin
+usr/local/lib/python*/dist-packages/gbp/deb/*.py*
+usr/local/lib/python*/dist-packages/gbp/scripts/pq.py*
+usr/local/lib/python*/dist-packages/gbp/scripts/buildpackage.py*
+usr/local/lib/python*/dist-packages/gbp/scripts/dch.py*
+usr/local/lib/python*/dist-packages/gbp/scripts/import_dsc.py*
+usr/local/lib/python*/dist-packages/gbp/scripts/import_dscs.py*
+usr/local/lib/python*/dist-packages/gbp/scripts/import_orig*.py*
+usr/local/lib/python*/dist-packages/gbp/scripts/create_remote_repo.py*
-debian/tmp/usr/lib/python3.*/dist-packages/gbp/deb/__pycache__
-debian/tmp/usr/lib/python3.*/dist-packages/gbp/git/__pycache__
-debian/tmp/usr/lib/python3.*/dist-packages/gbp/pkg/__pycache__
-debian/tmp/usr/lib/python3.*/dist-packages/gbp/__pycache__
-debian/tmp/usr/lib/python3.*/dist-packages/gbp/rpm/__pycache__
-debian/tmp/usr/lib/python3.*/dist-packages/gbp/scripts/common/__pycache__
-debian/tmp/usr/lib/python3.*/dist-packages/gbp/scripts/__pycache__
+debian/tmp/usr/local/lib/python3.*/dist-packages/gbp/deb/__pycache__
+debian/tmp/usr/local/lib/python3.*/dist-packages/gbp/git/__pycache__
+debian/tmp/usr/local/lib/python3.*/dist-packages/gbp/pkg/__pycache__
+debian/tmp/usr/local/lib/python3.*/dist-packages/gbp/__pycache__
+debian/tmp/usr/local/lib/python3.*/dist-packages/gbp/rpm/__pycache__
+debian/tmp/usr/local/lib/python3.*/dist-packages/gbp/scripts/common/__pycache__
+debian/tmp/usr/local/lib/python3.*/dist-packages/gbp/scripts/__pycache__
make -C docs
override_dh_auto_install:
- dh_auto_install
+ python3 setup.py install --root=debian/tmp --prefix=/usr/local
dh_bash-completion
mkdir -p debian/git-buildpackage/$(ZSH_COMPDIR)
install -m644 debian/git-buildpackage.zsh-completion \
override_dh_compress:
dh_compress --exclude=usr/share/doc/git-buildpackage/examples/
+override_dh_usrlocal:
+
CHANGELOG=../debian/changelog
# Stuff to build docs outside Debian
-HAVE_SGML2X ?= 1
+HAVE_SGML2X ?= 0
GTK_DOC_CATALOG_FILE ?= /usr/share/sgml/gtk-doc/gtk-doc.cat
all: $(MANUAL) $(MANPAGES)
"""handles command line and config file option parsing for the gbp commands"""
from optparse import OptionParser, OptionGroup, Option, OptionValueError
-from configparser import SafeConfigParser, NoSectionError
+from configparser import ConfigParser, NoSectionError
from copy import copy
import os.path
import tempfile
Parse the possible config files and set appropriate values
default values
"""
- parser = SafeConfigParser()
+ parser = ConfigParser()
# Fill in the built in values
self.config = dict(self.__class__.defaults)
# Update with the values from the defaults section. This is needed
fetch_url = None
push_urls = []
for line in out.decode().splitlines():
- match = re.match('\s*Fetch\s+URL:\s*(\S.*)', line)
+ match = re.match(r'\s*Fetch\s+URL:\s*(\S.*)', line)
if match:
fetch_url = match.group(1)
- match = re.match('\s*Push\s+URL:\s*(\S.*)', line)
+ match = re.match(r'\s*Push\s+URL:\s*(\S.*)', line)
if match:
push_urls.append(match.group(1))
remotes[remote] = GitRemote(remote, fetch_url, push_urls)
class SpecFile(object):
"""Class for parsing/modifying spec files"""
tag_re = re.compile(r'^(?P<name>[a-z]+)(?P<num>[0-9]+)?\s*:\s*'
- '(?P<value>\S(.*\S)?)\s*$', flags=re.I)
+ r'(?P<value>\S(.*\S)?)\s*$', flags=re.I)
directive_re = re.compile(r'^%(?P<name>[a-z]+)(?P<num>[0-9]+)?'
- '(\s+(?P<args>.*))?$', flags=re.I)
+ r'(\s+(?P<args>.*))?$', flags=re.I)
gbptag_re = re.compile(r'^\s*#\s*gbp-(?P<name>[a-z-]+)'
- '(\s*:\s*(?P<args>\S.*))?$', flags=re.I)
+ r'(\s*:\s*(?P<args>\S.*))?$', flags=re.I)
# Here "sections" stand for all scripts, scriptlets and other directives,
# but not macros
section_identifiers = ('package', 'description', 'prep', 'build', 'install',
if not tag['num'] in ignored:
tag_prev = self._delete_tag('patch', tag['num'])
# Remove a preceding comment if it seems to originate from GBP
- if re.match("^\s*#.*patch.*auto-generated",
+ if re.match(r"^\s*#.*patch.*auto-generated",
str(tag_prev), flags=re.I):
tag_prev = self._content.delete(tag_prev)
# Remove a preceding comment line if it ends with '.patch' or
# '.diff' plus an optional compression suffix
- if re.match("^\s*#.+(patch|diff)(\.(gz|bz2|xz|lzma))?\s*$",
+ if re.match(r"^\s*#.+(patch|diff)(\.(gz|bz2|xz|lzma))?\s*$",
str(macro_prev), flags=re.I):
macro_prev = self._content.delete(macro_prev)
alnum = 'a-zA-Z0-9'
# Valid characters for RPM pkg name
- name_whitelist_chars = '._+%{}\-'
+ name_whitelist_chars = r'._+%{}\-'
# Valid characters for RPM pkg version
version_whitelist_chars = '._+%{}~'
>>> pq_branch_match('foo/bar/1.0/pq', 'foo/%(br)s/%(ver)s/pq').groupdict()
{'ver': '1.0', 'br': 'bar'}
"""
- pq_re = '^%s$' % re.sub('%\(([a-z_\-]+)\)s', r'(?P<\1>\\S+)', pq_fmt_str)
+ pq_re = '^%s$' % re.sub(r'%\(([a-z_\-]+)\)s', r'(?P<\1>\\S+)', pq_fmt_str)
return re.match(pq_re, branch)
name = commit_info['author']['name']
email = commit_info['author']['email']
# Git compat: put name in quotes if special characters found
- if re.search("[,.@()\[\]\\\:;]", name):
+ if re.search(r"[,.@()\[\]\\\:;]", name):
name = '"%s"' % name
from_header = Header(header_name='from')
try:
# for both upstream sources and packaging files
author = None
if spec.packager:
- match = re.match('(?P<name>.*[^ ])\s*<(?P<email>\S*)>',
+ match = re.match(r'(?P<name>.*[^ ])\s*<(?P<email>\S*)>',
spec.packager.strip())
if match:
author = GitModifier(match.group('name'), match.group('email'))
+* Wed Jun 05 2024 Xu Huayong <huayong.xu@samsung.com> tizen/0.9.36-20240605
+- Upgrade version to override the version from mirrors.
+- Fix build errors on ubuntu 24.04.
+
* Thu Nov 30 2023 Xu Huayong <huayong.xu@samsung.com> tizen/0.9.28-20231130
- Fix git-buildpackage issue to adapt the librpm-tizen 4.14 version
Name: git-buildpackage
Summary: Build packages from git
-Version: 0.9.28
+Version: 0.9.36
Release: 0
Group: Development/Tools/Building
License: GPLv2
%else
Requires: rpm-build
%endif
-Provides: tizen-gbp-rpm = 20231130
+Provides: tizen-gbp-rpm = 20240605
%description rpm
Set of tools from Debian that integrate the package build system with Git.
# END OF COPYRIGHT #
import subprocess
-from setuptools import setup, find_packages
+from setuptools import setup
import os
'bin/git-buildpackage-rpm',
'bin/git-import-orig-rpm',
'bin/git-rpm-ch'],
- packages = find_packages(exclude=['tests', 'tests.*']),
+ packages = ['gbp', 'gbp.bb', 'gbp.rpm', 'gbp.scripts', 'gbp.scripts.common',
+ 'gbp.git', 'gbp.deb', 'gbp.pkg'],
data_files = [("/etc/git-buildpackage/", ["gbp.conf"]),],
requires=['dateutil'],
install_requires=[