[csw-maintainers] excluding components from a package
Peter FELECAN
pfelecan at opencsw.org
Tue Aug 6 13:09:33 CEST 2013
Dagobert Michelsen <dam at opencsw.org> writes:
> Hi Peter,
>
> Am 04.08.2013 um 15:41 schrieb Peter FELECAN <pfelecan at opencsw.org>:
>> Dagobert Michelsen <dam at opencsw.org> writes:
>>> I see. Unfortunately there is no easy way for that, you must restrict the included
>>> pathes for fd to be disjunct with fp manually. Sorry.
>>
>> As you said, no magic wand was really needed, just reading gar.pkg.mk
>>
>> You can see in the following excerpt, how using EXTRA_PKGFILES_EXCLUDED_
>> solved the issue:
>>
>> PACKAGES += CSWqt4-private-dev
>> CATALOGNAME_CSWqt4-private-dev = qt4_private_dev
>> SPKG_DESC_CSWqt4-private-dev = $(DESCRIPTION), private development files
>> PKGFILES_CSWqt4-private-dev += $(includedir)/QtCore/private/.*
>> PKGFILES_CSWqt4-private-dev += $(includedir)/QtDeclarative/private/.*
>> PKGFILES_CSWqt4-private-dev += $(includedir)/QtGui/private/.*
>> PKGFILES_CSWqt4-private-dev += $(includedir)/QtScript/private/.*
>> ARCHALL_CSWqt4-private-dev = 1
>>
>> PACKAGES += CSWqt4-dev
>> SPKG_DESC_CSWqt4-dev += $(DESCRIPTION), development files
>> PKGFILES_CSWqt4-dev += $(PKGFILES_DEVEL)
>> PKGFILES_CSWqt4-dev += $(call baseisadirs,$(bindir),.*)
>> PKGFILES_CSWqt4-dev += $(libdir)/libQt.*\.prl
>> PKGFILES_CSWqt4-dev += $(libdir)/$(NAME)$(MAJOR)/examples/.*
>> PKGFILES_CSWqt4-dev += $(libdir)/$(NAME)$(MAJOR)/plugins/.*
>> PKGFILES_CSWqt4-dev += $(libdir)/$(NAME)$(MAJOR)/demos/.*
>> PKGFILES_CSWqt4-dev += $(libdir)/$(NAME)$(MAJOR)/imports/.*
>> PKGFILES_CSWqt4-dev += $(sharedstatedir)/$(NAME)$(MAJOR)/mkspecs/.*
>> EXTRA_PKGFILES_EXCLUDED_CSWqt4-dev += $(PKGFILES_CSWqt4-private-dev)
>>
>> Now, CSWqt4-dev doesn't contain anymore the files in CSWqt4-private-dev
>> and you know what? I'm happy!
>
> Wow, I wasn't aware GAR could do that :-) I took the liberty of adding that to the GAR wiki:
> https://sourceforge.net/apps/trac/gar/wiki/Prototypes
A very well used liberty.
--
Peter
More information about the maintainers
mailing list