On Mon, May 15, 2017 at 12:20:46PM -0400, Ken Brown wrote:
> On 5/15/2017 11:56 AM, Jon Turney wrote:
>> You can always make an empty tarball called
>> texlive-collection-htmlxml-20170515.tar.xz or whatever, and use that for
>> SRC_URI.
> 
> Good idea, thanks.  But it turns out that there's another problem: cygport
> won't actually create an empty binary tarball in this situation.
> 
> The relevant code is in pkg_pkg.cygpart around lines 149--163, especially
> this part:
> 
>               elif (( pkg_count == 1 ))
>               then
>                       pkg_contents="*"
>               else
>                       pkg_contents=
> 
> We get here if PKG_CONTENTS is unset or empty.  (There's actually no test to
> see if it's set but empty.)  In the situation under discussion, this results
> in pkg_contents="*" followed by a tar error.
> 
> Yaakov, shouldn't the user be allowed to explicitly set PKG_CONTENTS empty
> and have cygport honor that, at least for obsolete packages?

I've used the attached files to create an empty, dependencies-only package.

szgyg
NAME="dependencies"
VERSION="0"
RELEASE="0"

SUMMARY="dependencies (Metapackage)"
CATEGORY="Devel"

REQUIRES="" # put stuff here

####################

SRC_URI="empty.tar.gz"
SRC_DIR="empty"

KEEPDIRS="/usr"

src_compile() { : ; }
src_install() { : ; }

Attachment: empty.tar.gz
Description: application/tar-gz

Reply via email to