LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   [Slackware-current]: Bug in ca-certificates-20130610 package (http://www.linuxquestions.org/questions/slackware-14/%5Bslackware-current%5D-bug-in-ca-certificates-20130610-package-4175470899/)

mancha 07-25-2013 12:35 PM

[Slackware-current]: Bug in ca-certificates-20130610 package
 
A bug crept into Slackware's packaging of Debian's ca-certificates suite via fixup_DESTDIR.diff.
The end result is Slackware's package is missing:
  • /usr/share/ca-certificates/cacert.org/cacert.org_root.crt
  • /usr/share/ca-certificates/cacert.org/cacert.org_class3.crt

--mancha

Corrected diff:

Code:

--- ./cacert.org/Makefile.orig
+++ ./cacert.org/Makefile
@@ -7,6 +7,7 @@
 clean:
 
 install:
+        mkdir -p $(CERTSDIR)
        for p in *.crt; do \
          install -m 644 $$p $(CERTSDIR)/cacert.org_$$p ; \
        done
--- ./mozilla/Makefile.orig
+++ ./mozilla/Makefile
@@ -9,6 +9,7 @@
        -rm -f *.crt
 
 install:
+        mkdir -p $(CERTSDIR)
        for p in *.crt; do \
          install -m 644 $$p $(CERTSDIR)/$$p ; \
        done
--- ./sbin/Makefile.orig
+++ ./sbin/Makefile
@@ -8,4 +8,5 @@
 clean:
 
 install:
+        mkdir -p $(DESTDIR)/usr/sbin
        install -m755 update-ca-certificates $(DESTDIR)/usr/sbin/
--- ./Makefile.orig
+++ ./Makefile
@@ -17,7 +17,7 @@
 
 install:
        for dir in $(SUBDIRS); do \
-          mkdir $(DESTDIR)/$(CERTSDIR)/$$dir; \
+          mkdir -p $(DESTDIR)/$(CERTSDIR)/$$dir; \
          $(MAKE) -C $$dir install CERTSDIR=$(DESTDIR)/$(CERTSDIR)/$$dir; \
        done
        for dir in sbin; do \
--- ./spi-inc.org/Makefile.orig
+++ ./spi-inc.org/Makefile
@@ -7,6 +7,7 @@
 clean:
 
 install:
+        mkdir -p $PKG/$(CERTSDIR)
        for p in *.crt; do \
          install -m 644 $$p $(CERTSDIR)/$$p ; \
        done


mancha 07-26-2013 12:51 AM

Fri Jul 26 03:25:08 UTC 2013
n/ca-certificates-20130610-noarch-2.txz: Rebuilt.
Fixed packaging bug that resulted in missing cacert.org certs.
Thanks to mancha.

wildwizard 07-26-2013 02:57 AM

Could also use 'install -D' to remove the call to mkdir depending on how you want the scripts to look


All times are GMT -5. The time now is 04:43 AM.