Opened 16 years ago

Closed 15 years ago

#242 closed defect (fixed)

Test data files get installed in /usr/local/share

Reported by: Jari Häkkinen Owned by: Jari Häkkinen
Priority: major Milestone: yat 0.4
Component: build Version: 0.3.1
Keywords: Cc:

Description (last modified by Peter)

Related to ticket:278

Installing yat also installs test data. In /usr/local/share! Ugly! Either stop these from being installed or make sure that they install in /usr/local/share/yat or similar.

Change History (7)

comment:1 Changed 16 years ago by Peter

Description: modified (diff)

ticket:278 was marked as related

comment:2 Changed 16 years ago by Peter

There is no reason to install the data, so if possible data should not be installed. That is my vote.

comment:3 Changed 16 years ago by Peter

(In [970]) test data is now installed in /usr/local/share/yat.

comment:4 Changed 16 years ago by Peter

I can't find a way not to install the data (without omitting it from dist). One way to have no installed data would be to add a install-data-hook that simply removes everything in /usr/local/share/yat. I think that is ugly, so I prefer to find another way.

comment:5 Changed 16 years ago by Peter

Hm, found a tricky way. First, replace dist_yat_data_DATA with something like test_data_for_dist. This will exclude the data files from dist and consequently from the install as well. Second, add a install-dist-hook that copies test_data_for_dist to test/data/ in distribution directory.

The install-dist-hook is a tag that let us modify the distribution between dist dir is created and tar ball is wrapped up.

See section 14.3 here http://sources.redhat.com/automake/automake.html#Dist

comment:6 Changed 15 years ago by Jari Häkkinen

Status: newassigned

comment:7 Changed 15 years ago by Jari Häkkinen

Resolution: fixed
Status: assignedclosed

Fixed in changeset:1218

Note: See TracTickets for help on using tickets.