Coder Social home page Coder Social logo

glog-feedstock's Introduction

About glog-feedstock

Feedstock license: BSD-3-Clause

Home: https://github.com/google/glog

Package license: BSD-3-Clause

Summary: C++ implementation of the Google logging module.

Current build status

Travis linux
Azure
VariantStatus
linux_64 variant
linux_aarch64 variant
linux_ppc64le variant
osx_64 variant
osx_arm64 variant
win_64 variant

Current release info

Name Downloads Version Platforms
Conda Recipe Conda Downloads Conda Version Conda Platforms

Installing glog

Installing glog from the conda-forge channel can be achieved by adding conda-forge to your channels with:

conda config --add channels conda-forge
conda config --set channel_priority strict

Once the conda-forge channel has been enabled, glog can be installed with conda:

conda install glog

or with mamba:

mamba install glog

It is possible to list all of the versions of glog available on your platform with conda:

conda search glog --channel conda-forge

or with mamba:

mamba search glog --channel conda-forge

Alternatively, mamba repoquery may provide more information:

# Search all versions available on your platform:
mamba repoquery search glog --channel conda-forge

# List packages depending on `glog`:
mamba repoquery whoneeds glog --channel conda-forge

# List dependencies of `glog`:
mamba repoquery depends glog --channel conda-forge

About conda-forge

Powered by NumFOCUS

conda-forge is a community-led conda channel of installable packages. In order to provide high-quality builds, the process has been automated into the conda-forge GitHub organization. The conda-forge organization contains one repository for each of the installable packages. Such a repository is known as a feedstock.

A feedstock is made up of a conda recipe (the instructions on what and how to build the package) and the necessary configurations for automatic building using freely available continuous integration services. Thanks to the awesome service provided by Azure, GitHub, CircleCI, AppVeyor, Drone, and TravisCI it is possible to build and upload installable packages to the conda-forge anaconda.org channel for Linux, Windows and OSX respectively.

To manage the continuous integration and simplify feedstock maintenance conda-smithy has been developed. Using the conda-forge.yml within this repository, it is possible to re-render all of this feedstock's supporting files (e.g. the CI configuration files) with conda smithy rerender.

For more information please check the conda-forge documentation.

Terminology

feedstock - the conda recipe (raw material), supporting scripts and CI configuration.

conda-smithy - the tool which helps orchestrate the feedstock. Its primary use is in the construction of the CI .yml files and simplify the management of many feedstocks.

conda-forge - the place where the feedstock and smithy live and work to produce the finished article (built conda distributions)

Updating glog-feedstock

If you would like to improve the glog recipe or build a new package version, please fork this repository and submit a PR. Upon submission, your changes will be run on the appropriate platforms to give the reviewer an opportunity to confirm that the changes result in a successful build. Once merged, the recipe will be re-built and uploaded automatically to the conda-forge channel, whereupon the built conda packages will be available for everybody to install and use from the conda-forge channel. Note that all branches in the conda-forge/glog-feedstock are immediately built and any created packages are uploaded, so PRs should be based on branches in forks and branches in the main repository should only be used to build distinct package versions.

In order to produce a uniquely identifiable distribution:

  • If the version of a package is not being increased, please add or increase the build/number.
  • If the version of a package is being increased, please remember to return the build/number back to 0.

Feedstock Maintainers

glog-feedstock's People

Contributors

beckermr avatar conda-forge-admin avatar conda-forge-curator[bot] avatar github-actions[bot] avatar jakirkham avatar jschueller avatar mariusvniekerk avatar ocefpaf avatar regro-cf-autotick-bot avatar xhochy avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

glog-feedstock's Issues

glog 0.7 breaks arrow, `GLOG_USE_GLOG_EXPORT` not working as intended?

Trying to compile arrow 15 (and below) with glog 0.7 runs into:

[138/498] Building CXX object src/arrow/CMakeFiles/arrow_objlib.dir/util/logging.cc.o
FAILED: src/arrow/CMakeFiles/arrow_objlib.dir/util/logging.cc.o 
$BUILD_PREFIX/bin/x86_64-conda-linux-gnu-c++ -DARROW_EXPORTING -DARROW_HAVE_RUNTIME_AVX2 -DARROW_HAVE_RUNTIME_AVX512 -DARROW_HAVE_RUNTIME_BMI2 -DARROW_HAVE_RUNTIME_SSE4_2 -DARROW_HDFS -DARROW_MIMALLOC -DARROW_USE_GLOG -DARROW_WITH_BACKTRACE -DARROW_WITH_BROTLI -DARROW_WITH_BZ2 -DARROW_WITH_LZ4 -DARROW_WITH_RE2 -DARROW_WITH_SNAPPY -DARROW_WITH_TIMING_TESTS -DARROW_WITH_UTF8PROC -DARROW_WITH_ZLIB -DARROW_WITH_ZSTD -DAWS_AUTH_USE_IMPORT_EXPORT -DAWS_CAL_USE_IMPORT_EXPORT -DAWS_CHECKSUMS_USE_IMPORT_EXPORT -DAWS_COMMON_USE_IMPORT_EXPORT -DAWS_COMPRESSION_USE_IMPORT_EXPORT -DAWS_CRT_CPP_USE_IMPORT_EXPORT -DAWS_EVENT_STREAM_USE_IMPORT_EXPORT -DAWS_HTTP_USE_IMPORT_EXPORT -DAWS_IO_USE_IMPORT_EXPORT -DAWS_MQTT_USE_IMPORT_EXPORT -DAWS_S3_USE_IMPORT_EXPORT -DAWS_SDKUTILS_USE_IMPORT_EXPORT -DAWS_SDK_VERSION_MAJOR=1 -DAWS_SDK_VERSION_MINOR=11 -DAWS_SDK_VERSION_PATCH=242 -DAWS_USE_EPOLL -DBOOST_ALL_DYN_LINK -DURI_STATIC_BUILD -DUSE_IMPORT_EXPORT=1 -I$SRC_DIR/cpp/build/src -I$SRC_DIR/cpp/src -I$SRC_DIR/cpp/src/generated -isystem $SRC_DIR/cpp/thirdparty/flatbuffers/include -isystem $SRC_DIR/cpp/thirdparty/hadoop/include -isystem $SRC_DIR/cpp/build/jemalloc_ep-prefix/src -isystem $SRC_DIR/cpp/build/mimalloc_ep/src/mimalloc_ep/include/mimalloc-2.0 -Wno-noexcept-type -fvisibility-inlines-hidden -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/apache-arrow-15.0.0 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix -fdiagnostics-color=always -fuse-ld=gold  -Wall -fno-semantic-interposition -fvisibility-inlines-hidden -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/apache-arrow-15.0.0 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix -O3 -DNDEBUG -O2 -ftree-vectorize  -std=c++17 -fPIC -pthread -fPIC -MD -MT src/arrow/CMakeFiles/arrow_objlib.dir/util/logging.cc.o -MF src/arrow/CMakeFiles/arrow_objlib.dir/util/logging.cc.o.d -o src/arrow/CMakeFiles/arrow_objlib.dir/util/logging.cc.o -c $SRC_DIR/cpp/src/arrow/util/logging.cc
In file included from $SRC_DIR/cpp/src/arrow/util/logging.cc:31:
$PREFIX/include/glog/logging.h:60:4: error: #error <glog/logging.h> was not included correctly. See the documention for how to consume the library.
   60 | #  error <glog/logging.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~

and then a very long stream of errors.

The release notes don't point to any such hard breaking changes, and looking at the code, it seems that we'd now need to unconditionally set GLOG_USE_GLOG_EXPORT.

Indeed, glog's CMakeLists.txt unconditionally puts this symbol in the interface of libglog, which makes it all the more surprising that this isn't working out of the box.

Not sure if there's a bug in 0.7 or in the packaging, or somewhere else. In particular, arrow's usage of glog is be "CMake-native" and AFAICT should respect target_compile_definitions.

Testing new release (0.4.0)

Looks like the glog team is about to cut a new release. ( google/glog#419 ) As it has been a while since they last released and there are a lot of changes, we should try building it and testing it so we can give them feedback before they release.

glog-0.6.0 incorrectly creates symlink libglog.so.1 instead of libglog.so.0

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

Im running into the following error:
Error: package or namespace load failed for 'arrow' in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/opt/conda/lib/R/library/arrow/libs/arrow.so': libglog.so.0: cannot open shared object file: No such file or directory

I checked and I'm running with glog-0.6.0-h6f12383_0 from conda-forge.

I inspected the package and it looks like the generated symlink to the shared object is libglog.so.1 which is incorrect considering major version of 0.6.0 is 0. Is there a way to rebuild 0.6.0 to fix this?

Installed packages

n/a

Environment info

n/a

Variables not printed on Mac OS X

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

glog installed from conda-forge shows different behavior than the version installed through homebrew. In particular, integer variables are ignored, double variables lead to [1] 97566 bus error build/myapp while strings are printed as expected.

With the default example from the developer's homepage (minimally adapted):

#include <glog/logging.h>

int main(int argc, char* argv[]) {
    // Initialize Google’s logging library.
    google::InitGoogleLogging(argv[0]);
    int myint = 42;
    double mydouble = 45.6;
    std::string mystring = "test";

    // ...

    LOG(INFO) << "My Int " << myint << " cookies";
    LOG(INFO) << "My Double " << mydouble << " cookies";
    LOG(INFO) << "My String " << mystring << " cookies";
}
cmake_minimum_required (VERSION 3.16)
project (myproj VERSION 1.0)

find_package (glog 0.6.0 REQUIRED)

add_executable (myapp main.cpp)
target_link_libraries (myapp glog::glog)

Compilation (with conda activated) and run:

cmake -S . -B build_conda
cmake --build build_conda
build_conda/myapp

print parts of the string but no integer value:

I20230605 11:27:15.235283 3686738 main.cpp:12] My Int  cookies
[1]    97979 bus error  build_conda/myapp

Conversely, brew installation of glog behaves as expected:

conda deactivate
cmake -S . -B build_brew
cmake --build build_brew
build_brew/myapp

gives

I20230605 11:26:14.799752 3685460 main.cpp:12] My Int 42 cookies
I20230605 11:26:14.801151 3685460 main.cpp:13] My Double 45.6 cookies
I20230605 11:26:14.801287 3685460 main.cpp:14] My String test cookies
brew info glog                                                                                                                                                                                                                                                                  
==> glog: stable 0.6.0 (bottled), HEAD
Application-level logging library
https://github.com/google/glog
/opt/homebrew/Cellar/glog/0.6.0 (22 files, 334.8KB) *
  Poured from bottle using the formulae.brew.sh API on 2023-06-05 at 11:07:14
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/glog.rb
License: BSD-3-Clause
==> Dependencies
Build: cmake ✘
Required: gflags ✔
==> Options
--HEAD
	Install HEAD version
==> Analytics
install: 14,224 (30 days), 3,238 (90 days), 424,022 (365 days)
install-on-request: 0 (30 days), 173 (90 days), 9,995 (365 days)
build-error: 0 (30 days)

Installed packages

#
# Name                    Version                   Build  Channel
gflags                    2.2.2             hc88da5d_1004    conda-forge
glog                      0.6.0                h6da1cb0_0    conda-forge
libcxx                    16.0.5               h4653b0c_0    conda-forge

Environment info

active environment : glog
    active env location : /Users/felix/miniconda3/envs/glog
            shell level : 2
       user config file : /Users/felix/.condarc
 populated config files : /Users/felix/.condarc
          conda version : 22.11.1
    conda-build version : not installed
         python version : 3.10.9.final.0
       virtual packages : __archspec=1=arm64
                          __osx=13.3.1=0
                          __unix=0=0
       base environment : /Users/felix/miniconda3  (writable)
      conda av data dir : /Users/felix/miniconda3/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/osx-arm64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/osx-arm64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/osx-arm64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /Users/felix/miniconda3/pkgs
                          /Users/felix/.conda/pkgs
       envs directories : /Users/felix/miniconda3/envs
                          /Users/felix/.conda/envs
               platform : osx-arm64
             user-agent : conda/22.11.1 requests/2.28.1 CPython/3.10.9 Darwin/22.4.0 OSX/13.3.1
                UID:GID : 501:20
             netrc file : None
           offline mode : False

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.