[pkg-go] Various problems with packages in the group

Dmitry Smirnov onlyjob at debian.org
Mon Sep 14 09:25:54 UTC 2015


On Sunday 13 September 2015 18:48:46 Martín Ferrari wrote:
> >> S: Instead of just importing debian/, start by adding upstream as a
> >> remote, and 'git checkout -b upstream' based on the tag you want to
> >> package.> 
> > Does this imply having a git history such as displayed in
> > https://anonscm.debian.org/cgit/pkg-go/packages/golang-uuid.git/log/?
> > I find that super-annoying for packages with active upstream
> > repositories, because I’m almost never interested in an individual
> > upstream commit, but rather at high-level changes that directly
> > correspond to uploads to Debian. I.e., I prefer seeing a single
> > “Imported upstream snapshot X” commit over seeing hundreds of
> > individual upstream commits.

My solution to that supper-annoying problem is to keep Debian packaging (i.e. 
"debian/*" files) and upstream files apart, unmerged. Therefore "master" 
branch will contain only debian packaging and "upstream" branch holds 
upstream changes. Simply add the following to your "debian/gbp.conf" file:

    [import-orig]
    pristine-tar = True
    merge        = False

GBP addicts can still build from such repo layout. Also KDE team uses my 
favourite upstream-less repository layout for most of their packages:

    https://pkg-kde.alioth.debian.org/gitguidelines.html


> On the other hand, not having the upstream source at all (I found one
> package like that today) is bothersome, and I don't see any good reason
> for that..

In Debian packaging perhaps the most annoying, needless and time-consuming 
thing for me is "gbp import-orig" procedure especially for packages where 
DFSG-repacking of orig.tar is necessary. DFSG clean-up of a new package is a 
continuous process hence I usually refrain from importing orig.tar until it 
is ready. Otherwise there will be versions like +dfsg19 and a lot of time 
will be wasted...

I understand that when upstream is not producing formal releases we need 
"upstream" branch to generate orig.tar but only because `uscan` can not 
generate orig.tar from checkout.

-- 
Regards,
 Dmitry Smirnov.

---

I am easily satisfied with the very best.
        -- Winston Churchill

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/pkg-go-maintainers/attachments/20150914/e794a973/attachment.sig>


More information about the Pkg-go-maintainers mailing list