Hello,

The SCA Makefile [1] uses "make install prefix=foobar" when installing
a software. I think the syntax is not correct and should be "make
install DESTDIR=foobar" to install the software in foobar directory
instead of the default /

Installing in / (/Library/OpenSC/ in fact) fails unless when running as root.

I could not fully test the patch since my build fails for now on
OpenSSL but that should be another story.

Any comment?

[1] http://www.opensc-project.org/sca/browser/trunk/Makefile

-- 
 Dr. Ludovic Rousseau
Index: Makefile
===================================================================
--- Makefile    (revision 120)
+++ Makefile    (working copy)
@@ -181,7 +181,7 @@ build-opensc: fetch-opensc
        OPENSSL_LIBS="-L$(BUILDHOME)/compiled-openssl/Library/OpenSC/lib 
-lcrypto" \
        ./configure --prefix=/Library/OpenSC --sysconfdir=/Library/OpenSC/etc 
--enable-pcsc && \
        make && \
-       make install prefix=$(BUILDHOME)/compiled-opensc/Library/OpenSC
+       make install DESTDIR=$(BUILDHOME)/compiled-opensc/Library/OpenSC
        touch $@
 
 build-libp11: fetch-libp11
@@ -190,7 +190,7 @@ build-libp11: fetch-libp11
        OPENSSL_LIBS="-L$(BUILDHOME)/compiled-openssl/Library/OpenSC/lib 
-lcrypto" \
        ./configure --prefix=/Library/OpenSC && \
        make && \
-       make install prefix=$(BUILDHOME)/compiled-libp11/Library/OpenSC
+       make install DESTDIR=$(BUILDHOME)/compiled-libp11/Library/OpenSC
        touch $@
 
 build-engine: fetch-engine
@@ -201,7 +201,7 @@ build-engine: fetch-engine
        OPENSSL_LIBS="-L$(BUILDHOME)/compiled-openssl/Library/OpenSC/lib 
-lcrypto" \
        ./configure --prefix=/Library/OpenSC && \
        make && \
-       make install prefix=$(BUILDHOME)/compiled-engine/Library/OpenSC
+       make install DESTDIR=$(BUILDHOME)/compiled-engine/Library/OpenSC
        mkdir -p $(BUILDHOME)/compiled-engine/Library/OpenSC/etc
        cp openssl.conf $(BUILDHOME)/compiled-engine/Library/OpenSC/etc
        touch $@
@@ -255,7 +255,7 @@ build-libusb: fetch-libusb
        cd libusb && \
        ./configure --prefix=/Library/OpenSC --disable-build-docs && \
        make && \
-       make install prefix=$(BUILDHOME)/compiled-libusb/Library/OpenSC
+       make install DESTDIR=$(BUILDHOME)/compiled-libusb/Library/OpenSC
        touch $@
 
 build-ifd-egate: fetch-ifd-egate
_______________________________________________
opensc-devel mailing list
[email protected]
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to