Package: git-buildpackage
Version: 0.6.32
Severity: important

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

I've recently examining gbp (long-time svn-bp user). Unfortunately it has some
major flaws and limitations, which makes it very hard to use. I basically want
to do this (similar workflow in svn-bp):

[DEFAULT]
builder = debuild --no-lintian -d -sa -us -uc -S
[buildpackage]
postbuild = dput -f buildd /some/build-area/%(pkg)s_%(version)s_source.changes

This is because there is a local buildd, which will build the package itself.
Unfortunately, postbuild is run as a shell-script/hook and fails because of
the parenthesis. Now the command was inspired by the examples for postimport
but obviously is somehow different. Looking into the source I found this:

gbpc.Command(format_str(options.postimport, info), ...

vs.

Hook('Postbuild', options.postbuild, shell=True, ...

So I guess, postimport is first parsed, variables are replaced and then the
command is executed. Whereas postbuild is directly executed in a shell. I'd
like to request, that commands parsed from gbp.conf are _always_ first parsed
by gbp, so that variables can be replaced.

Please also note, that using the above, GBP_CHANGES_FILE will point to a
non-existing file. IMHO this situation should be improved too.


BTW: What I said above also goes for variables. I usually store the package
tarballs in /usr/local/src/packages/<PACKAGE>/. But when I tried this:

export-dir = /usr/local/src/packages/%(pkg)s/
tarball-dir = /usr/local/src/packages/%(pkg)s/

I ran into another build issue, because at some point you seem to give these
variables 1:1 to a shell script and this then fails too.

I would really like to use gbp without changing the whole system setup :)
Maybe you could improve the command/variable handling by making it consistent.


TIA and regards, Daniel



- -- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (850, 'unstable'), (700, 'testing'), (560, 'stable'), (110, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.0.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages git-buildpackage depends on:
ii  devscripts            2.15.8
ii  git                   1:2.5.0-1
ii  man-db                2.7.2-1
ii  python                2.7.9-1
ii  python-dateutil       2.2-2
ii  python-pkg-resources  18.0.1-2
ii  python-six            1.9.0-3

Versions of packages git-buildpackage recommends:
ii  pbuilder         0.215+nmu4
ii  pristine-tar     1.33
ii  python-requests  2.7.0-3

Versions of packages git-buildpackage suggests:
ii  python-notify  0.1.1-4
ii  unzip          6.0-18

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCgAGBQJV23LzAAoJEEvNBWfCltBdzukP/jS43i+CPA8AExgiOIuj/kI8
gBainFr/vq3bCf2ryd+EuKhLdnLBleSezEd+7HcjXZmmllcHb3MetNgW0qhH7JH1
wzEEYLKFbMv2lojuixsSWi3Ew+XMPhUSb6Pd2mJaBYrKfKjnaTpjqmkebNS5u7l7
W/JAdJtpI6zw11zBX6YffGfEGRS0i+mbaYDwAxAOTT4YhUFygd8Bggvm5rm4qXSe
UDEK5H0qYatKs91NpjFS5NYxsCgq+KINLD4SnG90PHoRuw7J3eiEn1UL0hWFl5v0
h/2hiynYq23YxSKtTYCpxUHft8ixLGRyKDytWUDzu51R+IvOFuyG/ZXF6/C+yHkA
ON6UtkbK2pFLmaRSQX53BQt0yhffHBzS6EZuLAifT9gXpaU+cBju8DiByiHINH5m
oLX/e8xx/K7Y+zXaTut0BZfTWrwPZyz0ubSogdXVjPcD0z+cFZG2WEjSswDucWZI
4adbvOwPTMW/Zztk3qfjn4JI1CRl9FkSSMEoSQIPueMEqeb+wOWp/DrJARM86aCc
S5WVGfE07dr7z+j0iUpD45q6h8zYCGjq/0l5/Wxz4CEdUOdKQFwzkBrt8OrB2Var
C4ZhLLIXOuPaMk6+2VCI8u+MvxTj4NCgQ7qJ2dgZU0AP6xqS2owqMk4bW2dtw2n+
KXVUqFaCvr7LdjcI/eGt
=cVr+
-----END PGP SIGNATURE-----

Reply via email to