Bug 62499 - PLIST_FILES-ify my ports
Summary: PLIST_FILES-ify my ports
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Michael Nottebrock
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-07 22:40 UTC by Colin Percival
Modified: 2004-05-11 13:06 UTC (History)
0 users

See Also:


Attachments
PLIST_FILES.diff (1.24 KB, patch)
2004-02-07 22:40 UTC, Colin Percival
no flags Details | Diff
file.diff (765 bytes, patch)
2004-02-07 22:40 UTC, Colin Percival
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Colin Percival 2004-02-07 22:40:14 UTC
Now that I'm aware of this, make misc/bsdiff and security/freebsd-update 
use PLIST_FILES instead of pkg-plist.

Fix: I think these patches do the job (of course, pkg-plist must be deleted 
from each port as well).  If anything is wrong with these, please 
contact me; don't make corrections yourself.
Comment 1 Trevor Johnson freebsd_committer freebsd_triage 2004-02-07 23:20:26 UTC
Responsible Changed
From-To: freebsd-ports-bugs->trevor

I'll take this.
Comment 2 Oliver Eikemeier 2004-02-08 03:37:09 UTC
Colin Percival wrote:

> +PLIST_FILES+=	%%DOCSDIR%%/LICENSE %%DOCSDIR%%/README %%DOCSDIR%%/VERSION
> +PLIST_DIRS+=	%%DOCSDIR%%

This looks like a case for
PORTDOCS=	LICENSE README VERSION
Comment 3 colin.percival 2004-02-08 09:47:40 UTC
At 03:37 08/02/2004, Oliver Eikemeier wrote:
>Colin Percival wrote:
>
>>+PLIST_FILES+=  %%DOCSDIR%%/LICENSE %%DOCSDIR%%/README %%DOCSDIR%%/VERSION
>>+PLIST_DIRS+=   %%DOCSDIR%%
>
>This looks like a case for
>PORTDOCS=       LICENSE README VERSION

   It does, but I couldn't get it to generate a
correct packing list using PORTDOCS.  But it's
entirely possible that I was doing something
wrong.

Colin Percival
Comment 4 Oliver Eikemeier 2004-02-08 11:39:50 UTC
Colin Percival wrote:

> At 03:37 08/02/2004, Oliver Eikemeier wrote:
> 
>> Colin Percival wrote:
>>
>>> +PLIST_FILES+=  %%DOCSDIR%%/LICENSE %%DOCSDIR%%/README 
>>> %%DOCSDIR%%/VERSION
>>> +PLIST_DIRS+=   %%DOCSDIR%%
>>
>> This looks like a case for
>> PORTDOCS=       LICENSE README VERSION
> 
>   It does, but I couldn't get it to generate a
> correct packing list using PORTDOCS.  But it's
> entirely possible that I was doing something
> wrong.

Could you sent me the generated PLIST?
Comment 5 colin.percival 2004-02-09 04:19:56 UTC
   There's a bug in bsd.port.mk 1.484 line 4895: find(1) doesn't
support -not prior to 4.7, and support is broken in 4.7 and 5.0.
This causes PORTDOCS invokations to fail silently on systems
prior to Feb 2003.  (Reported to eik@.)
   After this is fixed, I'll submit a PORTDOCSified patch for
freebsd-update, so please don't touch that yet; but I think
the bsdiff patch can be committed (and the bsdiff pkg-plist
removed).

Colin Percival
Comment 6 Trevor Johnson freebsd_committer freebsd_triage 2004-02-09 11:07:52 UTC
State Changed
From-To: open->patched

patch applied to bsdiff
Comment 7 Trevor Johnson freebsd_committer freebsd_triage 2004-03-21 10:53:31 UTC
Responsible Changed
From-To: trevor->portmgr

Submitter found a bug in the implementation of PORTDOCS in bsd.port.mk. 

I prepared this patch (untested).  It ignores the remote possibility 
that a port might install a FIFO, socket, or device special file 
amid its documentation. 

Index: /usr/ports/Mk/bsd.port.mk 
=================================================================== 
RCS file: /home/ncvs/ports/Mk/bsd.port.mk,v 
retrieving revision 1.484 
diff -u -r1.484 bsd.port.mk 
--- /usr/ports/Mk/bsd.port.mk	4 Feb 2004 04:27:04 -0000	1.484 
+++ /usr/ports/Mk/bsd.port.mk	21 Mar 2004 10:53:53 -0000 
@@ -4892,7 +4892,7 @@ 
[ "`${SED} -En -e '/^@cw?d[ 	]*/s,,,p' ${TMPPLIST} | ${TAIL} -n 1`" != "${PREFIX}" ]; then  
${ECHO_CMD} "@cwd ${PREFIX}" >> ${TMPPLIST};  
fi 
-	@${FIND} -P ${PORTDOCS:S/^/${DOCSDIR}//} -not -type d 2>/dev/null |  
+	@${FIND} -P ${PORTDOCS:S/^/${DOCSDIR}//} -type f -o -type l 2>/dev/null |  
${SED} -ne 's,^${PREFIX}/,,p' >> ${TMPPLIST} 
@${FIND} -P -d ${PORTDOCS:S/^/${DOCSDIR}//} -type d 2>/dev/null |  
${SED} -ne 's,^${PREFIX}/,@dirrm ,p' >> ${TMPPLIST}
Comment 8 Oliver Eikemeier 2004-03-21 11:35:20 UTC
Trevor Johnson wrote:

> I prepared this patch (untested).  It ignores the remote possibility
> that a port might install a FIFO, socket, or device special file
> amid its documentation.

Already fixed in PR 62627, thanks.
Comment 9 Colin Percival freebsd_committer freebsd_triage 2004-04-13 08:23:05 UTC
Responsible Changed
From-To: portmgr->cperciva

The PORTDOCS problem is fixed; grab my PR to remind myself to 
submit a patch to use this.
Comment 10 Colin Percival freebsd_committer freebsd_triage 2004-04-21 19:02:18 UTC
Responsible Changed
From-To: cperciva->trevor

Now that the PORTDOCS problem is fixed, I've attached a corrected 
patch for security/freebsd-update below.  Once the ports freeze is 
over, could you commit this and remove security/freebsd-update/pkg-plist ?
Comment 11 Michael Nottebrock freebsd_committer freebsd_triage 2004-05-11 13:05:25 UTC
State Changed
From-To: patched->closed

Committed, thanks! 



Comment 12 Michael Nottebrock freebsd_committer freebsd_triage 2004-05-11 13:05:25 UTC
Responsible Changed
From-To: trevor->lofi

Committed, thanks!