Bug 146197 - [patch] security/nss: respect LOCALBASE for system sqlite3
Summary: [patch] security/nss: respect LOCALBASE for system sqlite3
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-gnome (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-30 20:30 UTC by swell.k
Modified: 2010-06-24 18:20 UTC (History)
0 users

See Also:


Attachments
nss_localbase.diff (580 bytes, patch)
2010-04-30 20:30 UTC, swell.k
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description swell.k 2010-04-30 20:30:14 UTC

How-To-Repeat: 1. change LOCALBASE to smth different than /usr/local, e.g. /usr/pkg
2. build the port

$ make
...
cc -o FreeBSD9.0_OPT.OBJ/lgglue.o -c -O2 -pipe -march=native
-I/usr/pkg/include/nspr -L/usr/pkg/lib -fno-strict-aliasing -O -fPIC
-ansi -Wall -Wno-switch -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK
-DXP_UNIX -UDEBUG -DNDEBUG -D_THREAD_SAFE -D_REENTRANT -DNSS_ENABLE_ECC
-DUSE_UTIL_DIRECTLY -I../../dist/FreeBSD9.0_OPT.OBJ/include
-I../../dist/public/ -I../../dist/private/  -O -fPIC -ansi -Wall
-Wno-switch -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK -DXP_UNIX -UDEBUG
-DNDEBUG -D_THREAD_SAFE -D_REENTRANT -DNSS_ENABLE_ECC
-DUSE_UTIL_DIRECTLY -I../../../dist/FreeBSD9.0_OPT.OBJ/include
-I../../../dist/public/ -I../../../dist/private/  -O -fPIC -ansi -Wall
-Wno-switch -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK -DXP_UNIX
-DSHLIB_SUFFIX=\"so.1\" -DSHLIB_PREFIX=\"lib\"
-DSOFTOKEN_LIB_NAME=\"libsoftokn3.so.1\" -DSHLIB_VERSION=\"3\" -UDEBUG
-DNDEBUG -D_THREAD_SAFE -D_REENTRANT -DNSS_ENABLE_ECC
-DUSE_UTIL_DIRECTLY -I/usr/local/include
-I../../../../dist/FreeBSD9.0_OPT.OBJ/include
-I../../../../dist/public/nss -I../../../../dist/private/nss
-I../../../../dist/public/dbm  lgglue.c
In file included from sftkdb.h:37:0,
                 from lgglue.c:41:
sdb.h:63:21: fatal error: sqlite3.h: No such file or directory
compilation terminated.
gmake[2]: *** [FreeBSD9.0_OPT.OBJ/lgglue.o] Error 1
gmake[2]: Leaving directory
`/a/pkgbuild/a/freebsd-ports/security/nss/work/nss-3.12.6/mozilla/security/nss/lib/softoken'
gmake[1]: *** [libs] Error 2
gmake[1]: Leaving directory
`/a/pkgbuild/a/freebsd-ports/security/nss/work/nss-3.12.6/mozilla/security/nss/lib'
gmake: *** [libs] Error 2
*** Error code 1
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2010-04-30 20:30:44 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gnome

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 swell.k 2010-05-23 06:34:14 UTC
The bug is still there as in nss-3.12.6_2. Just the place moved.

--- a.diff begins here ---
Index: security/nss/files/patch-lib_softoken_manifest.mn
===================================================================
RCS file: /a/.cvsup/ports/security/nss/files/patch-lib_softoken_manifest.mn,v
retrieving revision 1.1
diff -u -p -r1.1 patch-lib_softoken_manifest.mn
--- security/nss/files/patch-lib_softoken_manifest.mn	20 May 2010 10:01:55 -0000	1.1
+++ security/nss/files/patch-lib_softoken_manifest.mn	23 May 2010 05:29:47 -0000
@@ -7,7 +7,7 @@
 -ifdef MOZILLA_CLIENT
 -INCLUDES += -I$(DIST)/include/sqlite3
 -endif
-+INCLUDES += -I/usr/local/include
++INCLUDES += -I$(LOCALBASE)/include
  
  EXPORTS = \
  	secmodt.h \
--- a.diff ends here ---
Comment 3 dfilter service freebsd_committer freebsd_triage 2010-06-24 18:17:18 UTC
mezz        2010-06-24 17:17:09 UTC

  FreeBSD ports repository

  Modified files:
    security/nss/files   patch-lib_softoken_manifest.mn 
  Log:
  Respect the LOCALBASE in a patch to find sqlite3 correct.
  
  PR:             ports/146197
  Submitted by:   Anonymous <swell.k@gmail.com>
  Feature safe:   yes
  
  Revision  Changes    Path
  1.2       +1 -1      ports/security/nss/files/patch-lib_softoken_manifest.mn
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 4 Jeremy Messenger freebsd_committer freebsd_triage 2010-06-24 18:17:29 UTC
State Changed
From-To: open->closed

Committed, thanks!