Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Jan 2015 14:18:37 -0600
From:      Scot Hetzel <swhetzel@gmail.com>
To:        Marco Beishuizen <mbeis@xs4all.nl>
Cc:        Kurt Jaeger <lists@opsec.eu>, FreeBSD Ports <freebsd-ports@freebsd.org>
Subject:   Re: updating alpine port to new version (as a maintainer)
Message-ID:  <CACdU%2Bf8jjSRALwgP_o3L_hdp_gtQ951wDm5CHLH0SjJns62Mew@mail.gmail.com>
In-Reply-To: <alpine.BSF.2.11.1501172042010.2073@localhost>
References:  <alpine.BSF.2.11.1501171736240.2073@localhost> <20150117165844.GS44537@home.opsec.eu> <alpine.BSF.2.11.1501171836570.2073@localhost> <20150117182525.GU44537@home.opsec.eu> <alpine.BSF.2.11.1501172042010.2073@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jan 17, 2015 at 1:48 PM, Marco Beishuizen <mbeis@xs4all.nl> wrote:
> On Sat, 17 Jan 2015, the wise Kurt Jaeger wrote:
>
>> I normally proceed by moving all non-applying patches into a seperate
>> directory and try if the build works:
>>
>> cd ~/myp/mail/alpine mkdir OLD mv files/patch-alpine__alpine.c OLD/
>>
>> # and retry rm -rf work && make check-plist
>>
>> If the patch is required (but different), one has to dig into the code and
>> find out what needs to change for the code to build.
>
>
> After removing 5 patches the make check-plist now hangs at:
>
> ===>  License APACHE20 accepted by the user
> ===>  Found saved configuration for alpine-2.11_2
> ===>   alpine-2.20 depends on file: /usr/local/sbin/pkg - found
> ===> Fetching all distfiles required by alpine-2.20 for building
> ===>  Extracting for alpine-2.20
> => SHA256 Checksum OK for alpine-2.20/alpine-2.20.tar.xz.
> => SHA256 Checksum OK for alpine-2.20/maildir.patch.gz.
> ===>  Patching for alpine-2.20
> ===>  Applying distribution patches for alpine-2.20
> ===>  Applying FreeBSD patches for alpine-2.20
> cp: /home/marco/tmp/alpine/work/alpine-2.20/doc/tech-notes.txt: No such file
> or directory
> *** Error code 1
>
> The file tech-notes.txt is not in /doc/, but in /doc/tech-notes/. Where can
> I change this?
>

On line 41 of the current ports Makefile, it shows tech-notes.txt:

41 PORTDOCSdoc= brochure.txt tech-notes.txt

Then on lines 163-164 in the post-install stage it tries to install them:

163 .for f in ${PORTDOCSdoc}
164   ${INSTALL_MAN} ${WRKSRC}/doc/$f ${STAGEDIR}${DOCSDIR}
165 .endfor

Change the PORTDOCSdoc variable to:

PORTDOCSdoc= brochure.txt tech-notes/tech-notes.txt

This should install the tech-notes.txt file into the ${DOCSDIR}.

The other option is to remove tech-notes.txt from PORTDOCSdoc and
added it to PORTDOCShtml.  Then update the pkg-plist for the new
location.

-- 
DISCLAIMER:

No electrons were maimed while sending this message. Only slightly bruised.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACdU%2Bf8jjSRALwgP_o3L_hdp_gtQ951wDm5CHLH0SjJns62Mew>