Project

General

Profile

Actions

Bug #115

closed

Makefile should not install files automatically

Added by Heffer over 15 years ago. Updated about 15 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
04/13/2009
Due date:
% Done:

0%

Estimated time:

Description

The Makefile should not install files. It's really annoying when packaging it as a RPM because it just installs stuff without the possibility of intervening. This is especially annoying with locale files because they get installed into a path that needs to be supplied within the %build section of the spec file. That makes rpmlint cry.
Ville, you should know what I'm talking about :)
It would be great if a install target could be added in the Makefile.


Files

dxr3-makefile.patch (590 Bytes) dxr3-makefile.patch SPAM, 04/18/2009 03:37 PM
Actions #1

Updated by SPAM over 15 years ago

I agree. However this is a problem with all VDR plugins I know of, and is caused by VDR's Makefile just running "make all" for plugins compiled along with it, so breaking the "all" contract and requiring "make install" to install the plugin should really be done in all plugins IMO, doing it only in dxr3 would only cause confusion.

But how about the attached patch; it leaves "make all" and "make" alone so that they effectively do the same thing as before, but adds a possibility to do "make libvdr-dxr3.so i18n" in %build which doesn't cause any files to be "installed" anywhere? Then in %install you could use "make all" to install the plugin.

Actions #2

Updated by SPAM over 15 years ago

Hmm, obviously something similar would need to be done to the "i18n" target without breaking plain "make" and "make all", ideas?

Actions #3

Updated by etobi over 15 years ago

Just as a small note: You can do something like:

make all LOCALEDIR=./tmp/whatever

This is what we do in the Debian packages with vdr plugins. See:

http://e-tobi.net/websvn/filedetails.php?repname=vdr-pkg&path=%2Fvdr-plugin-ttxtsubs%2Ftrunk%2Fdebian%2Frules

Actions #4

Updated by SPAM over 15 years ago

Sure, we do similar things in Fedora rpm packages, but it is annoying nevertheless, and would be better if there was a clean separation between building and installing plugins.

http://cvs.fedoraproject.org/viewvc/devel/vdr-ttxtsubs/vdr-ttxtsubs.spec?revision=1.11&view=markup

Actions #5

Updated by etobi over 15 years ago

Sure, but then this needs to be done for ALL plugin, meaning that Klaus needs to be convinced first.

Actions #6

Updated by SPAM over 15 years ago

Yes, which is pretty much what I said in note 1 in this bug :)

Actions #7

Updated by etobi over 15 years ago

Just wanted to support your position! :-)

Actions #8

Updated by austriancoder about 15 years ago

  • Status changed from Assigned to Rejected
Actions

Also available in: Atom PDF