pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[PATCH] pkgin-0.6.3.1.1 by lang/gcc47



I am packaging my private set with lang/gcc47 (some 1,000 packages)
on NetBSD/amd64 6.1.

To do that:
(1) Setup chrooted pbulk build environment
(2) package lang/gcc47 at /usr/pkg_bulk side
(3) Following lines in /CHROOT/etc/mk.conf
   --------------------
   .if 1
   USE_NATIVE_GCC=yes
   GCC_REQD=4.7
   GCCBASE=/usr/pkg_bulk/gcc47
   USE_GCC_RUNTIME=YES
   .endif
   --------------------
And then, I have several problems.
Major problems with this gcc-47 are two kind.
(a) error: variable 'hoge' set but not used [-Werror=unused-but-set-variable]
   xenkernel33-3.3.2nb6
   xentools33-3.3.2nb14
   pkgin-0.6.3.1.1.nb2

(b) 
/usr/pkg_bulk/gcc47/lib/gcc/x86_64--netbsd/4.7.3/include/ssp/string.h:38:17: 
     fatal error: ssp.h: No such file or directory
   cairo-1.12.14nb1
   nickle-2.77
   sudo-1.7.10p7

   DragonFly 3.4.1 includes gcc 4.7, but it looks different from
   pkgsrc version of gcc47, and no problems with this ssp.h.

(a) The patches for  xenkernel33-3.3.2nb6 are here:
  http://www.ki.nu/~makoto/pkgsrc/sysutils/xenkernel33-patches/

(b) cairo related topics is here:
  http://mail-index.netbsd.org/pkgsrc-users/2013/05/06/msg018015.html

pkgin patch is attached:

Index: pkgtools/pkgin/distinfo
===================================================================
RCS file: /cvs/cvsroot/pkgsrc/pkgtools/pkgin/distinfo,v
retrieving revision 1.27
diff -u -r1.27 distinfo
--- pkgtools/pkgin/distinfo     25 Feb 2013 19:35:38 -0000      1.27
+++ pkgtools/pkgin/distinfo     30 May 2013 04:24:17 -0000
@@ -3,3 +3,5 @@
 SHA1 (pkgin-0.6.3.1.1.tar.gz) = 304cd88f91b80107168bbfc80211a8b3bbd1bae9
 RMD160 (pkgin-0.6.3.1.1.tar.gz) = 3e1896bf6169ca82fc667962d7fdefb401bd0cdb
 Size (pkgin-0.6.3.1.1.tar.gz) = 187921 bytes
+SHA1 (patch-download.c) = 02f4e7b63b3563e415c5057e0b93d1622ea9268d
+SHA1 (patch-pkg_check.c) = 26e30081b43fad7c04e26082efe0feef9682abb4
Index: pkgtools/pkgin/patches/patch-download.c
===================================================================
RCS file: pkgtools/pkgin/patches/patch-download.c
diff -N pkgtools/pkgin/patches/patch-download.c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ pkgtools/pkgin/patches/patch-download.c     30 May 2013 04:24:17 -0000
@@ -0,0 +1,36 @@
+$NetBSD$
+
+gcc-4.7.3 flags as: variable 'now' set but not used 
[-Werror=unused-but-set-variable]
+
+--- download.c.~1.15.~ 2012-07-16 02:36:34.000000000 +0900
++++ download.c 2013-05-30 11:49:53.000000000 +0900
+@@ -46,7 +46,9 @@ download_file(char *str_url, time_t *db_
+       size_t                  buf_len, buf_fetched;
+       ssize_t                 cur_fetched;
+       off_t                   statsize;
++#if 0  /* set but not used [-Werror=unused-but-set-variable], gcc47 */
+       time_t                  begin_dl, now;
++#endif
+       struct url_stat st;
+       struct url              *url;
+       fetchIO                 *f = NULL;
+@@ -96,7 +98,9 @@ download_file(char *str_url, time_t *db_
+       fflush(stdout);
+ 
+       buf_fetched = 0;
++#if 0  /* set but not used [-Werror=unused-but-set-variable], gcc47 */
+       begin_dl = time(NULL);
++#endif
+ 
+       statsize = 0;
+       start_progress_meter(p, buf_len, &statsize);
+@@ -111,7 +115,9 @@ download_file(char *str_url, time_t *db_
+ 
+               buf_fetched += cur_fetched;
+               statsize += cur_fetched;
++#if 0  /* set but not used [-Werror=unused-but-set-variable], gcc47 */
+               now = time(NULL);
++#endif
+       }
+ 
+       stop_progress_meter();
Index: pkgtools/pkgin/patches/patch-pkg_check.c
===================================================================
RCS file: pkgtools/pkgin/patches/patch-pkg_check.c
diff -N pkgtools/pkgin/patches/patch-pkg_check.c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ pkgtools/pkgin/patches/patch-pkg_check.c    30 May 2013 04:24:17 -0000
@@ -0,0 +1,28 @@
+$NetBSD$
+
+gcc-4.7.3 flags as: variable 'now' set but not used 
[-Werror=unused-but-set-variable]
+
+--- pkg_check.c.~1.7.~ 2012-07-16 02:36:34.000000000 +0900
++++ pkg_check.c        2013-05-30 11:55:35.000000000 +0900
+@@ -36,7 +36,11 @@
+ int
+ pkg_met_reqs(Plisthead *impacthead)
+ {
++#ifdef CHECK_PROVIDES
+       int                     met_reqs = 1, foundreq;
++#else
++      int                     met_reqs = 1;
++#endif
+       Pkglist         *pimpact, *requires;
+       Plistnumbered   *requireshead = NULL;
+       struct stat     sb;
+@@ -58,7 +62,9 @@ pkg_met_reqs(Plisthead *impacthead)
+               /* parse requires list */
+               SLIST_FOREACH(requires, requireshead->P_Plisthead, next) {
+ 
++#ifdef CHECK_PROVIDES
+                       foundreq = 0;
++#endif
+ 
+                       /* for performance sake, first check basesys */
+                       if ((strncmp(requires->full, LOCALBASE,


---
Makoto Fujiwara, 
Chiba, Japan, Narita Airport and Disneyland prefecture.



Home | Main Index | Thread Index | Old Index