pkgsrc-Bugs archive

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

Re: pkg/53751: code blocks fails to build



The following reply was made to PR pkg/53751; it has been noted by GNATS.

From: David Holland <dholland-pbugs%netbsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: pkg/53751: code blocks fails to build
Date: Thu, 27 Dec 2018 18:59:58 +0000

 Whole thread didn't get sent to gnats (please send things for gnats to
 gnats-bugs@; this may not happen by default when replying to your own
 postings)
 
    ------
 
 From: Robert Nestor <rnestor%mac.com@localhost>
 To: pkg-manager%netbsd.org@localhost, gnats-admin%netbsd.org@localhost, pkgsrc-bugs%netbsd.org@localhost
 Subject: re: pkg/53751: code blocks fails to build
 Date: Thu, 29 Nov 2018 10:25:16 -0600
 
 Not sure if this is the correct fix, but it does allow editors/codeblocks to build in the 2018Q3 archive:
 
 % diff -bu Makefile.orig Makefile
 --- Makefile.orig       2018-11-29 07:56:11.217470830 -0600
 +++ Makefile    2018-11-29 07:56:23.049511539 -0600
 @@ -30,5 +30,6 @@
  .include "../../databases/shared-mime-info/mimedb.mk"
  .include "../../graphics/hicolor-icon-theme/buildlink3.mk"
  .include "../../sysutils/desktop-file-utils/desktopdb.mk"
 +.include "../../x11/gtk2/buildlink3.mk"
  .include "../../x11/wxGTK30/buildlink3.mk"
  .include "../../mk/bsd.pkg.mk"
 
    ------
 
 From: Benny Siegert <bsiegert%gmail.com@localhost>
 To: Robert Nestor <rnestor%mac.com@localhost>
 Cc: pkg-manager%netbsd.org@localhost, gnats-admin%netbsd.org@localhost, pkgsrc-bugs%netbsd.org@localhost
 Subject: Re: pkg/53751: code blocks fails to build
 Date: Wed, 19 Dec 2018 16:18:55 +0100
 
 On Thu, Nov 29, 2018 at 6:44 PM Robert Nestor <rnestor%mac.com@localhost> wrote:
 > +.include "../../x11/gtk2/buildlink3.mk"
 >  .include "../../x11/wxGTK30/buildlink3.mk"
 
 wxGTK30/bl3.mk provides a buildlink for whatever toolkit wxWidgets is
 built with. The default is gtk3 but AFAICT codeblocks only works with
 gtk2.
 
 Does it work if you add the following line to your mk.conf
 
 PKG_OPTIONS.wxGTK30=gtk2
 
 Then do the following:
 
 cd x11/wxGTK30
 make replace
 cd ../../editors/codeblocks
 make package-install
 
 
 -- 
 Benny
 
    ------
 
 From: Robert Nestor <rnestor%mac.com@localhost>
 To: Benny Siegert <bsiegert%gmail.com@localhost>
 Cc: pkg-manager%netbsd.org@localhost, gnats-admin%netbsd.org@localhost, pkgsrc-bugs%netbsd.org@localhost
 Subject: Re: pkg/53751: code blocks fails to build
 Date: Wed, 19 Dec 2018 13:53:11 -0600
 
 Thank you!  My suggestion made the build work but the executable wasn?t usable, it complained about having both gtk2 and gtk3 symbols in the same image.
 
 However, your suggestion worked for the build and created a usable executable in the -current pkgsrc (I haven?t tried it in older archives).  I thought a recent change to wxGTK30 allowed it to use either gtk2 or gtk3.  Does it only build with one or the other or does it build for both?  And if it builds for both can the OPTION be moved to codeblocks itself?
 
 -bob
 
 On Dec 19, 2018, at 9:18 AM, Benny Siegert <bsiegert%gmail.com@localhost> wrote:
 
 > On Thu, Nov 29, 2018 at 6:44 PM Robert Nestor <rnestor%mac.com@localhost> wrote:
 >> +.include "../../x11/gtk2/buildlink3.mk"
 >> .include "../../x11/wxGTK30/buildlink3.mk"
 > 
 > wxGTK30/bl3.mk provides a buildlink for whatever toolkit wxWidgets is
 > built with. The default is gtk3 but AFAICT codeblocks only works with
 > gtk2.
 > 
 > Does it work if you add the following line to your mk.conf
 > 
 > PKG_OPTIONS.wxGTK30=gtk2
 > 
 > Then do the following:
 > 
 > cd x11/wxGTK30
 > make replace
 > cd ../../editors/codeblocks
 > make package-install
 > 
 > 
 > -- 
 > Benny
 
    ------
 
 From: Benny Siegert <bsiegert%gmail.com@localhost>
 To: Robert Nestor <rnestor%mac.com@localhost>
 Cc: pkg-manager%netbsd.org@localhost, gnats-admin%netbsd.org@localhost, pkgsrc-bugs%netbsd.org@localhost
 Subject: Re: pkg/53751: code blocks fails to build
 Date: Wed, 26 Dec 2018 13:01:41 +0100
 
 On Wed, Dec 19, 2018 at 8:56 PM Robert Nestor <rnestor%mac.com@localhost> wrote:
 > I thought a recent change to wxGTK30 allowed it to use either gtk2 or gtk3.  Does it only build with one or the other or does it build for both?
 
 wxGTK30 can use either gtk2 or gtk3, depending on the option you set,
 with gtk3 as the default. Unfortunately, codeblocks _also_ depends on
 some Gtk2 code directly, so it only works if you built wxGTK30 with
 the gtk2 option.
 
 > And if it builds for both can the OPTION be moved to codeblocks itself?
 
 Unfortunately not, as explained above. Now, the thing I don't know is
 whether pkgsrc can somehow express the dependency (wxGTK30 built with
 a certain option) directly.
 
 -- 
 Benny
 
    ------
 
 -- 
 David A. Holland
 dholland%netbsd.org@localhost
 


Home | Main Index | Thread Index | Old Index