Building native packages not ideal

Bug #1025175 reported by Michael Vogt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pkgme-devportal
New
Undecided
Unassigned

Bug Description

Currentl pkgme-binary builds native packages, it would be preferable if it would build non-native packages instead and provide a .diff.gz instead to make it quicker to upload packaging only changes. Here is what we commonly do for this in debian/rules:

#!/usr/bin/make -f
# -*- makefile -*-

VERSION=$(shell head -1 debian/changelog | cut -f2 -d" "| tr -d \(\) | cut -f1 -d "-")
PACKAGE_NAME=$(shell head -1 debian/changelog | cut -f1 -d" ")

%:
 dh $@

build-orig-source:
 mkdir -p $(PACKAGE_NAME)-$(VERSION)
 tar --exclude=debian --exclude=\.pc \
  --exclude=$(PACKAGE_NAME)-$(VERSION) -cf - . \
  | ( cd $(PACKAGE_NAME)-$(VERSION) && tar xf - )
 tar -czf ../$(PACKAGE_NAME)_$(VERSION).orig.tar.gz $(PACKAGE_NAME)-$(VERSION)
 $(RM) -r $(PACKAGE_NAME)-$(VERSION)

Tags: hib-binary
Revision history for this message
Michael Vogt (mvo) wrote :

This also means that we should no longer set the debian/source/format to "native"

tags: added: hib-binary
Revision history for this message
Michael Vogt (mvo) wrote :

The debian/source/format is actually harmful as it will e.g. filter out ".so" files when building native source packages. We should use 1.0 until we the above bug.

Revision history for this message
Michael Vogt (mvo) wrote :

And we need to run "debian/rules build-orig-soruce" manually.

Michael Vogt (mvo)
summary: - provide build-orig-source target
+ Building native packages not ideal
Revision history for this message
Michael Vogt (mvo) wrote :

If we switch to debian/source/format "1.0" (i.e. if lp:~mvo/pkgme/trivial-source-format-default-to-1.0 lands) this becomes less of a issue, its still a nice to have.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.