Your message dated Tue, 23 Feb 2016 16:27:14 +0000
with message-id <[email protected]>
and subject line Bug#758564: fixed in openrc 0.20.4-1
has caused the Debian Bug report #758564,
regarding FTBFS with clang instead of gcc
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
758564: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=758564
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: openrc
Severity: minor
Tags: patch
User: [email protected]
Usertags: clang-ftbfs

Hello,

Using the rebuild infrastructure, your package fails to build with clang 
(instead of gcc).

We detected this kinf of error:
http://clang.debian.net/status.php?version=3.5.0rc1&key=NOT_ALLOWED_HERE

Full build log is available here:
http://clang.debian.net/logs/2014-06-16/openrc_0.12.4+20131230-9_unstable_clang.log

Thanks,
Alexander

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--- ./src/librc/librc-depend.c	2014-08-19 00:44:32.000000000 +0400
+++ ../openrc-0.12.4+20131230-my/./src/librc/librc-depend.c	2014-08-19 00:34:41.960965257 +0400
@@ -886,6 +886,83 @@
 	return '?';
 }
 
+static idid_entry_t *idid_counters = NULL;
+static int idid_count2 = 0;
+
+static void idid_btree_builddescarray(const void *nodep, const VISIT which, const int depth) {
+    (void)depth;
+    switch (which) {
+        case preorder:
+        case leaf: {
+            const idid_entry_t *idid_entry_p = *(idid_entry_t * const*)nodep;
+
+            memcpy(&idid_counters[idid_count2], idid_entry_p, sizeof(idid_counters[idid_count2]));
+            idid_count2++;
+            break;
+        }
+        default:
+            break;
+    }
+    return;
+}
+
+static char printwarn;
+static RC_DEPINFO *depinfo_from = NULL;
+static RC_DEPINFO *depinfo_to = NULL;
+
+void
+rc_deptree_remove_loopdependency(service_id_t **unap[UNAPM_MAX], service_id_t dep_remove_from_service_id, service_id_t dep_remove_to_service_id, RC_DEPINFO *di_from, RC_DEPINFO *di_to, const char *const type, unapm_type_t unapm_type)
+{
+    RC_DEPTYPE *deptype_from = NULL, *deptype_to = NULL;
+    int dep_num, dep_count;
+    const char *type_reverse = NULL;
+    int deptype_num;
+
+    /* removing use/after from cache */
+    if (di_from != NULL) {
+        deptype_from = get_deptype(di_from, type);
+        if (deptype_from != NULL)
+            rc_stringlist_delete(deptype_from->services, di_to->service);
+    }
+
+    /* removing from the UNAP matrix */
+    if (deptype_from != NULL || di_from == NULL) {
+        dep_num   = 0;
+        dep_count = unap[unapm_type][dep_remove_from_service_id][0];
+        while (dep_num++ < dep_count) {
+            if (unap[unapm_type][dep_remove_from_service_id][dep_num] == dep_remove_to_service_id) {
+                unap[unapm_type][dep_remove_from_service_id][dep_num] =
+                    unap[unapm_type][dep_remove_from_service_id][dep_count--];
+
+                if (printwarn)
+                    ewarn("Solving the loop by breaking %s %c> %s.",
+                        depinfo_to->service, deptype2char(unapm_type), depinfo_from->service);
+            }
+        }
+        unap[unapm_type][dep_remove_from_service_id][0] = dep_count;
+    }
+
+    /* removing back dependencies */
+
+    if (di_to == NULL)
+        return;
+
+    deptype_num = 0;
+    while (deppairs[deptype_num].depend) {
+        if (!strcmp(deppairs[deptype_num].depend, type)) {
+            type_reverse = deppairs[deptype_num].addto;
+            break;
+        }
+        deptype_num++;
+    }
+
+    deptype_to = get_deptype(di_to, type_reverse);
+    if (deptype_to != NULL)
+        rc_stringlist_delete(deptype_to->services, di_from->service);
+
+    return;
+}
+
 /*! Solves dependecies loops
  * @param unap_matrix matrixes to scan ways to solve the loop
  * @param service_id looped service id
@@ -900,7 +977,7 @@
 	int chains_size = unap_matrix[0][0][0], chain_count;
 
 	/* svc_id2depinfo_bt may be NULL while any unit tests to simplify them */
-	char printwarn  =  (svc_id2depinfo_bt != NULL) && (flags & RCDTFLAGS_LOOPSOLVER_WARNINGS);
+    printwarn  =  (svc_id2depinfo_bt != NULL) && (flags & RCDTFLAGS_LOOPSOLVER_WARNINGS);
 	char printerr   =   svc_id2depinfo_bt != NULL;
 
 	if (! (flags & RCDTFLAGS_LOOPSOLVER))
@@ -1243,26 +1320,6 @@
 		/* building array of dependencies sorted by descending presence counter */
 
 		{
-			int idid_count2;
-			idid_entry_t *idid_counters;
-
-			void idid_btree_builddescarray(const void *nodep, const VISIT which, const int depth) {
-				(void)depth;
-				switch (which) {
-					case preorder:
-					case leaf: {
-						const idid_entry_t *idid_entry_p = *(idid_entry_t * const*)nodep;
-
-						memcpy(&idid_counters[idid_count2], idid_entry_p, sizeof(idid_counters[idid_count2]));
-						idid_count2++;
-						break;
-					}
-					default:
-						break;
-				}
-				return;
-			}
-
 			idid_counters = xmalloc(idid_count * sizeof(*idid_counters));
 
 			idid_count2 = 0;
@@ -1296,60 +1353,6 @@
 
 				{
 					ENTRY item, **item_pp;
-					RC_DEPINFO *depinfo_from = NULL, *depinfo_to = NULL;
-
-					void
-					rc_deptree_remove_loopdependency(service_id_t **unap[UNAPM_MAX], service_id_t dep_remove_from_service_id, service_id_t dep_remove_to_service_id, RC_DEPINFO *di_from, RC_DEPINFO *di_to, const char *const type, unapm_type_t unapm_type)
-					{
-						RC_DEPTYPE *deptype_from = NULL, *deptype_to = NULL;
-						int dep_num, dep_count;
-						const char *type_reverse = NULL;
-						int deptype_num;
-
-						/* removing use/after from cache */
-						if (di_from != NULL) {
-							deptype_from = get_deptype(di_from, type);
-							if (deptype_from != NULL)
-								rc_stringlist_delete(deptype_from->services, di_to->service);
-						}
-
-						/* removing from the UNAP matrix */
-						if (deptype_from != NULL || di_from == NULL) {
-							dep_num   = 0;
-							dep_count = unap[unapm_type][dep_remove_from_service_id][0];
-							while (dep_num++ < dep_count) {
-								if (unap[unapm_type][dep_remove_from_service_id][dep_num] == dep_remove_to_service_id) {
-									unap[unapm_type][dep_remove_from_service_id][dep_num] =
-										unap[unapm_type][dep_remove_from_service_id][dep_count--];
-
-									if (printwarn)
-										ewarn("Solving the loop by breaking %s %c> %s.",
-											depinfo_to->service, deptype2char(unapm_type), depinfo_from->service);
-								}
-							}
-							unap[unapm_type][dep_remove_from_service_id][0] = dep_count;
-						}
-
-						/* removing back dependencies */
-
-						if (di_to == NULL)
-							return;
-
-						deptype_num = 0;
-						while (deppairs[deptype_num].depend) {
-							if (!strcmp(deppairs[deptype_num].depend, type)) {
-								type_reverse = deppairs[deptype_num].addto;
-								break;
-							}
-							deptype_num++;
-						}
-
-						deptype_to = get_deptype(di_to, type_reverse);
-						if (deptype_to != NULL)
-							rc_stringlist_delete(deptype_to->services, di_from->service);
-
-						return;
-					}
 
 					if (printwarn) {
 						item.key     = (void *)(long)service_id_from;
--- ./src/lsb2rcconf/main.c	2014-08-19 00:44:32.000000000 +0400
+++ ../openrc-0.12.4+20131230-my/./src/lsb2rcconf/main.c	2014-08-19 00:43:30.239581661 +0400
@@ -63,11 +63,12 @@
 #define hsearch_data_t void *
 
 #define hsearch_r(...) hsearch_r_2_tsearch(__VA_ARGS__)
-static inline int hsearch_r_2_tsearch(ENTRY item, ACTION action, ENTRY **retval, hsearch_data_t *htab) {
-	int hsearch_r_2_tsearch_compare(const ENTRY *a, const ENTRY *b) {
+static int hsearch_r_2_tsearch_compare(const ENTRY *a, const ENTRY *b) {
 		return strcmp(a->key, b->key);
 	}
 
+static inline int hsearch_r_2_tsearch(ENTRY item, ACTION action, ENTRY **retval, hsearch_data_t *htab) {
+
 	ENTRY **tret = NULL;
 
 	switch (action) {
@@ -202,11 +203,18 @@
 	}
 }
 
+static struct relation_arg *arg_p_ = NULL;
+
+static void relation_add_mark_real_service(char *service, void *arg) {
+    relation_add_oneservice(service, arg_p_);
+}
+
 void relation_add(const char *const _service, struct relation_arg *arg_p)
 {
 	if (!strcmp(_service, service_me)) {
 		return;
 	}
+    arg_p_ = arg_p;
 
 	char *service_buf = xstrdup(_service), *service = service_buf;
 
@@ -228,9 +236,6 @@
 
 				const char *const services = lsb_v2s(service);
 				if (services != NULL) {
-					void relation_add_mark_real_service(char *service, void *arg) {
-						relation_add_oneservice(service, arg_p);
-					}
 					services_foreach(services, (services_foreach_funct_t)relation_add_mark_real_service, NULL);
 				}
 				break;
@@ -302,6 +307,35 @@
 	return r;
 }
 
+static char *services_unrolled_ptr = NULL;
+static char *services_unrolled_end = NULL;
+
+static void parse_insserv_parse_service(char *service, void *arg) {
+    const char *services;
+    switch (*service) {
+        case '$':
+            service++;
+            services = lsb_v2s(service);
+            break;
+        default:
+            services = service;
+            break;
+    }
+    if (services == NULL)
+        return;
+
+    size_t len = strlen(services);
+
+    if (&services_unrolled_ptr[len] >= services_unrolled_end) {
+        fprintf(stderr, "Error: Too long field value.\n");
+        exit(EOVERFLOW);
+    }
+
+    memcpy(services_unrolled_ptr, services, len);
+    services_unrolled_ptr = &services_unrolled_ptr[len];
+    *(services_unrolled_ptr++) = ' ';
+}
+
 void parse_insserv()
 {
 	FILE *file_insserv = fopen(PATH_INSSERV, "r");
@@ -340,34 +374,9 @@
 			/* $virtual:	+service +service +service +service	*/
 			/*			      services			*/
 
-			char services_unrolled[BUFSIZ], *services_unrolled_ptr = services_unrolled, *services_unrolled_end = &services_unrolled[BUFSIZ];
-
-			void parse_insserv_parse_service(char *service, void *arg) {
-				const char *services;
-				switch (*service) {
-					case '$':
-						service++;
-						services = lsb_v2s(service);
-						break;
-					default:
-						services = service;
-						break;
-				}
-				if (services == NULL)
-					return;
-
-				size_t len = strlen(services);
-
-				if (&services_unrolled_ptr[len] >= services_unrolled_end) {
-					fprintf(stderr, "Error: Too long field value.\n");
-					exit(EOVERFLOW);
-				}
-
-				memcpy(services_unrolled_ptr, services, len);
-				services_unrolled_ptr = &services_unrolled_ptr[len];
-				*(services_unrolled_ptr++) = ' ';
-			}
-
+            char services_unrolled[BUFSIZ];
+            services_unrolled_ptr = services_unrolled;
+            services_unrolled_end = &services_unrolled[BUFSIZ];
 			services_foreach(services, (services_foreach_funct_t)parse_insserv_parse_service, NULL);
 			*(--services_unrolled_ptr) = 0;
 

--- End Message ---
--- Begin Message ---
Source: openrc
Source-Version: 0.20.4-1

We believe that the bug you reported is fixed in the latest version of
openrc, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Benda Xu <[email protected]> (supplier of updated openrc package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 23 Feb 2016 21:56:27 +0900
Source: openrc
Binary: openrc openrc-dbg librc1 librc1-dbg librc-dev libeinfo1 libeinfo1-dbg 
libeinfo-dev
Architecture: source amd64
Version: 0.20.4-1
Distribution: unstable
Urgency: high
Maintainer: OpenRC Debian Maintainers <[email protected]>
Changed-By: Benda Xu <[email protected]>
Description:
 libeinfo-dev - dependency based init system (pretty control display 
development)
 libeinfo1  - dependency based init system (pretty console display library)
 libeinfo1-dbg - dependency based init system (pretty console display library) 
- d
 librc-dev  - dependency based init system (runtime development)
 librc1     - dependency based init system (runtime library)
 librc1-dbg - dependency based init system (runtime library) - debug
 openrc     - dependency based init system (runlevel change mechanism)
 openrc-dbg - dependency based init system (runlevel change mechanism) - debug
Closes: 758564 773287 811708
Changes:
 openrc (0.20.4-1) unstable; urgency=high
 .
   [ Benda Xu ]
   * New upstream release.
     Refresh and remove upstreamed GNU/Hurd patches.
   * Removed nested functions in the previous release (Closes: #758564).
   * Enable SELinux, audit and PAM supports on Linux (Closes: #773287).
     Credits Laurent Bigonville.
 .
   [ Svante Signell ]
   * Update openrc.postrm and create openrc.preinst to divert
     update-rc.d + invoke-rc.d files to cooperate with
     init-system-helpers >=1.25. (Closes: #811708)
Checksums-Sha1:
 6483ddb5ca74fb5e3b716b6fe8507868b342a966 2361 openrc_0.20.4-1.dsc
 d0b197dc311d2caeceeff6cadccd7c5b6706d544 165760 openrc_0.20.4.orig.tar.xz
 120fb494535024a7163f85b3cf6e4db0c29e61aa 31792 openrc_0.20.4-1.debian.tar.xz
 a66674d4c086aaf5888e4e082c5543e997040706 11220 libeinfo-dev_0.20.4-1_amd64.deb
 9f13a4ad2342dbb35a3ea8a2ebe2a5a00503f67e 22664 libeinfo1-dbg_0.20.4-1_amd64.deb
 52bbaeff6f2294dc51035c92f8a383eb38c9b4c5 14658 libeinfo1_0.20.4-1_amd64.deb
 95a4f6a1dc9eabda1acccbe75fad670fa36fab1f 21160 librc-dev_0.20.4-1_amd64.deb
 1bdc7bf889997445fbb30cc06fcaa75ad4d3ff41 75786 librc1-dbg_0.20.4-1_amd64.deb
 a2e88862e93f0716395543c7d233b8e95ff67bf1 31788 librc1_0.20.4-1_amd64.deb
 9ff829039b80e3f01ce2e4ad3c4675ab54b44316 314504 openrc-dbg_0.20.4-1_amd64.deb
 52d91916055428c77344ff0e1243e36ac23dc1d2 120018 openrc_0.20.4-1_amd64.deb
Checksums-Sha256:
 0b64fb3b3aad3ad101009ce352e44bfa4dd936c82f0542133b9ffbe11659d1c8 2361 
openrc_0.20.4-1.dsc
 fda98070a2a0005afa68ca5b04ca9e9f9d68d7405948d83f8d1086631fe13e4a 165760 
openrc_0.20.4.orig.tar.xz
 4b3fc753fc895bed0a8882c142cd1cf5bc0e6f8533d557ebfbadb35dc612ed21 31792 
openrc_0.20.4-1.debian.tar.xz
 7f5ff168495033c5c6b039060ab9d521aef8ba6e1572de5e33671efb897069ba 11220 
libeinfo-dev_0.20.4-1_amd64.deb
 3ab705470fd6d6765872b8f9cf3fe3ccf4a19ea1d5ba4c0391444ecd49768b9d 22664 
libeinfo1-dbg_0.20.4-1_amd64.deb
 099abca35585d63aafe476ae8454a65513c61cb31a0947919f9d10eadecd7eb6 14658 
libeinfo1_0.20.4-1_amd64.deb
 e3ae9f2d4e3981c4dfde426798bf4b250d3d0cb307a62883e64dadf3ba4ad22e 21160 
librc-dev_0.20.4-1_amd64.deb
 2e445f037068282d5d073b76172d42873071ae10f1415915906299f2c8e3162e 75786 
librc1-dbg_0.20.4-1_amd64.deb
 ef8ec7bc03045431d521a10963f414c86e1fec0771031613f3f6e743ea32067c 31788 
librc1_0.20.4-1_amd64.deb
 f71427f6ed548d8824011ecb3bd3d615721828f685793a15b06c71609a67fbb2 314504 
openrc-dbg_0.20.4-1_amd64.deb
 a482a66ad9a7e71f8d0b64ed8c6c1b686729bef7d1ed986087e7bbeeff52a449 120018 
openrc_0.20.4-1_amd64.deb
Files:
 380a52b87bdb56a464438e693ae7f28f 2361 admin extra openrc_0.20.4-1.dsc
 a2e97dc7ba6233f3a2fd3936d862d8f9 165760 admin extra openrc_0.20.4.orig.tar.xz
 d629183b44b6b8d05d2c966e09aa20b3 31792 admin extra 
openrc_0.20.4-1.debian.tar.xz
 1da3f506da3ce9785ea43f42bc8ac821 11220 libdevel extra 
libeinfo-dev_0.20.4-1_amd64.deb
 1e06a8d66ee7d3c5767ed92838f9fdf0 22664 debug extra 
libeinfo1-dbg_0.20.4-1_amd64.deb
 56840d3b9eb9fc00a510359dea2208e5 14658 admin extra libeinfo1_0.20.4-1_amd64.deb
 1401f803841671e15ea133177deddc88 21160 libdevel extra 
librc-dev_0.20.4-1_amd64.deb
 d82f11ee33b770c0049cfadfe9730855 75786 debug extra 
librc1-dbg_0.20.4-1_amd64.deb
 4ec2cef012cf0b180d35d096acacd46d 31788 admin extra librc1_0.20.4-1_amd64.deb
 16d916c3fc3e3fbd0330c7d11b81c31d 314504 debug extra 
openrc-dbg_0.20.4-1_amd64.deb
 4709c5658905c4ec4544528da87127a9 120018 admin extra openrc_0.20.4-1_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCgAGBQJWzF7UAAoJEN92ELUh8XEi1uoQAJaNE1pkS2WzwXJsLh5ry2aU
4ebpZBEzTjbnLPz59dCL22iDxrogKFF/9WX3ChrLeVH3Q4Qr8gTdJ++y2956qnIw
ZbsBy65SG9vfGZWvMxEwjbTgHwsb7CuckExemXrWOTFTrgHZ12b7leOANQgueDp7
90gsp4ErpaQUZI42dFJsArRVFk7NRnESzXj+g5FbNBD9/c9vzgLxnK+9P2FhFF4W
qiEThwkFOmd0G7FGCCVZGUlQlxZtGmWDtYx0mcdOR3JskjVaRNOZDz/NwCBgZk8h
goq0itQvy70w4p+Vy0bEYZiDBpUw2m+pKUNtEJt5vR7Y9Z0XY9OTjMQk06732GTq
pgZbpMZEfXcEOkMuHjzDgNZhALZtBBTZgoXKkA64egeaGBtsu/s1axWpQEM7VKWt
j90qvIaZPhcM52bqv7rUDsYS4O8GrAFlL3i4wtxJR80pou5X5dIl1K9QDV+LOw1u
3+P8JaD4BBmNV6ed1hcSgOpJbLrUiK/0PnjzNpukr3xp3e3g2lHG6IfueCBHqVEF
6JUCek80GhM10F2YnDqE9zMYgwqCKepN8olAN1A8+8/ilg+snVerssy5vcqOa6rL
dKwgolONA2uaU3VXZMMuSRcNV5le/pV8EqbAlQ518tY3HDadv7KDfiTJnxD4dwCX
HoRPNGSb34KmvMJikfZc
=p0Mw
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to