~ubuntu-branches/ubuntu/utopic/cups/utopic

« back to all changes in this revision

Viewing changes to debian/patches/dont-use-dbus-from-two-threads.patch

  • Committer: Package Import Robot
  • Author(s): Didier Raboud, Till Kamppeter, Steve Langasek, Didier Raboud
  • Date: 2014-01-03 18:42:39 UTC
  • mfrom: (1.3.2)
  • mto: This revision was merged to the branch mainline in revision 142.
  • Revision ID: package-import@ubuntu.com-20140103184239-juzq32ckr7ra49b3
* New 1.7.0 upstream release

[ Till Kamppeter ]
* Refresh most patches with quilt
* Removed usb-backend-do-not-crash-if-usb-disabled-in-bios and
  cupsd-no-crash-on-avahi-threaded-poll-shutdown patches as they got
  applied upstream
* Removed drop-arch-specifics-from-doc patch as it is not needed
  anymore
* Updated drop_unnecessary_dependencies, manpage-hyphen-minus,
  manpage-translations and ppd-poll-with-client-conf patches manually
  to apply to the new CUPS version
* Added error counting exception from
  usb-backend-do-not-crash-if-usb-disabled-in-bios to
  tests-ignore-warnings
* Install the newly added ippfind utility and its manpage in
  cups-client
* Added pwg.h to libcups2-dev package
* Call dh_auto_clean only if the file Makedefs is present, to avoid a
  FTBFS
* Added color management extensions from Joe Simon's GSoC 2013
  project.
* Patch cups-files.conf to activate CUPS daemon syncing of files when
  closing, so that config files (like printers.conf) do not
  mysteriously disappear (LP: #1157972)
* In the AppArmor profile, allow execution of programs in
  /etc/cups/interfaces/, needed to make CUPS working with queues based
  on System V interface scripts, especially PPD-less queues
  auto-generated by cups-browsed from cups-filters 1.0.41 on.
* Silenced AppArmor noise from udev.conf in syslog (LP: #1229766)

[ Steve Langasek ]
* Add cups-filters (>= 1.0.42) as alternative to foomatic-filters
  (which is deprecated) in package relationships

[ Didier Raboud ]
* Remove Roger Leigh from uploaders on his request with thanks for his
  past work!
* Switch avahi LSB Should-Start dependency to be avahi-daemon; also
  bump package relationship to >= 0.6.31-3~ (Closes: #731608)
* Refresh the manpage translation files
* Move the USB backend quirk rules file to cups-server-common
* Add 38 new 1.7.0 libcups2 symbols
* Mark one C++ libcupsppdc1 symbol as optional as it isn't exported in
  1.7.0 anymore
* Import Fedora patches:
  - to avoid sign-extending CRCs in gz decompression
  - to build with full read-only relocations
  - to fix job history logging (upstream patch)
  - to set the internal default for SyncOnClose to Yes, instead of
    only configuring it to Yes
  - to fix a stringpool corruption issue
  - to prevent USB timeouts causing incorrect print output
* Import Fedora patch updates:
  - to dont-use-dbus-from-two-threads patch so it removes a call to
    avahi_threaded_poll_stop()
  - to avoid_stale_lockfile_in_dbus_notifier patch to call _exit when
    handling SIGTERM
* Move manpage-translations patch at the very end of the patch series
  to have it include all our patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
556
556
 
557
557
 /*
558
558
  * Prototypes...
559
 
@@ -228,6 +243,17 @@
 
559
@@ -229,6 +244,17 @@
560
560
 extern void            cupsdStartServer(void);
561
561
 extern void            cupsdStopServer(void);
562
562
 
573
573
+#endif /* HAVE_AVAHI */
574
574
 
575
575
 /*
576
 
  * End of "$Id: cupsd.h 11173 2013-07-23 12:31:34Z msweet $".
 
576
  * End of "$Id: cupsd.h 10996 2013-05-29 11:51:34Z msweet $".
577
577
--- a/scheduler/dirsvc.c
578
578
+++ b/scheduler/dirsvc.c
579
579
@@ -212,7 +212,7 @@
607
607
     }
608
608
 #  endif /* HAVE_DNSSD */
609
609
 
610
 
@@ -752,9 +750,7 @@
 
610
@@ -754,9 +752,7 @@
611
611
   DNSServiceRefDeallocate(*srv);
612
612
 
613
613
 #  else /* HAVE_AVAHI */
617
617
 #  endif /* HAVE_DNSSD */
618
618
 
619
619
   *srv = NULL;
620
 
@@ -1049,14 +1045,10 @@
 
620
@@ -1051,14 +1047,10 @@
621
621
   (void)commit;
622
622
 
623
623
 #  else /* HAVE_AVAHI */
632
632
     cupsdLogMessage(CUPSD_LOG_WARN, "DNS-SD registration of \"%s\" failed: %s",
633
633
                     name, dnssdErrorString(avahi_client_errno(DNSSDClient)));
634
634
     return (0);
635
 
@@ -1171,8 +1163,6 @@
 
635
@@ -1173,8 +1165,6 @@
636
636
       cupsdLogMessage(CUPSD_LOG_DEBUG, "DNS-SD commit of \"%s\" failed.",
637
637
                       name);
638
638
   }
641
641
 #  endif /* HAVE_DNSSD */
642
642
 
643
643
   if (error)
644
 
@@ -1343,7 +1333,7 @@
 
644
@@ -1341,12 +1331,10 @@
 
645
   DNSSDMaster = NULL;
 
646
 
 
647
 #  else /* HAVE_AVAHI */
 
648
-  avahi_threaded_poll_stop(DNSSDMaster);
 
649
-
645
650
   avahi_client_free(DNSSDClient);
646
651
   DNSSDClient = NULL;
647
652
 
663
668
                                        /* Client information */
664
669
--- a/scheduler/main.c
665
670
+++ b/scheduler/main.c
666
 
@@ -152,6 +152,10 @@
 
671
@@ -148,6 +148,10 @@
667
672
   int                  launchd_idle_exit;
668
673
                                        /* Idle exit on select timeout? */
669
674
 #endif /* HAVE_LAUNCHD */
674
679
 
675
680
 
676
681
 #ifdef HAVE_GETEUID
677
 
@@ -579,6 +583,14 @@
 
682
@@ -572,6 +576,14 @@
678
683
 
679
684
   httpInitialize();
680
685
 
689
694
   cupsdStartServer();
690
695
 
691
696
  /*
692
 
@@ -918,6 +930,16 @@
 
697
@@ -889,6 +901,16 @@
693
698
     }
694
699
 #endif /* __APPLE__ */
695
700
 
706
711
 #ifndef __APPLE__
707
712
    /*
708
713
     * Update the network interfaces once a minute...
709
 
@@ -1845,6 +1867,10 @@
 
714
@@ -1804,6 +1826,10 @@
710
715
   cupsd_job_t          *job;           /* Job information */
711
716
   cupsd_subscription_t *sub;           /* Subscription information */
712
717
   const char           *why;           /* Debugging aid */
717
722
 
718
723
 
719
724
   cupsdLogMessage(CUPSD_LOG_DEBUG2, "select_timeout: JobHistoryUpdate=%ld",
720
 
@@ -1890,6 +1916,19 @@
 
725
@@ -1849,6 +1875,19 @@
721
726
   }
722
727
 #endif /* __APPLE__ */
723
728