Bug 260928

Summary: www/apache24: Install from ports fails because pkg-static complains of unknown keywords
Product: Ports & Packages Reporter: Stefan B. <sblachmann>
Component: Individual Port(s)Assignee: freebsd-apache (Nobody) <apache>
Status: Closed DUPLICATE    
Severity: Affects Some People CC: sblachmann, se
Priority: --- Flags: bugzilla: maintainer-feedback? (apache)
Version: Latest   
Hardware: Any   
OS: Any   

Description Stefan B. 2022-01-04 17:26:42 UTC
Using FreeBSD 13.0-RELEASE-p4, I am stuck trying to get apache24 from
ports built and installed.
There are two problems:

1. complaints about the correct setting of DISABLE_VULNERABILITIES option:
the first build stopped, telling me I'd have to set
'DISABLE_VULNERABILITIES=yes'.
The next build complained that the variable would have to be set to a
"boolean" value.
What would be a "correct" value if 'yes' isn't accepted?
Anyway, the build proceeded.

2. Using the command line "make -DBATCH -DDISABLE_VULNERABILITIES
install" the build part seems to work.
But, after the build pkg-static complained that it does not know
keywords "preunexec" and "postexec" and aborted.
Searching the web led me to the porters handbook:
https://docs.freebsd.org/en/books/porters-handbook/plist/#plist-keywords
(see section 8.6.13.2.)
Searching further, I read that a lot of keywords have been removed
with pkg 1.17. (See
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257384#c1 )
However, the porters' handbook doesn't mention the keywords as being deprecated.

My questions:
a) what could be the reason why pkg does not install Apache24, instead
putting out these complaints? Have more keywords been removed than the
porters' handbook states as "deprecated"?
b) what would be the correct way to get installed apache24, and maybe
other ports that fail the same way?
Comment 1 Stefan Eßer freebsd_committer freebsd_triage 2022-01-06 11:59:57 UTC
I cannot reproduce this problem - @preunexec works in my ports, and I can build, package, and install apache24 (just checked).

My environment: FreeBSD-CURRENT on amd64 with pkg-1.17.5.
Comment 2 Stefan B. 2022-01-09 02:34:10 UTC
Thank you for checking, Stefan Esser!

I now have found what the cause of the error is:
System was installed with the DVD installer option "install ports tree".

So, with ports tree generated by the FreeBSD DVD installer, make install of the apache build failed as described.

But after I removed the ports tree and reinstalled it using portsnap, the problem was gone and build/install worked:
rm -r /usr/src/*
rm -r /usr/src/.*
portsnap fetch
portsnap extract
portsnap update

Could there be something wrong with the ports tree being installed by the DVD installer ?
Comment 3 Stefan B. 2022-01-25 18:42:57 UTC

*** This bug has been marked as a duplicate of bug 261441 ***