[pkg-php-pear] mix upstream files from git tag and git branch to build orig.tar

Fab Stz fabstz-it at yahoo.fr
Sat Nov 5 09:27:47 GMT 2022


Hello,

While packaging php-codeigniter-framework [1], I wanted to run the test suite 
specifically on PHP 8.2.

Although I use the git repository as source of upstream as stated here in [2] 
I just noticed that the test suite is not shipped on the tag.

However the test suite is available on the git branches.

Any idea on how I could update the package from the git tags by still using d/
watch for the released tags and also get the "tests" directory from the 
branches of the git repository?

It guess doing that way would mean that we build a version name with a +ds 
suffix like "3.1.13+ds.1-1".

Or should I use the "components" feature of uscan and have a tarball named 
php-codeigniter-framework_3.1.13.orig-test.tar.xz? But how to exclude the 
unwanted directories then?

Any other suggestion?

BTW, the upstream tarball doesn't contain the test suite either.

[1] https://salsa.debian.org/php-team/pear/php-codeigniter-framework
[2] https://wiki.debian.org/Teams/DebianPHPGroup/Composer#Upstream_handling

Rgds
Fab






More information about the pkg-php-pear mailing list