[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#538067: deadline coming soon for OpenCPN



I have started a git repo that is just a clone of the SVN repository (it
can work two ways) here:

https://people.debian.org/~anarcat/opencpn.git/

(... because i do not have access to the pkg-grass project - feel free
to add me, i am "anarcat" on alioth.)

So far the only change is to add the following makefile target:

## http://wiki.debian.org/onlyjob/get-orig-source
.PHONY: get-orig-source

DTYPE  = +dfsg
DEBDIR =  $(abspath $(dir $(MAKEFILE_LIST)))
PKG    = $(shell dpkg-parsechangelog -l$(DEBDIR)/changelog --show-field Source)
VER    ?= $(shell dpkg-parsechangelog -l$(DEBDIR)/changelog --show-field Version | sed "s/$(DTYPE).*//")
get-orig-source:
	@echo "I: Downloading $(PKG)_$(VER)..."
	uscan --noconf --verbose --rename --destdir=$(CURDIR) --check-dirname-level=0 --force-download --download-version $(VER) $(DEBDIR)
	@echo "I: Extracting..."
	mkdir $(PKG)-$(VER) \
	&& tar -xf $(PKG)_$(VER).orig.tar.* --directory $(PKG)-$(VER) --strip-components 1 \
	|| $(RM) -r $(PKG)-$(VER)
	@echo "I: Removing known non-DFSG material..."
	cd $(PKG)-$(VER) \
	&& rm -rf .git buildosx buildwin wxWidgets \
	          plugins/grib_pi/src/zlib-1.2.3/ \
	          plugins/grib_pi/src/bzip2/ \
	&& rm -f include/tinyxml.h include/tinystr.h src/tinyxml*.cpp /src/tinystr.cpp

	@echo "I: Repacking..."
	find -L "$(PKG)-$(VER)" -xdev -type f -print | sort \
	| GZIP="-n" tar -czf "$(PKG)_$(VER)$(DTYPE).orig.tar.gz" -T- --owner=root --group=root --mode=a+rX \
	&& $(RM) -r "$(PKG)-$(VER)"

With this I can reproducibly create the +dfsg tarball consistently. This
also cleans up the dh_auto_configure target.

I have also pushed an "experimental" branch to that git repo where I
attempted to port the package to 3.2.2.

After further inspection, I believe there's more work to be done to get
3.2.2 into shape in Debian: there are a lot of shipped binary files
still, lots of which do not have source files (if only the sounds and
images). It is not clear to me if the current 2.5.0 package in SVN fixes
those issues at all.

I *think*, however, that I was able to make the upstream 3.2.2 build
with native tinyxml, wxwidgets and so on without any additionnal patches
or changes. Whether the stuff like wvsdata will work at all is an open
question at this point, however.

Furthermore, my understanding of the licensing issues regarding that
software makes it actually legally possible for me to use the upstream
package at this point, which limits the "scratch an itch" work I will be
willing to do here.

A.

-- 
Rock journalism is people who can't write, interviewing people who can't
talk, in order to provide articles for people who can't read.
                        - Frank Zappa

Attachment: pgp2zzlNm58pA.pgp
Description: PGP signature


Reply to: