profile
viewpoint

dubiousjim/dcron 83

dillon's lightweight cron daemon

dubiousjim/awkenough 70

basic libraries for awk

dubiousjim/pandoc-iki 12

Plugin to use Pandoc markdown handler in Ikiwiki website generator

dubiousjim/unspoiled 7

libraries for pure-lang

dubiousjim/luafiveq 6

glue to ease the transition to (and use of) Lua 5.2

dubiousjim/yagh 5

Yet Another (set of) Git to Hg bridge(s)

dubiousjim/runmjs 3

run ES modules as shell scripts using node or deno

dubiousjim/anki 0

Anki for desktop computers

dubiousjim/autotools-rs 0

build.rs helper to configure and compile autotools and configure/make projects

dubiousjim/cc-rs 0

Rust library for build scripts to compile C/C++ code into a Rust library

pull request commentdubiousjim/dcron

Implement "system" crontabs, with documentation changes

Great, Alpine is my distro of choice. I've been away from my Linux machine for a whole though.

On Fri, Jul 24, 2020, at 11:45 AM, hills wrote:

Thanks. The target here is Alpine Linux, I may see if they are interested in patching it downstream for now, as this seems to put it out of line with other distribution. I'm not keen to be maintaining forks of tools like cron for our infrastructure. It could serve as some testing as well.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dubiousjim/dcron/pull/30#issuecomment-663603262, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABYVXTL6MGTSAGGBCSZ553R5GUBZANCNFSM4PGXQXSQ.

-- dubiousjim@gmail.com

hills

comment created time in 12 days

issue commentrusqlite/rusqlite

bundle vs bindgen env var override

I personally don't know much about cross compilation of C libraries. Just that with rust, it's usually easy, until C comes in :D If you care to take a look at the error the Void CI threw at me, it's available here: https://travis-ci.org/github/void-linux/void-packages/jobs/701745377#L772

These lines seem strange:

--- stdout ... TARGET = Some("x86_64-unknown-linux-gnu") ... HOST = Some("x86_64-unknown-linux-gnu") CC_x86_64-unknown-linux-gnu = None CC_x86_64_unknown_linux_gnu = None HOST_CC = None CC = Some("aarch64-linux-gnu-gcc")

If you're cross-compiling from x86_64 to aarch64, as your HOST and CC suggest, I'd expect you'd want TARGET to be "aarch64-unknown-linux-gnu". So instead of saying cargo BLAH BLAH you should be saying cargo BLAH BLAH --target=aarch64-unknown-linux-gnu.

jcgruenhage

comment created time in a month

delete branch dubiousjim/rusqlite

delete branch : working1

delete time in a month

push eventdubiousjim/rusqlite

Dubiousjim

commit sha db64b8dfb0387ed8797bc0e76885e1ae6fef33e8

sys/Cargo.toml: preupdate_hook, session require buildtime_bindgen We add an explicit "buildtime_bindgen" to the "session" feature, rather than just relying on the transitive "session" -> "preupdate_hook" -> "buildtime_bindgen", to proof against possible future changes.

view details

Dubiousjim

commit sha 4504eb0ae0877ee1db231e5cdf9776b8440fec89

sys/build.rs: SQLITE_HAVE_ISNAN -> HAVE_ISNAN SQLite treats these flags equivalently. Omitting the SQLITE_ prefix to be more like HAVE_USLEEP, HAVE_LOCALTIME_R.

view details

Dubiousjim

commit sha 32df49ca347082cfbc59093137c24ece91540955

sys/build.rs: fix comment about {}_STATIC

view details

Dubiousjim

commit sha a9b700c8413ee8cfdacf504112da8b43e4fad7b2

sys/build.rs: LIBSQLITE3_FLAGS hook Enables compiling bundled sources with different flags. Env variable name modeled after LIBSQLITE3_SYS_BUNDLING. May want to println!("cargo:warning=...") instead of panicking.

view details

gwenn

commit sha f37519ad513e8afa9cd10ff75ac8f6ad670c6ff7

Replace execute_batch usages by execute Because execute_batch does not support unlock_notify

view details

gwenn

commit sha 57db338537cff1803fda5899bf20b008dd350c7d

Rustfmt

view details

Dubiousjim

commit sha 44b18fbc6cf9cdccb59d8a765861e031990ca11e

sys/upgrade.sh: refactor No functional changes. Many of these tweaks will only seem worthwhile when this file is expanded to upgrade sqlcipher sources too.

view details

Dubiousjim

commit sha d0574f7c55c102f82c038095fdd3de54820f74da

sys/upgrade.sh: sqlcipher

view details

Dubiousjim

commit sha 9684f2d809d5fe5c3226e63f2b52c21b7025ae99

sys: add sqlcipher/v4.4.0 When I generate bindgens, I have to apply `trust_clang_mangling(false)` to the `bindgen::builder()`, and the results lack all the `assert_eq!` blocks that are in sqlite3/bindgen_bundled_version.rs. Not sure what's going on with this.

view details

Dubiousjim

commit sha 23c15b8d0e4d8f7f2ae5d1734da245199e0ad622

sys: add sqlcipher/LICENSE

view details

Dubiousjim

commit sha f276e6d2a5feb664e70da38db51078941ff66c0c

prep Cargo.toml

view details

Dubiousjim

commit sha 4196318cced0adc57c8dc08673f268525ea62101

sys/build.rs: features = 'bundled-sqlcipher' and 'bundled-ssl'

view details

Dubiousjim

commit sha a42d3fea3b2429c303864bb7e34707602510dda9

sys/build.rs: future-proof features Currently: 1. feature "bundled-ssl" implies "bundled-sqlcipher" 2. feature "bundled-sqlcipher" implies "bundled" and thus "modern_sqlite" 3. it's assumed users will use at most one of "bundled-sqlcipher" or "sqlcipher" As a bit of future-proofing, we tweak build.rs so as not to rely on 2 and 3. We do still assume 1 though.

view details

Dubiousjim

commit sha 9814e9c3f234e3f24c98663cd436f3ad93e5156b

README

view details

Dubiousjim

commit sha 880dcd23e43ae0c0805bc4b2bca710c8b5316f42

fix clippy

view details

Dubiousjim

commit sha 26b3ecf1a68127b697d0af91c6c6ed0666ef4094

sys/build.rs: drop MacPorts lookup for OpenSSL

view details

Dubiousjim

commit sha 058cf7c9d27ad5400359f315ea7673ff9079b056

sys/build.rs: drop HomeBrew lookup for OpenSSL

view details

push time in a month

Pull request review commentrusqlite/rusqlite

Add features to bundle sqlcipher (and optionally also OpenSSL libcrypto)

 mod build_bundled {             .flag("-DHAVE_USLEEP=1")             .warnings(false); +        if cfg!(feature = "bundled-sqlcipher") {+            cfg.flag("-DSQLITE_HAS_CODEC").flag("-DSQLITE_TEMP_STORE=2");++            let target = env::var("TARGET").unwrap();+            let host = env::var("HOST").unwrap();++            let is_windows = host.contains("windows") && target.contains("windows");+            let is_apple = host.contains("apple") && target.contains("apple");++            let lib_dir = env("OPENSSL_LIB_DIR").map(PathBuf::from);+            let inc_dir = env("OPENSSL_INCLUDE_DIR").map(PathBuf::from);+            let mut use_openssl = false;++            let (lib_dir, inc_dir) = match (lib_dir, inc_dir) {+                (Some(lib_dir), Some(inc_dir)) => {+                    use_openssl = true;+                    (lib_dir, inc_dir)+                }+                (lib_dir, inc_dir) => {+                    match find_openssl_dir(&host, &target) {+                        None => {+                            if is_windows {+                                panic!("Missing environment variable OPENSSL_DIR or OPENSSL_DIR is not set")+                            } else if is_apple && Path::new("/opt/local/lib/libssl.a").exists() {

Sounds good. I'll wait until it's clear we've got the PR where you want it.

dubiousjim

comment created time in a month

push eventdubiousjim/rusqlite

Dubiousjim

commit sha 95dc4924e6f0b32a7812970fe433511ef6b5f458

fmt, clippy

view details

push time in a month

push eventdubiousjim/rusqlite

Dubiousjim

commit sha 5464c7358754fc2b328ca291708c7251f97e474c

sys/build.rs: drop MacPorts lookup for OpenSSL

view details

Dubiousjim

commit sha 346bdae8f74be6ee29375916a83ea8d55de4a2c5

sys/build.rs: drop HomeBrew lookup for OpenSSL

view details

push time in a month

Pull request review commentrusqlite/rusqlite

Add features to bundle sqlcipher (and optionally also OpenSSL libcrypto)

 mod build_bundled {             .flag("-DHAVE_USLEEP=1")             .warnings(false); +        if cfg!(feature = "bundled-sqlcipher") {+            cfg.flag("-DSQLITE_HAS_CODEC").flag("-DSQLITE_TEMP_STORE=2");++            let target = env::var("TARGET").unwrap();+            let host = env::var("HOST").unwrap();++            let is_windows = host.contains("windows") && target.contains("windows");+            let is_apple = host.contains("apple") && target.contains("apple");++            let lib_dir = env("OPENSSL_LIB_DIR").map(PathBuf::from);+            let inc_dir = env("OPENSSL_INCLUDE_DIR").map(PathBuf::from);+            let mut use_openssl = false;++            let (lib_dir, inc_dir) = match (lib_dir, inc_dir) {+                (Some(lib_dir), Some(inc_dir)) => {+                    use_openssl = true;+                    (lib_dir, inc_dir)+                }+                (lib_dir, inc_dir) => {+                    match find_openssl_dir(&host, &target) {+                        None => {+                            if is_windows {+                                panic!("Missing environment variable OPENSSL_DIR or OPENSSL_DIR is not set")+                            } else if is_apple && Path::new("/opt/local/lib/libssl.a").exists() {

I'm happy to drop the convenience lookups for MacPorts, and Homebrew too. The latter came from rusqlcipher, which was the basis for my PR, but stalled around 2018. We should give its author(s) credit though for the starting point of this PR.

Once we stabilize on the implementation of this, we can expand the docs to give suggestions about what env variables need to be set for linking against which copies of sqlite3 and/or sqlcipher and/or various crypto provider libraries for sqlcipher.

Taking out the hard-coded convenience paths for openssl is easy. Shifting the search for openssl libraries, when non-bundled, isn't, because there's no package to shift the burden over to. (openssl-sys is only a dependency when we're asking for the bundled ssl.) Do you want to drop the pkg-config calls too? Would you prefer to shift all of the bundling logic to a new package, which libsqlite3-sys has as an optional dependency, and just retrieve the linking information from DEP_XXX flags that the new package sets? I expect that'd be do-able, but more cumbersome and complicated than what we're looking at now.

dubiousjim

comment created time in a month

push eventdubiousjim/rusqlite

Dubiousjim

commit sha bbff32bd5b72eec1beb8aababc063829fe4b232c

fix clippy warning without suppressing

view details

push time in a month

pull request commentrusqlite/rusqlite

Add features to bundle sqlcipher (and optionally also OpenSSL libcrypto)

Yeah, that might work. I had tried an if let (Some(...), Some(...)) = (..., ...), but then got an error about moving in the else branch.

dubiousjim

comment created time in a month

push eventdubiousjim/rusqlite

Dubiousjim

commit sha 7629aa1938c5ecd6be435513f834cca99689f716

fix clippy warning

view details

push time in a month

push eventdubiousjim/rusqlite

Dubiousjim

commit sha 6feeee390026e70c58fd52c22537999ba2b962da

typo, formatting

view details

push time in a month

push eventdubiousjim/rusqlite

Dubiousjim

commit sha db64b8dfb0387ed8797bc0e76885e1ae6fef33e8

sys/Cargo.toml: preupdate_hook, session require buildtime_bindgen We add an explicit "buildtime_bindgen" to the "session" feature, rather than just relying on the transitive "session" -> "preupdate_hook" -> "buildtime_bindgen", to proof against possible future changes.

view details

Dubiousjim

commit sha 4504eb0ae0877ee1db231e5cdf9776b8440fec89

sys/build.rs: SQLITE_HAVE_ISNAN -> HAVE_ISNAN SQLite treats these flags equivalently. Omitting the SQLITE_ prefix to be more like HAVE_USLEEP, HAVE_LOCALTIME_R.

view details

Dubiousjim

commit sha 32df49ca347082cfbc59093137c24ece91540955

sys/build.rs: fix comment about {}_STATIC

view details

Dubiousjim

commit sha a9b700c8413ee8cfdacf504112da8b43e4fad7b2

sys/build.rs: LIBSQLITE3_FLAGS hook Enables compiling bundled sources with different flags. Env variable name modeled after LIBSQLITE3_SYS_BUNDLING. May want to println!("cargo:warning=...") instead of panicking.

view details

gwenn

commit sha f37519ad513e8afa9cd10ff75ac8f6ad670c6ff7

Replace execute_batch usages by execute Because execute_batch does not support unlock_notify

view details

gwenn

commit sha 57db338537cff1803fda5899bf20b008dd350c7d

Rustfmt

view details

dubiousjim

commit sha 9598b123960f1accfb13af6f87f185831d788db5

Merge branch 'master' into working2

view details

push time in a month

push eventdubiousjim/rusqlite

Dubiousjim

commit sha 06dbb43430e434016528be2c724a55be17319cc9

upgrade.sh fixes

view details

Dubiousjim

commit sha 4c6a37b38fbe6c8bd562c2809e5c9d279cc44f2a

sys/build.rs: future-proof features Currently: 1. feature "bundled-ssl" implies "bundled-sqlcipher" 2. for rusqlite, feature "bundled-sqlcipher" implies "bundled" and thus "modern_sqlite" 3. it's assumed users will use at most one of "bundled-sqlcipher" or "sqlcipher" As a bit of future-proofing, we tweak build.rs so as not to rely on 2 and 3. We do still assume 1 though.

view details

Dubiousjim

commit sha 0bcfeef5a0b1ece8fa1504f7537213247bb7e617

Fix clippy warnings Working around the `unnecessary_unwrap` warning makes the code unnecessarily complex, so we just suppress it.

view details

Dubiousjim

commit sha 6f4a3d8bd8d60134494c66dcf916fd813d995347

README

view details

push time in a month

push eventdubiousjim/rusqlite

Dubiousjim

commit sha 04538fb3ea7f744014e7f0e554991d14b97b454e

formatting

view details

push time in a month

issue commentrusqlite/rusqlite

Bundled sqlcipher?

Just pushed a PR implementing the bundling features (see also #770, takes a small fixup to merge the two PRs).

We should check with the Zetetic people if they'd be ok with us re-distributing the amalgamation files from their open-source version in this way, and whether the licensing declarations are correct. But I wanted to hand this off to you, to get another set of eyes on it.

My LibreSSL package is here. For the time being, I'm just using it as a patched-in substitute for openssl-src. The PR referenced above just includes the standard openssl-sys package, with feature="vendored".

dubiousjim

comment created time in a month

PR opened rusqlite/rusqlite

Add features to bundle sqlcipher (and optionally also OpenSSL libcrypto)

Discussed in #765

+249138 -36

0 comment

9 changed files

pr created time in a month

PR opened rusqlite/rusqlite

Miscellaneous cleanup

See individual commit messages

+18 -5

0 comment

2 changed files

pr created time in a month

create barnchdubiousjim/rusqlite

branch : working2

created branch time in a month

create barnchdubiousjim/rusqlite

branch : working1

created branch time in a month

push eventdubiousjim/rusqlite

gwenn

commit sha ceb9f11de866926da8097e840f7a99feb451dc32

Replace pub(crate) by pub(super) visibilty

view details

gwenn

commit sha 0060ff8a44e59e7ad7e4d3fec4df530632f3a255

Activate extended result codes asap

view details

gwenn

commit sha 36745757bcd5cbf4596066c86085bb7c604f6a55

Include LICENSE into the libsqlite3-sys crate Fix #736

view details

gwenn

commit sha 4655515e72e0fc2f2b0d20758160782a2a1759c7

Merge pull request #737 from gwenn/license Include LICENSE into the libsqlite3-sys crate

view details

gwenn

commit sha 0dd01e999db832253b364b5ed76baef8531e830e

Merge pull request #733 from gwenn/visibility Replace pub(crate) by pub(super) visibilty

view details

gwenn

commit sha 5565ae562935c9576edb550726ad97cb775632de

Merge pull request #735 from gwenn/extended_result_codes Activate extended result codes asap

view details

Thom Chiovoloni

commit sha aabcce9aa6c3fe83e915d47e41acb92cbfe8728e

Add link to gitter channel. Fixes #736

view details

Martin Habovstiak

commit sha c5b2efc099a2ecfd657f5ab09768d40bce86bc04

impl TryFrom<&Row<'_>> for (...) This change implements `TryFrom<&Row>` for tuples up to 16 fields. This is a convenience function that can be used to map rows more easily. The change includes tests for 1-tuple, 2-tuple and 16-tuple.

view details

Martin Habovstiak

commit sha 8a08dff1152c18bd762579b0fc22acf50b0ccd7a

Clippy reports redundant closures even in cases in which removing the closure is impossible. See https://github.com/rust-lang/rust-clippy/issues/5594 Allow this lint until the issue is resolved in clippy or the compiler.

view details

gwenn

commit sha 76fc22c653951b27139b167d71d44300196d50d4

Fix missing docs

view details

gwenn

commit sha 5ebba26a7ec104599f319db038572fa86c0564a2

Add missing docs in session module

view details

gwenn

commit sha e664f82630f8eb989fd1c17fa2bff5c5d63108d4

Add still missing docs in session module

view details

Voodlaz

commit sha d5ed10f3068bfbcb5e556d966c2b6082c5048438

Update README.md

view details

Voodlaz

commit sha dbd1e0bb8576aef3b75c22293d7dce81da26f267

Update README.md

view details

gwenn

commit sha 8cb5b2e58599ccf3e33c254b61f66b2dcbd81ae5

Document Rows::map and FallibleStreamingIterator impl See https://www.reddit.com/r/rust/comments/gov817/rusqlite_only_getting_ok_entries_from_query_map/ ``` let mut stmt = self .db .prepare("SELECT tag FROM tags WHERE tags.entry_id = ?1")?; let tags = stmt.query(params![id])?; tags .map(|res| res.get(0)) .collect() ```

view details

Thom Chiovoloni

commit sha 9b3805a26b9227a8b4382283b259023be69ed1fc

Add doctest variant of the most full --feature set in CI

view details

gwenn

commit sha f7b60d866d0fd970e0ae4ed03f89e3f4a07fa5e2

Merge pull request #743 from gwenn/rows_doc Document Rows::map and FallibleStreamingIterator impl

view details

gwenn

commit sha c1142c309ec4edb1da17d1db07f785163f2d01a8

Upgrade to bindgen 0.54

view details

Evgeniy A. Dushistov

commit sha 8cdfaf36ae7216e543aa9d4fb1a483ec7eabcaa1

little speedup for bundled sqlite3.c

view details

Evgeniy A. Dushistov

commit sha d16748ac9f7ae5d64d25ba7069d1c0d44ac1dae6

adding ability to work with sqlite compiled with -DSQLITE_OMIT_DECLTYPE fix #751

view details

push time in a month

push eventdubiousjim/libressl-src

Dubiousjim

commit sha bd3fa8391fe497e7a3c056687d528325848e0c23

tweak README

view details

push time in a month

push eventdubiousjim/libressl-src

Dubiousjim

commit sha 1f5cc102414a4c6521493d2fa95a596f8d1482bf

update README.md

view details

push time in a month

IssuesEvent

issue commentsfackler/rust-openssl

Vendored build of LibreSSL?

Hope it's ok for me to re-open this for a moment. My replacement for openssl-src is libressl-src. Currently it declares its package.name as "openssl-src" so that it can be used in a patch.crates-io section (as explained in the README).

There are three things you guys could choose to do:

  • Nothing
  • Add a note to the doc comments for openssl under the "Vendored" heading, saying something like "It's also possible to do a vendored build of LibreSSL instead of OpenSSL; see here for details (and direct any support questions to the maintainer of that package)."
  • Add a new feature to openssl and openssl-sys, something like "vendored-libre", that works just like "vendored" except that it depends on "libressl-src" instead of "openssl-src". If you're willing to do that, I'll make my package properly name itself (package.name = "libressl-src") and publish it to crates.io. (Am just waiting on the maintainer of autotools to publish some recent changes in his git.) I can submit a PR to you guys with the (very minimal) changes to this repository needed to implement.

I hope you'll reconsider whether you're willing to do the last of these, as it would be cleanest. But if not, OK. Would you then be willing at least to do the second, so that others who might want a vendored LibreSSL can find my package, and don't have to reinvent my work.

dubiousjim

comment created time in a month

push eventdubiousjim/libressl-src

Dubiousjim

commit sha 5c940fd156a9a1298efa1e5ab77aad43a85fe019

revise Cargo.toml

view details

Dubiousjim

commit sha ccfd9cb1e31ce0b07b56455640c262c2b5b2243e

run-docker.sh -> libressl

view details

Dubiousjim

commit sha 8f2a17bd6cb4b5dea342684b6270e23aff38c5bf

testcrate -> libressl

view details

Dubiousjim

commit sha 8ff3c8dc9691064bf957ace089485f8e32bdd89d

delete LICENSE files

view details

Dubiousjim

commit sha f0f32d3f58a21b5db95067e3d5882a69ea505401

github actions: reorganize

view details

Dubiousjim

commit sha 6d69298bb6695007fc51a31d0bf1d1b9e52c86c7

github actions: {ubuntu,macos}-latest->versioned

view details

Dubiousjim

commit sha b89323fe1d19b75b44aaa74d5afd00e6d6fe033e

Dockerfiles: reorganize, perl->file

view details

Dubiousjim

commit sha 4a12cd3f030e34ce6d6e8d3118902e64ce325d10

Dockerfiles: use Android NDK 15c

view details

Dubiousjim

commit sha cc2ad7011b07ab4b623799b2c1bd0e300b5808a6

musl Dockerfile: del gcc, provide linux/* headers

view details

Dubiousjim

commit sha df440032afbbc7608393c782a580d131f4c132d9

github actions: more arm targets

view details

Dubiousjim

commit sha fa2b92954ab5c9bf782aeee980ada8c2925153c2

github actions: mips targets

view details

Dubiousjim

commit sha 9e92443ec166c4ecb5e00c3399978256a3675dae

github actions: i686 musl target (broken)

view details

Dubiousjim

commit sha d1139d30dc36824e59e1b01e8ae925b081f243d2

github actions: i686 MinGW target (broken)

view details

Dubiousjim

commit sha 6113551d71cbc70062787db61d1d1dbe7cc40993

github actions: commented more targets

view details

Dubiousjim

commit sha e812616021f2322be6d36fe04e05667d06123684

source changes

view details

Dubiousjim

commit sha d4fb8e06828b6db5792874ef8934ae8236ebd5ee

package.name -> openssl-src

view details

Dubiousjim

commit sha 1c015faa8b6a14973287597ecbbe28ec1eb9eeeb

use patches

view details

Dubiousjim

commit sha ac2728bf64e7c7a5c79a3c5dea35570483d5598a

update README.md

view details

push time in a month

push eventdubiousjim/libressl-src

Dubiousjim

commit sha 7b0236dc87ee1dec518baeb4adc9682d0a226b43

update docs

view details

push time in a month

push eventdubiousjim/libressl-src

Dubiousjim

commit sha 7e35b59f47614d38282a21db02bc22d584d26ac1

update docs, patch comments

view details

push time in a month

push eventdubiousjim/libressl-src

Dubiousjim

commit sha 3194f761a980286af0f47addf5ea1897aaf618cc

bump version, transitive patches

view details

push time in a month

push eventdubiousjim/libressl-src

Dubiousjim

commit sha 365067fe570529b684df534edf8f3911c1c4787a

fix testcrate again

view details

push time in a month

push eventdubiousjim/libressl-src

Dubiousjim

commit sha 785e099b3faad1b2fec7aa8ce478ca9d32620fdf

fix testcrate

view details

push time in a month

push eventdubiousjim/libressl-src

Dubiousjim

commit sha c80e0ac7943b4c83f774795dfaa6b19e2bd42b73

more README

view details

push time in a month

push eventdubiousjim/libressl-src

Dubiousjim

commit sha ecce95543004aed951fddd33fdea5dd3b508a5b5

update README

view details

Dubiousjim

commit sha e7eaec310ec6fd4817f238ba8f7927c1022e5961

try changing name

view details

push time in a month

PR opened lu-zero/autotools-rs

Expand docs, dump config.log on failure, version bump

Made an attempt to document the changes I pushed and you merged recently. Also to give some context about the difference between Rust's (and this package's) interpretation of "host/target" and that of Gnu autotools.

When developing my own package which used this one, I found it helpful to see a dump of config.log if the configure script failed. Proposing that change here too. Am glad to revert it or make it a separate PR if you like.

Finally, bumped the version. Please consider publishing the new version, so that I can publish my own package that relies on these changes.

+90 -4

0 comment

3 changed files

pr created time in a month

push eventdubiousjim/autotools-rs

Dubiousjim

commit sha a3f3033a2c2d37f4a2b5511fcab4085ae3f3a3b0

add config_option

view details

Dubiousjim

commit sha af3e4d8d1cbdb259caf605af1f5daa8bced282d5

use Kind::Arbitrary instead of new config_options Vec

view details

Dubiousjim

commit sha e716eaf25f61fa74cab78baa6fee135b98f13291

Expand docs about host, target

view details

Dubiousjim

commit sha 2b23d8ba2743d5723cb6b5b968057f30b37b6627

Expand docs about cflag, cxxflag, ldflag

view details

Dubiousjim

commit sha b72fa20811b9d1ef2db93e7825e12d3928c148fa

Expand docs about CC, CXX

view details

Dubiousjim

commit sha 8043545b159d6ec54486536f98a7eb4e0242280d

if configure fails, cat config.log to stdout

view details

Dubiousjim

commit sha aca43cf91be665c8ac4232e15bbddf95fdbfa877

version bump

view details

push time in a month

push eventdubiousjim/libressl-src

Dubiousjim

commit sha 30a85f2d3b8425e839140cacec082951f71d5058

use patches

view details

push time in a month

push eventdubiousjim/libressl-src

Dubiousjim

commit sha 2132bf31903ce712e53262b2fcde129dd47cf98f

cleanup2

view details

Dubiousjim

commit sha 7be9bc570e8a978722f6c874a45642f720e6eaa5

x

view details

push time in a month

push eventdubiousjim/autotools-rs

dubiousjim

commit sha ec7208a4a688e860bf404831109fd27ae938cab8

add free_host, free_option

view details

Dubiousjim

commit sha 7de65678046829dfe6139c5c1fa9e6c7ec6906d9

better default for --host

view details

Dubiousjim

commit sha 9d0bfb2c6e424111b89661bfd9071af9f4354be0

preserve external CFLAGS, CXXFLAGS, LDFLAGS

view details

Dubiousjim

commit sha 84b5ca57f9f9680764b44bc88b582436116d03e6

get CC, CXX from c_compiler, cxx_compiler

view details

Dubiousjim

commit sha a0e302b7bf8a61ecf1f4179a078ae7b5729d5323

get CFLAGS, CXXFLAGS from c_compiler, cxx_compiler

view details

Dubiousjim

commit sha 313688a76917cffe8cd18a6ae058e27e49d3f360

delete opt_level(0) and debug(false) from c_compiler, cxx_compiler

view details

Dubiousjim

commit sha 85d5b93791cc76d49097b993c40228015b10cc5f

Revert "add free_host, free_option" This reverts commit 0b524cf12f0571a5feb478951207a54f0fe3e6f4.

view details

Dubiousjim

commit sha 50646b3abd1611183cb3cdb7250481626eb17643

add config_option

view details

Dubiousjim

commit sha 46aa7ad03fd20fc93142427981429046d34260fe

use Kind::Arbitrary instead of new config_options Vec

view details

Dubiousjim

commit sha a5d1e639f871da5d4692f5064ef1c4109321e310

Expand docs about host, target

view details

Dubiousjim

commit sha a2109f4a7b415f8ee98c31a2626110ef2cda92f7

Expand docs about cflag, cxxflag, ldflag

view details

Dubiousjim

commit sha 1826ba52c87530db2e0060796cc55a6d392fed7a

Expand docs about CC, CXX

view details

Dubiousjim

commit sha be272264618fe0490e13a08ad9ef6d77c00174ec

if configure fails, cat config.log to stdout

view details

Dubiousjim

commit sha 985d60bfb6f3c5f8f5f770523f1d716ae03069e7

version bump

view details

Dubiousjim

commit sha 64c8d67bd79d7cf1bbadcd6f098d03b402e45b1c

add debugging

view details

push time in a month

push eventdubiousjim/autotools-rs

Dubiousjim

commit sha a5d1e639f871da5d4692f5064ef1c4109321e310

Expand docs about host, target

view details

Dubiousjim

commit sha a2109f4a7b415f8ee98c31a2626110ef2cda92f7

Expand docs about cflag, cxxflag, ldflag

view details

Dubiousjim

commit sha 1826ba52c87530db2e0060796cc55a6d392fed7a

Expand docs about CC, CXX

view details

Dubiousjim

commit sha be272264618fe0490e13a08ad9ef6d77c00174ec

if configure fails, cat config.log to stdout

view details

Dubiousjim

commit sha 985d60bfb6f3c5f8f5f770523f1d716ae03069e7

version bump

view details

push time in a month

issue commentalexcrichton/cc-rs

linker parameters

Does std::env::set_var("LDFLAGS", "-framework CoreServices") work?

pwang7

comment created time in a month

issue commentrust-lang/cargo

`default-features = false` not working for dependency inside workspace.

I think he means that this still builds dep with --cfg 'feature="should_not_be_enabled"', and the justification about workspace members having their features unified doesn't apply:

echo '[workspace]' > Cargo.toml

# as in original instructions
# except "dep" is no longer a workspace member, merely a subdirectory
echo 'members = ["lib"]' >> Cargo.toml

cargo new --lib lib
echo 'dep = { path = "../dep", default-features = false }' >> lib/Cargo.toml

cargo new --lib dep
echo '[features]' >> dep/Cargo.toml
echo 'default = ["should_not_be_enabled"]' >> dep/Cargo.toml
echo 'should_not_be_enabled = []' >> dep/Cargo.toml

cargo build -v # issued in workspace root
reitermarkus

comment created time in a month

issue commentrusqlite/rusqlite

Bundled sqlcipher?

Even when I add a RUSTFLAGS="--extern gamma=/path/to/delta/target/debug/deps/libgamma-xxxxxxxxxxxxxxxx.rlib" before cargo run in the delta directory, I still get:

Compiling gamma v0.1.0 (...) Compiling alpha v0.1.0 (...) error: extern location for gamma does not exist: .../delta/target/debug/deps/libgamma-....rlib

I think the compilation of alpha is looking for libgamma.rlib before it's finished compiling. So I'm understanding that the method that (I thought) you were proposing won't work. (Though it may not have been what you were proposing.)

Thus if I'm going to make it possible for clients that use the openssl and/or rusqlite packages to get their libcrypto.a from my libressl-src package, I'll have to get openssl and/or rusqlite to declare at least an optional dependency on libressl-src.

dubiousjim

comment created time in 2 months

issue commentrusqlite/rusqlite

Bundled sqlcipher?

Maybe instead it would be better to offer features like sqlcipher-link-libressl-sys which enable an optional dep on libressl and force the link using

// Add a dependency on libressl-sys if requested, so that it
// builds prior to SQLcipher and libressl's native functions
// are available.
#[cfg(feature = "sqlcipher-link-libressl-sys")]
#[allow(unused_extern_crate)]
extern crate libressl_sys;

in libsqlite3-sys. Then, a library or application that wants to use libressl-sys as vendored could do:

[dependencies.libsqlite3-sys]
version = "..."
features = ["sqlcipher", "bundled-sqlcipher", "sqlcipher-link-libressl-sys", "etc..."]

[dependencies.libressl-sys]
version = "..." 
features = ["vendored", "etc..."]

This would help keep the libsqlite3-sys crate out of trouble, which is another goal of mine :p.

This was very interesting. I didn't know that what you were suggesting was possible. Or at least --- what I took you to be suggesting. I thought you were saying, we could have a dependency tree like this:

delta
├── alpha
└── beta
    └── gamma

And that there could be extern crate gamma or extern crate beta directives in alpha, even though alpha didn't itself declare any (direct or indirect) dependencies on gamma or beta. It would just be the responsibility of delta to make sure those packages were included (and to set a feature in alpha saying it was okay to have those extern crate directives).

The point of those directives in alpha would just to make sure that in the build of delta, beta and gamma were built first, and thus that the artifacts they produced were available during the build of alpha.

If that were true, it would indeed make it easier to integrate my libressl-src package into the build of openssl and rusqlite. They wouldn't need any (even optional) dependency on it, but just a feature that some client of these libraries (in my example, above, they'd be alpha and the client would be delta) could request when it also was depending on libressl-src.

However, when I experiment with toy packages, I can't get anything like what I've described to work. I put a declaration extern crate gamma in alpha, then try to build delta, but it fails during the compilation of alpha with error[E0463]: can't find crate forgamma`.

Do you have experience doing something like this successfully? Do I need to provide a #[link ...] attribute or something on the extern crate directive?

dubiousjim

comment created time in 2 months

push eventdubiousjim/autotools-rs

Dubiousjim

commit sha d22d65f94d338f12e27d3713503e3a59f7f33aba

tweaks

view details

push time in 2 months

issue commentrust-lang/rust

Can't cross compile from Linux to Windows (i686)

I see, I was passing it via RUSTFLAGS to (nightly) rustc, but it needs to be passed to (nightly) cargo?

bozaro

comment created time in 2 months

issue commentrust-lang/rust

Can't cross compile from Linux to Windows (i686)

Status report. I'm running in a docker on Ubuntu:18.04 with gcc-mingw-w64-i686 installed, and CARGO_TARGET_I686_PC_WINDOWS_GNU_LINKER=i686-w64-mingw32-gcc. Linking my test app fails with undefined references to _Unwind_RaiseException, _Unwind_Resume, __mingwthr_key_dtor.

Tried setting RUSTFLAGS="-Cpanic=abort. Since I'm running tests, that forces me to also use nightly and -Zpanic_abort_tests. But undefined references persist. Based on @mati865's comment, I tried also setting -Zbuild-std, but the nightly I'm getting doesn't recognize that option. Also tried -Clink-args=-mwindows, based on an older suggestion above, but it didn't help either.

So currently not able to compile from Ubuntu:18.04 (on x86_64) to the i686-pc-windows-gnu target. (Don't know if a small test app would work. My test app tries to link in LibreSSL libraries that it managed to build using the cross-compiler.)

bozaro

comment created time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha 56237d36126ca5ab57503935923fc2a3254bdfec

cleanup

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha afefaab5b6e6d598d0f18ac80b5789ce0e452c8a

try five

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha 500bd25f6f826efcf9fd41c8d07c9322ee1bebef

try five

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha 4761538cbd312b4d88c2c31af39de9fc07b7b227

try four

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha 21802b0f24971a7db3179fd91bbb2cbf833fc3a8

try four

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha 1db939db3d04978efe70ced825b77698ddc03b66

try three

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha d747360ce256eb6c7515f7f757fa36d39b89efce

try three

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha 03ad51ba7ffbe034347d634d7d80b0a98156cf48

try three

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha c2a98dd565f7f9f603dbb13c52ed35e4063214c1

try three

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha 9dacc3ef470f3872ce9483fb68e797e5e073fcb0

try three

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha fd4c02c13aeef2ba26a04910d7d387b670df7aec

try three

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha d7171385b4ae372d93613643549e278c7129d250

try three

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha 1119b6a82b823827bd7f259ee2ecbcf79f05a0ba

try again

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha af4152b6f36eb45b1c8c78927a5eb7c302d530f9

try panic-abort

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha 42fe80c7c4a4338f9a22d93a85fa8a76a9040ee8

cleanup

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha 1acde0cc70638a9eb751575ecf71a390a8d22a22

cleanup

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha 8b4e3d14257815db0bd49dbe74b3ea83391291cd

try i686 with starts_with

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha 9c09e7bd1c998f27d2e0e3874e96396cbcbf541b

try with bare armv7

view details

push time in 2 months

push eventdubiousjim/autotools-rs

Dubiousjim

commit sha 10bf70cddaa2f2cbf8ae9566a66d94ab6d9c0463

use git cc

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha 742cd4fc03ba33d5b6e6c22114ce1b8c676b3ed4

baseline

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha cffdbe51d0833cddca0e95c4b72b2213a6319b51

baseline

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha e367a4f8e43ad90925256890054183e8eadf29df

baseline

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha d667e3b0bdd7755379b3dc58d9e1b54eade04f13

baseline

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha 216d92fac79b7748ec45fdd0015d21b4cc7d54ce

baseline

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha 8ae6071ddfa63ab619e2138d325470400c5f8475

baseline

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha fb83dc3b99901bd7613699d20c8565bf8c7846aa

baseline

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha 3bfd638e76d24d2186b288b502ea57448a183fd8

baseline

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha 2aa311ed313c4fe3d164a4e7abab5ecec2c61ed6

baseline

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha 09bed28d185da6ac73c96a752c728eabeb18dbe2

baseline

view details

push time in 2 months

PR opened alexcrichton/cc-rs

Add cross-compiler prefix for armv7 without hf

Was trying to cross-compile to as many Rust targets as feasible for testing, discovered this was missing.

+1 -0

0 comment

1 changed file

pr created time in 2 months

push eventdubiousjim/cc-rs

dubiousjim

commit sha c60e304e4ca42b5559e37fd1bcbb2afd6896c9d3

Add cross-compiler prefix for armv7 without hf Was trying to cross-compile to as many Rust targets as feasible for testing, discovered this was missing.

view details

push time in 2 months

fork dubiousjim/cc-rs

Rust library for build scripts to compile C/C++ code into a Rust library

https://docs.rs/cc

fork in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha 62f2fd2e4b1ce501f6af6a8e18528fab9ce4a582

baseline

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha 2937852d36fffefeba256fb0cd1b7440c6a36ac5

baseline

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha 1c210eec3d9e6545c99fc27fd4b82102c31638a2

baseline

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha 45394ba14107253f0c23c8fb1266fd8a76b40db5

baseline

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha 0afa487bd89ced3d31001d91456c0e61a3ecb7c5

try armv7-linux again

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha c4f7255c3d312632daa1ef5261e853d3c6c2485b

try armv7-linux again

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha aa5231d40059b41652d1eea5799c6c4fe5c9d835

baseline

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha d1a8891ca02623cd27d8ea27a4b630996cd9ec5b

del gcc from mips64el

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha de6b2d182905935958fcbb5c3f212975c306d6ed

del gcc from mingw

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha c265224bdbf1dd54bce8be79100db98d3d0df632

try musl

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha 88bf2b68888d48c60bd2ddd5c59c70a924f54078

try musl

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha b96d16e985b2e8b282ecb9aff7a4cbfb4b6ab384

try musl

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha a9380bb614a4e9b193452bd1dffad2ec11153e5f

try musl for 686

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha cb795280b6e3b9324daac9f357fefa229c1f6b17

try musl

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha 2d4d0c8cc410bba5ad84157a5132170388689278

try musl for 686

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha 6823f7cd5dff6d233ea0f7827955d64b2cd179dd

try musl for 686

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha 09c3519682afa6590424e5b7d02a6bbe1d011519

try musl for 686

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha 8b40ae234677136edcc8782ee81ba6d1e7d211b6

try mingw for 686

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha 92dc934f8f3ed35d4f9e54a2b7c79e37deb92ee8

try mingw for 686

view details

push time in 2 months

push eventdubiousjim/libressl-src

Dubiousjim

commit sha b7783f09b8977f3046b0bcae27dc836698342d92

fixed

view details

push time in 2 months

more