Sorry, my first reply I forget to change the To: entry - it went to
devio.us.


Thanks Brian,

The current 12.2 port did have @sample entries for
/etc/xdg/tint2/tint2rc.  I cannot use the old entries because the newer
code follows Freedesktop specs by generating a default
/etc/xdg/tint2/tint2rc configuration file.  My problem is why this does
not show in PLIST.

I did find a second themes/CMakeLists.txt file that GLOB'd the *tint2rc
files and placed the files in ${CMAKE_INSTALL_DATADIR}/tint2.
I patched it to ${CMAKE_INSTALL_DATADIR}/examples/tint2 and was able to
avoid the post-intall entry.

$OpenBSD$

Index: themes/CMakeLists.txt
--- themes/CMakeLists.txt.orig
+++ themes/CMakeLists.txt
@@ -1,2 +1,2 @@
file( GLOB EXTRATHEMEFILES *.tint2rc )
-install( FILES ${EXTRATHEMEFILES} DESTINATION ${CMAKE_INSTALL_DATADIR}/tint2 )
+install( FILES ${EXTRATHEMEFILES} DESTINATION 
${CMAKE_INSTALL_DATADIR}/examples/tint2 )


If the bogus elements are ignored, it actually installs
/etc/xdg/tint2/tint2rc per FreeDesktop Specifications - verified in
pobj/tint2...../fake-amd64/etc/xdg/tint2/tint2rc.

https://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
"Specifications may reference this specification by specifying the
location of a configuration file as $XDG_CONFIG_DIRS/subdir/filename.
This implies that:

Default configuration files should be installed to
$sysconfdir/xdg/subdir/filename with $sysconfdir defaulting to /etc."

My understanding is the we do need the PLIST entries in the event a port
is updated.  I am at a loss why make-plist does not detect
/etc/xdg/tint2/tint2rc per the top-most CMakeLists.txt file.

I read about FAKE_FLAGS but this is made difficult in that themes has
tint2rc and a fair number of *.tintrc files.

Thanks

Scott

On Aug 03, 2017: 18:14, Brian Callahan wrote:
Hi Scott --

On 08/03/17 16:32, Heppler, J. Scott wrote:
I ran 'make update-plist' and the following bogus elements showed up

Scanning destdir
Getting old lists
1st pass identifying files
Attaching annotations
Sorting out destdir files
make-plist: Bogus element outside of every prefix: /etc/xdg
make-plist: Bogus element outside of every prefix: /etc/xdg/tint2
make-plist: Bogus element outside of every prefix: /etc/xdg/tint2/tint2rc

These elements exist in the fake build and are based on a CMakeLists.txt
entry:

install( TARGETS tint2 DESTINATION bin )
install( FILES tint2.svg DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/scalable/apps ) install( FILES tint2.desktop DESTINATION ${CMAKE_INSTALL_DATADIR}/applications )
install( FILES themes/tint2rc DESTINATION /etc/xdg/tint2 )

Make a patch to change this line. Tell CMake to install this file to share/examples/tint2 (this is where it was previously installed to before your diff).
Then go back and re-add @sample to all the places you diff removed them.

Also, don't edit the @comment line with the RCS ID.

~Brian

install( FILES default_icon.png DESTINATION ${CMAKE_INSTALL_DATADIR}/tint2 )

/usr/ports/pobj/tint2../fake-amd64/etc/xdg/tint2/tint2rc

The porters handbook/special topics says to add the @sample entry
immediately after the entry, but for some reason the
../xdg/tint2/tint2rc entry is missing ?Stripped? from the PLIST.

So I'm confused about where to add the @sample PLIST entries




--
J. Scott Heppler

Penguin Innovations

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

NOTICE: This e-mail message and any attachments may
contain legally privileged and confidential information intended
solely for the use of the intended recipients. If you are not an
intended recipient, you are hereby notified that you have
received this message in error and any review, dissemination,
distribution, copying, or other unauthorized use of this email
and any attachment is strictly prohibited. If you have received
this email in error, please notify the sender immediately and
delete the message and any attachments from your system.

Reply via email to