Opened 5 years ago

Last modified 4 years ago

#47690 new enhancement

remove ${prefix}/share/examples and install example in the "correct" location

Reported by: petrrr Owned by: petrrr
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc: ryandesign (Ryan Schmidt), dliessi (Davide Liessi), Ionic (Mihai Moldovan)
Port: py-*

Description (last modified by petrrr)

This ticket is a follow up on ticket #47687 and goes back to a discussion in October 2013.

The background is that ${prefix}/share/examples is not mentioned in hier(7) or the FHS. Only porthier(7) introduced it for some reason.

As a consequence this ticket proposed:

  • To remove share/examples from porthier(7) man page
  • To audit port for the explicit use of share/examples
  • I do not propose to modify build systems (but I doubt this location is often -- if ever -- used by build systems to install examples)

There is evidence that the following ports install into share/examples (from my personal installation):

  • bison
  • expat
  • glpk
  • jbigkit
  • krb5
  • mpv
  • p5.16-error
  • py-google-api
  • py-poppler-qt4
  • py-py2app
  • tsocks
  • zlib

and I did a quick review of python ports:

  • py-celementtree
  • py-freebase
  • py-google-api
  • py-htmltemplate
  • py-keyring
  • py-lepton
  • py-logilab-constraint
  • py-pdfrw
  • py-poppler-qt4
  • py-py2app
  • py-pyfsevents
  • py-pylibpcap
  • py-pyusb
  • py-pyxb
  • py-rpncalc
  • py-simpy

Change History (7)

comment:1 in reply to:  description Changed 5 years ago by ryandesign (Ryan Schmidt)

Replying to petr@…:

  • To audit port for the explicit use of share/examples

I am already in the process of changing ${prefix}/share/examples/${subport} to ${prefix}/share/doc/${subport}/examples in ports that use the python 1.0 portgroup as part of #47687.

comment:2 Changed 5 years ago by petrrr

Okay, I assumed for the moment you are only looking at ports which already install into ${prefix}/share/doc/${subport}/examples. So I will keep this on hold until you commit.

comment:3 Changed 5 years ago by petrrr

Change to porthier.7 done in r136002.

comment:4 Changed 5 years ago by petrrr

Description: modified (diff)

comment:5 Changed 5 years ago by larryv (Lawrence Velázquez)

bison fixed in r136013.

comment:6 Changed 5 years ago by dliessi (Davide Liessi)

Cc: davide.liessi@… added

Cc Me!

comment:7 Changed 4 years ago by Ionic (Mihai Moldovan)

Cc: ionic@… added

Cc Me!

Note: See TracTickets for help on using tickets.