From nobody Tue Nov 15 17:47:52 2022 X-Original-To: freebsd-database@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NBYYg6LRQz4hLc6; Tue, 15 Nov 2022 17:48:07 +0000 (UTC) (envelope-from delphij@gmail.com) Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NBYYf4zm9z44jP; Tue, 15 Nov 2022 17:48:06 +0000 (UTC) (envelope-from delphij@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=XaPFH1Es; spf=pass (mx1.freebsd.org: domain of delphij@gmail.com designates 2a00:1450:4864:20::62d as permitted sender) smtp.mailfrom=delphij@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-ej1-x62d.google.com with SMTP id k2so37969559ejr.2; Tue, 15 Nov 2022 09:48:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=SHNxXpAhbp78Mipu0TXAtQIwy7wOwzOAjX+xgIqmhI8=; b=XaPFH1EsOZl7JaKs4M1AUQyjrRY06+L9mstri0DYNjU5XyHYk1793mfp/pPA/0dPfJ 5Oh4QBOkbNxdrRSx/+AFIXGQUxycGMqxU4H9sC2Q1hsIsQTBLqWPrZ1jxuxFUkH2JLTy Aqnbm46/YoY/RVRrZ/h347//Hpfr/UteVjiYt2cs+ExYka+8XIWJQwBmVryc6Avh0wyS DwywA8cX3ReU9RgnOkFzCc/tIH5HNW33Bl7Lwih+JED0DiMBPH7wDzYzubX3tmUNBBtA qSGLqg+MMID4uMrN5izad6tXevRPtJsKZWR1uhIZ3fK1che79jGqfIYvOpi7Gb7H8MQM LZwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=SHNxXpAhbp78Mipu0TXAtQIwy7wOwzOAjX+xgIqmhI8=; b=UP1ZZBj9vpKqIg7kHDtWl22QIRty4jr6PpYOnLOP8Gh17ljcbnZt9PWDk/4Vr8Laig Bah8h8GTPQNctXNoDqGvMwLZf4p5mjqM1wvu2uqMdY0CYP5XTb/daMVgJiAT553xGSZS 2YGPqTktSh1bkzs4FB7OtPmIusJrrs3mRmd/Acc0PsuOkyMS8G4gb4KKFgJKAA/euL0X 2DrxMR1qryi7FyLmYS1gaZ+K/ysoL9sgJXXTUeuKWWeMkplVkrk4Bmze3qoobLQhhU3s u43kWds+D3uLbXf+uAfdvskNaqMTaujxfDdvoPwJUE8GgljuuYHywcXtXJ3MJIztC7jY M3AA== X-Gm-Message-State: ANoB5pk2Ph4T8n6xuGbX843EGlXbdNNuT3Fb8fYN5uDZx00hUbIcvLDd iwlCDBT2TmCN21X3MsTzaD62YXbo+KuYw8T3RXFcvih1 X-Google-Smtp-Source: AA0mqf7TH+9vHschThjfSymGa26vL4j40O/f+383q0ogQSC9LtzWsXpI4WI6wLEi+jMsQYaVyfvsw49Do33goCvrfR0= X-Received: by 2002:a17:906:7e4e:b0:7a8:3ecb:bd62 with SMTP id z14-20020a1709067e4e00b007a83ecbbd62mr15054852ejr.721.1668534484658; Tue, 15 Nov 2022 09:48:04 -0800 (PST) List-Id: Database use and development under FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-database List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-database@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Xin LI Date: Tue, 15 Nov 2022 09:47:52 -0800 Message-ID: Subject: Re: Include SQLite3 source upon buildworld To: Archimedes Gaviola Cc: freebsd-database@freebsd.org, freebsd-questions@freebsd.org Content-Type: multipart/alternative; boundary="00000000000040f09b05ed85f534" X-Spamd-Result: default: False [-2.80 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.80)[-0.799]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FREEFALL_USER(0.00)[delphij]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TAGGED_RCPT(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::62d:from]; ARC_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; MLMMJ_DEST(0.00)[freebsd-database@freebsd.org,freebsd-questions@freebsd.org]; DKIM_TRACE(0.00)[gmail.com:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; FREEMAIL_TO(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4NBYYf4zm9z44jP X-Spamd-Bar: -- X-ThisMailContainsUnwantedMimeParts: N --00000000000040f09b05ed85f534 Content-Type: text/plain; charset="UTF-8" On Tue, Nov 15, 2022 at 5:16 AM Archimedes Gaviola < archimedes.gaviola@gmail.com> wrote: > Hi, > > There's an SQLite3 source located in the /usr/src/contrib/sqlite3. Is > there a way to include this upon buildworld so that I can run the binary > after compiling? > Yes and no. Yes -- you can always compile shell.c source and link against the library; the code is there, just the BSD make build glues are missing. No -- the omission is intentional: the library is meant to be used by the base system as a "private library", which gives us the flexibility to not give a stable API/ABI promise and to only build with options that the base system needed (to reduce attack surface), so that when we make an update, it will be a "wholesale" update and user applications are not broken, even if sqlite3 update have introduced one. Users who want sqlite3 should really install it from ports (databases/sqlite3) or package. --00000000000040f09b05ed85f534 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Tue, Nov 15, 2022 at 5:16 AM Arc= himedes Gaviola <archime= des.gaviola@gmail.com> wrote:
Hi,

The= re's an SQLite3 source located in the=20 /usr/src/contrib/sqlite3. Is there a way to include this upon buildworld so= that I can run the binary after compiling?
Yes and no.

Yes -- you can always compile shell.c source and lin= k against the library; the code is there, just the BSD make build glues are= missing.

No -- the omission is intentional: the library is meant to= be used by the base system as a "private library", which gives u= s the flexibility to not give a stable API/ABI promise and to only build wi= th options that the base system needed (to reduce attack surface), so that = when we make an update, it will be a "wholesale" update and user = applications are not broken, even if sqlite3 update have introduced one.=C2= =A0 Users who want sqlite3 should really install it from ports (databases/s= qlite3) or package.
--00000000000040f09b05ed85f534--