[csw-maintainers] Help for newbie creating a new package

Jesse Reynolds jesse at opencsw.org
Wed Aug 3 10:41:16 CEST 2011


On 3 August 2011 18:03, Jesse Reynolds <jesse at opencsw.org> wrote:

>
>
> 2011/8/3 Maciej Bliziński <maciej at opencsw.org>
>
>> 2011/8/3 Jesse Reynolds <jesse at opencsw.org>:
>> > CHECKPKG_OVERRIDES_CSWgperf +=
>> > bad-rpath-entry|/opt/SUNWspro/lib/v8|opt/csw/bin/gperf
>> > CHECKPKG_OVERRIDES_CSWgperf += bad-rpath-entry|/lib|opt/csw/bin/gperf
>> > CHECKPKG_OVERRIDES_CSWgperf +=
>> > bad-rpath-entry|/opt/SUNWspro/lib|opt/csw/bin/gperf
>> > CHECKPKG_OVERRIDES_CSWgperf +=
>> > bad-rpath-entry|/opt/SUNWspro/lib/rw7|opt/csw/bin/gperf
>>
>> This check deals with the RPATH setting in the resulting binaries.
>> Sun Studio by default adds extra RPATH entries, e.g.
>> "/opt/SUNWspro/lib/v8".  To fix this, you need to tell Sun Studio to
>> stop doing that:
>>
>> EXTRA_CFLAGS = -xnorunpath
>>
>> The EXTRA_CFLAGS variable value will be put by GAR into the right
>> places for autotools to pick up.
>>
>
> Thanks. So I put that line into gperf/Makefile and ran 'mgar clean', 'mgar
> package' and it ends up with the same errors again (though in a different
> order):
>
> CHECKPKG_OVERRIDES_CSWgperf +=
> bad-rpath-entry|/opt/SUNWspro/lib|opt/csw/bin/gperf
> CHECKPKG_OVERRIDES_CSWgperf +=
> bad-rpath-entry|/opt/SUNWspro/lib/rw7|opt/csw/bin/gperf
> CHECKPKG_OVERRIDES_CSWgperf +=
> bad-rpath-entry|/opt/SUNWspro/lib/v8|opt/csw/bin/gperf
> CHECKPKG_OVERRIDES_CSWgperf += bad-rpath-entry|/lib|opt/csw/bin/gperf
>
> This is on unstable9s, I think I ran it last time on one of the other sparc
> machines in the build farm.
>

My Makefile is currently looking like this:

unstable9s:~/test/gperf $ cat Makefile
NAME = gperf
VERSION = 3.0.3
CATEGORIES = devel
DESCRIPTION = A perfect hash function generator
define BLURB
  GNU gperf is a perfect hash function generator. For a given list of
strings,
  it produces a hash function and hash table, in form of C or C++ code, for
  looking up a value depending on the input string. The hash function is
perfect,
  which means that the hash table has no collisions, and the hash table
lookup
  needs a single string comparison only.
endef
MASTER_SITES = $(GNU_MIRROR)
DISTFILES    = $(NAME)-$(VERSION).tar.gz
GARTYPE       = v2
TEST_TARGET  = check
EXTRA_CFLAGS = -xnorunpath
include gar/category.mk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencsw.org/pipermail/maintainers/attachments/20110803/30989eb3/attachment-0001.html>


More information about the maintainers mailing list