mirror of https://gitee.com/openkylin/glib2.0.git
merge upstream 2.74.5
This commit is contained in:
parent
2f18f16f47
commit
a28e47d6c8
|
@ -0,0 +1,17 @@
|
|||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
|
||||
[*.[ch]]
|
||||
indent_size = 2
|
||||
indent_style = space
|
||||
insert_final_newline = true
|
||||
# For the legacy tabs which still exist in the code:
|
||||
tab_width = 8
|
||||
|
||||
[meson.build]
|
||||
indent_size = 2
|
||||
indent_style = space
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
# for all subdirectories
|
||||
TAGS
|
||||
tags
|
||||
.libs
|
||||
.deps
|
||||
*.o
|
||||
*.lo
|
||||
*.la
|
||||
*.pc
|
||||
.*.swp
|
||||
.sw?
|
||||
*.rc
|
||||
*.gcno
|
||||
*.gcda
|
||||
*.gcov
|
||||
*.sourcefiles
|
||||
*.stp
|
||||
*.exe
|
||||
*.def
|
||||
*.test
|
||||
*.log
|
||||
*.trs
|
||||
|
||||
/glib-lcov.info
|
||||
/glib-lcov/
|
||||
|
||||
# Meson
|
||||
/meson-build/
|
||||
/subprojects/*/
|
|
@ -0,0 +1,586 @@
|
|||
stages:
|
||||
- style-check
|
||||
- build
|
||||
- coverage
|
||||
- analysis
|
||||
- deploy
|
||||
|
||||
cache:
|
||||
paths:
|
||||
- _ccache/
|
||||
|
||||
variables:
|
||||
FEDORA_IMAGE: "registry.gitlab.gnome.org/gnome/glib/fedora:v19"
|
||||
COVERITY_IMAGE: "registry.gitlab.gnome.org/gnome/glib/coverity:v7"
|
||||
DEBIAN_IMAGE: "registry.gitlab.gnome.org/gnome/glib/debian-stable:v13"
|
||||
MINGW_IMAGE: "registry.gitlab.gnome.org/gnome/glib/mingw:v9"
|
||||
MESON_TEST_TIMEOUT_MULTIPLIER: 2
|
||||
G_MESSAGES_DEBUG: all
|
||||
MESON_COMMON_OPTIONS: "--buildtype debug --wrap-mode=nodownload --fatal-meson-warnings"
|
||||
|
||||
.only-default:
|
||||
only:
|
||||
- branches
|
||||
except:
|
||||
- tags
|
||||
|
||||
# Some jobs run on CI runners which don’t have good isolation between CI jobs,
|
||||
# and don’t have much available resource. Limit those jobs to only ones on the
|
||||
# origin repository (GNOME/glib), rather than people’s forks. Code in the origin
|
||||
# repository can be trusted.
|
||||
.only-origin:
|
||||
only:
|
||||
- branches@GNOME/glib
|
||||
except:
|
||||
- tags
|
||||
|
||||
# Some jobs take a long time and are unlikely to find failures (or will find
|
||||
# failures which are not merge-blockers to fix), so they’re executed on a weekly
|
||||
# schedule in order to save CI resources and speed up branch pipelines.
|
||||
.only-schedules:
|
||||
only:
|
||||
- schedules
|
||||
except:
|
||||
- tags
|
||||
|
||||
.build-linux:
|
||||
before_script:
|
||||
- bash .gitlab-ci/show-execution-environment.sh
|
||||
- cp -r $HOME/subprojects/* subprojects/
|
||||
|
||||
style-check-diff:
|
||||
extends: .only-default
|
||||
image: $DEBIAN_IMAGE
|
||||
stage: style-check
|
||||
allow_failure: true
|
||||
script:
|
||||
- .gitlab-ci/run-style-check-diff.sh
|
||||
- .gitlab-ci/run-shellcheck.sh
|
||||
- .gitlab-ci/run-black.sh
|
||||
- .gitlab-ci/run-flake8.sh
|
||||
- .gitlab-ci/run-check-todos.sh
|
||||
|
||||
fedora-x86_64:
|
||||
extends:
|
||||
- .build-linux
|
||||
- .only-default
|
||||
image: $FEDORA_IMAGE
|
||||
stage: build
|
||||
needs: []
|
||||
variables:
|
||||
CFLAGS: "-coverage -ftest-coverage -fprofile-arcs"
|
||||
script:
|
||||
- meson ${MESON_COMMON_OPTIONS}
|
||||
--werror
|
||||
--default-library=both
|
||||
--prefix=$HOME/glib-installed
|
||||
--localstatedir=/var
|
||||
--libdir=lib
|
||||
-Dsystemtap=true
|
||||
-Ddtrace=true
|
||||
-Dinstalled_tests=true
|
||||
-Dgtk_doc=true
|
||||
_build
|
||||
- ninja -C _build
|
||||
- mkdir -p _coverage
|
||||
- lcov --config-file .lcovrc --directory _build --capture --initial --output-file "_coverage/${CI_JOB_NAME}-baseline.lcov"
|
||||
- .gitlab-ci/run-tests.sh
|
||||
- lcov --config-file .lcovrc --directory _build --capture --output-file "_coverage/${CI_JOB_NAME}.lcov"
|
||||
artifacts:
|
||||
reports:
|
||||
junit: "_build/meson-logs/testlog.junit.xml"
|
||||
name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
||||
when: always
|
||||
expire_in: 1 week
|
||||
paths:
|
||||
- "_build/docs/reference/"
|
||||
- "_build/config.h"
|
||||
- "_build/glib/glibconfig.h"
|
||||
- "_build/meson-logs"
|
||||
- "_build/docs/reference/glib/glib-undeclared.txt"
|
||||
- "_build/docs/reference/glib/glib-undocumented.txt"
|
||||
- "_build/docs/reference/glib/glib-unused.txt"
|
||||
- "_build/docs/reference/gobject/gobject-undeclared.txt"
|
||||
- "_build/docs/reference/gobject/gobject-undocumented.txt"
|
||||
- "_build/docs/reference/gobject/gobject-unused.txt"
|
||||
- "_build/docs/reference/gio/gio-undeclared.txt"
|
||||
- "_build/docs/reference/gio/gio-undocumented.txt"
|
||||
- "_build/docs/reference/gio/gio-unused.txt"
|
||||
- "_coverage"
|
||||
|
||||
debian-stable-x86_64:
|
||||
extends:
|
||||
- .build-linux
|
||||
- .only-default
|
||||
image: $DEBIAN_IMAGE
|
||||
stage: build
|
||||
needs: []
|
||||
script:
|
||||
- meson ${MESON_COMMON_OPTIONS}
|
||||
--werror
|
||||
--default-library=both
|
||||
--prefix=$HOME/glib-installed
|
||||
--localstatedir=/var
|
||||
--libdir=lib
|
||||
-Dsystemtap=true
|
||||
-Ddtrace=true
|
||||
-Dinstalled_tests=true
|
||||
_build
|
||||
- ninja -C _build
|
||||
- .gitlab-ci/run-tests.sh
|
||||
artifacts:
|
||||
reports:
|
||||
junit: "_build/meson-logs/testlog.junit.xml"
|
||||
name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
||||
when: always
|
||||
expire_in: 1 week
|
||||
paths:
|
||||
- "_build/config.h"
|
||||
- "_build/glib/glibconfig.h"
|
||||
- "_build/meson-logs"
|
||||
|
||||
installed-tests:
|
||||
extends:
|
||||
- .build-linux
|
||||
- .only-schedules
|
||||
image: $FEDORA_IMAGE
|
||||
stage: build
|
||||
needs: []
|
||||
script:
|
||||
# dtrace is disabled because it breaks the static-link.py test
|
||||
- meson ${MESON_COMMON_OPTIONS}
|
||||
--werror
|
||||
--prefix=/usr --libdir=/usr/lib64
|
||||
-Dinstalled_tests=true
|
||||
-Ddefault_library=both
|
||||
-Ddtrace=false
|
||||
_build
|
||||
- ninja -C _build
|
||||
- sudo ninja -C _build install
|
||||
# Remove old headers, possibly present in current installation
|
||||
- sudo rm -f /usr/include/glib-2.0/glib/gurifuncs.h
|
||||
- sudo chown -R `id -un`:`id -gn` _build/
|
||||
# Work-around https://gitlab.gnome.org/GNOME/gnome-desktop-testing/merge_requests/2
|
||||
- mkdir -p _build/installed-tests-report/logs/
|
||||
- GLIB_TEST_COMPILATION=1 gnome-desktop-testing-runner
|
||||
--report-directory=_build/installed-tests-report/failed/
|
||||
--log-directory=_build/installed-tests-report/logs/
|
||||
--parallel=0
|
||||
glib
|
||||
artifacts:
|
||||
name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
||||
when: always
|
||||
expire_in: 1 week
|
||||
paths:
|
||||
- "_build/config.h"
|
||||
- "_build/glib/glibconfig.h"
|
||||
- "_build/meson-logs"
|
||||
- "_build/installed-tests-report/"
|
||||
|
||||
G_DISABLE_ASSERT:
|
||||
extends:
|
||||
- .build-linux
|
||||
- .only-schedules
|
||||
image: $FEDORA_IMAGE
|
||||
stage: build
|
||||
needs: []
|
||||
script:
|
||||
- meson ${MESON_COMMON_OPTIONS}
|
||||
--werror
|
||||
-Dsystemtap=true
|
||||
-Ddtrace=true
|
||||
-Dinstalled_tests=true
|
||||
-Dglib_assert=false
|
||||
_build
|
||||
- ninja -C _build
|
||||
- bash -x ./.gitlab-ci/run-tests.sh
|
||||
artifacts:
|
||||
reports:
|
||||
junit: "_build/meson-logs/testlog.junit.xml"
|
||||
name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
||||
when: always
|
||||
expire_in: 1 week
|
||||
paths:
|
||||
- "_build/config.h"
|
||||
- "_build/glib/glibconfig.h"
|
||||
- "_build/meson-logs"
|
||||
|
||||
valgrind:
|
||||
extends:
|
||||
- .build-linux
|
||||
- .only-schedules
|
||||
image: $FEDORA_IMAGE
|
||||
stage: analysis
|
||||
needs: []
|
||||
variables:
|
||||
MESON_TEST_TIMEOUT_MULTIPLIER: 15
|
||||
script:
|
||||
- meson ${MESON_COMMON_OPTIONS}
|
||||
--werror
|
||||
-Dsystemtap=true
|
||||
-Ddtrace=true
|
||||
-Dinstalled_tests=true
|
||||
_build
|
||||
- ninja -C _build
|
||||
# Valgrind doesn’t work when the soft FD limit is set too high
|
||||
# See https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2710
|
||||
- ulimit -Sn 1024
|
||||
- bash -x ./.gitlab-ci/run-tests.sh
|
||||
--setup valgrind
|
||||
--no-suite slow
|
||||
artifacts:
|
||||
reports:
|
||||
junit: "_build/meson-logs/testlog-valgrind.junit.xml"
|
||||
name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
||||
when: always
|
||||
expire_in: 1 week
|
||||
paths:
|
||||
- "_build/config.h"
|
||||
- "_build/glib/glibconfig.h"
|
||||
- "_build/meson-logs"
|
||||
|
||||
.cross-build-linux:
|
||||
extends: .build-linux
|
||||
stage: build
|
||||
needs: []
|
||||
artifacts:
|
||||
name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
||||
when: always
|
||||
expire_in: 1 week
|
||||
paths:
|
||||
- "_build/meson-logs"
|
||||
|
||||
cross-android_arm64:
|
||||
extends:
|
||||
- .cross-build-linux
|
||||
- .only-default
|
||||
image: $FEDORA_IMAGE
|
||||
script:
|
||||
# FIXME: add --werror
|
||||
- meson ${MESON_COMMON_OPTIONS} --cross-file=.gitlab-ci/cross_file_android_arm64_31.txt _build
|
||||
- ninja -C _build
|
||||
|
||||
cross-mingw64:
|
||||
extends:
|
||||
- .cross-build-linux
|
||||
- .only-default
|
||||
image: $MINGW_IMAGE
|
||||
script:
|
||||
# FIXME: Add --werror
|
||||
- meson ${MESON_COMMON_OPTIONS} --cross-file=/opt/cross_file_mingw64.txt _build
|
||||
- ninja -C _build
|
||||
artifacts:
|
||||
reports:
|
||||
junit: "_build/meson-logs/testlog.junit.xml"
|
||||
name: "glib-${env:CI_JOB_NAME}-${env:CI_COMMIT_REF_NAME}"
|
||||
when: always
|
||||
expire_in: 1 week
|
||||
paths:
|
||||
- _build/meson-logs
|
||||
- _build/glib/libglib-2.0-0.dll
|
||||
- _build/gio/libgio-2.0-0.dll
|
||||
- _build/gmodule/libgmodule-2.0-0.dll
|
||||
- _build/gthread/libgthread-2.0-0.dll
|
||||
- _build/gobject/libgobject-2.0-0.dll
|
||||
|
||||
msys2-mingw32:
|
||||
extends: .only-default
|
||||
stage: build
|
||||
tags:
|
||||
- win32-ps
|
||||
needs: []
|
||||
variables:
|
||||
MSYSTEM: "MINGW32"
|
||||
CHERE_INVOKING: "yes"
|
||||
script:
|
||||
- C:\msys64\usr\bin\pacman --noconfirm -Syyuu --ask 20
|
||||
- C:\msys64\usr\bin\bash .gitlab-ci/show-execution-environment.sh
|
||||
- C:\msys64\usr\bin\bash -lc "bash -x ./.gitlab-ci/test-msys2.sh"
|
||||
artifacts:
|
||||
reports:
|
||||
junit: "_build/meson-logs/testlog.junit.xml"
|
||||
name: "glib-${env:CI_JOB_NAME}-${env:CI_COMMIT_REF_NAME}"
|
||||
when: always
|
||||
expire_in: 1 week
|
||||
paths:
|
||||
- _build/meson-logs
|
||||
- _coverage/
|
||||
|
||||
vs2017-x64:
|
||||
extends: .only-default
|
||||
stage: build
|
||||
tags:
|
||||
- win32-ps
|
||||
needs: []
|
||||
script:
|
||||
# FIXME: These should use --wrap-mode=nodownload but the Windows CI machines
|
||||
# aren’t currently set up for that.
|
||||
- .gitlab-ci/test-msvc.bat ${MESON_COMMON_OPTIONS}
|
||||
--wrap-mode=default
|
||||
--python.platlibdir=C:\Python37\site-packages
|
||||
--python.purelibdir=C:\Python37\site-packages
|
||||
artifacts:
|
||||
reports:
|
||||
junit: "_build/meson-logs/testlog.junit.xml"
|
||||
name: "glib-${env:CI_JOB_NAME}-${env:CI_COMMIT_REF_NAME}"
|
||||
when: always
|
||||
expire_in: 1 week
|
||||
paths:
|
||||
- _build/meson-logs
|
||||
- _build/glib/libglib-2.0-0.dll
|
||||
- _build/gio/libgio-2.0-0.dll
|
||||
- _build/gmodule/libgmodule-2.0-0.dll
|
||||
- _build/gthread/libgthread-2.0-0.dll
|
||||
- _build/gobject/libgobject-2.0-0.dll
|
||||
|
||||
vs2017-x64-static:
|
||||
extends: .only-default
|
||||
stage: build
|
||||
tags:
|
||||
- win32-ps
|
||||
needs: []
|
||||
script:
|
||||
# FIXME: These should use --wrap-mode=nodownload but the Windows CI machines
|
||||
# aren’t currently set up for that.
|
||||
- .gitlab-ci/test-msvc.bat ${MESON_COMMON_OPTIONS}
|
||||
--wrap-mode=default
|
||||
--default-library=static
|
||||
--python.platlibdir=C:\Python37\site-packages
|
||||
--python.purelibdir=C:\Python37\site-packages
|
||||
artifacts:
|
||||
reports:
|
||||
junit: "_build/meson-logs/testlog.junit.xml"
|
||||
name: "glib-${env:CI_JOB_NAME}-${env:CI_COMMIT_REF_NAME}"
|
||||
when: always
|
||||
expire_in: 1 week
|
||||
paths:
|
||||
- _build/meson-logs
|
||||
|
||||
freebsd-12-x86_64:
|
||||
# The FreeBSD 13 build is run on each commit, so the FreeBSD 12 build can be
|
||||
# run less regularly to save CI resources. The chance of a regression on
|
||||
# FreeBSD 12 and not FreeBSD 13 is tiny.
|
||||
extends: .only-schedules
|
||||
stage: build
|
||||
tags:
|
||||
# To run a FreeBSD builder, install gitlab-runner package and start both
|
||||
# gitlab-runner and dbus service because we need /var/lib/dbus/machine-id.
|
||||
# To compile GLib, you still have to install the following packages:
|
||||
# desktop-file-utils gettext libiconv meson pkgconf python3 shared-mime-info
|
||||
- freebsd-12
|
||||
needs: []
|
||||
variables:
|
||||
# CPPFLAGS is required because libintl doesn't use pkg-config.
|
||||
CPPFLAGS: -I/usr/local/include
|
||||
# FIXME: Workaround meson inability to set LD_LIBRARY_PATH.
|
||||
# https://github.com/mesonbuild/meson/issues/1383
|
||||
# https://github.com/mesonbuild/meson/issues/1635
|
||||
# https://github.com/mesonbuild/meson/issues/2881
|
||||
LDFLAGS: -L/usr/local/lib -Wl,--disable-new-dtags
|
||||
# FreeBSD supports C.UTF-8 locale since 12.1.
|
||||
LANG: C.UTF-8
|
||||
before_script:
|
||||
- bash .gitlab-ci/show-execution-environment.sh
|
||||
script:
|
||||
# We cannot use -Wl,--no-undefined because GLib uses 'environ' variable.
|
||||
# FreeBSD supports xattr, but its API is different from Linux xattr.
|
||||
# FIXME: extattr(2) support: https://gitlab.gnome.org/GNOME/glib/issues/1404
|
||||
# localstatedir is needed for access to /var/lib/dbus/machine-id
|
||||
- meson ${MESON_COMMON_OPTIONS} --localstatedir=/var -Db_lundef=false -Dxattr=false _build
|
||||
- ninja -C _build
|
||||
- bash -x ./.gitlab-ci/run-tests.sh
|
||||
artifacts:
|
||||
reports:
|
||||
junit: "_build/meson-logs/testlog.junit.xml"
|
||||
name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
||||
when: always
|
||||
expire_in: 1 week
|
||||
paths:
|
||||
- "_build/config.h"
|
||||
- "_build/glib/glibconfig.h"
|
||||
- "_build/meson-logs"
|
||||
|
||||
freebsd-13-x86_64:
|
||||
extends: .only-origin
|
||||
stage: build
|
||||
tags:
|
||||
- freebsd-13
|
||||
needs: []
|
||||
variables:
|
||||
CPPFLAGS: -I/usr/local/include
|
||||
LDFLAGS: -L/usr/local/lib -Wl,--disable-new-dtags
|
||||
LANG: C.UTF-8
|
||||
before_script:
|
||||
- bash .gitlab-ci/show-execution-environment.sh
|
||||
script:
|
||||
- meson ${MESON_COMMON_OPTIONS} --localstatedir=/var -Db_lundef=false -Dxattr=false _build
|
||||
- ninja -C _build
|
||||
- bash -x ./.gitlab-ci/run-tests.sh
|
||||
artifacts:
|
||||
reports:
|
||||
junit: "_build/meson-logs/testlog.junit.xml"
|
||||
name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
||||
when: always
|
||||
expire_in: 1 week
|
||||
paths:
|
||||
- "_build/config.h"
|
||||
- "_build/glib/glibconfig.h"
|
||||
- "_build/meson-logs"
|
||||
|
||||
macos:
|
||||
extends: .only-origin
|
||||
stage: build
|
||||
tags:
|
||||
- macos
|
||||
needs: []
|
||||
variables:
|
||||
GIT_SUBMODULE_STRATEGY: normal
|
||||
# libpcre2 gets built as a subproject, but the default Clang options on
|
||||
# macOS limit string lengths to 4095B — pcre2_error.c has a string of length
|
||||
# 4380B
|
||||
CFLAGS: '-Wno-overlength-strings'
|
||||
before_script:
|
||||
- bash .gitlab-ci/show-execution-environment.sh
|
||||
- pip3 install --user meson==0.60.1
|
||||
- pip3 install --user ninja
|
||||
- export PATH=/Users/gitlabrunner/Library/Python/3.7/bin:$PATH
|
||||
script:
|
||||
# FIXME: Use --wrap-mode=default so we download dependencies each time,
|
||||
# until the macOS runner is a VM where we can use a pre-made image which
|
||||
# already contains the dependencies. See:
|
||||
# - https://gitlab.gnome.org/GNOME/glib/merge_requests/388
|
||||
# - https://gitlab.gnome.org/Infrastructure/Infrastructure/issues/225
|
||||
- meson ${MESON_COMMON_OPTIONS}
|
||||
--wrap-mode=default
|
||||
--werror
|
||||
_build
|
||||
- ninja -C _build
|
||||
- .gitlab-ci/run-tests.sh
|
||||
artifacts:
|
||||
reports:
|
||||
junit: "_build/meson-logs/testlog.junit.xml"
|
||||
name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
||||
when: always
|
||||
expire_in: 1 week
|
||||
paths:
|
||||
- "_build/config.h"
|
||||
- "_build/glib/glibconfig.h"
|
||||
- "_build/meson-logs"
|
||||
|
||||
coverage:
|
||||
extends: .only-default
|
||||
image: $FEDORA_IMAGE
|
||||
stage: coverage
|
||||
needs: ['fedora-x86_64', 'msys2-mingw32']
|
||||
artifacts:
|
||||
name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
||||
expire_in: 1 week
|
||||
expose_as: 'Coverage Report'
|
||||
paths:
|
||||
- _coverage/coverage/index.html
|
||||
- _coverage
|
||||
reports:
|
||||
coverage_report:
|
||||
coverage_format: cobertura
|
||||
path: _coverage/*-cobertura/cobertura-*.xml
|
||||
before_script:
|
||||
- bash .gitlab-ci/show-execution-environment.sh
|
||||
script:
|
||||
- bash -x ./.gitlab-ci/coverage-docker.sh
|
||||
coverage: '/^\s+lines\.+:\s+([\d.]+\%)\s+/'
|
||||
|
||||
scan-build:
|
||||
extends:
|
||||
- .build-linux
|
||||
- .only-schedules
|
||||
image: $FEDORA_IMAGE
|
||||
stage: analysis
|
||||
needs: []
|
||||
script:
|
||||
- meson ${MESON_COMMON_OPTIONS}
|
||||
--werror
|
||||
--default-library=both
|
||||
--prefix=$HOME/glib-installed
|
||||
--localstatedir=/var
|
||||
--libdir=lib
|
||||
-Dsystemtap=true
|
||||
-Ddtrace=true
|
||||
-Dinstalled_tests=true
|
||||
_scan_build
|
||||
- ninja -C _scan_build scan-build
|
||||
artifacts:
|
||||
name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
||||
when: always
|
||||
expire_in: 1 week
|
||||
paths:
|
||||
- "_scan_build/meson-logs/scanbuild"
|
||||
|
||||
coverity:
|
||||
extends:
|
||||
- .build-linux
|
||||
- .only-schedules
|
||||
image: $COVERITY_IMAGE
|
||||
stage: analysis
|
||||
needs: []
|
||||
variables:
|
||||
# cov-build doesn’t like GLIB_DEPRECATED_ENUMERATOR
|
||||
CFLAGS: '-DGLIB_DISABLE_DEPRECATION_WARNINGS'
|
||||
script:
|
||||
- meson ${MESON_COMMON_OPTIONS}
|
||||
--werror
|
||||
--default-library=both
|
||||
--prefix=$HOME/glib-installed
|
||||
--localstatedir=/var
|
||||
--libdir=lib
|
||||
-Dsystemtap=true
|
||||
-Ddtrace=true
|
||||
-Dinstalled_tests=true
|
||||
_coverity_build
|
||||
- $HOME/cov-analysis-linux64-*/bin/cov-build --dir cov-int ninja -C _coverity_build
|
||||
- tar cfz cov-int.tar.gz cov-int
|
||||
- curl https://scan.coverity.com/builds?project=$COVERITY_SCAN_PROJECT_NAME
|
||||
--form token=$COVERITY_SCAN_TOKEN --form email=$GITLAB_USER_EMAIL
|
||||
--form file=@cov-int.tar.gz --form version="$CI_COMMIT_SHA"
|
||||
--form description="$CI_COMMIT_SHA / $CI_COMMIT_TITLE / $CI_COMMIT_REF_NAME:$CI_PIPELINE_ID"
|
||||
artifacts:
|
||||
name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
||||
when: always
|
||||
expire_in: 1 week
|
||||
paths:
|
||||
- "cov-int/build-log.txt"
|
||||
|
||||
pages:
|
||||
stage: deploy
|
||||
only:
|
||||
- main
|
||||
needs: ['coverage', 'style-check-diff']
|
||||
script:
|
||||
- mv _coverage/ public/
|
||||
artifacts:
|
||||
paths:
|
||||
- public
|
||||
|
||||
dist-job:
|
||||
image: $FEDORA_IMAGE
|
||||
stage: build
|
||||
only:
|
||||
- tags
|
||||
script:
|
||||
# Ignore extra git security checks as we don't care in CI.
|
||||
- git config --global --add safe.directory "${PWD}"
|
||||
- git submodule update --init
|
||||
- for m in $(git submodule foreach -q 'echo $path'); do git config --global --add safe.directory "${PWD}/${m}"; done
|
||||
- meson subprojects download
|
||||
- meson ${MESON_COMMON_OPTIONS} --buildtype release -Dgtk_doc=true -Dman=true _build
|
||||
- cd _build
|
||||
- ninja dist
|
||||
- ninja glib-doc gobject-doc gio-doc
|
||||
- tar -c -J -f "glib-docs-$CI_COMMIT_TAG.tar.xz" -C docs/reference/glib html
|
||||
- tar -c -J -f "gobject-docs-$CI_COMMIT_TAG.tar.xz" -C docs/reference/gobject html
|
||||
- tar -c -J -f "gio-docs-$CI_COMMIT_TAG.tar.xz" -C docs/reference/gio html
|
||||
artifacts:
|
||||
paths:
|
||||
- "${CI_PROJECT_DIR}/_build/glib-docs-$CI_COMMIT_TAG.tar.xz"
|
||||
- "${CI_PROJECT_DIR}/_build/gobject-docs-$CI_COMMIT_TAG.tar.xz"
|
||||
- "${CI_PROJECT_DIR}/_build/gio-docs-$CI_COMMIT_TAG.tar.xz"
|
||||
- "${CI_PROJECT_DIR}/_build/meson-dist/glib-*.tar.xz"
|
|
@ -0,0 +1,27 @@
|
|||
# CI support stuff
|
||||
|
||||
## Docker image
|
||||
|
||||
GitLab CI jobs run in a Docker image, defined here. To update that image
|
||||
(perhaps to install some more packages):
|
||||
|
||||
1. Edit `.gitlab-ci/Dockerfile` with the changes you want
|
||||
1. Run `.gitlab-ci/run-docker.sh build --base=debian-stable --base-version=1` to
|
||||
build the new image (bump the version from the latest listed for that `base`
|
||||
on https://gitlab.gnome.org/GNOME/glib/container_registry). If rebuilding the
|
||||
`coverity.Dockerfile` image, you’ll need to have access to [Coverity Scan][cs]
|
||||
and will need to specify your project name and access token as the environment
|
||||
variables `COVERITY_SCAN_PROJECT_NAME` and `COVERITY_SCAN_TOKEN`.
|
||||
1. Run `.gitlab-ci/run-docker.sh push --base=debian-stable --base-version=1` to
|
||||
upload the new image to the GNOME GitLab Docker registry
|
||||
* If this is the first time you're doing this, you'll need to log into the
|
||||
registry
|
||||
* If you use 2-factor authentication on your GNOME GitLab account, you'll
|
||||
need to [create a personal access token][pat] and use that rather than
|
||||
your normal password — the token should have `read_registry` and
|
||||
`write_registry` permissions
|
||||
1. Edit `.gitlab-ci.yml` (in the root of this repository) to use your new
|
||||
image
|
||||
|
||||
[pat]: https://gitlab.gnome.org/profile/personal_access_tokens
|
||||
[cs]: https://scan.coverity.com/
|
|
@ -0,0 +1,32 @@
|
|||
#!/bin/bash
|
||||
|
||||
#
|
||||
# Copyright 2022 Collabora ltd.
|
||||
#
|
||||
# This library is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU Lesser General Public
|
||||
# License as published by the Free Software Foundation; either
|
||||
# version 2.1 of the License, or (at your option) any later version.
|
||||
#
|
||||
# This library is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# Lesser General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
# Author: Xavier Claessens <xavier.claessens@collabora.com>
|
||||
#
|
||||
|
||||
set -e
|
||||
|
||||
# Download Android NDK
|
||||
ANDROID_NDK_PATH=/opt/android-ndk
|
||||
ANDROID_NDK_VERSION="r23b"
|
||||
ANDROID_NDK_SHA512="5f2b58e605fc99d4fd3e9d2210e7f5e76e89245fa9428ce0d890e2e03b598c62c48ebd528fcb76556f04b46b87afea52e1e8d280f32cd1232f290e074bfa56fa"
|
||||
wget --quiet "https://dl.google.com/android/repository/android-ndk-${ANDROID_NDK_VERSION}-linux.zip"
|
||||
echo "${ANDROID_NDK_SHA512} android-ndk-${ANDROID_NDK_VERSION}-linux.zip" | sha512sum -c
|
||||
unzip "android-ndk-${ANDROID_NDK_VERSION}-linux.zip"
|
||||
rm "android-ndk-${ANDROID_NDK_VERSION}-linux.zip"
|
||||
mv "android-ndk-${ANDROID_NDK_VERSION}" "${ANDROID_NDK_PATH}"
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
git clone --depth 1 --no-tags https://gitlab.gnome.org/GNOME/glib.git
|
||||
git -C glib submodule update --init
|
||||
meson subprojects download --sourcedir glib
|
||||
rm glib/subprojects/*.wrap
|
||||
mv glib/subprojects/ .
|
||||
rm -rf glib
|
|
@ -0,0 +1,28 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
"""
|
||||
This script checks Meson configuration logs to verify no installed file is
|
||||
missing installation tag.
|
||||
"""
|
||||
|
||||
import argparse
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("builddir", type=Path)
|
||||
args = parser.parse_args()
|
||||
|
||||
logfile = args.builddir / "meson-logs" / "meson-log.txt"
|
||||
with logfile.open(encoding="utf-8") as f:
|
||||
if "Failed to guess install tag" in f.read():
|
||||
print(
|
||||
f"Some files are missing install_tag, see {logfile} for details." # no-qa
|
||||
)
|
||||
return 1
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
exit(main())
|
|
@ -0,0 +1,93 @@
|
|||
#!/usr/bin/env python3
|
||||
#
|
||||
# Copyright © 2019 Endless Mobile, Inc.
|
||||
#
|
||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
#
|
||||
# Original author: Philip Withnall
|
||||
|
||||
"""
|
||||
Checks that a merge request doesn’t add any instances of the string ‘todo’
|
||||
(in uppercase), or similar keywords. It may remove instances of that keyword,
|
||||
or move them around, according to the logic of `git log -S`.
|
||||
"""
|
||||
|
||||
import argparse
|
||||
import re
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
|
||||
# We have to specify these keywords obscurely to avoid the script matching
|
||||
# itself. The keyword ‘fixme’ (in upper case) is explicitly allowed because
|
||||
# that’s conventionally used as a way of marking a workaround which needs to
|
||||
# be merged for now, but is to be grepped for and reverted or reworked later.
|
||||
BANNED_KEYWORDS = ["TO" + "DO", "X" + "XX", "W" + "IP"]
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(
|
||||
description="Check a range of commits to ensure they don’t contain "
|
||||
"banned keywords."
|
||||
)
|
||||
parser.add_argument("commits", help="SHA to diff from, or range of commits to diff")
|
||||
args = parser.parse_args()
|
||||
|
||||
banned_words_seen = set()
|
||||
seen_in_log = False
|
||||
seen_in_diff = False
|
||||
|
||||
# Check the log messages for banned words.
|
||||
log_process = subprocess.run(
|
||||
["git", "log", "--no-color", args.commits + "..HEAD"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
check=True,
|
||||
)
|
||||
log_lines = log_process.stdout.strip().split("\n")
|
||||
|
||||
for line in log_lines:
|
||||
for keyword in BANNED_KEYWORDS:
|
||||
if re.search(r"(^|\W+){}(\W+|$)".format(keyword), line):
|
||||
banned_words_seen.add(keyword)
|
||||
seen_in_log = True
|
||||
|
||||
# Check the diff for banned words.
|
||||
diff_process = subprocess.run(
|
||||
["git", "diff", "-U0", "--no-color", args.commits],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
check=True,
|
||||
)
|
||||
diff_lines = diff_process.stdout.strip().split("\n")
|
||||
|
||||
for line in diff_lines:
|
||||
if not line.startswith("+ "):
|
||||
continue
|
||||
|
||||
for keyword in BANNED_KEYWORDS:
|
||||
if re.search(r"(^|\W+){}(\W+|$)".format(keyword), line):
|
||||
banned_words_seen.add(keyword)
|
||||
seen_in_diff = True
|
||||
|
||||
if banned_words_seen:
|
||||
if seen_in_log and seen_in_diff:
|
||||
where = "commit message and diff"
|
||||
elif seen_in_log:
|
||||
where = "commit message"
|
||||
elif seen_in_diff:
|
||||
where = "commit diff"
|
||||
|
||||
print(
|
||||
"Saw banned keywords in a {}: {}. "
|
||||
"This indicates the branch is a work in progress and should not "
|
||||
"be merged in its current "
|
||||
"form.".format(where, ", ".join(banned_words_seen))
|
||||
)
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
|
@ -33,50 +33,76 @@ else:
|
|||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(
|
||||
description=__doc__,
|
||||
formatter_class=argparse.RawDescriptionHelpFormatter)
|
||||
parser.add_argument('-i', action='store_true', default=False,
|
||||
help='apply edits to files instead of displaying a '
|
||||
'diff')
|
||||
parser.add_argument('-p', metavar='NUM', default=0,
|
||||
help='strip the smallest prefix containing P slashes')
|
||||
parser.add_argument('-regex', metavar='PATTERN', default=None,
|
||||
help='custom pattern selecting file paths to reformat '
|
||||
'(case sensitive, overrides -iregex)')
|
||||
parser.add_argument('-iregex', metavar='PATTERN',
|
||||
default=r'.*\.(cpp|cc|c\+\+|cxx|c|cl|h|hh|hpp|m|mm|inc'
|
||||
r'|js|ts|proto|protodevel|java|cs)',
|
||||
help='custom pattern selecting file paths to reformat '
|
||||
'(case insensitive, overridden by -regex)')
|
||||
parser.add_argument('-sort-includes', action='store_true', default=False,
|
||||
help='let clang-format sort include blocks')
|
||||
parser.add_argument('-v', '--verbose', action='store_true',
|
||||
help='be more verbose, ineffective without -i')
|
||||
parser.add_argument('-style',
|
||||
help='formatting style to apply (LLVM, Google, '
|
||||
'Chromium, Mozilla, WebKit)')
|
||||
parser.add_argument('-binary', default='clang-format',
|
||||
help='location of binary to use for clang-format')
|
||||
description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter
|
||||
)
|
||||
parser.add_argument(
|
||||
"-i",
|
||||
action="store_true",
|
||||
default=False,
|
||||
help="apply edits to files instead of displaying a " "diff",
|
||||
)
|
||||
parser.add_argument(
|
||||
"-p",
|
||||
metavar="NUM",
|
||||
default=0,
|
||||
help="strip the smallest prefix containing P slashes",
|
||||
)
|
||||
parser.add_argument(
|
||||
"-regex",
|
||||
metavar="PATTERN",
|
||||
default=None,
|
||||
help="custom pattern selecting file paths to reformat "
|
||||
"(case sensitive, overrides -iregex)",
|
||||
)
|
||||
parser.add_argument(
|
||||
"-iregex",
|
||||
metavar="PATTERN",
|
||||
default=r".*\.(cpp|cc|c\+\+|cxx|c|cl|h|hh|hpp|m|mm|inc"
|
||||
r"|js|ts|proto|protodevel|java|cs)",
|
||||
help="custom pattern selecting file paths to reformat "
|
||||
"(case insensitive, overridden by -regex)",
|
||||
)
|
||||
parser.add_argument(
|
||||
"-sort-includes",
|
||||
action="store_true",
|
||||
default=False,
|
||||
help="let clang-format sort include blocks",
|
||||
)
|
||||
parser.add_argument(
|
||||
"-v",
|
||||
"--verbose",
|
||||
action="store_true",
|
||||
help="be more verbose, ineffective without -i",
|
||||
)
|
||||
parser.add_argument(
|
||||
"-style",
|
||||
help="formatting style to apply (LLVM, Google, " "Chromium, Mozilla, WebKit)",
|
||||
)
|
||||
parser.add_argument(
|
||||
"-binary",
|
||||
default="clang-format",
|
||||
help="location of binary to use for clang-format",
|
||||
)
|
||||
args = parser.parse_args()
|
||||
|
||||
# Extract changed lines for each file.
|
||||
filename = None
|
||||
lines_by_file = {}
|
||||
for line in sys.stdin:
|
||||
match = re.search(r'^\+\+\+\ (.*?/){%s}(\S*)' % args.p, line)
|
||||
match = re.search(r"^\+\+\+\ (.*?/){%s}(\S*)" % args.p, line)
|
||||
if match:
|
||||
filename = match.group(2)
|
||||
if filename is None:
|
||||
continue
|
||||
|
||||
if args.regex is not None:
|
||||
if not re.match('^%s$' % args.regex, filename):
|
||||
if not re.match("^%s$" % args.regex, filename):
|
||||
continue
|
||||
else:
|
||||
if not re.match('^%s$' % args.iregex, filename, re.IGNORECASE):
|
||||
if not re.match("^%s$" % args.iregex, filename, re.IGNORECASE):
|
||||
continue
|
||||
|
||||
match = re.search(r'^@@.*\+(\d+)(,(\d+))?', line)
|
||||
match = re.search(r"^@@.*\+(\d+)(,(\d+))?", line)
|
||||
if match:
|
||||
start_line = int(match.group(1))
|
||||
line_count = 1
|
||||
|
@ -86,7 +112,8 @@ def main():
|
|||
continue
|
||||
end_line = start_line + line_count - 1
|
||||
lines_by_file.setdefault(filename, []).extend(
|
||||
['-lines', str(start_line) + ':' + str(end_line)])
|
||||
["-lines", str(start_line) + ":" + str(end_line)]
|
||||
)
|
||||
|
||||
# Reformat files containing changes in place.
|
||||
# We need to count amount of bytes generated in the output of
|
||||
|
@ -95,20 +122,22 @@ def main():
|
|||
format_line_counter = 0
|
||||
for filename, lines in lines_by_file.items():
|
||||
if args.i and args.verbose:
|
||||
print('Formatting {}'.format(filename))
|
||||
print("Formatting {}".format(filename))
|
||||
command = [args.binary, filename]
|
||||
if args.i:
|
||||
command.append('-i')
|
||||
command.append("-i")
|
||||
if args.sort_includes:
|
||||
command.append('-sort-includes')
|
||||
command.append("-sort-includes")
|
||||
command.extend(lines)
|
||||
if args.style:
|
||||
command.extend(['-style', args.style])
|
||||
p = subprocess.Popen(command,
|
||||
command.extend(["-style", args.style])
|
||||
p = subprocess.Popen(
|
||||
command,
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=None,
|
||||
stdin=subprocess.PIPE,
|
||||
universal_newlines=True)
|
||||
universal_newlines=True,
|
||||
)
|
||||
stdout, _ = p.communicate()
|
||||
if p.returncode != 0:
|
||||
sys.exit(p.returncode)
|
||||
|
@ -117,11 +146,15 @@ def main():
|
|||
with open(filename) as f:
|
||||
code = f.readlines()
|
||||
formatted_code = StringIO(stdout).readlines()
|
||||
diff = difflib.unified_diff(code, formatted_code,
|
||||
filename, filename,
|
||||
'(before formatting)',
|
||||
'(after formatting)')
|
||||
diff_string = ''.join(diff)
|
||||
diff = difflib.unified_diff(
|
||||
code,
|
||||
formatted_code,
|
||||
filename,
|
||||
filename,
|
||||
"(before formatting)",
|
||||
"(after formatting)",
|
||||
)
|
||||
diff_string = "".join(diff)
|
||||
if diff_string:
|
||||
format_line_counter += sys.stdout.write(diff_string)
|
||||
|
||||
|
@ -129,5 +162,5 @@ def main():
|
|||
sys.exit(1)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
if __name__ == "__main__":
|
||||
main()
|
|
@ -0,0 +1,43 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
# Fixup Windows paths
|
||||
python3 ./.gitlab-ci/fixup-cov-paths.py _coverage/*.lcov
|
||||
|
||||
for path in _coverage/*.lcov; do
|
||||
# Remove coverage from generated code in the build directory
|
||||
lcov --config-file .lcovrc -r "${path}" '*/_build/*' -o "$(pwd)/${path}"
|
||||
# Remove any coverage from system files
|
||||
lcov --config-file .lcovrc -e "${path}" "$(pwd)/*" -o "$(pwd)/${path}"
|
||||
|
||||
# Convert to cobertura format for gitlab integration
|
||||
cobertura_base="${path/.lcov}-cobertura"
|
||||
cobertura_xml="${cobertura_base}.xml"
|
||||
lcov_cobertura "${path}" --output "${cobertura_xml}"
|
||||
mkdir -p "${cobertura_base}"
|
||||
cobertura-split-by-package.py "${cobertura_xml}" "${cobertura_base}"
|
||||
rm -f "${cobertura_xml}"
|
||||
done
|
||||
|
||||
genhtml \
|
||||
--ignore-errors=source \
|
||||
--config-file .lcovrc \
|
||||
_coverage/*.lcov \
|
||||
-o _coverage/coverage
|
||||
|
||||
cd _coverage
|
||||
rm -f ./*.lcov
|
||||
|
||||
cat >index.html <<EOL
|
||||
<html>
|
||||
<body>
|
||||
<ul>
|
||||
<li><a href="coverage/index.html">Coverage</a></li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
EOL
|
||||
|
||||
# Print a handy link to the coverage report
|
||||
echo "Coverage report at: https://${CI_PROJECT_NAMESPACE}.pages.gitlab.gnome.org/-/${CI_PROJECT_NAME}/-/jobs/${CI_BUILD_ID}/artifacts/_coverage/coverage/index.html"
|
|
@ -0,0 +1,246 @@
|
|||
/*
|
||||
* Copyright © 2020 Endless OS Foundation, LLC
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* Author: Philip Withnall <withnall@endlessm.com>
|
||||
*/
|
||||
|
||||
/* This modelling file needs to be uploaded to GLib’s Coverity configuration at
|
||||
* https://scan.coverity.com/projects/glib?tab=analysis_settings
|
||||
* by someone with the appropriate permissions on Coverity. It should be kept in
|
||||
* sync with what’s there.
|
||||
*
|
||||
* Reference: https://scan.coverity.com/tune
|
||||
*/
|
||||
|
||||
/* Disable some esoteric options which Coverity doesn't understand because they
|
||||
* delve into assembly. */
|
||||
#define NVALGRIND 1
|
||||
#undef HAVE_DTRACE
|
||||
|
||||
#define TRACE(probe) /* no-op */
|
||||
|
||||
/* libc definitions */
|
||||
#define NULL ((void*)0)
|
||||
|
||||
void *malloc (size_t);
|
||||
void *calloc (size_t, size_t);
|
||||
void *realloc (void *, size_t);
|
||||
void free (void *);
|
||||
|
||||
/* Define some standard GLib types. */
|
||||
typedef size_t gsize;
|
||||
typedef char gchar;
|
||||
typedef unsigned char guchar;
|
||||
typedef int gint;
|
||||
typedef unsigned long gulong;
|
||||
typedef unsigned int guint32;
|
||||
typedef void* gpointer;
|
||||
typedef unsigned int gboolean;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
/* log flags */
|
||||
G_LOG_FLAG_RECURSION = 1 << 0,
|
||||
G_LOG_FLAG_FATAL = 1 << 1,
|
||||
|
||||
/* GLib log levels */
|
||||
G_LOG_LEVEL_ERROR = 1 << 2, /* always fatal */
|
||||
G_LOG_LEVEL_CRITICAL = 1 << 3,
|
||||
G_LOG_LEVEL_WARNING = 1 << 4,
|
||||
G_LOG_LEVEL_MESSAGE = 1 << 5,
|
||||
G_LOG_LEVEL_INFO = 1 << 6,
|
||||
G_LOG_LEVEL_DEBUG = 1 << 7,
|
||||
|
||||
G_LOG_LEVEL_MASK = ~(G_LOG_FLAG_RECURSION | G_LOG_FLAG_FATAL)
|
||||
} GLogLevelFlags;
|
||||
|
||||
typedef struct _GList GList;
|
||||
|
||||
struct _GList
|
||||
{
|
||||
gpointer data;
|
||||
GList *next;
|
||||
GList *prev;
|
||||
};
|
||||
|
||||
typedef struct _GError GError;
|
||||
|
||||
struct _GError
|
||||
{
|
||||
/* blah */
|
||||
};
|
||||
|
||||
/* Dummied from sys/stat.h. */
|
||||
struct stat {};
|
||||
extern int stat (const char *path, struct stat *buf);
|
||||
|
||||
/* g_stat() can be used to check whether a given path is safe (i.e. exists).
|
||||
* This is not a full solution for sanitising user-provided paths, but goes a
|
||||
* long way, and is the best we can do without more context about how the path
|
||||
* is used. */
|
||||
typedef struct stat GStatBuf;
|
||||
#undef g_stat
|
||||
|
||||
int
|
||||
g_stat (const char *filename, GStatBuf *buf)
|
||||
{
|
||||
__coverity_tainted_string_sanitize_content__ (filename);
|
||||
return stat (filename, buf);
|
||||
}
|
||||
|
||||
/* g_path_skip_root() can be used to validate that a @file_name is absolute. It
|
||||
* returns %NULL otherwise. */
|
||||
const char *
|
||||
g_path_skip_root (const char *file_name)
|
||||
{
|
||||
int is_ok;
|
||||
if (is_ok)
|
||||
{
|
||||
__coverity_tainted_string_sanitize_content__ (file_name);
|
||||
return file_name;
|
||||
}
|
||||
else
|
||||
{
|
||||
return 0; /* NULL */
|
||||
}
|
||||
}
|
||||
|
||||
/* Tainted string sanitiser. */
|
||||
int
|
||||
g_action_name_is_valid (const char *action_name)
|
||||
{
|
||||
int is_ok;
|
||||
if (is_ok)
|
||||
{
|
||||
__coverity_tainted_string_sanitize_content__ (action_name);
|
||||
return 1; /* TRUE */
|
||||
}
|
||||
else
|
||||
{
|
||||
return 0; /* FALSE */
|
||||
}
|
||||
}
|
||||
|
||||
/* Treat this like an assert(0). */
|
||||
void
|
||||
g_return_if_fail_warning (const char *log_domain,
|
||||
const char *pretty_function,
|
||||
const char *expression)
|
||||
{
|
||||
__coverity_panic__();
|
||||
}
|
||||
|
||||
/* Treat this like an assert(0). */
|
||||
void
|
||||
g_log (const gchar *log_domain,
|
||||
GLogLevelFlags log_level,
|
||||
const gchar *format,
|
||||
...)
|
||||
{
|
||||
if (log_level & G_LOG_LEVEL_CRITICAL)
|
||||
__coverity_panic__ ();
|
||||
}
|
||||
|
||||
#define g_critical(...) __coverity_panic__ ();
|
||||
|
||||
/* Treat it as a memory sink to hide one-time allocation leaks. */
|
||||
void
|
||||
(g_once_init_leave) (volatile void *location,
|
||||
gsize result)
|
||||
{
|
||||
__coverity_escape__ (result);
|
||||
}
|
||||
|
||||
/* Coverity cannot model allocation management for linked lists, so just pretend
|
||||
* that it's a pass-through. */
|
||||
GList *
|
||||
g_list_reverse (GList *list)
|
||||
{
|
||||
return list;
|
||||
}
|
||||
|
||||
/* g_ascii_isspace() routinely throws data_index taint errors, saying that
|
||||
* tainted data is being used to index g_ascii_table. This is true, but the
|
||||
* table has defined values for all possible 8-bit indexes. */
|
||||
gboolean
|
||||
g_ascii_isspace (gchar c)
|
||||
{
|
||||
int is_space;
|
||||
__coverity_tainted_string_sink_content__ (c);
|
||||
if (is_space)
|
||||
return 1;
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Coverity treats byte-swapping operations as suspicious, and taints all data
|
||||
* which is byte-swapped (because it thinks it therefore probably comes from an
|
||||
* external source, which is reasonable). That is not the case for checksum
|
||||
* calculation, however.
|
||||
*
|
||||
* Since the definitions of these two functions depends on the host byte order,
|
||||
* just model them as no-ops. */
|
||||
void
|
||||
md5_byte_reverse (guchar *buffer,
|
||||
gulong length)
|
||||
{
|
||||
/* No-op. */
|
||||
}
|
||||
|
||||
void
|
||||
sha_byte_reverse (guint32 *buffer,
|
||||
gint length)
|
||||
{
|
||||
/* No-op. */
|
||||
}
|
||||
|
||||
/* Parse error printing does not care about sanitising the input. */
|
||||
gchar *
|
||||
g_variant_parse_error_print_context (GError *error,
|
||||
const gchar *source_str)
|
||||
{
|
||||
__coverity_tainted_data_sink__ (source_str);
|
||||
return __coverity_alloc_nosize__ ();
|
||||
}
|
||||
|
||||
/* Coverity somehow analyses G_LIKELY(x) as sometimes meaning !x, for example
|
||||
* when analysing g_try_realloc(). Ignore that. */
|
||||
#define G_LIKELY(x) x
|
||||
#define G_UNLIKELY(x) x
|
||||
|
||||
typedef struct {} DIR;
|
||||
typedef struct _GDir GDir;
|
||||
|
||||
struct _GDir
|
||||
{
|
||||
DIR *dirp;
|
||||
};
|
||||
|
||||
/* This is a private function to libglib, and Coverity can’t peek inside it when
|
||||
* analysing code in (say) GIO. */
|
||||
GDir *
|
||||
g_dir_new_from_dirp (gpointer dirp)
|
||||
{
|
||||
GDir *dir;
|
||||
|
||||
if (dirp == 0)
|
||||
__coverity_panic__();
|
||||
|
||||
dir = malloc (sizeof (GDir));
|
||||
dir->dirp = dirp;
|
||||
|
||||
return dir;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
FROM registry.gitlab.gnome.org/gnome/glib/fedora:v18
|
||||
|
||||
ARG COVERITY_SCAN_PROJECT_NAME
|
||||
ARG COVERITY_SCAN_TOKEN
|
||||
|
||||
RUN curl https://scan.coverity.com/download/cxx/linux64 \
|
||||
-o /tmp/cov-analysis-linux64.tgz \
|
||||
--form project="${COVERITY_SCAN_PROJECT_NAME}" \
|
||||
--form token="${COVERITY_SCAN_TOKEN}" \
|
||||
&& tar xfz /tmp/cov-analysis-linux64.tgz \
|
||||
&& rm /tmp/cov-analysis-linux64.tgz
|
|
@ -0,0 +1,20 @@
|
|||
[constants]
|
||||
ndk_path = '/opt/android-ndk'
|
||||
toolchain = ndk_path / 'toolchains/llvm/prebuilt/linux-x86_64'
|
||||
|
||||
[host_machine]
|
||||
system = 'android'
|
||||
cpu_family = 'aarch64'
|
||||
cpu = 'aarch64'
|
||||
endian = 'little'
|
||||
|
||||
[properties]
|
||||
sys_root = toolchain / 'sysroot'
|
||||
c_ld = 'gold'
|
||||
cpp_ld = 'gold'
|
||||
|
||||
[binaries]
|
||||
c = toolchain / 'bin/aarch64-linux-android31-clang'
|
||||
cpp = toolchain / 'bin/aarch64-linux-android31-clang++'
|
||||
ar = toolchain / 'bin/llvm-ar'
|
||||
strip = toolchain / 'bin/llvm-strip'
|
|
@ -0,0 +1,25 @@
|
|||
[host_machine]
|
||||
system = 'darwin'
|
||||
cpu_family = 'aarch64'
|
||||
cpu = 'arm64'
|
||||
endian = 'little'
|
||||
|
||||
[properties]
|
||||
c_args = ['-arch', 'arm64', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk', '-miphoneos-version-min=11.0']
|
||||
cpp_args = ['-stdlib=libc++', '-arch', 'arm64', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk', '-miphoneos-version-min=11.0']
|
||||
objc_args = ['-arch', 'arm64', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk', '-miphoneos-version-min=11.0']
|
||||
objcpp_args = ['-stdlib=libc++', '-arch', 'arm64', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk', '-miphoneos-version-min=11.0']
|
||||
c_link_args = ['-arch', 'arm64', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk', '-Wl,-iphoneos_version_min,11.0']
|
||||
cpp_link_args = ['-arch', 'arm64', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk', '-Wl,-iphoneos_version_min,11.0']
|
||||
objc_link_args = ['-arch', 'arm64', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk', '-Wl,-iphoneos_version_min,11.0']
|
||||
objcpp_link_args = ['-arch', 'arm64', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk', '-Wl,-iphoneos_version_min,11.0']
|
||||
growing_stack = true
|
||||
|
||||
|
||||
[binaries]
|
||||
c = ['clang']
|
||||
cpp = ['clang++']
|
||||
objc = ['clang']
|
||||
objcpp = ['clang++']
|
||||
ar = ['ar']
|
||||
strip = ['strip']
|
|
@ -0,0 +1,22 @@
|
|||
[host_machine]
|
||||
system = 'windows'
|
||||
cpu_family = 'x86_64'
|
||||
cpu = 'x86_64'
|
||||
endian = 'little'
|
||||
|
||||
# Fedora builds GCC with --enable-default-ssp by default, but mingw64 puts its
|
||||
# stack-protected functions in a separate library which needs to be linked
|
||||
# explicitly, hence this flag.
|
||||
[properties]
|
||||
c_args = []
|
||||
c_link_args = ['-fstack-protector']
|
||||
|
||||
[binaries]
|
||||
c = 'x86_64-w64-mingw32-gcc'
|
||||
cpp = 'x86_64-w64-mingw32-g++'
|
||||
ar = 'x86_64-w64-mingw32-ar'
|
||||
ld = 'x86_64-w64-mingw32-ld'
|
||||
objcopy = 'x86_64-w64-mingw32-objcopy'
|
||||
strip = 'x86_64-w64-mingw32-strip'
|
||||
pkgconfig = 'x86_64-w64-mingw32-pkg-config'
|
||||
windres = 'x86_64-w64-mingw32-windres'
|
|
@ -0,0 +1,81 @@
|
|||
FROM debian:bullseye
|
||||
|
||||
RUN apt-get update -qq && apt-get install --no-install-recommends -qq -y \
|
||||
bindfs \
|
||||
black \
|
||||
clang \
|
||||
clang-tools \
|
||||
clang-format \
|
||||
dbus \
|
||||
desktop-file-utils \
|
||||
elfutils \
|
||||
findutils \
|
||||
flake8 \
|
||||
fuse \
|
||||
gcc \
|
||||
gdb \
|
||||
g++ \
|
||||
gettext \
|
||||
git \
|
||||
libc6-dev \
|
||||
gtk-doc-tools \
|
||||
itstool \
|
||||
lcov \
|
||||
libattr1-dev \
|
||||
libdbus-1-dev \
|
||||
libelf-dev \
|
||||
libffi-dev \
|
||||
libmount-dev \
|
||||
libpcre2-dev \
|
||||
libselinux1-dev \
|
||||
libxml2-utils \
|
||||
libxslt1-dev \
|
||||
libz3-dev \
|
||||
locales \
|
||||
ninja-build \
|
||||
python3 \
|
||||
python3-pip \
|
||||
python3-setuptools \
|
||||
python3-wheel \
|
||||
shared-mime-info \
|
||||
shellcheck \
|
||||
systemtap-sdt-dev \
|
||||
unzip \
|
||||
wget \
|
||||
xsltproc \
|
||||
xz-utils \
|
||||
zlib1g-dev \
|
||||
&& rm -rf /usr/share/doc/* /usr/share/man/*
|
||||
|
||||
# Locale for our build
|
||||
RUN locale-gen C.UTF-8 && /usr/sbin/update-locale LANG=C.UTF-8
|
||||
|
||||
# Locales for our tests
|
||||
RUN locale-gen de_DE.UTF-8 \
|
||||
&& locale-gen el_GR.UTF-8 \
|
||||
&& locale-gen en_US.UTF-8 \
|
||||
&& locale-gen es_ES.UTF-8 \
|
||||
&& locale-gen fa_IR.UTF-8 \
|
||||
&& locale-gen fr_FR.UTF-8 \
|
||||
&& locale-gen hr_HR.UTF-8 \
|
||||
&& locale-gen ja_JP.UTF-8 \
|
||||
&& locale-gen lt_LT.UTF-8 \
|
||||
&& locale-gen pl_PL.UTF-8 \
|
||||
&& locale-gen ru_RU.UTF-8 \
|
||||
&& locale-gen tr_TR.UTF-8
|
||||
|
||||
ENV LANG=C.UTF-8 LANGUAGE=C.UTF-8 LC_ALL=C.UTF-8
|
||||
|
||||
RUN pip3 install meson==0.60.3
|
||||
|
||||
ARG HOST_USER_ID=5555
|
||||
ENV HOST_USER_ID ${HOST_USER_ID}
|
||||
RUN useradd -u $HOST_USER_ID -ms /bin/bash user
|
||||
|
||||
USER user
|
||||
WORKDIR /home/user
|
||||
|
||||
COPY cache-subprojects.sh .
|
||||
RUN ./cache-subprojects.sh
|
||||
|
||||
ENV LANG=C.UTF-8 LANGUAGE=C.UTF-8 LC_ALL=C.UTF-8
|
|
@ -0,0 +1,101 @@
|
|||
FROM fedora:34
|
||||
|
||||
RUN dnf -y update \
|
||||
&& dnf -y install \
|
||||
bindfs \
|
||||
clang \
|
||||
clang-analyzer \
|
||||
dbus-daemon \
|
||||
dbus-devel \
|
||||
desktop-file-utils \
|
||||
elfutils-libelf-devel \
|
||||
findutils \
|
||||
fuse \
|
||||
gcc \
|
||||
gcc-c++ \
|
||||
gdb \
|
||||
gettext \
|
||||
git \
|
||||
glibc-devel \
|
||||
glibc-headers \
|
||||
glibc-langpack-de \
|
||||
glibc-langpack-el \
|
||||
glibc-langpack-el \
|
||||
glibc-langpack-en \
|
||||
glibc-langpack-es \
|
||||
glibc-langpack-es \
|
||||
glibc-langpack-fa \
|
||||
glibc-langpack-fr \
|
||||
glibc-langpack-hr \
|
||||
glibc-langpack-ja \
|
||||
glibc-langpack-lt \
|
||||
glibc-langpack-pl \
|
||||
glibc-langpack-ru \
|
||||
glibc-langpack-tr \
|
||||
"gnome-desktop-testing >= 2018.1" \
|
||||
gtk-doc \
|
||||
itstool \
|
||||
lcov \
|
||||
libattr-devel \
|
||||
libffi-devel \
|
||||
libmount-devel \
|
||||
libselinux-devel \
|
||||
libxslt \
|
||||
ncurses-compat-libs \
|
||||
ninja-build \
|
||||
pcre2-devel \
|
||||
"python3-dbusmock >= 0.18.3-2" \
|
||||
python3-pip \
|
||||
python3-pygments \
|
||||
python3-wheel \
|
||||
shared-mime-info \
|
||||
systemtap-sdt-devel \
|
||||
unzip \
|
||||
valgrind \
|
||||
wget \
|
||||
xdg-desktop-portal \
|
||||
xz \
|
||||
zlib-devel \
|
||||
&& dnf -y install \
|
||||
meson \
|
||||
flex \
|
||||
bison \
|
||||
python3-devel \
|
||||
autoconf \
|
||||
automake \
|
||||
gettext-devel \
|
||||
libtool \
|
||||
diffutils \
|
||||
fontconfig-devel \
|
||||
json-glib-devel \
|
||||
geoclue2-devel \
|
||||
pipewire-devel \
|
||||
fuse-devel \
|
||||
make \
|
||||
&& dnf clean all
|
||||
|
||||
RUN pip3 install meson==0.60.3
|
||||
|
||||
COPY install-gitlab-cobertura-tools.sh .
|
||||
RUN ./install-gitlab-cobertura-tools.sh
|
||||
|
||||
# Set /etc/machine-id as it’s needed for some D-Bus tests
|
||||
RUN systemd-machine-id-setup
|
||||
|
||||
# Enable sudo for wheel users
|
||||
RUN sed -i -e 's/# %wheel/%wheel/' -e '0,/%wheel/{s/%wheel/# %wheel/}' /etc/sudoers
|
||||
|
||||
ARG HOST_USER_ID=5555
|
||||
ENV HOST_USER_ID ${HOST_USER_ID}
|
||||
RUN useradd -u $HOST_USER_ID -G wheel -ms /bin/bash user
|
||||
|
||||
COPY android-ndk.sh .
|
||||
RUN ./android-ndk.sh
|
||||
|
||||
USER user
|
||||
WORKDIR /home/user
|
||||
|
||||
COPY cache-subprojects.sh .
|
||||
RUN ./cache-subprojects.sh
|
||||
|
||||
ENV LANG C.UTF-8
|
|
@ -0,0 +1,26 @@
|
|||
import sys
|
||||
import os
|
||||
import io
|
||||
import re
|
||||
|
||||
|
||||
def main(argv):
|
||||
# Fix paths in lcov files generated on a Windows host so they match our
|
||||
# current source layout.
|
||||
paths = argv[1:]
|
||||
|
||||
for path in paths:
|
||||
print("cov-fixup:", path)
|
||||
text = io.open(path, "r", encoding="utf-8").read()
|
||||
text = text.replace("\\\\", "/")
|
||||
old_root = re.search(":(.*?)/glib/.*?$", text, re.MULTILINE).group(1)
|
||||
new_root = os.path.dirname(os.getcwd())
|
||||
if old_root != new_root:
|
||||
print("replacing %r with %r" % (old_root, new_root))
|
||||
text = text.replace(old_root, new_root)
|
||||
with io.open(path, "w", encoding="utf-8") as h:
|
||||
h.write(text)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main(sys.argv))
|
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
# We need cobertura reports for gitlab-ci coverage_report,
|
||||
# so this scripts helps us doing that until we switch to gcovr
|
||||
pip3 install lcov-cobertura==2.0.2
|
||||
|
||||
# We need to split the coverage files, see:
|
||||
# https://gitlab.com/gitlab-org/gitlab/-/issues/328772#note_840831654
|
||||
SPLIT_COBERTURA_SHA512="8388ca3928a27f2ef945a7d45f1dec7253c53742a0dd1f6a3b4a07c0926b24d77f8b5c51fc7920cb07320879b7b89b0e0e13d2101117403b8c052c72e28dbcb7"
|
||||
wget -O /usr/local/bin/cobertura-split-by-package.py \
|
||||
https://gitlab.com/gitlab-org/gitlab/uploads/9d31762a33a10158f5d79d46f4102dfb/split-by-package.py
|
||||
echo "${SPLIT_COBERTURA_SHA512} /usr/local/bin/cobertura-split-by-package.py" | sha512sum -c
|
||||
chmod +x /usr/local/bin/cobertura-split-by-package.py
|
||||
sed -i "s,\(/usr/bin/env python\).*,\13," \
|
||||
/usr/local/bin/cobertura-split-by-package.py
|
|
@ -0,0 +1,72 @@
|
|||
FROM fedora:34
|
||||
|
||||
RUN dnf -y install \
|
||||
bindfs \
|
||||
clang \
|
||||
clang-analyzer \
|
||||
desktop-file-utils \
|
||||
elfutils-libelf-devel \
|
||||
findutils \
|
||||
fuse \
|
||||
gcc \
|
||||
gcc-c++ \
|
||||
gettext \
|
||||
git \
|
||||
glibc-devel \
|
||||
glibc-headers \
|
||||
glibc-langpack-de \
|
||||
glibc-langpack-el \
|
||||
glibc-langpack-el \
|
||||
glibc-langpack-en \
|
||||
glibc-langpack-es \
|
||||
glibc-langpack-es \
|
||||
glibc-langpack-fa \
|
||||
glibc-langpack-fr \
|
||||
glibc-langpack-hr \
|
||||
glibc-langpack-ja \
|
||||
glibc-langpack-lt \
|
||||
glibc-langpack-pl \
|
||||
glibc-langpack-ru \
|
||||
glibc-langpack-tr \
|
||||
gtk-doc \
|
||||
itstool \
|
||||
lcov \
|
||||
libattr-devel \
|
||||
libffi-devel \
|
||||
libmount-devel \
|
||||
libselinux-devel \
|
||||
libxslt \
|
||||
mingw64-gcc \
|
||||
mingw64-gcc-c++ \
|
||||
mingw64-gettext \
|
||||
mingw64-libffi \
|
||||
mingw64-zlib \
|
||||
ncurses-compat-libs \
|
||||
ninja-build \
|
||||
pcre2-devel \
|
||||
python3 \
|
||||
python3-pip \
|
||||
python3-wheel \
|
||||
systemtap-sdt-devel \
|
||||
unzip \
|
||||
wget \
|
||||
xz \
|
||||
zlib-devel \
|
||||
&& dnf clean all
|
||||
|
||||
WORKDIR /opt
|
||||
COPY cross_file_mingw64.txt /opt
|
||||
|
||||
RUN pip3 install meson==0.60.3
|
||||
|
||||
ARG HOST_USER_ID=5555
|
||||
ENV HOST_USER_ID ${HOST_USER_ID}
|
||||
RUN useradd -u $HOST_USER_ID -ms /bin/bash user
|
||||
|
||||
USER user
|
||||
WORKDIR /home/user
|
||||
|
||||
COPY cache-subprojects.sh .
|
||||
RUN ./cache-subprojects.sh
|
||||
|
||||
ENV LANG C.UTF-8
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
# shellcheck disable=SC2046
|
||||
black --diff --check $(git ls-files '*.py')
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
source .gitlab-ci/search-common-ancestor.sh
|
||||
|
||||
./.gitlab-ci/check-todos.py "${newest_common_ancestor_sha}"
|
|
@ -0,0 +1,136 @@
|
|||
#!/bin/bash
|
||||
|
||||
read_arg() {
|
||||
# $1 = arg name
|
||||
# $2 = arg value
|
||||
# $3 = arg parameter
|
||||
local rematch='^[^=]*=(.*)$'
|
||||
if [[ $2 =~ $rematch ]]; then
|
||||
read -r "$1" <<< "${BASH_REMATCH[1]}"
|
||||
else
|
||||
read -r "$1" <<< "$3"
|
||||
# There is no way to shift our callers args, so
|
||||
# return 1 to indicate they should do it instead.
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
SUDO_CMD="sudo"
|
||||
if docker -v |& grep -q podman; then
|
||||
# Using podman
|
||||
SUDO_CMD=""
|
||||
# Docker is actually implemented by podman, and its OCI output
|
||||
# is incompatible with some of the dockerd instances on GitLab
|
||||
# CI runners.
|
||||
export BUILDAH_FORMAT=docker
|
||||
elif getent group docker | grep -q "\b${USER}\b"; then
|
||||
SUDO_CMD=""
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
base=""
|
||||
base_version=""
|
||||
build=0
|
||||
run=0
|
||||
push=0
|
||||
list=0
|
||||
print_help=0
|
||||
no_login=0
|
||||
|
||||
while (($# > 0)); do
|
||||
case "${1%%=*}" in
|
||||
build) build=1;;
|
||||
run) run=1;;
|
||||
push) push=1;;
|
||||
list) list=1;;
|
||||
help) print_help=1;;
|
||||
--base|-b) read_arg base "$@" || shift;;
|
||||
--base-version) read_arg base_version "$@" || shift;;
|
||||
--no-login) no_login=1;;
|
||||
*) echo -e "\\e[1;31mERROR\\e[0m: Unknown option '$1'"; exit 1;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
if [ $print_help == 1 ]; then
|
||||
echo "$0 - Build and run Docker images"
|
||||
echo ""
|
||||
echo "Usage: $0 <command> [options] [basename]"
|
||||
echo ""
|
||||
echo "Available commands"
|
||||
echo ""
|
||||
echo " build --base=<BASENAME> - Build Docker image <BASENAME>.Dockerfile"
|
||||
echo " run --base=<BASENAME> - Run Docker image <BASENAME>"
|
||||
echo " push --base=<BASENAME> - Push Docker image <BASENAME> to the registry"
|
||||
echo " list - List available images"
|
||||
echo " help - This help message"
|
||||
echo ""
|
||||
exit 0
|
||||
fi
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
if [ $list == 1 ]; then
|
||||
echo "Available Docker images:"
|
||||
for f in *.Dockerfile; do
|
||||
filename=$( basename -- "$f" )
|
||||
basename="${filename%.*}"
|
||||
|
||||
echo -e " \\e[1;39m$basename\\e[0m"
|
||||
done
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# All commands after this require --base to be set
|
||||
if [ -z "${base}" ]; then
|
||||
echo "Usage: $0 <command>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -f "$base.Dockerfile" ]; then
|
||||
echo -e "\\e[1;31mERROR\\e[0m: Dockerfile for '$base' not found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -z "${base_version}" ]; then
|
||||
base_version="latest"
|
||||
else
|
||||
base_version="v$base_version"
|
||||
fi
|
||||
|
||||
TAG="registry.gitlab.gnome.org/gnome/glib/${base}:${base_version}"
|
||||
|
||||
if [ $build == 1 ]; then
|
||||
echo -e "\\e[1;32mBUILDING\\e[0m: ${base} as ${TAG}"
|
||||
$SUDO_CMD docker build \
|
||||
--build-arg HOST_USER_ID="$UID" \
|
||||
--build-arg COVERITY_SCAN_PROJECT_NAME="${COVERITY_SCAN_PROJECT_NAME}" \
|
||||
--build-arg COVERITY_SCAN_TOKEN="${COVERITY_SCAN_TOKEN}" \
|
||||
--tag "${TAG}" \
|
||||
--file "${base}.Dockerfile" .
|
||||
exit $?
|
||||
fi
|
||||
|
||||
if [ $push == 1 ]; then
|
||||
echo -e "\\e[1;32mPUSHING\\e[0m: ${base} as ${TAG}"
|
||||
|
||||
if [ $no_login == 0 ]; then
|
||||
$SUDO_CMD docker login registry.gitlab.gnome.org
|
||||
fi
|
||||
|
||||
$SUDO_CMD docker push $TAG
|
||||
exit $?
|
||||
fi
|
||||
|
||||
if [ $run == 1 ]; then
|
||||
echo -e "\\e[1;32mRUNNING\\e[0m: ${base} as ${TAG}"
|
||||
$SUDO_CMD docker run \
|
||||
--rm \
|
||||
--volume "$(pwd)/..:/home/user/app" \
|
||||
--workdir "/home/user/app" \
|
||||
--tty \
|
||||
--interactive "${TAG}" \
|
||||
bash
|
||||
exit $?
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
# Disable formatting warnings in flake8, as we use `black` to handle that.
|
||||
formatting_warnings=E101,E111,E114,E115,E116,E117,E12,E13,E2,E3,E401,E5,E70,W1,W2,W3,W5
|
||||
|
||||
# shellcheck disable=SC2046
|
||||
flake8 --max-line-length=88 --ignore="$formatting_warnings" $(git ls-files '*.py')
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
# Ignoring third-party directories that we don't want to parse
|
||||
# shellcheck disable=SC2046
|
||||
shellcheck $(git ls-files '*.sh' | grep -Ev "glib/libcharset|glib/dirent")
|
|
@ -0,0 +1,32 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
ancestor_horizon=28 # days (4 weeks)
|
||||
|
||||
# Wrap everything in a subshell so we can propagate the exit status.
|
||||
(
|
||||
|
||||
source .gitlab-ci/search-common-ancestor.sh
|
||||
|
||||
git diff -U0 --no-color "${newest_common_ancestor_sha}" | .gitlab-ci/clang-format-diff.py -binary "clang-format-11" -p1
|
||||
|
||||
)
|
||||
exit_status=$?
|
||||
|
||||
# The style check is not infallible. The clang-format configuration cannot
|
||||
# perfectly describe GLib’s coding style: in particular, it cannot align
|
||||
# function arguments. The documented coding style for GLib takes priority over
|
||||
# clang-format suggestions. Hopefully we can eventually improve clang-format to
|
||||
# be configurable enough for our coding style. That’s why this CI check is OK
|
||||
# to fail: the idea is that people can look through the output and ignore it if
|
||||
# it’s wrong. (That situation can also happen if someone touches pre-existing
|
||||
# badly formatted code and it doesn’t make sense to tidy up the wider coding
|
||||
# style with the changes they’re making.)
|
||||
echo ""
|
||||
echo "Note that clang-format output is advisory and cannot always match the GLib coding style, documented at"
|
||||
echo " https://gitlab.gnome.org/GNOME/gtk/blob/HEAD/docs/CODING-STYLE.md"
|
||||
echo "Warnings from this tool can be ignored in favour of the documented coding style,"
|
||||
echo "or in favour of matching the style of existing surrounding code."
|
||||
|
||||
exit ${exit_status}
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
./.gitlab-ci/check-missing-install-tag.py _build
|
||||
|
||||
meson test \
|
||||
-C _build \
|
||||
--timeout-multiplier "${MESON_TEST_TIMEOUT_MULTIPLIER}" \
|
||||
--no-suite flaky \
|
||||
"$@"
|
|
@ -0,0 +1,42 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
ancestor_horizon=28 # days (4 weeks)
|
||||
|
||||
# Recently, git is picky about directory ownership. Tell it not to worry.
|
||||
git config --global --add safe.directory "$PWD"
|
||||
|
||||
# We need to add a new remote for the upstream target branch, since this script
|
||||
# could be running in a personal fork of the repository which has out of date
|
||||
# branches.
|
||||
#
|
||||
# Limit the fetch to a certain date horizon to limit the amount of data we get.
|
||||
# If the branch was forked from origin/main before this horizon, it should
|
||||
# probably be rebased.
|
||||
if ! git ls-remote --exit-code upstream >/dev/null 2>&1 ; then
|
||||
git remote add upstream https://gitlab.gnome.org/GNOME/glib.git
|
||||
fi
|
||||
|
||||
# Work out the newest common ancestor between the detached HEAD that this CI job
|
||||
# has checked out, and the upstream target branch (which will typically be
|
||||
# `upstream/main` or `upstream/glib-2-62`).
|
||||
# `${CI_MERGE_REQUEST_TARGET_BRANCH_NAME}` or `${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME}`
|
||||
# are only defined if we’re running in a merge request pipeline,
|
||||
# fall back to `${CI_DEFAULT_BRANCH}` or `${CI_COMMIT_BRANCH}` respectively
|
||||
# otherwise.
|
||||
|
||||
source_branch="${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME:-${CI_COMMIT_BRANCH}}"
|
||||
target_branch="${CI_MERGE_REQUEST_TARGET_BRANCH_NAME:-${CI_DEFAULT_BRANCH}}"
|
||||
|
||||
git fetch --shallow-since="$(date --date="${ancestor_horizon} days ago" +%Y-%m-%d)" origin "${source_branch}"
|
||||
git fetch --shallow-since="$(date --date="${ancestor_horizon} days ago" +%Y-%m-%d)" upstream "${target_branch}"
|
||||
|
||||
newest_common_ancestor_sha=$(git merge-base "upstream/${target_branch}" "origin/${source_branch}")
|
||||
|
||||
if [ -z "${newest_common_ancestor_sha}" ]; then
|
||||
echo "Couldn’t find common ancestor with upstream main branch. This typically"
|
||||
echo "happens if you branched from main a long time ago. Please update"
|
||||
echo "your clone, rebase, and re-push your branch."
|
||||
exit 1
|
||||
fi
|
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -eux -o pipefail
|
||||
|
||||
id || :
|
||||
capsh --print || :
|
||||
env -0 | sort -z | perl -pe 's/\0/\n/g' || :
|
||||
setpriv --dump || :
|
||||
ulimit -a || :
|
||||
cat /proc/self/status || :
|
||||
cat /proc/self/mountinfo || :
|
||||
stat /etc/machine-id || :
|
||||
stat /var/lib/dbus/machine-id || :
|
|
@ -0,0 +1,27 @@
|
|||
@echo on
|
||||
:: vcvarsall.bat sets various env vars like PATH, INCLUDE, LIB, LIBPATH for the
|
||||
:: specified build architecture
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" x64
|
||||
|
||||
:: Remove quotes from script args
|
||||
setlocal enabledelayedexpansion
|
||||
set args=
|
||||
for %%x in (%*) do (
|
||||
set args=!args! %%~x
|
||||
)
|
||||
set args=%args:~1%
|
||||
|
||||
:: FIXME: make warnings fatal
|
||||
pip3 install --upgrade --user meson==0.60.3 || goto :error
|
||||
meson %args% _build || goto :error
|
||||
python .gitlab-ci/check-missing-install-tag.py _build || goto :error
|
||||
ninja -C _build || goto :error
|
||||
|
||||
:: FIXME: dont ignore test errors
|
||||
meson test -C _build --timeout-multiplier %MESON_TEST_TIMEOUT_MULTIPLIER% --no-suite flaky
|
||||
|
||||
:: FIXME: can we get code coverage support?
|
||||
|
||||
goto :EOF
|
||||
:error
|
||||
exit /b 1
|
|
@ -0,0 +1,61 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
export PATH="/c/msys64/$MSYSTEM/bin:$PATH"
|
||||
if [[ "$MSYSTEM" == "MINGW32" ]]; then
|
||||
export MSYS2_ARCH="i686"
|
||||
else
|
||||
export MSYS2_ARCH="x86_64"
|
||||
fi
|
||||
|
||||
pacman --noconfirm -Suy
|
||||
|
||||
pacman --noconfirm -S --needed \
|
||||
base-devel \
|
||||
lcov \
|
||||
mingw-w64-$MSYS2_ARCH-ccache \
|
||||
mingw-w64-$MSYS2_ARCH-gettext \
|
||||
mingw-w64-$MSYS2_ARCH-libffi \
|
||||
mingw-w64-$MSYS2_ARCH-meson \
|
||||
mingw-w64-$MSYS2_ARCH-pcre2 \
|
||||
mingw-w64-$MSYS2_ARCH-python3 \
|
||||
mingw-w64-$MSYS2_ARCH-python-pip \
|
||||
mingw-w64-$MSYS2_ARCH-toolchain \
|
||||
mingw-w64-$MSYS2_ARCH-zlib \
|
||||
mingw-w64-$MSYS2_ARCH-libelf
|
||||
|
||||
mkdir -p _coverage
|
||||
mkdir -p _ccache
|
||||
CCACHE_BASEDIR="$(pwd)"
|
||||
CCACHE_DIR="${CCACHE_BASEDIR}/_ccache"
|
||||
export CCACHE_BASEDIR CCACHE_DIR
|
||||
|
||||
pip3 install --upgrade --user meson==0.60.3
|
||||
|
||||
PATH="$(cygpath "$USERPROFILE")/.local/bin:$HOME/.local/bin:$PATH"
|
||||
CFLAGS="-coverage -ftest-coverage -fprofile-arcs"
|
||||
DIR="$(pwd)"
|
||||
export PATH CFLAGS
|
||||
|
||||
meson --werror --buildtype debug _build
|
||||
cd _build
|
||||
ninja
|
||||
|
||||
lcov \
|
||||
--quiet \
|
||||
--config-file "${DIR}"/.lcovrc \
|
||||
--directory "${DIR}/_build" \
|
||||
--capture \
|
||||
--initial \
|
||||
--output-file "${DIR}/_coverage/${CI_JOB_NAME}-baseline.lcov"
|
||||
|
||||
# FIXME: fix the test suite
|
||||
meson test --timeout-multiplier "${MESON_TEST_TIMEOUT_MULTIPLIER}" --no-suite flaky || true
|
||||
|
||||
lcov \
|
||||
--quiet \
|
||||
--config-file "${DIR}"/.lcovrc \
|
||||
--directory "${DIR}/_build" \
|
||||
--capture \
|
||||
--output-file "${DIR}/_coverage/${CI_JOB_NAME}.lcov"
|
|
@ -0,0 +1,5 @@
|
|||
[submodule "subprojects/gvdb"]
|
||||
path = subprojects/gvdb
|
||||
url = https://gitlab.gnome.org/GNOME/gvdb.git
|
||||
branch = 0854af0fdb6d527a8d1999835ac2c5059976c210
|
||||
shallow = true
|
|
@ -0,0 +1,13 @@
|
|||
# lcov and genhtml configuration
|
||||
# See http://ltp.sourceforge.net/coverage/lcov/lcovrc.5.php
|
||||
|
||||
# Always enable branch coverage
|
||||
lcov_branch_coverage = 1
|
||||
|
||||
# Exclude precondition assertions, as we can never reasonably get full branch
|
||||
# coverage of them, as they should never normally fail.
|
||||
# See https://github.com/linux-test-project/lcov/issues/44
|
||||
lcov_excl_br_line = LCOV_EXCL_BR_LINE|g_return_if_fail|g_return_val_if_fail|g_assert|g_assert_
|
||||
|
||||
# Similarly for unreachable assertions.
|
||||
lcov_excl_line = LCOV_EXCL_LINE|g_return_if_reached|g_return_val_if_reached|g_assert_not_reached
|
|
@ -0,0 +1,36 @@
|
|||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: GLib
|
||||
Upstream-Contact: https://gitlab.gnome.org/GNOME/glib/-/issues
|
||||
Source: https://gitlab.gnome.org/GNOME/glib/
|
||||
|
||||
# These test files are too simple to be copyrightable, but adding
|
||||
# copyright/licensing headers to them (or beside them in a .license file) may
|
||||
# affect the tests
|
||||
Files:
|
||||
fuzzing/*.corpus
|
||||
fuzzing/*.dict
|
||||
gio/tests/cert-tests/*.p12
|
||||
gio/tests/cert-tests/*.pem
|
||||
gio/tests/desktop-files/**.desktop
|
||||
gio/tests/schema-tests/*.gschema.xml
|
||||
gio/tests/thumbnails/*.png
|
||||
glib/tests/bookmarks/*.xbel
|
||||
glib/tests/markups/*.cdata-as-text
|
||||
glib/tests/markups/*.expected
|
||||
glib/tests/markups/*.gmarkup
|
||||
Copyright: See individual files
|
||||
License: CC0-1.0
|
||||
|
||||
# Translation files are explicitly contributed under the license of the project,
|
||||
# but by multiple authors
|
||||
Files: po/*.po
|
||||
Copyright: See individual files
|
||||
License: LGPL-2.1-or-later
|
||||
|
||||
# Subproject wrap files are too simple to be copyrightable, but adding
|
||||
# copyright/licensing headers to them will get lost when they’re next updated
|
||||
# from wrapdb
|
||||
Files:
|
||||
subprojects/*.wrap
|
||||
Copyright: Meson Wrap Database (wrapdb) contributors
|
||||
License: CC0-1.0
|
40
AUTHORS
40
AUTHORS
|
@ -1,40 +0,0 @@
|
|||
Below are just a few of the people who have contributed
|
||||
to GLib. Please don't mail these people about problems you
|
||||
have with GLib; see the README.md file for information about
|
||||
filing bugs and submitting changes.
|
||||
|
||||
GLib-2.0 Team
|
||||
-------------
|
||||
Hans Breuer <hans@breuer.org>
|
||||
Matthias Clasen <mclasen@redhat.com>
|
||||
Tor Lillqvist <tml@iki.fi>
|
||||
Tim Janik <timj@gtk.org>
|
||||
Havoc Pennington <hp@redhat.com>
|
||||
Ron Steinke <rsteinke@w-link.net>
|
||||
Owen Taylor <otaylor@redhat.com>
|
||||
Sebastian Wilhelmi <seppi@seppi.de>
|
||||
|
||||
GLib-1.2 Team
|
||||
-------------
|
||||
Shawn T. Amundson <amundson@gimp.org>
|
||||
Jeff Garzik <jgarzik@pobox.com>
|
||||
Raja R Harinath <harinath@cs.umn.edu>
|
||||
Tim Janik <timj@gtk.org>
|
||||
Elliot Lee <sopwith@redhat.com>
|
||||
Tor Lillqvist <tml@iki.fi>
|
||||
Paolo Molaro <lupus@debian.org>
|
||||
Havoc Pennington <hp@pobox.com>
|
||||
Manish Singh <yosh@gimp.org>
|
||||
Owen Taylor <otaylor@gtk.org>
|
||||
Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
The random number generator "Mersenne Twister", which is used by GLib,
|
||||
was developed and originally coded by:
|
||||
Makoto Matsumoto <matumoto@math.keio.ac.jp>
|
||||
Takuji Nishimura <nisimura@math.keio.ac.jp>
|
||||
|
||||
Original Authors
|
||||
----------------
|
||||
Peter Mattis <petm@xcf.berkeley.edu>
|
||||
Spencer Kimball <spencer@xcf.berkeley.edu>
|
||||
Josh MacDonald <jmacd@xcf.berkeley.edu>
|
|
@ -0,0 +1,5 @@
|
|||
Code of Conduct
|
||||
===
|
||||
|
||||
GLib follows the GNOME Code of Conduct, which is documented here:
|
||||
https://wiki.gnome.org/Foundation/CodeOfConduct
|
|
@ -95,7 +95,8 @@ they are imported into GLib and marked as stable.
|
|||
|
||||
Each feature should also come fully documented, and with tests which approach
|
||||
full branch coverage of the new code. GLib’s CI system generates code coverage
|
||||
reports which are viewable for each merge request.
|
||||
reports which are viewable for each merge request. See
|
||||
[the testing policy](./docs/testing.md) for more details.
|
||||
|
||||
If proposing a large feature or change, it’s better to discuss it (on the
|
||||
`#gtk` IRC channel or on [Discourse](https://discourse.gnome.org) before
|
||||
|
@ -256,7 +257,7 @@ to avoid unnecessary breakage, and to take advantage of the knowledge about GLib
|
|||
that has been built up over the years, we’d like to ask people contributing to
|
||||
GLib to follow a few rules:
|
||||
|
||||
0. Never push to the `master` branch, or any stable branches, directly; you
|
||||
0. Never push to the `main` branch, or any stable branches, directly; you
|
||||
should always go through a merge request, to ensure that the code is
|
||||
tested on the CI infrastructure at the very least. A merge request is
|
||||
also the proper place to get a comprehensive code review from the core
|
||||
|
|
502
COPYING
502
COPYING
|
@ -1,502 +0,0 @@
|
|||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
Version 2.1, February 1999
|
||||
|
||||
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
[This is the first released version of the Lesser GPL. It also counts
|
||||
as the successor of the GNU Library Public License, version 2, hence
|
||||
the version number 2.1.]
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
Licenses are intended to guarantee your freedom to share and change
|
||||
free software--to make sure the software is free for all its users.
|
||||
|
||||
This license, the Lesser General Public License, applies to some
|
||||
specially designated software packages--typically libraries--of the
|
||||
Free Software Foundation and other authors who decide to use it. You
|
||||
can use it too, but we suggest you first think carefully about whether
|
||||
this license or the ordinary General Public License is the better
|
||||
strategy to use in any particular case, based on the explanations below.
|
||||
|
||||
When we speak of free software, we are referring to freedom of use,
|
||||
not price. Our General Public Licenses are designed to make sure that
|
||||
you have the freedom to distribute copies of free software (and charge
|
||||
for this service if you wish); that you receive source code or can get
|
||||
it if you want it; that you can change the software and use pieces of
|
||||
it in new free programs; and that you are informed that you can do
|
||||
these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
distributors to deny you these rights or to ask you to surrender these
|
||||
rights. These restrictions translate to certain responsibilities for
|
||||
you if you distribute copies of the library or if you modify it.
|
||||
|
||||
For example, if you distribute copies of the library, whether gratis
|
||||
or for a fee, you must give the recipients all the rights that we gave
|
||||
you. You must make sure that they, too, receive or can get the source
|
||||
code. If you link other code with the library, you must provide
|
||||
complete object files to the recipients, so that they can relink them
|
||||
with the library after making changes to the library and recompiling
|
||||
it. And you must show them these terms so they know their rights.
|
||||
|
||||
We protect your rights with a two-step method: (1) we copyright the
|
||||
library, and (2) we offer you this license, which gives you legal
|
||||
permission to copy, distribute and/or modify the library.
|
||||
|
||||
To protect each distributor, we want to make it very clear that
|
||||
there is no warranty for the free library. Also, if the library is
|
||||
modified by someone else and passed on, the recipients should know
|
||||
that what they have is not the original version, so that the original
|
||||
author's reputation will not be affected by problems that might be
|
||||
introduced by others.
|
||||
|
||||
Finally, software patents pose a constant threat to the existence of
|
||||
any free program. We wish to make sure that a company cannot
|
||||
effectively restrict the users of a free program by obtaining a
|
||||
restrictive license from a patent holder. Therefore, we insist that
|
||||
any patent license obtained for a version of the library must be
|
||||
consistent with the full freedom of use specified in this license.
|
||||
|
||||
Most GNU software, including some libraries, is covered by the
|
||||
ordinary GNU General Public License. This license, the GNU Lesser
|
||||
General Public License, applies to certain designated libraries, and
|
||||
is quite different from the ordinary General Public License. We use
|
||||
this license for certain libraries in order to permit linking those
|
||||
libraries into non-free programs.
|
||||
|
||||
When a program is linked with a library, whether statically or using
|
||||
a shared library, the combination of the two is legally speaking a
|
||||
combined work, a derivative of the original library. The ordinary
|
||||
General Public License therefore permits such linking only if the
|
||||
entire combination fits its criteria of freedom. The Lesser General
|
||||
Public License permits more lax criteria for linking other code with
|
||||
the library.
|
||||
|
||||
We call this license the "Lesser" General Public License because it
|
||||
does Less to protect the user's freedom than the ordinary General
|
||||
Public License. It also provides other free software developers Less
|
||||
of an advantage over competing non-free programs. These disadvantages
|
||||
are the reason we use the ordinary General Public License for many
|
||||
libraries. However, the Lesser license provides advantages in certain
|
||||
special circumstances.
|
||||
|
||||
For example, on rare occasions, there may be a special need to
|
||||
encourage the widest possible use of a certain library, so that it becomes
|
||||
a de-facto standard. To achieve this, non-free programs must be
|
||||
allowed to use the library. A more frequent case is that a free
|
||||
library does the same job as widely used non-free libraries. In this
|
||||
case, there is little to gain by limiting the free library to free
|
||||
software only, so we use the Lesser General Public License.
|
||||
|
||||
In other cases, permission to use a particular library in non-free
|
||||
programs enables a greater number of people to use a large body of
|
||||
free software. For example, permission to use the GNU C Library in
|
||||
non-free programs enables many more people to use the whole GNU
|
||||
operating system, as well as its variant, the GNU/Linux operating
|
||||
system.
|
||||
|
||||
Although the Lesser General Public License is Less protective of the
|
||||
users' freedom, it does ensure that the user of a program that is
|
||||
linked with the Library has the freedom and the wherewithal to run
|
||||
that program using a modified version of the Library.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow. Pay close attention to the difference between a
|
||||
"work based on the library" and a "work that uses the library". The
|
||||
former contains code derived from the library, whereas the latter must
|
||||
be combined with the library in order to run.
|
||||
|
||||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License Agreement applies to any software library or other
|
||||
program which contains a notice placed by the copyright holder or
|
||||
other authorized party saying it may be distributed under the terms of
|
||||
this Lesser General Public License (also called "this License").
|
||||
Each licensee is addressed as "you".
|
||||
|
||||
A "library" means a collection of software functions and/or data
|
||||
prepared so as to be conveniently linked with application programs
|
||||
(which use some of those functions and data) to form executables.
|
||||
|
||||
The "Library", below, refers to any such software library or work
|
||||
which has been distributed under these terms. A "work based on the
|
||||
Library" means either the Library or any derivative work under
|
||||
copyright law: that is to say, a work containing the Library or a
|
||||
portion of it, either verbatim or with modifications and/or translated
|
||||
straightforwardly into another language. (Hereinafter, translation is
|
||||
included without limitation in the term "modification".)
|
||||
|
||||
"Source code" for a work means the preferred form of the work for
|
||||
making modifications to it. For a library, complete source code means
|
||||
all the source code for all modules it contains, plus any associated
|
||||
interface definition files, plus the scripts used to control compilation
|
||||
and installation of the library.
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running a program using the Library is not restricted, and output from
|
||||
such a program is covered only if its contents constitute a work based
|
||||
on the Library (independent of the use of the Library in a tool for
|
||||
writing it). Whether that is true depends on what the Library does
|
||||
and what the program that uses the Library does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Library's
|
||||
complete source code as you receive it, in any medium, provided that
|
||||
you conspicuously and appropriately publish on each copy an
|
||||
appropriate copyright notice and disclaimer of warranty; keep intact
|
||||
all the notices that refer to this License and to the absence of any
|
||||
warranty; and distribute a copy of this License along with the
|
||||
Library.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy,
|
||||
and you may at your option offer warranty protection in exchange for a
|
||||
fee.
|
||||
|
||||
2. You may modify your copy or copies of the Library or any portion
|
||||
of it, thus forming a work based on the Library, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) The modified work must itself be a software library.
|
||||
|
||||
b) You must cause the files modified to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
c) You must cause the whole of the work to be licensed at no
|
||||
charge to all third parties under the terms of this License.
|
||||
|
||||
d) If a facility in the modified Library refers to a function or a
|
||||
table of data to be supplied by an application program that uses
|
||||
the facility, other than as an argument passed when the facility
|
||||
is invoked, then you must make a good faith effort to ensure that,
|
||||
in the event an application does not supply such function or
|
||||
table, the facility still operates, and performs whatever part of
|
||||
its purpose remains meaningful.
|
||||
|
||||
(For example, a function in a library to compute square roots has
|
||||
a purpose that is entirely well-defined independent of the
|
||||
application. Therefore, Subsection 2d requires that any
|
||||
application-supplied function or table used by this function must
|
||||
be optional: if the application does not supply it, the square
|
||||
root function must still compute square roots.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Library,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Library, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote
|
||||
it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Library.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Library
|
||||
with the Library (or with a work based on the Library) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may opt to apply the terms of the ordinary GNU General Public
|
||||
License instead of this License to a given copy of the Library. To do
|
||||
this, you must alter all the notices that refer to this License, so
|
||||
that they refer to the ordinary GNU General Public License, version 2,
|
||||
instead of to this License. (If a newer version than version 2 of the
|
||||
ordinary GNU General Public License has appeared, then you can specify
|
||||
that version instead if you wish.) Do not make any other change in
|
||||
these notices.
|
||||
|
||||
Once this change is made in a given copy, it is irreversible for
|
||||
that copy, so the ordinary GNU General Public License applies to all
|
||||
subsequent copies and derivative works made from that copy.
|
||||
|
||||
This option is useful when you wish to copy part of the code of
|
||||
the Library into a program that is not a library.
|
||||
|
||||
4. You may copy and distribute the Library (or a portion or
|
||||
derivative of it, under Section 2) in object code or executable form
|
||||
under the terms of Sections 1 and 2 above provided that you accompany
|
||||
it with the complete corresponding machine-readable source code, which
|
||||
must be distributed under the terms of Sections 1 and 2 above on a
|
||||
medium customarily used for software interchange.
|
||||
|
||||
If distribution of object code is made by offering access to copy
|
||||
from a designated place, then offering equivalent access to copy the
|
||||
source code from the same place satisfies the requirement to
|
||||
distribute the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
5. A program that contains no derivative of any portion of the
|
||||
Library, but is designed to work with the Library by being compiled or
|
||||
linked with it, is called a "work that uses the Library". Such a
|
||||
work, in isolation, is not a derivative work of the Library, and
|
||||
therefore falls outside the scope of this License.
|
||||
|
||||
However, linking a "work that uses the Library" with the Library
|
||||
creates an executable that is a derivative of the Library (because it
|
||||
contains portions of the Library), rather than a "work that uses the
|
||||
library". The executable is therefore covered by this License.
|
||||
Section 6 states terms for distribution of such executables.
|
||||
|
||||
When a "work that uses the Library" uses material from a header file
|
||||
that is part of the Library, the object code for the work may be a
|
||||
derivative work of the Library even though the source code is not.
|
||||
Whether this is true is especially significant if the work can be
|
||||
linked without the Library, or if the work is itself a library. The
|
||||
threshold for this to be true is not precisely defined by law.
|
||||
|
||||
If such an object file uses only numerical parameters, data
|
||||
structure layouts and accessors, and small macros and small inline
|
||||
functions (ten lines or less in length), then the use of the object
|
||||
file is unrestricted, regardless of whether it is legally a derivative
|
||||
work. (Executables containing this object code plus portions of the
|
||||
Library will still fall under Section 6.)
|
||||
|
||||
Otherwise, if the work is a derivative of the Library, you may
|
||||
distribute the object code for the work under the terms of Section 6.
|
||||
Any executables containing that work also fall under Section 6,
|
||||
whether or not they are linked directly with the Library itself.
|
||||
|
||||
6. As an exception to the Sections above, you may also combine or
|
||||
link a "work that uses the Library" with the Library to produce a
|
||||
work containing portions of the Library, and distribute that work
|
||||
under terms of your choice, provided that the terms permit
|
||||
modification of the work for the customer's own use and reverse
|
||||
engineering for debugging such modifications.
|
||||
|
||||
You must give prominent notice with each copy of the work that the
|
||||
Library is used in it and that the Library and its use are covered by
|
||||
this License. You must supply a copy of this License. If the work
|
||||
during execution displays copyright notices, you must include the
|
||||
copyright notice for the Library among them, as well as a reference
|
||||
directing the user to the copy of this License. Also, you must do one
|
||||
of these things:
|
||||
|
||||
a) Accompany the work with the complete corresponding
|
||||
machine-readable source code for the Library including whatever
|
||||
changes were used in the work (which must be distributed under
|
||||
Sections 1 and 2 above); and, if the work is an executable linked
|
||||
with the Library, with the complete machine-readable "work that
|
||||
uses the Library", as object code and/or source code, so that the
|
||||
user can modify the Library and then relink to produce a modified
|
||||
executable containing the modified Library. (It is understood
|
||||
that the user who changes the contents of definitions files in the
|
||||
Library will not necessarily be able to recompile the application
|
||||
to use the modified definitions.)
|
||||
|
||||
b) Use a suitable shared library mechanism for linking with the
|
||||
Library. A suitable mechanism is one that (1) uses at run time a
|
||||
copy of the library already present on the user's computer system,
|
||||
rather than copying library functions into the executable, and (2)
|
||||
will operate properly with a modified version of the library, if
|
||||
the user installs one, as long as the modified version is
|
||||
interface-compatible with the version that the work was made with.
|
||||
|
||||
c) Accompany the work with a written offer, valid for at
|
||||
least three years, to give the same user the materials
|
||||
specified in Subsection 6a, above, for a charge no more
|
||||
than the cost of performing this distribution.
|
||||
|
||||
d) If distribution of the work is made by offering access to copy
|
||||
from a designated place, offer equivalent access to copy the above
|
||||
specified materials from the same place.
|
||||
|
||||
e) Verify that the user has already received a copy of these
|
||||
materials or that you have already sent this user a copy.
|
||||
|
||||
For an executable, the required form of the "work that uses the
|
||||
Library" must include any data and utility programs needed for
|
||||
reproducing the executable from it. However, as a special exception,
|
||||
the materials to be distributed need not include anything that is
|
||||
normally distributed (in either source or binary form) with the major
|
||||
components (compiler, kernel, and so on) of the operating system on
|
||||
which the executable runs, unless that component itself accompanies
|
||||
the executable.
|
||||
|
||||
It may happen that this requirement contradicts the license
|
||||
restrictions of other proprietary libraries that do not normally
|
||||
accompany the operating system. Such a contradiction means you cannot
|
||||
use both them and the Library together in an executable that you
|
||||
distribute.
|
||||
|
||||
7. You may place library facilities that are a work based on the
|
||||
Library side-by-side in a single library together with other library
|
||||
facilities not covered by this License, and distribute such a combined
|
||||
library, provided that the separate distribution of the work based on
|
||||
the Library and of the other library facilities is otherwise
|
||||
permitted, and provided that you do these two things:
|
||||
|
||||
a) Accompany the combined library with a copy of the same work
|
||||
based on the Library, uncombined with any other library
|
||||
facilities. This must be distributed under the terms of the
|
||||
Sections above.
|
||||
|
||||
b) Give prominent notice with the combined library of the fact
|
||||
that part of it is a work based on the Library, and explaining
|
||||
where to find the accompanying uncombined form of the same work.
|
||||
|
||||
8. You may not copy, modify, sublicense, link with, or distribute
|
||||
the Library except as expressly provided under this License. Any
|
||||
attempt otherwise to copy, modify, sublicense, link with, or
|
||||
distribute the Library is void, and will automatically terminate your
|
||||
rights under this License. However, parties who have received copies,
|
||||
or rights, from you under this License will not have their licenses
|
||||
terminated so long as such parties remain in full compliance.
|
||||
|
||||
9. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Library or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Library (or any work based on the
|
||||
Library), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Library or works based on it.
|
||||
|
||||
10. Each time you redistribute the Library (or any work based on the
|
||||
Library), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute, link with or modify the Library
|
||||
subject to these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties with
|
||||
this License.
|
||||
|
||||
11. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Library at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Library by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Library.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under any
|
||||
particular circumstance, the balance of the section is intended to apply,
|
||||
and the section as a whole is intended to apply in other circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
12. If the distribution and/or use of the Library is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Library under this License may add
|
||||
an explicit geographical distribution limitation excluding those countries,
|
||||
so that distribution is permitted only in or among countries not thus
|
||||
excluded. In such case, this License incorporates the limitation as if
|
||||
written in the body of this License.
|
||||
|
||||
13. The Free Software Foundation may publish revised and/or new
|
||||
versions of the Lesser General Public License from time to time.
|
||||
Such new versions will be similar in spirit to the present version,
|
||||
but may differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Library
|
||||
specifies a version number of this License which applies to it and
|
||||
"any later version", you have the option of following the terms and
|
||||
conditions either of that version or of any later version published by
|
||||
the Free Software Foundation. If the Library does not specify a
|
||||
license version number, you may choose any version ever published by
|
||||
the Free Software Foundation.
|
||||
|
||||
14. If you wish to incorporate parts of the Library into other free
|
||||
programs whose distribution conditions are incompatible with these,
|
||||
write to the author to ask for permission. For software which is
|
||||
copyrighted by the Free Software Foundation, write to the Free
|
||||
Software Foundation; we sometimes make exceptions for this. Our
|
||||
decision will be guided by the two goals of preserving the free status
|
||||
of all derivatives of our free software and of promoting the sharing
|
||||
and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
|
||||
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
|
||||
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
|
||||
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
|
||||
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
|
||||
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
|
||||
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
|
||||
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
|
||||
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
|
||||
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
|
||||
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
|
||||
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
|
||||
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
|
||||
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
|
||||
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
||||
DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Libraries
|
||||
|
||||
If you develop a new library, and you want it to be of the greatest
|
||||
possible use to the public, we recommend making it free software that
|
||||
everyone can redistribute and change. You can do so by permitting
|
||||
redistribution under these terms (or, alternatively, under the terms of the
|
||||
ordinary General Public License).
|
||||
|
||||
To apply these terms, attach the following notices to the library. It is
|
||||
safest to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least the
|
||||
"copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the library's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the library, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the
|
||||
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1990
|
||||
Ty Coon, President of Vice
|
||||
|
||||
That's all there is to it!
|
2
HACKING
2
HACKING
|
@ -14,4 +14,4 @@ steps at once by running:
|
|||
checkout/glib# meson _build
|
||||
|
||||
For information about submitting patches see the CONTRIBUTING.md file. For
|
||||
information about major design decisions, see the README.rationale file.
|
||||
information about major design decisions, see the docs/README.rationale file.
|
||||
|
|
|
@ -1,13 +1,16 @@
|
|||
Simple install procedure
|
||||
========================
|
||||
|
||||
% tar xf glib-@GLIB_VERSION@.tar.gz # unpack the sources
|
||||
% cd glib-@GLIB_VERSION@ # change to the toplevel directory
|
||||
% meson _build # configure the build
|
||||
% ninja -C _build # build GLib
|
||||
```sh
|
||||
tar xf glib-*.tar.gz # unpack the sources
|
||||
cd glib-* # change to the toplevel directory
|
||||
meson _build # configure the build
|
||||
ninja -C _build # build GLib
|
||||
|
||||
[ Become root if necessary ]
|
||||
% ninja -C _build install # install GLib
|
||||
# Become root if necessary
|
||||
|
||||
ninja -C _build install # install GLib
|
||||
```
|
||||
|
||||
Requirements
|
||||
============
|
||||
|
@ -17,38 +20,40 @@ compiler and libc. On UNIX-like systems, it also assumes compliance
|
|||
with at least the original 1990 version of POSIX.
|
||||
|
||||
GLib-2.0 requires pkg-config, which is tool for tracking the
|
||||
compilation flags needed for libraries. (For each library, a small .pc
|
||||
compilation flags needed for libraries. (For each library, a small `.pc`
|
||||
text file is installed in a standard location that contains the
|
||||
compilation flags needed for that library along with version number
|
||||
information.) Information about pkg-config can be found at:
|
||||
|
||||
http://www.freedesktop.org/software/pkgconfig/
|
||||
|
||||
Meson (http://mesonbuild.com/) is also required.
|
||||
Meson (http://mesonbuild.com/) is also required. If your distribution does not
|
||||
package a new enough version of Meson, it can be [installed using
|
||||
`pip`](https://mesonbuild.com/Getting-meson.html#installing-meson-with-pip).
|
||||
|
||||
In order to implement conversions between character sets,
|
||||
GLib requires an implementation of the standard iconv() routine.
|
||||
GLib requires an implementation of the standard `iconv()` routine.
|
||||
Most modern systems will have a suitable implementation, however
|
||||
many older systems lack an iconv() implementation. On such systems,
|
||||
many older systems lack an `iconv()` implementation. On such systems,
|
||||
you must install the libiconv library. This can be found at:
|
||||
|
||||
http://www.gnu.org/software/libiconv/
|
||||
|
||||
If your system has an iconv implementation but you want to use
|
||||
libiconv instead, you can pass the --with-libiconv option to
|
||||
libiconv instead, you can pass the `--with-libiconv` option to
|
||||
configure. This forces libiconv to be used.
|
||||
|
||||
Note that if you have libiconv installed in your default include
|
||||
search path (for instance, in /usr/local/), but don't enable
|
||||
search path (for instance, in `/usr/local/`), but don't enable
|
||||
it, you will get an error while compiling GLib because the
|
||||
iconv.h that libiconv installs hides the system iconv.
|
||||
`iconv.h` that libiconv installs hides the system iconv.
|
||||
|
||||
If you are using the native iconv implementation on Solaris
|
||||
instead of libiconv, you'll need to make sure that you have
|
||||
the converters between locale encodings and UTF-8 installed.
|
||||
At a minimum you'll need the SUNWuiu8 package. You probably
|
||||
should also install the SUNWciu8, SUNWhiu8, SUNWjiu8, and
|
||||
SUNWkiu8 packages.
|
||||
At a minimum you'll need the `SUNWuiu8` package. You probably
|
||||
should also install the `SUNWciu8`, `SUNWhiu8`, `SUNWjiu8`, and
|
||||
`SUNWkiu8` packages.
|
||||
|
||||
The native iconv on Compaq Tru64 doesn't contain support for
|
||||
UTF-8, so you'll need to use GNU libiconv instead. (When
|
||||
|
@ -57,7 +62,7 @@ for GNU gettext as well.) This probably applies to related
|
|||
operating systems as well.
|
||||
|
||||
Finally, for message catalog handling, GLib requires an implementation
|
||||
of gettext(). If your system doesn't provide this functionality,
|
||||
of `gettext()`. If your system doesn't provide this functionality,
|
||||
you should use the libintl library from the GNU gettext package,
|
||||
available from:
|
||||
|
||||
|
@ -67,7 +72,7 @@ Support for extended attributes and SELinux in GIO requires
|
|||
libattr and libselinux.
|
||||
|
||||
Some of the mimetype-related functionality in GIO requires the
|
||||
update-mime-database and update-desktop-database utilities, which
|
||||
`update-mime-database` and `update-desktop-database` utilities, which
|
||||
are part of shared-mime-info and desktop-file-utils, respectively.
|
||||
|
||||
GObject uses libffi to implement generic marshalling functionality.
|
||||
|
@ -88,28 +93,28 @@ Or online at:
|
|||
Installation directories
|
||||
========================
|
||||
|
||||
The location of the installed files is determined by the --prefix
|
||||
and --exec-prefix options given to configure. There are also more
|
||||
The location of the installed files is determined by the `--prefix`
|
||||
and `--exec-prefix` options given to configure. There are also more
|
||||
detailed flags to control individual directories. However, the
|
||||
use of these flags is not tested.
|
||||
|
||||
One particular detail to note, is that the architecture-dependent
|
||||
include file glibconfig.h is installed in:
|
||||
include file `glibconfig.h` is installed in `$libdir/glib-2.0/include/`.
|
||||
|
||||
$exec_prefix/lib/glib/include/
|
||||
|
||||
if you have a version in $prefix/include, this is out of date
|
||||
and should be deleted.
|
||||
|
||||
.pc files for the various libraries are installed in
|
||||
$exec_prefix/lib/pkgconfig to provide information when compiling
|
||||
other packages that depend on GLib. If you set PKG_CONFIG_PATH
|
||||
`.pc` files for the various libraries are installed in
|
||||
`$libdir/pkgconfig` to provide information when compiling
|
||||
other packages that depend on GLib. If you set `PKG_CONFIG_PATH`
|
||||
so that it points to this directory, then you can get the
|
||||
correct include flags and library flags for compiling a GLib
|
||||
application with:
|
||||
|
||||
pkg-config --cflags glib-2.0
|
||||
pkg-config --libs glib-2.0
|
||||
```sh
|
||||
pkg-config --cflags glib-2.0
|
||||
pkg-config --libs glib-2.0
|
||||
```
|
||||
|
||||
This is the only supported way of determining the include and library flags
|
||||
for building against GLib.
|
||||
|
||||
|
||||
Cross-compiling GLib
|
|
@ -0,0 +1,73 @@
|
|||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
|
@ -0,0 +1,121 @@
|
|||
Creative Commons Legal Code
|
||||
|
||||
CC0 1.0 Universal
|
||||
|
||||
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
|
||||
LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
|
||||
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
|
||||
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
|
||||
REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
|
||||
PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
|
||||
THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
|
||||
HEREUNDER.
|
||||
|
||||
Statement of Purpose
|
||||
|
||||
The laws of most jurisdictions throughout the world automatically confer
|
||||
exclusive Copyright and Related Rights (defined below) upon the creator
|
||||
and subsequent owner(s) (each and all, an "owner") of an original work of
|
||||
authorship and/or a database (each, a "Work").
|
||||
|
||||
Certain owners wish to permanently relinquish those rights to a Work for
|
||||
the purpose of contributing to a commons of creative, cultural and
|
||||
scientific works ("Commons") that the public can reliably and without fear
|
||||
of later claims of infringement build upon, modify, incorporate in other
|
||||
works, reuse and redistribute as freely as possible in any form whatsoever
|
||||
and for any purposes, including without limitation commercial purposes.
|
||||
These owners may contribute to the Commons to promote the ideal of a free
|
||||
culture and the further production of creative, cultural and scientific
|
||||
works, or to gain reputation or greater distribution for their Work in
|
||||
part through the use and efforts of others.
|
||||
|
||||
For these and/or other purposes and motivations, and without any
|
||||
expectation of additional consideration or compensation, the person
|
||||
associating CC0 with a Work (the "Affirmer"), to the extent that he or she
|
||||
is an owner of Copyright and Related Rights in the Work, voluntarily
|
||||
elects to apply CC0 to the Work and publicly distribute the Work under its
|
||||
terms, with knowledge of his or her Copyright and Related Rights in the
|
||||
Work and the meaning and intended legal effect of CC0 on those rights.
|
||||
|
||||
1. Copyright and Related Rights. A Work made available under CC0 may be
|
||||
protected by copyright and related or neighboring rights ("Copyright and
|
||||
Related Rights"). Copyright and Related Rights include, but are not
|
||||
limited to, the following:
|
||||
|
||||
i. the right to reproduce, adapt, distribute, perform, display,
|
||||
communicate, and translate a Work;
|
||||
ii. moral rights retained by the original author(s) and/or performer(s);
|
||||
iii. publicity and privacy rights pertaining to a person's image or
|
||||
likeness depicted in a Work;
|
||||
iv. rights protecting against unfair competition in regards to a Work,
|
||||
subject to the limitations in paragraph 4(a), below;
|
||||
v. rights protecting the extraction, dissemination, use and reuse of data
|
||||
in a Work;
|
||||
vi. database rights (such as those arising under Directive 96/9/EC of the
|
||||
European Parliament and of the Council of 11 March 1996 on the legal
|
||||
protection of databases, and under any national implementation
|
||||
thereof, including any amended or successor version of such
|
||||
directive); and
|
||||
vii. other similar, equivalent or corresponding rights throughout the
|
||||
world based on applicable law or treaty, and any national
|
||||
implementations thereof.
|
||||
|
||||
2. Waiver. To the greatest extent permitted by, but not in contravention
|
||||
of, applicable law, Affirmer hereby overtly, fully, permanently,
|
||||
irrevocably and unconditionally waives, abandons, and surrenders all of
|
||||
Affirmer's Copyright and Related Rights and associated claims and causes
|
||||
of action, whether now known or unknown (including existing as well as
|
||||
future claims and causes of action), in the Work (i) in all territories
|
||||
worldwide, (ii) for the maximum duration provided by applicable law or
|
||||
treaty (including future time extensions), (iii) in any current or future
|
||||
medium and for any number of copies, and (iv) for any purpose whatsoever,
|
||||
including without limitation commercial, advertising or promotional
|
||||
purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
|
||||
member of the public at large and to the detriment of Affirmer's heirs and
|
||||
successors, fully intending that such Waiver shall not be subject to
|
||||
revocation, rescission, cancellation, termination, or any other legal or
|
||||
equitable action to disrupt the quiet enjoyment of the Work by the public
|
||||
as contemplated by Affirmer's express Statement of Purpose.
|
||||
|
||||
3. Public License Fallback. Should any part of the Waiver for any reason
|
||||
be judged legally invalid or ineffective under applicable law, then the
|
||||
Waiver shall be preserved to the maximum extent permitted taking into
|
||||
account Affirmer's express Statement of Purpose. In addition, to the
|
||||
extent the Waiver is so judged Affirmer hereby grants to each affected
|
||||
person a royalty-free, non transferable, non sublicensable, non exclusive,
|
||||
irrevocable and unconditional license to exercise Affirmer's Copyright and
|
||||
Related Rights in the Work (i) in all territories worldwide, (ii) for the
|
||||
maximum duration provided by applicable law or treaty (including future
|
||||
time extensions), (iii) in any current or future medium and for any number
|
||||
of copies, and (iv) for any purpose whatsoever, including without
|
||||
limitation commercial, advertising or promotional purposes (the
|
||||
"License"). The License shall be deemed effective as of the date CC0 was
|
||||
applied by Affirmer to the Work. Should any part of the License for any
|
||||
reason be judged legally invalid or ineffective under applicable law, such
|
||||
partial invalidity or ineffectiveness shall not invalidate the remainder
|
||||
of the License, and in such case Affirmer hereby affirms that he or she
|
||||
will not (i) exercise any of his or her remaining Copyright and Related
|
||||
Rights in the Work or (ii) assert any associated claims and causes of
|
||||
action with respect to the Work, in either case contrary to Affirmer's
|
||||
express Statement of Purpose.
|
||||
|
||||
4. Limitations and Disclaimers.
|
||||
|
||||
a. No trademark or patent rights held by Affirmer are waived, abandoned,
|
||||
surrendered, licensed or otherwise affected by this document.
|
||||
b. Affirmer offers the Work as-is and makes no representations or
|
||||
warranties of any kind concerning the Work, express, implied,
|
||||
statutory or otherwise, including without limitation warranties of
|
||||
title, merchantability, fitness for a particular purpose, non
|
||||
infringement, or the absence of latent or other defects, accuracy, or
|
||||
the present or absence of errors, whether or not discoverable, all to
|
||||
the greatest extent permissible under applicable law.
|
||||
c. Affirmer disclaims responsibility for clearing rights of other persons
|
||||
that may apply to the Work or any use thereof, including without
|
||||
limitation any person's Copyright and Related Rights in the Work.
|
||||
Further, Affirmer disclaims responsibility for obtaining any necessary
|
||||
consents, permissions or other rights required for any use of the
|
||||
Work.
|
||||
d. Affirmer understands and acknowledges that Creative Commons is not a
|
||||
party to this document and has no duty or obligation with respect to
|
||||
this CC0 or use of the Work.
|
|
@ -0,0 +1,117 @@
|
|||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and modification follow.
|
||||
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
one line to give the program's name and an idea of what it does. Copyright (C) yyyy name of author
|
||||
|
||||
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program is interactive, make it output a short notice like this when it starts in an interactive mode:
|
||||
|
||||
Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||
|
||||
signature of Ty Coon, 1 April 1989 Ty Coon, President of Vice
|
|
@ -0,0 +1,175 @@
|
|||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
|
||||
Version 2.1, February 1999
|
||||
|
||||
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
|
||||
|
||||
[This is the first released version of the Lesser GPL. It also counts as the successor of the GNU Library Public License, version 2, hence the version number 2.1.]
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users.
|
||||
|
||||
This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below.
|
||||
|
||||
When we speak of free software, we are referring to freedom of use, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish); that you receive source code or can get it if you want it; that you can change the software and use pieces of it in new free programs; and that you are informed that you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it.
|
||||
|
||||
For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights.
|
||||
|
||||
We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library.
|
||||
|
||||
To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others.
|
||||
|
||||
Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license.
|
||||
|
||||
Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs.
|
||||
|
||||
When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library.
|
||||
|
||||
We call this license the "Lesser" General Public License because it does Less to protect the user's freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances.
|
||||
|
||||
For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License.
|
||||
|
||||
In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system.
|
||||
|
||||
Although the Lesser General Public License is Less protective of the users' freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library.
|
||||
|
||||
The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined with the library in order to run.
|
||||
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you".
|
||||
|
||||
A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables.
|
||||
|
||||
The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".)
|
||||
|
||||
"Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library.
|
||||
|
||||
Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:
|
||||
|
||||
a) The modified work must itself be a software library.
|
||||
|
||||
b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change.
|
||||
|
||||
c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License.
|
||||
|
||||
d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful.
|
||||
|
||||
(For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.
|
||||
|
||||
3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices.
|
||||
|
||||
Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy.
|
||||
|
||||
This option is useful when you wish to copy part of the code of the Library into a program that is not a library.
|
||||
|
||||
4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange.
|
||||
|
||||
If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code.
|
||||
|
||||
5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License.
|
||||
|
||||
However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables.
|
||||
|
||||
When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law.
|
||||
|
||||
If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.)
|
||||
|
||||
Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself.
|
||||
|
||||
6. As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications.
|
||||
|
||||
You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things:
|
||||
|
||||
a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.)
|
||||
|
||||
b) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with.
|
||||
|
||||
c) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution.
|
||||
|
||||
d) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place.
|
||||
|
||||
e) Verify that the user has already received a copy of these materials or that you have already sent this user a copy.
|
||||
|
||||
For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.
|
||||
|
||||
It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute.
|
||||
|
||||
7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things:
|
||||
|
||||
a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above.
|
||||
|
||||
b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work.
|
||||
|
||||
8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.
|
||||
|
||||
9. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it.
|
||||
|
||||
10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License.
|
||||
|
||||
11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.
|
||||
|
||||
12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.
|
||||
|
||||
13. The Free Software Foundation may publish revised and/or new versions of the Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation.
|
||||
|
||||
14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Libraries
|
||||
|
||||
If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License).
|
||||
|
||||
To apply these terms, attach the following notices to the library. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
one line to give the library's name and an idea of what it does.
|
||||
Copyright (C) year name of author
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the library, if necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in
|
||||
the library `Frob' (a library for tweaking knobs) written
|
||||
by James Random Hacker.
|
||||
|
||||
signature of Ty Coon, 1 April 1990
|
||||
Ty Coon, President of Vice
|
||||
That's all there is to it!
|
|
@ -0,0 +1,15 @@
|
|||
---- LLVM Exceptions to the Apache 2.0 License ----
|
||||
|
||||
As an exception, if, as a result of your compiling your source code, portions
|
||||
of this Software are embedded into an Object form of such source code, you
|
||||
may redistribute such embedded portions in such Object form without complying
|
||||
with the conditions of Sections 4(a), 4(b) and 4(d) of the License.
|
||||
|
||||
In addition, if you combine or link compiled forms of this Software with
|
||||
software that is licensed under the GPLv2 ("Combined Software") and if a
|
||||
court of competent jurisdiction determines that the patent provision (Section
|
||||
3), the indemnity provision (Section 9) or other Section of the License
|
||||
conflicts with the conditions of the GPLv2, you may retroactively and
|
||||
prospectively choose to deem waived or otherwise exclude such Section(s) of
|
||||
the License, but only in their entirety and only with respect to the Combined
|
||||
Software.
|
|
@ -0,0 +1,9 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) <year> <copyright holders>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
211
NEWS.pre-1-3
211
NEWS.pre-1-3
|
@ -1,211 +0,0 @@
|
|||
Overview of Changes in GLib 1.2.1:
|
||||
|
||||
* g_realloc() fix for SunOS (please report further problems).
|
||||
* Continued the never ending fix vendetta regarding getpwuid(),
|
||||
this time AIX has been the culprit.
|
||||
* Upgrade to libtool 1.2f
|
||||
* Miscellaneous other buglets fixed.
|
||||
|
||||
What's new in GLib 1.2.0 (since GLib 1.0.x):
|
||||
|
||||
* GLib is distributed seperatedly from Gtk+
|
||||
* Win32 Portability
|
||||
* Threading support
|
||||
* GModule mechanism (implemented in an extra library) which wraps dynamic
|
||||
object code loading facilities in a portable manner
|
||||
* GIOChannel structure to encapsulate the IPC mechanism
|
||||
* GQuarks and datasets
|
||||
* GRelations for n-way mapping of certain data
|
||||
* An n-way tree implementation
|
||||
* GDate functionality for calendar date manipulations
|
||||
* GAllocator type and associated functions
|
||||
* Added generic callback maintenance functions (ghook)
|
||||
* Generic functions for TAB completions
|
||||
* Endian defines (G_*_ENDIAN)
|
||||
* g_log() mechanism for logging of messages at different log levels
|
||||
* Generic main-loop mechanism
|
||||
* New glib-config helper script
|
||||
* Many more API extensions
|
||||
|
||||
Overview of Changes in GLib 1.1.16:
|
||||
|
||||
* Allocate smaller pools of memory for glists, gslists, gnodes
|
||||
* Bug Fixes
|
||||
|
||||
Overview of Changes in GLib 1.1.15:
|
||||
|
||||
* HPUX 11 thread system detection should now work
|
||||
* Release the main loop lock around calls to prepare() and
|
||||
check() so it is not held over user code
|
||||
* A few Win32 fixups
|
||||
|
||||
Overview of Changes in GLib 1.1.14:
|
||||
|
||||
* Check for dlsym() in system libraries and -dl
|
||||
* FreeBSD portability fixes
|
||||
* Random bug fixes and autoconf/automake changes
|
||||
|
||||
Overview of Changes in GLib 1.1.13:
|
||||
|
||||
* Removed alloca() based function and macro variants again.
|
||||
* Improved thread related configure tests.
|
||||
* GSource destruction fixups.
|
||||
* Fixed up idle function removal based on user_data pointer.
|
||||
* Advanced Win32 portability.
|
||||
* Enforced GSource's check(), prepare() and dispatch() constrains,
|
||||
loop recursions may only happen from dispatch(), and check() as well
|
||||
as prepare() are called while the main_loop lock is being held.
|
||||
* GLib development now requires GNU autoconf 2.13, GNU automake 1.4
|
||||
and GNU libtool 1.2d.
|
||||
* Lots of random portability and bug fixes.
|
||||
|
||||
Overview of Changes in GLib 1.1.12:
|
||||
|
||||
* Added alloca functions/macros: g_strdup_a, g_strconcat3_a, g_alloca,
|
||||
g_new_a, g_new0_a
|
||||
* New tests structure. Type 'make check' on your system to run them.
|
||||
* Avoid unnecessary extra hook referencing in g_hook_list_marshal
|
||||
|
||||
Overview of Changes in GLib 1.1.11:
|
||||
|
||||
* provide defaults for POLL sysdefs
|
||||
* g_main_is_running: new function to check whether a main loop has been quitted
|
||||
* a few other enhancement/fixes
|
||||
|
||||
Overview of Changes in GLib 1.1.9:
|
||||
|
||||
* Check for pthread_attr_init in all cases, Digital Unix 4 requires this
|
||||
* For G_LOCK_DECLARE_*, if !G_THREADS_ENABLED, eat trailing semicolon better
|
||||
* Changed g_main_poll_(add|remove) to g_main_(add|remove)_poll
|
||||
|
||||
Overview of Changes in GLib 1.1.8:
|
||||
|
||||
* Added threading support
|
||||
- The ability to specify a set of functions to be used for
|
||||
locking at runtime.
|
||||
- Default implementations of locking functions for pthreads,
|
||||
Solaris threads, and (experimentally) NSPR.
|
||||
- All static variables should now properly locked.
|
||||
- Enhancements to the generic main-loop mechanism to be thread-safe.
|
||||
(It is used for the main-loop in GTK+ as of GTK+-1.1.8)
|
||||
* Portability fixes.
|
||||
|
||||
Overview of Changes in GLib 1.1.7:
|
||||
|
||||
* Removed multiple define from glibconfig.h
|
||||
|
||||
Overview of Changes in GLib 1.1.6:
|
||||
|
||||
* New GDate functionality for calendar date manipulations (g_date_*)
|
||||
* New GAllocator type and associated functions
|
||||
* New functions g_slist_copy and g_list_copy to duplicate a list with all
|
||||
its data pointers.
|
||||
* New function g_array_insert_vals and new macro g_array_insert_val to
|
||||
insert elements at an arbitrary index
|
||||
* GAllocators used for glist, gslist, gnode node allocations
|
||||
* Incremental freezing in ghash
|
||||
* New function g_hook_list_marshal_check to eventually destroy hooks after
|
||||
they got marshalled
|
||||
* Revised GIOChannel to provide generic virtual-function based interface
|
||||
* Added generic main-loop abstraction
|
||||
* Removed GListAllocator type and its g_*_allocator_*() function variants
|
||||
* Bug fixes
|
||||
|
||||
Overview of Changes in GLib 1.1.5:
|
||||
|
||||
* Win32 portability
|
||||
* GIOChannel structure to encapsulate the IPC mechanism
|
||||
* Reimplemented endian stuff, using inline asm for x86
|
||||
* New functions:
|
||||
- g_strescape: escapes backslashes
|
||||
- g_path_is_absolute and g_path_skip_root
|
||||
- g_getenv: expands environment variables that contain references
|
||||
to other environment variables
|
||||
- g_scanner_sync_file_offset: rewind the filedescriptor to the current
|
||||
buffer position and blow the file read ahead buffer
|
||||
- g_array_remove_index: remove an entry, preserving the order
|
||||
- g_array_remove_index_fast: remove an entry, order might be distorted
|
||||
- g_ptr_array_remove: remove an entry, preserving the order
|
||||
- g_ptr_array_remove_fast: remove an entry, order might be distorted
|
||||
- g_byte_array_remove_index: wrapper for g_array_remove_index
|
||||
- g_byte_array_remove_index_fast: wrapper for g_array_remove_index_fast
|
||||
- g_strncasecmp: modeled closely after g_strcasecmp
|
||||
- g_list_sort, g_slist_sort: to merge sort GLists and GSLists
|
||||
* New macros:
|
||||
- G_DIR_SEPARATOR, G_DIR_SEPARATOR_S: platform-dependant file name
|
||||
syntax elements
|
||||
- G_SEARCHPATH_SEPARATOR, G_SEARCHPATH_SEPARATOR_S: platform-dependant
|
||||
search path syntax conventions
|
||||
- G_STRUCT_OFFSET, G_STRUCT_MEMBER_P, G_STRUCT_MEMBER: for handling
|
||||
structure fields through their offsets
|
||||
* Removed G_ENUM, G_FLAGS, G_NV, and G_SV macros
|
||||
* Bug fixes
|
||||
|
||||
Overview of Changes in GLib 1.1.4:
|
||||
|
||||
* Added generic callback maintenance functions (ghook)
|
||||
* New endian defines (G_*_ENDIAN)
|
||||
* New string join/split/free routines
|
||||
* Fixes
|
||||
|
||||
Overview of Changes in GLib 1.1.3:
|
||||
|
||||
* New GModule mechanism (implemented in an extra library) which wraps dynamic
|
||||
object code loading facilities in a portable manner.
|
||||
* glib-config features extra "glib" (old behaviour remains) and "gmodule"
|
||||
(add libgmodule.so to the --libs output) arguments now. this can also
|
||||
be specified as fourth argument to the AM_PATH_GLIB() macro.
|
||||
* Overhaul of the `inline' autoconfiguration stuff, so inlining should be
|
||||
sufficiently supported on all systems that allow inlining now.
|
||||
* New g_log() mechanism for logging of messages at different log levels,
|
||||
associated with certain log domains (define -DG_LOG_DOMAIN for your library).
|
||||
* New inline functions for bit masks tests.
|
||||
* GNode macros (and functions) now return the newly allocated node.
|
||||
* New macro G_VA_COPY() to work around va_list copying oddities on some
|
||||
platforms. the non-static g_vsprintf() function vanished in favour of
|
||||
a publically exported g_strdup_vprintf().
|
||||
People that used the former g_vsprintf() would definitely want to read the
|
||||
associated ChangeLog entries (grep for printf).
|
||||
* New utility functions:
|
||||
g_strndup(), g_on_error_query(), g_on_error_stack_trace(), g_strdup_printf(),
|
||||
g_strdup_vprintf(), g_printf_string_upper_bound(), g_spaced_primes_closest(),
|
||||
g_strnfill(), g_memdup().
|
||||
* Overhaul of the array implementations, this contains some source incompatible
|
||||
changes. Again, the ChangeLog is much more informative (grep for garray.c).
|
||||
* The internals of the g_dataset mechanism are now exported through the
|
||||
new g_datalist_* API (this is also the underlying implementation for the
|
||||
keyed data of GtkObjects).
|
||||
* New function g_atexit(), use of the ATEXIT() macro is discouraged.
|
||||
* Better configure checks for ansi compliance.
|
||||
* Libtool update to version 1.2b.
|
||||
* Lotsa bug fixes and cleanups as always ;)
|
||||
|
||||
Overview of Changes in GLib 1.1.2:
|
||||
|
||||
* Fixed packaging mistake which occured in 1.1.1
|
||||
* fix 64-bitness in g_prints in glibtest
|
||||
|
||||
What is new in GLib 1.1.1:
|
||||
|
||||
* An n-way tree implementation is provided now, based on the GNode structure.
|
||||
* Bugfix for pointer arrays.
|
||||
|
||||
What is new in GLib 1.1.0:
|
||||
|
||||
* GLib is distributed seperatedly from Gtk+ now and uses a sophisticated
|
||||
shared library versioning scheme to deal with interface and binary
|
||||
incompatibilities.
|
||||
* There is a glib-config helper script installed now.
|
||||
* Fixups all over the place.
|
||||
* gboolean is now a gint, not a gchar anymore.
|
||||
* API extensions for GList and GSList.
|
||||
* New g_str*() functions for simple string handling.
|
||||
* GScanner extensions for scope, warning and error handling.
|
||||
* Minor performance improvements for GMemChunks.
|
||||
* Implementations of GQuarks and datasets (similar to GtkObjects data
|
||||
mechansim, but works for generic memory locations).
|
||||
* More convenience macros for GNU C function arguments.
|
||||
* Const correction all over the place, including a new pointer type
|
||||
gconstpointer.
|
||||
* Generic functions for TAB completions.
|
||||
* GRelations for n-way mapping of certain data.
|
350
README.md
350
README.md
|
@ -13,15 +13,41 @@ The official web site is:
|
|||
|
||||
## Installation
|
||||
|
||||
See the file '[INSTALL.in](INSTALL.in)'
|
||||
See the file '[INSTALL.md](INSTALL.md)'
|
||||
|
||||
## How to report bugs
|
||||
## Supported versions
|
||||
|
||||
Bugs should be reported to the GNOME issue tracking system.
|
||||
(<https://gitlab.gnome.org/GNOME/glib/issues/new>). You will need
|
||||
to create an account for yourself.
|
||||
Only the most recent unstable and stable release series are supported. All
|
||||
older versions are not supported upstream and may contain bugs, some of
|
||||
which may be exploitable security vulnerabilities.
|
||||
|
||||
In the bug report please include:
|
||||
See [SECURITY.md](SECURITY.md) for more details.
|
||||
|
||||
## Documentation
|
||||
|
||||
API documentation is available online for GLib for the:
|
||||
* [GLib](https://docs.gtk.org/glib/)
|
||||
* [GObject](https://docs.gtk.org/gobject/)
|
||||
* [GModule](https://docs.gtk.org/gmodule/)
|
||||
* [GIO](https://docs.gtk.org/gio/)
|
||||
|
||||
## Discussion
|
||||
|
||||
If you have a question about how to use GLib, seek help on [GNOME’s Discourse
|
||||
instance](https://discourse.gnome.org/tags/glib). Alternatively, ask a question
|
||||
on [StackOverflow and tag it `glib`](https://stackoverflow.com/questions/tagged/glib).
|
||||
|
||||
## Reporting bugs
|
||||
|
||||
Bugs should be [reported to the GNOME issue tracking system](https://gitlab.gnome.org/GNOME/glib/issues/new).
|
||||
You will need to create an account for yourself. You may also submit bugs by
|
||||
e-mail (without an account) by e-mailing <incoming+gnome-glib-658-issue-@gitlab.gnome.org>,
|
||||
but this will give you a degraded experience.
|
||||
|
||||
Bugs are for reporting problems in GLib itself, not for asking questions about
|
||||
how to use it. To ask questions, use one of our [discussion forums](#discussion).
|
||||
|
||||
In bug reports please include:
|
||||
|
||||
* Information about your system. For instance:
|
||||
* What operating system and version
|
||||
|
@ -29,305 +55,39 @@ In the bug report please include:
|
|||
* And anything else you think is relevant.
|
||||
* How to reproduce the bug.
|
||||
* If you can reproduce it with one of the test programs that are built
|
||||
in the tests/ subdirectory, that will be most convenient. Otherwise,
|
||||
in the `tests/` subdirectory, that will be most convenient. Otherwise,
|
||||
please include a short test program that exhibits the behavior.
|
||||
As a last resort, you can also provide a pointer to a larger piece
|
||||
of software that can be downloaded.
|
||||
* If the bug was a crash, the exact text that was printed out
|
||||
when the crash occured.
|
||||
when the crash occurred.
|
||||
* Further information such as stack traces may be useful, but
|
||||
is not necessary.
|
||||
|
||||
## Patches
|
||||
## Contributing to GLib
|
||||
|
||||
Patches should also be submitted as merge requests to gitlab.gnome.org. If the
|
||||
patch fixes an existing issue, please refer to the issue in your commit message
|
||||
with the following notation (for issue 123):
|
||||
Please follow the [contribution guide](./CONTRIBUTING.md) to know how to
|
||||
start contributing to GLib.
|
||||
|
||||
Patches should be [submitted as merge requests](https://gitlab.gnome.org/GNOME/glib/-/merge_requests/new)
|
||||
to gitlab.gnome.org. If the patch fixes an existing issue, please refer to the
|
||||
issue in your commit message with the following notation (for issue 123):
|
||||
```
|
||||
Closes: #123
|
||||
```
|
||||
|
||||
Otherwise, create a new merge request that introduces the change, filing a
|
||||
Otherwise, create a new merge request that introduces the change. Filing a
|
||||
separate issue is not required.
|
||||
|
||||
## Notes
|
||||
## Default branch renamed to `main`
|
||||
|
||||
### Notes about GLib 2.48
|
||||
|
||||
* The system copy of PCRE is now used by default to implement GRegex.
|
||||
Configure with --with-pcre=internal if a system PCRE version
|
||||
is unavailable or undesired.
|
||||
|
||||
### Notes about GLib 2.46
|
||||
|
||||
* GTask no longer imposes a fixed limit on the number of tasks that
|
||||
can be run_in_thread() simultaneously, since doing this inevitably
|
||||
results in deadlocks in some use cases. Instead, it now has a base
|
||||
number of threads that can be used "for free", but will gradually
|
||||
add more threads to the pool if too much time passes without any
|
||||
tasks completing.
|
||||
|
||||
The exact behavior may continue to change in the future, and it's
|
||||
possible that some future version of GLib may not do any
|
||||
rate-limiting at all. As a result, you should no longer assume that
|
||||
GTask will rate-limit tasks itself (or, by extension, that calls to
|
||||
certain async gio methods will automatically be rate-limited for
|
||||
you). If you have a very large number of tasks to run, and don't
|
||||
want them to all run at once, you should rate-limit them yourself.
|
||||
|
||||
### Notes about GLib 2.40
|
||||
|
||||
* g_test_run() no longer runs tests in exactly the order they are
|
||||
registered; instead, it groups them according to test suites (ie,
|
||||
path components) like the documentation always claimed it did. In
|
||||
some cases, this can result in a sub-optimal ordering of tests,
|
||||
relative to the old behavior. The fix is to change the test paths to
|
||||
properly group together the tests that should run together. (eg, if
|
||||
you want to run test_foo_simple(), test_bar_simple(), and
|
||||
test_foo_using_bar() in that order, they should have test paths like
|
||||
"/simple/foo", "/simple/bar", "/complex/foo-using-bar", not
|
||||
"/foo/simple", "/bar/simple", "/foo/using-bar" (which would result
|
||||
in test_foo_using_bar() running before test_bar_simple()).
|
||||
|
||||
(The behavior actually changed in GLib 2.36, but it was not
|
||||
documented at the time, since we didn't realize it mattered.)
|
||||
|
||||
### Notes about GLib 2.36
|
||||
|
||||
* It is no longer necessary to call g_type_init(). If you are
|
||||
loading GLib as a dynamic module, you should be careful to avoid
|
||||
unloading it, then subsequently loading it again. This never
|
||||
really worked before, but it is now explicitly undefined behavior.
|
||||
Note that if g_type_init() was the only explicit use of a GObject
|
||||
API and you are using linker flags such as --no-add-needed, then
|
||||
you may have to artificially use some GObject call to keep the
|
||||
linker from optimizing away -lgobject. We recommend to use
|
||||
g_type_ensure (G_TYPE_OBJECT) for this purpose.
|
||||
|
||||
* This release contains an incompatible change to the g_get_home_dir()
|
||||
function. Previously, this function would effectively ignore the HOME
|
||||
environment variable and always return the value from /etc/password.
|
||||
As of this version, the HOME variable is used if it is set and the
|
||||
value from /etc/passwd is only used as a fallback.
|
||||
|
||||
* The 'flowinfo' and 'scope_id' fields of GInetSocketAddress
|
||||
(introduced in GLib 2.32) have been fixed to be in host byte order
|
||||
rather than network byte order. This is an incompatible change, but
|
||||
the previous behavior was clearly broken, so it seems unlikely that
|
||||
anyone was using it.
|
||||
|
||||
### Notes about GLib 2.34
|
||||
|
||||
* GIO now looks for thumbnails in XDG_CACHE_HOME, following a
|
||||
recent alignment of the thumbnail spec with the basedir spec.
|
||||
|
||||
* The default values for GThreadPools max_unused_threads and
|
||||
max_idle_time settings have been changed to 2 and 15*1000,
|
||||
respectively.
|
||||
|
||||
### Notes about GLib 2.32
|
||||
|
||||
* It is no longer necessary to use g_thread_init() or to link against
|
||||
libgthread. libglib is now always thread-enabled. Custom thread
|
||||
system implementations are no longer supported (including errorcheck
|
||||
mutexes).
|
||||
|
||||
* The thread and synchronisation APIs have been updated.
|
||||
GMutex and GCond can be statically allocated without explicit
|
||||
initialisation, as can new types GRWLock and GRecMutex. The
|
||||
GStatic_______ variants of these types have been deprecated. GPrivate
|
||||
can also be statically allocated and has a nicer API (deprecating
|
||||
GStaticPrivate). Finally, g_thread_create() has been replaced with a
|
||||
substantially simplified g_thread_new().
|
||||
|
||||
* The g_once_init_enter()/_leave() functions have been replaced with
|
||||
macros that allow for a pointer to any gsize-sized object, not just a
|
||||
gsize*. The assertions to ensure that a pointer to a correctly-sized
|
||||
object is being used will not work with generic pointers (ie: (void*)
|
||||
and (gpointer) casts) which would have worked with the old version.
|
||||
|
||||
* It is now mandatory to include glib.h instead of individual headers.
|
||||
|
||||
* The -uninstalled variants of the pkg-config files have been dropped.
|
||||
|
||||
* For a long time, gobject-2.0.pc mistakenly declared a public
|
||||
dependency on gthread-2.0.pc (when the dependency should have been
|
||||
private). This means that programs got away with calling
|
||||
g_thread_init() without explicitly listing gthread-2.0.pc among their
|
||||
dependencies.
|
||||
|
||||
gthread has now been removed as a gobject dependency, which will cause
|
||||
such programs to break.
|
||||
|
||||
The fix for this problem is either to declare an explicit dependency
|
||||
on gthread-2.0.pc (if you care about compatibility with older GLib
|
||||
versions) or to stop calling g_thread_init().
|
||||
|
||||
* g_debug() output is no longer enabled by default. It can be enabled
|
||||
on a per-domain basis with the G_MESSAGES_DEBUG environment variable
|
||||
like
|
||||
G_MESSAGES_DEBUG=domain1,domain2
|
||||
or
|
||||
G_MESSAGES_DEBUG=all
|
||||
|
||||
### Notes about GLib 2.30
|
||||
|
||||
* GObject includes a generic marshaller, g_cclosure_marshal_generic.
|
||||
To use it, simply specify NULL as the marshaller in g_signal_new().
|
||||
The generic marshaller is implemented with libffi, and consequently
|
||||
GObject depends on libffi now.
|
||||
|
||||
### Notes about GLib 2.28
|
||||
|
||||
* The GApplication API has changed compared to the version that was
|
||||
included in the 2.25 development snapshots. Existing users will need
|
||||
adjustments.
|
||||
|
||||
### Notes about GLib 2.26
|
||||
|
||||
* Nothing noteworthy.
|
||||
|
||||
### Notes about GLib 2.24
|
||||
|
||||
* It is now allowed to call g_thread_init(NULL) multiple times, and
|
||||
to call glib functions before g_thread_init(NULL) is called
|
||||
(although the later is mainly a change in docs as this worked before
|
||||
too). See the GThread reference documentation for the details.
|
||||
|
||||
* GObject now links to GThread and threads are enabled automatically
|
||||
when g_type_init() is called.
|
||||
|
||||
* GObject no longer allows to call g_object_set() on construct-only properties
|
||||
while an object is being initialized. If this behavior is needed, setting a
|
||||
custom constructor that just chains up will re-enable this functionality.
|
||||
|
||||
* GMappedFile on an empty file now returns NULL for the contents instead of
|
||||
returning an empty string. The documentation specifically states that code
|
||||
may not rely on nul-termination here so any breakage caused by this change
|
||||
is a bug in application code.
|
||||
|
||||
### Notes about GLib 2.22
|
||||
|
||||
* Repeated calls to g_simple_async_result_set_op_res_gpointer used
|
||||
to leak the data. This has been fixed to always call the provided
|
||||
destroy notify.
|
||||
|
||||
### Notes about GLib 2.20
|
||||
|
||||
* The functions for launching applications (e.g. g_app_info_launch() +
|
||||
friends) now passes a FUSE file:// URI if possible (requires gvfs
|
||||
with the FUSE daemon to be running and operational). With gvfs 2.26,
|
||||
FUSE file:// URIs will be mapped back to gio URIs in the GFile
|
||||
constructors. The intent of this change is to better integrate
|
||||
POSIX-only applications, see bug #528670 for the rationale. The
|
||||
only user-visible change is when an application needs to examine an
|
||||
URI passed to it (e.g. as a positional parameter). Instead of
|
||||
looking at the given URI, the application will now need to look at
|
||||
the result of g_file_get_uri() after having constructed a GFile
|
||||
object with the given URI.
|
||||
|
||||
### Notes about GLib 2.18
|
||||
|
||||
* The recommended way of using GLib has always been to only include the
|
||||
toplevel headers glib.h, glib-object.h and gio.h. GLib enforces this by
|
||||
generating an error when individual headers are directly included.
|
||||
To help with the transition, the enforcement is not turned on by
|
||||
default for GLib headers (it is turned on for GObject and GIO).
|
||||
To turn it on, define the preprocessor symbol G_DISABLE_SINGLE_INCLUDES.
|
||||
|
||||
### Notes about GLib 2.16
|
||||
|
||||
* GLib now includes GIO, which adds optional dependencies against libattr
|
||||
and libselinux for extended attribute and SELinux support. Use
|
||||
--disable-xattr and --disable-selinux to build without these.
|
||||
|
||||
### Notes about GLib 2.10
|
||||
|
||||
* The functions g_snprintf() and g_vsnprintf() have been removed from
|
||||
the gprintf.h header, since they are already declared in glib.h. This
|
||||
doesn't break documented use of gprintf.h, but people have been known
|
||||
to include gprintf.h without including glib.h.
|
||||
|
||||
* The Unicode support has been updated to Unicode 4.1. This adds several
|
||||
new members to the GUnicodeBreakType enumeration.
|
||||
|
||||
* The support for Solaris threads has been retired. Solaris has provided
|
||||
POSIX threads for long enough now to have them available on every
|
||||
Solaris platform.
|
||||
|
||||
* 'make check' has been changed to validate translations by calling
|
||||
msgfmt with the -c option. As a result, it may fail on systems with
|
||||
older gettext implementations (GNU gettext < 0.14.1, or Solaris gettext).
|
||||
'make check' will also fail on systems where the C compiler does not
|
||||
support ELF visibility attributes.
|
||||
|
||||
* The GMemChunk API has been deprecated in favour of a new 'slice
|
||||
allocator'. See the g_slice documentation for more details.
|
||||
|
||||
* A new type, GInitiallyUnowned, has been introduced, which is
|
||||
intended to serve as a common implementation of the 'floating reference'
|
||||
concept that is e.g. used by GtkObject. Note that changing the
|
||||
inheritance hierarchy of a type can cause problems for language
|
||||
bindings and other code which needs to work closely with the type
|
||||
system. Therefore, switching to GInitiallyUnowned should be done
|
||||
carefully. g_object_compat_control() has been added to GLib 2.8.5
|
||||
to help with the transition.
|
||||
|
||||
### Notes about GLib 2.6.0
|
||||
|
||||
* GLib 2.6 introduces the concept of 'GLib filename encoding', which is the
|
||||
on-disk encoding on Unix, but UTF-8 on Windows. All GLib functions
|
||||
returning or accepting pathnames have been changed to expect
|
||||
filenames in this encoding, and the common POSIX functions dealing
|
||||
with pathnames have been wrapped. These wrappers are declared in the
|
||||
header <glib/gstdio.h> which must be included explicitly; it is not
|
||||
included through <glib.h>.
|
||||
|
||||
On current (NT-based) Windows versions, where the on-disk file names
|
||||
are Unicode, these wrappers use the wide-character API in the C
|
||||
library. Thus applications can handle file names containing any
|
||||
Unicode characters through GLib's own API and its POSIX wrappers,
|
||||
not just file names restricted to characters in the system codepage.
|
||||
|
||||
To keep binary compatibility with applications compiled against
|
||||
older versions of GLib, the Windows DLL still provides entry points
|
||||
with the old semantics using the old names, and applications
|
||||
compiled against GLib 2.6 will actually use new names for the
|
||||
functions. This is transparent to the programmer.
|
||||
|
||||
When compiling against GLib 2.6, applications intended to be
|
||||
portable to Windows must take the UTF-8 file name encoding into
|
||||
consideration, and use the gstdio wrappers to access files whose
|
||||
names have been constructed from strings returned from GLib.
|
||||
|
||||
* Likewise, g_get_user_name() and g_get_real_name() have been changed
|
||||
to return UTF-8 on Windows, while keeping the old semantics for
|
||||
applications compiled against older versions of GLib.
|
||||
|
||||
* The GLib uses an '_' prefix to indicate private symbols that
|
||||
must not be used by applications. On some platforms, symbols beginning
|
||||
with prefixes such as _g will be exported from the library, on others not.
|
||||
In no case can applications use these private symbols. In addition to that,
|
||||
GLib+ 2.6 makes several symbols private which were not in any installed
|
||||
header files and were never intended to be exported.
|
||||
|
||||
* To reduce code size and improve efficiency, GLib, when compiled
|
||||
with the GNU toolchain, has separate internal and external entry
|
||||
points for exported functions. The internal names, which begin with
|
||||
IA__, may be seen when debugging a GLib program.
|
||||
|
||||
* On Windows, GLib no longer opens a console window when printing
|
||||
warning messages if stdout or stderr are invalid, as they are in
|
||||
"Windows subsystem" (GUI) applications. Simply redirect stdout or
|
||||
stderr if you need to see them.
|
||||
|
||||
* The child watch functionality tends to reveal a bug in many
|
||||
thread implementations (in particular the older LinuxThreads
|
||||
implementation on Linux) where it's not possible to call waitpid()
|
||||
for a child created in a different thread. For this reason, for
|
||||
maximum portability, you should structure your code to fork all
|
||||
child processes that you want to wait for from the main thread.
|
||||
|
||||
* A problem was recently discovered with g_signal_connect_object();
|
||||
it doesn't actually disconnect the signal handler once the object being
|
||||
connected to dies, just disables it. See the API docs for the function
|
||||
for further details and the correct workaround that will continue to
|
||||
work with future versions of GLib.
|
||||
The default development branch of GLib has been renamed to `main`. To update
|
||||
your local checkout, use:
|
||||
```sh
|
||||
git checkout master
|
||||
git branch -m master main
|
||||
git fetch
|
||||
git branch --unset-upstream
|
||||
git branch -u origin/main
|
||||
git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/main
|
||||
```
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
See README.win32.md
|
|
@ -161,22 +161,9 @@ To overcome this problem, please set your system's locale setting for non-Unicod
|
|||
English (United States), reboot, and restart the build, and the code should build
|
||||
normally.
|
||||
|
||||
### Visual Studio 2008 hacks
|
||||
### Support for pre-2012 Visual Studio
|
||||
|
||||
- You need to run the following lines from your build directory, to embed the
|
||||
manifests that are generated during the build, assuming the built binaries
|
||||
are installed to `$(PREFIX)`, after a successful build/installation:
|
||||
|
||||
```cmd
|
||||
> for /r %f in (*.dll.manifest) do if exist $(PREFIX)\bin\%~nf mt /manifest %f $(PREFIX)\bin\%~nf;2
|
||||
> for /r %f in (*.exe.manifest) do if exist $(PREFIX)\bin\%~nf mt /manifest %f $(PREFIX)\bin\%~nf;1
|
||||
```
|
||||
|
||||
|
||||
- If building for amd64/x86_64/x64, sometimes the compilation of sources may seem to hang, which
|
||||
is caused by an optimization issue in the 2008 x64 compiler. You need to use Task Manager to
|
||||
remove all running instances of `cl.exe`, which will cause the build process to terminate. Update
|
||||
the build flags of the sources that hang on compilation by changing its `"/O2"` flag to `"/O1"`
|
||||
in `build.ninja`, and retry the build, where things should continue to build normally. At the
|
||||
time of writing, this is needed for compiling `glib/gtestutils.c`, `gio/gsettings.c`,
|
||||
`gio/gsettingsschema.c` and `gio/tests/gsubprocess-testprog.c`
|
||||
This release of GLib requires at least the Windows 8 SDK in order to be built
|
||||
successfully using Visual Studio, which means that it is no longer supported to
|
||||
build GLib with Visual Studio 2008 nor 2010. People that still need to use
|
||||
Visual Studio 2008 or 2010 should continue to use glib-2.66.x.
|
||||
|
|
|
@ -0,0 +1,78 @@
|
|||
# Security policy for GLib
|
||||
|
||||
* [Supported Versions](#Supported-Versions)
|
||||
* [Reporting a Vulnerability](#Reporting-a-Vulnerability)
|
||||
* [Security Announcements](#Security-Announcements)
|
||||
* [Acknowledgements](#Acknowledgements)
|
||||
|
||||
## Supported Versions
|
||||
|
||||
Upstream GLib only supports the most recent stable release series, and the
|
||||
current development release series. Any older stable release series are no
|
||||
longer supported, although they may still receive backported security updates
|
||||
in long-term support distributions. Such support is up to the distributions,
|
||||
though.
|
||||
|
||||
Under GLib’s versioning scheme, stable release series have an *even* minor
|
||||
component (for example, 2.66.0, 2.66.1, 2.68.3), and development release series
|
||||
have an *odd* minor component (2.67.1, 2.69.0).
|
||||
|
||||
## Signed Releases
|
||||
|
||||
The git tags for all releases ≥2.58.0 are signed by a maintainer using
|
||||
[git-evtag](https://github.com/cgwalters/git-evtag). The maintainer will use
|
||||
their personal GPG key; there is currently not necessarily a formal chain of
|
||||
trust for these keys. Please [create an issue](https://gitlab.gnome.org/GNOME/glib/-/issues/new)
|
||||
if you would like to work on improving this.
|
||||
|
||||
Unsigned releases ≥2.58.0 should not be trusted. Releases prior to 2.58.0 were
|
||||
not signed.
|
||||
|
||||
## Reporting a Vulnerability
|
||||
|
||||
If you think you've identified a security issue in GLib, GObject or GIO, please
|
||||
**do not** report the issue publicly via a mailing list, IRC, a public issue on
|
||||
the GitLab issue tracker, a merge request, or any other public venue.
|
||||
|
||||
Instead, report a
|
||||
[*confidential* issue in the GitLab issue tracker](https://gitlab.gnome.org/GNOME/glib/-/issues/new?issue[confidential]=1),
|
||||
with the “This issue is confidential” box checked. Please include as many
|
||||
details as possible, including a minimal reproducible example of the issue, and
|
||||
an idea of how exploitable/severe you think it is.
|
||||
|
||||
**Do not** provide a merge request to fix the issue, as there is currently no
|
||||
way to make confidential merge requests on gitlab.gnome.org. If you have patches
|
||||
which fix the security issue, please attach them to your confidential issue as
|
||||
patch files.
|
||||
|
||||
Confidential issues are only visible to the reporter and the GLib maintainers.
|
||||
|
||||
As per the [GNOME security policy](https://security.gnome.org/), the next steps
|
||||
are then:
|
||||
* The report is triaged.
|
||||
* Code is audited to find any potential similar problems.
|
||||
* If it is determined, in consultation with the submitter, that a CVE is
|
||||
required, the submitter obtains one via [cveform.mitre.org](https://cveform.mitre.org/).
|
||||
* The fix is prepared for the development branch, and for the most recent
|
||||
stable branch.
|
||||
* The fix is submitted to the public repository.
|
||||
* On the day the issue and fix are made public, an announcement is made on the
|
||||
[public channels listed below](#Security-Announcements).
|
||||
* A new release containing the fix is issued.
|
||||
|
||||
## Security Announcements
|
||||
|
||||
Security announcements are made publicly via the
|
||||
[`distributor` tag on discourse.gnome.org](https://discourse.gnome.org/tag/distributor)
|
||||
and cross-posted to the
|
||||
[distributor-list](https://mail.gnome.org/mailman/listinfo/distributor-list).
|
||||
|
||||
Announcements for security issues with wide applicability or high impact may
|
||||
additionally be made via
|
||||
[oss-security@lists.openwall.com](https://www.openwall.com/lists/oss-security/).
|
||||
|
||||
## Acknowledgements
|
||||
|
||||
This text was partially based on the
|
||||
[github.com/containers security policy](https://github.com/containers/common/blob/HEAD/SECURITY.md),
|
||||
and partially based on the [flatpak security policy](https://github.com/flatpak/flatpak/blob/HEAD/SECURITY.md).
|
|
@ -1,3 +1,9 @@
|
|||
glib2.0 (2.74.5-ok1) yangtze; urgency=medium
|
||||
|
||||
* Update upstream version.
|
||||
|
||||
-- sufang <sufang@kylinos.cn> Wed, 15 Feb 2023 09:28:53 +0800
|
||||
|
||||
glib2.0 (2.64.2-ok2) yangtze; urgency=medium
|
||||
|
||||
* Initial for openKylin.
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
debian/cross.txt
|
||||
debian/cross.txt.in
|
||||
debian/libglib2.0-0.triggers
|
||||
debian/libglib2.0-0.postinst
|
||||
debian/libglib2.0-0.postrm
|
||||
|
|
|
@ -6,41 +6,39 @@ Source: glib2.0
|
|||
Section: libs
|
||||
Priority: optional
|
||||
Maintainer: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>
|
||||
Uploaders: Iain Lane <laney@debian.org>
|
||||
Build-Depends: dbus <!nocheck>,
|
||||
debhelper-compat (= 12),
|
||||
desktop-file-utils <!nocheck>,
|
||||
dh-exec,
|
||||
dh-python,
|
||||
Uploaders: Iain Lane <laney@debian.org>, Jeremy Bicha <jbicha@ubuntu.com>, Simon McVittie <smcv@debian.org>
|
||||
Build-Depends: dbus-daemon <!nocheck> <!noinsttest>,
|
||||
debhelper-compat (= 13),
|
||||
dh-sequence-python3,
|
||||
dh-sequence-gnome,
|
||||
docbook-xml,
|
||||
docbook-xsl,
|
||||
dpkg-dev (>= 1.17.14),
|
||||
gettext,
|
||||
gnome-pkg-tools (>= 0.11),
|
||||
gtk-doc-tools (>= 1.32-4~),
|
||||
libdbus-1-dev (>= 1.2.14) <!nocheck> <!noinsttest>,
|
||||
libelf-dev (>= 0.142),
|
||||
libdbus-1-dev <!nocheck> <!noinsttest>,
|
||||
libelf-dev,
|
||||
libffi-dev (>= 3.3),
|
||||
libgamin-dev [!linux-any] | libfam-dev [!linux-any],
|
||||
libmount-dev (>= 2.28) [linux-any],
|
||||
libpcre3-dev (>= 1:8.35),
|
||||
libmount-dev (>= 2.35.2-7~) [linux-any],
|
||||
libpcre2-dev,
|
||||
libselinux1-dev [linux-any],
|
||||
libxml2-utils,
|
||||
linux-libc-dev [linux-any],
|
||||
meson (>= 0.52.0),
|
||||
pkg-config (>= 0.16.0),
|
||||
python3-dbus <!nocheck>,
|
||||
meson (>= 0.60.0),
|
||||
pkg-config,
|
||||
python3-distutils,
|
||||
python3:any,
|
||||
xsltproc,
|
||||
zlib1g-dev
|
||||
Build-Depends-Arch: desktop-file-utils <!nocheck>,
|
||||
locales <!nocheck> | locales-all <!nocheck>,
|
||||
python3-dbus <!nocheck>,
|
||||
python3-gi <!nocheck>,
|
||||
python3:any (>= 2.7.5-5~),
|
||||
shared-mime-info <!nocheck>,
|
||||
tzdata <!nocheck>,
|
||||
xsltproc,
|
||||
xterm <!nocheck>,
|
||||
zlib1g-dev
|
||||
xterm <!nocheck>
|
||||
Build-Depends-Indep: gtk-doc-tools (>= 1.32.1),
|
||||
Rules-Requires-Root: no
|
||||
Standards-Version: 4.5.0
|
||||
Homepage: http://www.gtk.org/
|
||||
Standards-Version: 4.6.2
|
||||
Homepage: https://wiki.gnome.org/Projects/GLib
|
||||
Vcs-Browser: https://salsa.debian.org/gnome-team/glib
|
||||
Vcs-Git: https://salsa.debian.org/gnome-team/glib.git
|
||||
|
||||
|
@ -50,11 +48,15 @@ Depends: ${misc:Depends},
|
|||
${shlibs:Depends}
|
||||
Recommends: libglib2.0-data,
|
||||
shared-mime-info,
|
||||
xdg-user-dirs
|
||||
xdg-user-dirs,
|
||||
Breaks: gimp (<< 2.10.14-3~),
|
||||
glib-networking-tests (<< 2.63.2),
|
||||
glib-networking-tests (<< 2.70.0~),
|
||||
gnome-keyring (<< 40.0-3~),
|
||||
libedataserver-1.2-26 (<< 3.44.3-2~),
|
||||
libgirepository-1.0-1 (<< 1.62.0-4~),
|
||||
libgladeui-2-6 (<< 3.22.2)
|
||||
libgladeui-2-6 (<< 3.22.2),
|
||||
libsoup2.4-tests (<< 2.72.0-3~),
|
||||
Suggests: low-memory-monitor
|
||||
Multi-Arch: same
|
||||
Pre-Depends: ${misc:Pre-Depends}
|
||||
Description: GLib library of C routines
|
||||
|
@ -67,7 +69,8 @@ Description: GLib library of C routines
|
|||
Package: libglib2.0-tests
|
||||
Build-profiles: <!noinsttest>
|
||||
Architecture: any
|
||||
Depends: gir1.2-glib-2.0,
|
||||
Depends: desktop-file-utils,
|
||||
gir1.2-glib-2.0,
|
||||
libglib2.0-dev-bin,
|
||||
python3-dbus,
|
||||
python3-dbusmock,
|
||||
|
@ -107,8 +110,7 @@ Package: libglib2.0-bin
|
|||
Section: misc
|
||||
Architecture: any
|
||||
Pre-Depends: ${misc:Pre-Depends}
|
||||
Depends: libglib2.0-0 (= ${binary:Version}),
|
||||
libglib2.0-data,
|
||||
Depends: libglib2.0-data,
|
||||
${misc:Depends},
|
||||
${shlibs:Depends}
|
||||
Multi-Arch: foreign
|
||||
|
@ -128,8 +130,8 @@ Depends: libffi-dev (>= 3.3),
|
|||
libglib2.0-0 (= ${binary:Version}),
|
||||
libglib2.0-bin (= ${binary:Version}),
|
||||
libglib2.0-dev-bin (= ${binary:Version}),
|
||||
libmount-dev (>= 2.28) [linux-any],
|
||||
libpcre3-dev (>= 1:8.31),
|
||||
libmount-dev (>= 2.35.2-7~) [linux-any],
|
||||
libpcre2-dev,
|
||||
libselinux1-dev [linux-any],
|
||||
pkg-config,
|
||||
zlib1g-dev,
|
||||
|
@ -159,12 +161,8 @@ Depends: python3-distutils,
|
|||
${misc:Depends},
|
||||
${python3:Depends},
|
||||
${shlibs:Depends}
|
||||
Suggests: libgdk-pixbuf2.0-bin (>= 2.36.12-2~) | libgdk-pixbuf2.0-dev,
|
||||
Suggests: libgdk-pixbuf2.0-bin,
|
||||
libxml2-utils
|
||||
Breaks: libglib2.0-bin (<< 2.54.2-5~),
|
||||
libglib2.0-dev (<< 2.53)
|
||||
Replaces: libglib2.0-bin (<< 2.54.2-5~),
|
||||
libglib2.0-dev (<< 2.53)
|
||||
Multi-Arch: foreign
|
||||
Description: Development utilities for the GLib library
|
||||
GLib is a library containing many useful C routines for things such
|
||||
|
@ -200,13 +198,3 @@ Description: Documentation files for the GLib library
|
|||
.
|
||||
This package contains the HTML documentation for the GLib library
|
||||
in /usr/share/doc/libglib2.0-doc/ .
|
||||
|
||||
Package: libgio-fam
|
||||
Architecture: hurd-any kfreebsd-any
|
||||
Depends: ${misc:Depends},
|
||||
${shlibs:Depends}
|
||||
Recommends: gamin
|
||||
Multi-Arch: same
|
||||
Description: GLib Input, Output and Streaming Library (fam module)
|
||||
GIO is the input, output and streaming API of GLib. This package
|
||||
provides a fam file and directory monitoring backend for it.
|
||||
|
|
|
@ -2,41 +2,39 @@ Source: glib2.0
|
|||
Section: libs
|
||||
Priority: optional
|
||||
Maintainer: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>
|
||||
Uploaders: @GNOME_TEAM@
|
||||
Build-Depends: dbus <!nocheck>,
|
||||
debhelper-compat (= 12),
|
||||
desktop-file-utils <!nocheck>,
|
||||
dh-exec,
|
||||
dh-python,
|
||||
Uploaders: @GNOME_TEAM@, Simon McVittie <smcv@debian.org>
|
||||
Build-Depends: dbus-daemon <!nocheck> <!noinsttest>,
|
||||
debhelper-compat (= 13),
|
||||
dh-sequence-python3,
|
||||
dh-sequence-gnome,
|
||||
docbook-xml,
|
||||
docbook-xsl,
|
||||
dpkg-dev (>= 1.17.14),
|
||||
gettext,
|
||||
gnome-pkg-tools (>= 0.11),
|
||||
gtk-doc-tools (>= 1.32-4~),
|
||||
libdbus-1-dev (>= 1.2.14) <!nocheck> <!noinsttest>,
|
||||
libelf-dev (>= 0.142),
|
||||
libdbus-1-dev <!nocheck> <!noinsttest>,
|
||||
libelf-dev,
|
||||
libffi-dev (>= 3.3),
|
||||
libgamin-dev [!linux-any] | libfam-dev [!linux-any],
|
||||
libmount-dev (>= 2.28) [linux-any],
|
||||
libpcre3-dev (>= 1:8.35),
|
||||
libmount-dev (>= 2.35.2-7~) [linux-any],
|
||||
libpcre2-dev,
|
||||
libselinux1-dev [linux-any],
|
||||
libxml2-utils,
|
||||
linux-libc-dev [linux-any],
|
||||
meson (>= 0.52.0),
|
||||
pkg-config (>= 0.16.0),
|
||||
python3-dbus <!nocheck>,
|
||||
meson (>= 0.60.0),
|
||||
pkg-config,
|
||||
python3-distutils,
|
||||
python3:any,
|
||||
xsltproc,
|
||||
zlib1g-dev
|
||||
Build-Depends-Arch: desktop-file-utils <!nocheck>,
|
||||
locales <!nocheck> | locales-all <!nocheck>,
|
||||
python3-dbus <!nocheck>,
|
||||
python3-gi <!nocheck>,
|
||||
python3:any (>= 2.7.5-5~),
|
||||
shared-mime-info <!nocheck>,
|
||||
tzdata <!nocheck>,
|
||||
xsltproc,
|
||||
xterm <!nocheck>,
|
||||
zlib1g-dev
|
||||
xterm <!nocheck>
|
||||
Build-Depends-Indep: gtk-doc-tools (>= 1.32.1),
|
||||
Rules-Requires-Root: no
|
||||
Standards-Version: 4.5.0
|
||||
Homepage: http://www.gtk.org/
|
||||
Standards-Version: 4.6.2
|
||||
Homepage: https://wiki.gnome.org/Projects/GLib
|
||||
Vcs-Browser: https://salsa.debian.org/gnome-team/glib
|
||||
Vcs-Git: https://salsa.debian.org/gnome-team/glib.git
|
||||
|
||||
|
@ -46,11 +44,15 @@ Depends: ${misc:Depends},
|
|||
${shlibs:Depends}
|
||||
Recommends: libglib2.0-data,
|
||||
shared-mime-info,
|
||||
xdg-user-dirs
|
||||
xdg-user-dirs,
|
||||
Breaks: gimp (<< 2.10.14-3~),
|
||||
glib-networking-tests (<< 2.63.2),
|
||||
glib-networking-tests (<< 2.70.0~),
|
||||
gnome-keyring (<< 40.0-3~),
|
||||
libedataserver-1.2-26 (<< 3.44.3-2~),
|
||||
libgirepository-1.0-1 (<< 1.62.0-4~),
|
||||
libgladeui-2-6 (<< 3.22.2)
|
||||
libgladeui-2-6 (<< 3.22.2),
|
||||
libsoup2.4-tests (<< 2.72.0-3~),
|
||||
Suggests: low-memory-monitor
|
||||
Multi-Arch: same
|
||||
Pre-Depends: ${misc:Pre-Depends}
|
||||
Description: GLib library of C routines
|
||||
|
@ -63,7 +65,8 @@ Description: GLib library of C routines
|
|||
Package: libglib2.0-tests
|
||||
Build-profiles: <!noinsttest>
|
||||
Architecture: any
|
||||
Depends: gir1.2-glib-2.0,
|
||||
Depends: desktop-file-utils,
|
||||
gir1.2-glib-2.0,
|
||||
libglib2.0-dev-bin,
|
||||
python3-dbus,
|
||||
python3-dbusmock,
|
||||
|
@ -103,8 +106,7 @@ Package: libglib2.0-bin
|
|||
Section: misc
|
||||
Architecture: any
|
||||
Pre-Depends: ${misc:Pre-Depends}
|
||||
Depends: libglib2.0-0 (= ${binary:Version}),
|
||||
libglib2.0-data,
|
||||
Depends: libglib2.0-data,
|
||||
${misc:Depends},
|
||||
${shlibs:Depends}
|
||||
Multi-Arch: foreign
|
||||
|
@ -124,8 +126,8 @@ Depends: libffi-dev (>= 3.3),
|
|||
libglib2.0-0 (= ${binary:Version}),
|
||||
libglib2.0-bin (= ${binary:Version}),
|
||||
libglib2.0-dev-bin (= ${binary:Version}),
|
||||
libmount-dev (>= 2.28) [linux-any],
|
||||
libpcre3-dev (>= 1:8.31),
|
||||
libmount-dev (>= 2.35.2-7~) [linux-any],
|
||||
libpcre2-dev,
|
||||
libselinux1-dev [linux-any],
|
||||
pkg-config,
|
||||
zlib1g-dev,
|
||||
|
@ -155,12 +157,8 @@ Depends: python3-distutils,
|
|||
${misc:Depends},
|
||||
${python3:Depends},
|
||||
${shlibs:Depends}
|
||||
Suggests: libgdk-pixbuf2.0-bin (>= 2.36.12-2~) | libgdk-pixbuf2.0-dev,
|
||||
Suggests: libgdk-pixbuf2.0-bin,
|
||||
libxml2-utils
|
||||
Breaks: libglib2.0-bin (<< 2.54.2-5~),
|
||||
libglib2.0-dev (<< 2.53)
|
||||
Replaces: libglib2.0-bin (<< 2.54.2-5~),
|
||||
libglib2.0-dev (<< 2.53)
|
||||
Multi-Arch: foreign
|
||||
Description: Development utilities for the GLib library
|
||||
GLib is a library containing many useful C routines for things such
|
||||
|
@ -196,13 +194,3 @@ Description: Documentation files for the GLib library
|
|||
.
|
||||
This package contains the HTML documentation for the GLib library
|
||||
in /usr/share/doc/libglib2.0-doc/ .
|
||||
|
||||
Package: libgio-fam
|
||||
Architecture: hurd-any kfreebsd-any
|
||||
Depends: ${misc:Depends},
|
||||
${shlibs:Depends}
|
||||
Recommends: gamin
|
||||
Multi-Arch: same
|
||||
Description: GLib Input, Output and Streaming Library (fam module)
|
||||
GIO is the input, output and streaming API of GLib. This package
|
||||
provides a fam file and directory monitoring backend for it.
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
#!/bin/sh
|
||||
# Fallback implementation of gio-launch-desktop. If we upgrade from a
|
||||
# GLib version between 2.57.2 and 2.63.5, as long as that version is
|
||||
# still loaded into some process, it requires this executable to launch
|
||||
# .desktop files.
|
||||
#
|
||||
# This script will be removed after Ubuntu 20.04 and Debian 11 are released.
|
||||
# Do not rely on it.
|
||||
|
||||
set -eu
|
||||
export GIO_LAUNCHED_DESKTOP_FILE_PID="$$"
|
||||
exec "$@"
|
|
@ -1 +0,0 @@
|
|||
usr/lib/*/gio
|
|
@ -1,3 +1,2 @@
|
|||
#!/usr/bin/dh-exec
|
||||
/usr/lib/${DEB_HOST_MULTIARCH}/gio/modules
|
||||
/usr/share/glib-2.0/schemas
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#!/usr/bin/dh-exec
|
||||
usr/lib/*/glib-2.0/gio-launch-desktop
|
||||
usr/lib/*/glib-2.0/gio-querymodules
|
||||
usr/lib/*/glib-2.0/glib-compile-schemas
|
||||
usr/lib/*/libglib*.so.*
|
||||
usr/lib/*/libgobject*.so.*
|
||||
usr/lib/*/libgmodule*.so.*
|
||||
usr/lib/*/libgthread*.so.*
|
||||
usr/lib/*/libgio*.so.*
|
||||
usr/bin/gio-querymodules usr/lib/${DEB_HOST_MULTIARCH}/glib-2.0
|
||||
usr/bin/glib-compile-schemas usr/lib/${DEB_HOST_MULTIARCH}/glib-2.0
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# GObject uses GLib functions instead of using libc directly
|
||||
libglib2.0-0: hardening-no-fortify-functions usr/lib/*/libgobject-2.0.so.*
|
||||
libglib2.0-0: hardening-no-fortify-functions [usr/lib/*/libgobject-2.0.so.*]
|
||||
# It's a deliberate choice of bundling them together
|
||||
libglib2.0-0: package-name-doesnt-match-sonames libgio-2.0-0 libglib-2.0-0 libgmodule-2.0-0 libgobject-2.0-0 libgthread-2.0-0
|
||||
# These empty directories are deliberate.
|
||||
libglib2.0-0: package-contains-empty-directory usr/lib/*/gio/modules/
|
||||
libglib2.0-0: package-contains-empty-directory usr/share/glib-2.0/schemas/
|
||||
libglib2.0-0: package-contains-empty-directory [usr/lib/*/gio/modules/]
|
||||
libglib2.0-0: package-contains-empty-directory [usr/share/glib-2.0/schemas/]
|
||||
|
|
|
@ -17,19 +17,11 @@ handle_triggers () {
|
|||
"/usr/lib/#MULTIARCH#/glib-2.0/glib-compile-schemas" /usr/share/glib-2.0/schemas || true
|
||||
;;
|
||||
|
||||
"/usr/lib/#MULTIARCH#/gio/modules"|/usr/lib/gio/modules)
|
||||
"/usr/lib/#MULTIARCH#/gio/modules")
|
||||
# This is triggered everytime an application installs a GIO
|
||||
# module into /usr/lib/#MULTIARCH#/gio/modules or the
|
||||
# backwards-compatible /usr/lib/gio/modules directory
|
||||
# module into /usr/lib/#MULTIARCH#/gio/modules
|
||||
|
||||
# The /usr/lib/gio/modules directory is no longer shipped by
|
||||
# libglib2.0 itself so we need to check to avoid a warning from
|
||||
# gio-querymodules
|
||||
dirs="/usr/lib/#MULTIARCH#/gio/modules"
|
||||
if [ -d /usr/lib/gio/modules ] && [ $(dpkg --print-architecture) = "#ARCH#" ]; then
|
||||
dirs="$dirs /usr/lib/gio/modules"
|
||||
fi
|
||||
"/usr/lib/#MULTIARCH#/glib-2.0/gio-querymodules" $dirs || true
|
||||
"/usr/lib/#MULTIARCH#/glib-2.0/gio-querymodules" "/usr/lib/#MULTIARCH#/gio/modules" || true
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
@ -42,15 +34,19 @@ fi
|
|||
|
||||
#DEBHELPER#
|
||||
|
||||
# Also handle the initial installation
|
||||
if [ -d /usr/share/glib-2.0/schemas ]; then
|
||||
"/usr/lib/#MULTIARCH#/glib-2.0/glib-compile-schemas" /usr/share/glib-2.0/schemas || true
|
||||
fi
|
||||
if [ -d "/usr/lib/#MULTIARCH#/gio/modules" ]; then
|
||||
"/usr/lib/#MULTIARCH#/glib-2.0/gio-querymodules" "/usr/lib/#MULTIARCH#/gio/modules" || true
|
||||
fi
|
||||
if [ -d /usr/lib/gio/modules ] && [ $(dpkg --print-architecture) = "#ARCH#" ]; then
|
||||
"/usr/lib/#MULTIARCH#/glib-2.0/gio-querymodules" /usr/lib/gio/modules || true
|
||||
# This is shipped in the .deb (see debian/libglib2.0-0.dirs) but would
|
||||
# be removed if empty during upgrade by old versions of the postrm (#987913).
|
||||
# This workaround can be removed after Debian 12 and Ubuntu 22.04 are released.
|
||||
install -d "/usr/lib/#MULTIARCH#/gio/modules"
|
||||
|
||||
"/usr/lib/#MULTIARCH#/glib-2.0/glib-compile-schemas" /usr/share/glib-2.0/schemas || true
|
||||
"/usr/lib/#MULTIARCH#/glib-2.0/gio-querymodules" "/usr/lib/#MULTIARCH#/gio/modules" || true
|
||||
|
||||
# Clean up pre-multiarch giomodule.cache.
|
||||
# This workaround can be removed after Debian 12 and Ubuntu 22.04 are released.
|
||||
if [ -d /usr/lib/gio/modules ]; then
|
||||
rm -f /usr/lib/gio/modules/giomodule.cache
|
||||
rmdir -p --ignore-fail-on-non-empty /usr/lib/gio/modules
|
||||
fi
|
||||
|
||||
# vim:set sw=4 sts=4 et:
|
||||
|
|
|
@ -3,18 +3,15 @@ set -e
|
|||
|
||||
#DEBHELPER#
|
||||
|
||||
if [ -d /usr/lib/#MULTIARCH#/gio/modules ]; then
|
||||
case "$1" in
|
||||
(remove|purge)
|
||||
if [ -d /usr/lib/#MULTIARCH#/gio/modules ]; then
|
||||
# Purge the cache
|
||||
rm -f /usr/lib/#MULTIARCH#/gio/modules/giomodule.cache
|
||||
rmdir -p --ignore-fail-on-non-empty /usr/lib/#MULTIARCH#/gio/modules
|
||||
fi
|
||||
if [ -d /usr/lib/gio/modules ]; then
|
||||
# Purge the cache
|
||||
if [ $(dpkg --print-architecture) = #ARCH# ]; then
|
||||
rm -f /usr/lib/gio/modules/giomodule.cache
|
||||
rmdir -p --ignore-fail-on-non-empty /usr/lib/gio/modules
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ "$1" = purge ] && [ -d /usr/share/glib-2.0/schemas ] && [ "$DPKG_MAINTSCRIPT_PACKAGE_REFCOUNT" = 1 ]; then
|
||||
# This is the last multiarch variant to be removed, so drop the
|
||||
|
|
|
@ -44,7 +44,11 @@ libgio-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_app_info_get_all_for_type@Base 2.16.0
|
||||
g_app_info_get_commandline@Base 2.20.0
|
||||
g_app_info_get_default_for_type@Base 2.16.0
|
||||
g_app_info_get_default_for_type_async@Base 2.73.2
|
||||
g_app_info_get_default_for_type_finish@Base 2.73.2
|
||||
g_app_info_get_default_for_uri_scheme@Base 2.16.0
|
||||
g_app_info_get_default_for_uri_scheme_async@Base 2.73.2
|
||||
g_app_info_get_default_for_uri_scheme_finish@Base 2.73.2
|
||||
g_app_info_get_description@Base 2.16.0
|
||||
g_app_info_get_display_name@Base 2.24.0
|
||||
g_app_info_get_executable@Base 2.16.0
|
||||
|
@ -366,6 +370,8 @@ libgio-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_dbus_error_set_dbus_error_valist@Base 2.26.0
|
||||
g_dbus_error_strip_remote_error@Base 2.26.0
|
||||
g_dbus_error_unregister_error@Base 2.26.0
|
||||
g_dbus_escape_object_path@Base 2.67.3
|
||||
g_dbus_escape_object_path_bytestring@Base 2.67.3
|
||||
g_dbus_generate_guid@Base 2.26.0
|
||||
g_dbus_gvalue_to_gvariant@Base 2.30.0
|
||||
g_dbus_gvariant_to_gvalue@Base 2.30.0
|
||||
|
@ -399,6 +405,7 @@ libgio-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_dbus_interface_skeleton_unexport@Base 2.30.0
|
||||
g_dbus_interface_skeleton_unexport_from_connection@Base 2.31.8
|
||||
g_dbus_is_address@Base 2.26.0
|
||||
g_dbus_is_error_name@Base 2.70.0
|
||||
g_dbus_is_guid@Base 2.26.0
|
||||
g_dbus_is_interface_name@Base 2.26.0
|
||||
g_dbus_is_member_name@Base 2.26.0
|
||||
|
@ -566,7 +573,7 @@ libgio-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_dbus_server_get_guid@Base 2.26.0
|
||||
g_dbus_server_get_type@Base 2.26.0
|
||||
g_dbus_server_is_active@Base 2.26.0
|
||||
g_dbus_server_new_sync@Base 2.26.0
|
||||
g_dbus_server_new_sync@Base 2.68.0
|
||||
g_dbus_server_start@Base 2.26.0
|
||||
g_dbus_server_stop@Base 2.26.0
|
||||
g_dbus_signal_flags_get_type@Base 2.26.0
|
||||
|
@ -574,6 +581,13 @@ libgio-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_dbus_signal_info_ref@Base 2.26.0
|
||||
g_dbus_signal_info_unref@Base 2.26.0
|
||||
g_dbus_subtree_flags_get_type@Base 2.26.0
|
||||
g_dbus_unescape_object_path@Base 2.67.3
|
||||
g_debug_controller_dbus_get_type@Base 2.71.1
|
||||
g_debug_controller_dbus_new@Base 2.71.1
|
||||
g_debug_controller_dbus_stop@Base 2.71.2
|
||||
g_debug_controller_get_debug_enabled@Base 2.71.1
|
||||
g_debug_controller_get_type@Base 2.71.1
|
||||
g_debug_controller_set_debug_enabled@Base 2.71.1
|
||||
g_desktop_app_info_get_action_name@Base 2.37.5
|
||||
g_desktop_app_info_get_boolean@Base 2.35.8
|
||||
g_desktop_app_info_get_categories@Base 2.30.0
|
||||
|
@ -644,11 +658,14 @@ libgio-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_dtls_connection_close_finish@Base 2.47.5
|
||||
g_dtls_connection_emit_accept_certificate@Base 2.47.5
|
||||
g_dtls_connection_get_certificate@Base 2.47.5
|
||||
g_dtls_connection_get_channel_binding_data@Base 2.65.1
|
||||
g_dtls_connection_get_ciphersuite_name@Base 2.70.0
|
||||
g_dtls_connection_get_database@Base 2.47.5
|
||||
g_dtls_connection_get_interaction@Base 2.47.5
|
||||
g_dtls_connection_get_negotiated_protocol@Base 2.59.0
|
||||
g_dtls_connection_get_peer_certificate@Base 2.47.5
|
||||
g_dtls_connection_get_peer_certificate_errors@Base 2.47.5
|
||||
g_dtls_connection_get_protocol_version@Base 2.70.0
|
||||
g_dtls_connection_get_rehandshake_mode@Base 2.47.5
|
||||
g_dtls_connection_get_require_close_notify@Base 2.47.5
|
||||
g_dtls_connection_get_type@Base 2.47.5
|
||||
|
@ -701,6 +718,7 @@ libgio-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_file_attribute_matcher_unref@Base 2.16.0
|
||||
g_file_attribute_status_get_type@Base 2.16.0
|
||||
g_file_attribute_type_get_type@Base 2.16.0
|
||||
g_file_build_attribute_list_for_copy@Base 2.67.1
|
||||
g_file_copy@Base 2.16.0
|
||||
g_file_copy_async@Base 2.16.0
|
||||
g_file_copy_attributes@Base 2.16.0
|
||||
|
@ -763,6 +781,7 @@ libgio-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_file_info_clear_status@Base 2.16.0
|
||||
g_file_info_copy_into@Base 2.16.0
|
||||
g_file_info_dup@Base 2.16.0
|
||||
g_file_info_get_access_date_time@Base 2.70.0
|
||||
g_file_info_get_attribute_as_string@Base 2.16.0
|
||||
g_file_info_get_attribute_boolean@Base 2.16.0
|
||||
g_file_info_get_attribute_byte_string@Base 2.16.0
|
||||
|
@ -777,6 +796,7 @@ libgio-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_file_info_get_attribute_uint32@Base 2.16.0
|
||||
g_file_info_get_attribute_uint64@Base 2.16.0
|
||||
g_file_info_get_content_type@Base 2.16.0
|
||||
g_file_info_get_creation_date_time@Base 2.70.0
|
||||
g_file_info_get_deletion_date@Base 2.35.8
|
||||
g_file_info_get_display_name@Base 2.16.0
|
||||
g_file_info_get_edit_name@Base 2.16.0
|
||||
|
@ -799,6 +819,7 @@ libgio-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_file_info_list_attributes@Base 2.16.0
|
||||
g_file_info_new@Base 2.16.0
|
||||
g_file_info_remove_attribute@Base 2.16.0
|
||||
g_file_info_set_access_date_time@Base 2.70.0
|
||||
g_file_info_set_attribute@Base 2.16.0
|
||||
g_file_info_set_attribute_boolean@Base 2.16.0
|
||||
g_file_info_set_attribute_byte_string@Base 2.16.0
|
||||
|
@ -812,6 +833,7 @@ libgio-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_file_info_set_attribute_uint32@Base 2.16.0
|
||||
g_file_info_set_attribute_uint64@Base 2.16.0
|
||||
g_file_info_set_content_type@Base 2.16.0
|
||||
g_file_info_set_creation_date_time@Base 2.70.0
|
||||
g_file_info_set_display_name@Base 2.16.0
|
||||
g_file_info_set_edit_name@Base 2.16.0
|
||||
g_file_info_set_file_type@Base 2.16.0
|
||||
|
@ -849,6 +871,8 @@ libgio-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_file_make_directory_finish@Base 2.37.0
|
||||
g_file_make_directory_with_parents@Base 2.18.0
|
||||
g_file_make_symbolic_link@Base 2.16.0
|
||||
g_file_make_symbolic_link_async@Base 2.73.2
|
||||
g_file_make_symbolic_link_finish@Base 2.73.2
|
||||
g_file_measure_disk_usage@Base 2.37.93
|
||||
g_file_measure_disk_usage_async@Base 2.37.93
|
||||
g_file_measure_disk_usage_finish@Base 2.37.93
|
||||
|
@ -869,12 +893,18 @@ libgio-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_file_mount_mountable@Base 2.16.0
|
||||
g_file_mount_mountable_finish@Base 2.16.0
|
||||
g_file_move@Base 2.16.0
|
||||
g_file_move_async@Base 2.71.2
|
||||
g_file_move_finish@Base 2.71.2
|
||||
g_file_new_build_filename@Base 2.55.1
|
||||
g_file_new_for_commandline_arg@Base 2.16.0
|
||||
g_file_new_for_commandline_arg_and_cwd@Base 2.35.8
|
||||
g_file_new_for_path@Base 2.16.0
|
||||
g_file_new_for_uri@Base 2.16.0
|
||||
g_file_new_tmp@Base 2.31.8
|
||||
g_file_new_tmp_async@Base 2.73.2
|
||||
g_file_new_tmp_dir_async@Base 2.73.2
|
||||
g_file_new_tmp_dir_finish@Base 2.73.2
|
||||
g_file_new_tmp_finish@Base 2.73.2
|
||||
g_file_open_readwrite@Base 2.22.0
|
||||
g_file_open_readwrite_async@Base 2.22.0
|
||||
g_file_open_readwrite_finish@Base 2.22.0
|
||||
|
@ -1025,6 +1055,7 @@ libgio-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_input_stream_skip_finish@Base 2.16.0
|
||||
g_io_error_enum_get_type@Base 2.16.0
|
||||
g_io_error_from_errno@Base 2.16.0
|
||||
g_io_error_from_file_error@Base 2.73.2
|
||||
g_io_error_quark@Base 2.16.0
|
||||
g_io_extension_get_name@Base 2.16.0
|
||||
g_io_extension_get_priority@Base 2.16.0
|
||||
|
@ -1074,6 +1105,7 @@ libgio-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_list_store_append@Base 2.43.4
|
||||
g_list_store_find@Base 2.63.3
|
||||
g_list_store_find_with_equal_func@Base 2.63.3
|
||||
g_list_store_find_with_equal_func_full@Base 2.73.1
|
||||
g_list_store_get_type@Base 2.43.4
|
||||
g_list_store_insert@Base 2.43.4
|
||||
g_list_store_insert_sorted@Base 2.43.4
|
||||
|
@ -1250,6 +1282,7 @@ libgio-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_notification_new@Base 2.39.4
|
||||
g_notification_priority_get_type@Base 2.41.2
|
||||
g_notification_set_body@Base 2.39.4
|
||||
g_notification_set_category@Base 2.70.0
|
||||
g_notification_set_default_action@Base 2.39.4
|
||||
g_notification_set_default_action_and_target@Base 2.39.4
|
||||
g_notification_set_default_action_and_target_value@Base 2.39.4
|
||||
|
@ -1320,6 +1353,9 @@ libgio-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_pollable_stream_read@Base 2.33.14
|
||||
g_pollable_stream_write@Base 2.33.14
|
||||
g_pollable_stream_write_all@Base 2.33.14
|
||||
g_power_profile_monitor_dup_default@Base 2.70.0
|
||||
g_power_profile_monitor_get_power_saver_enabled@Base 2.70.0
|
||||
g_power_profile_monitor_get_type@Base 2.70.0
|
||||
g_property_action_get_type@Base 2.37.5
|
||||
g_property_action_new@Base 2.37.5
|
||||
g_proxy_address_enumerator_get_type@Base 2.26.0
|
||||
|
@ -1370,6 +1406,8 @@ libgio-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_resolver_lookup_service_finish@Base 2.22.0
|
||||
g_resolver_name_lookup_flags_get_type@Base 2.59.0
|
||||
g_resolver_record_type_get_type@Base 2.33.14
|
||||
g_resolver_record_type_to_rrtype@Base 2.72.1
|
||||
g_resolver_records_from_res_query@Base 2.71.0
|
||||
g_resolver_set_default@Base 2.22.0
|
||||
g_resource_enumerate_children@Base 2.31.18
|
||||
g_resource_error_get_type@Base 2.31.18
|
||||
|
@ -1708,6 +1746,7 @@ libgio-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_subprocess_get_successful@Base 2.39.4
|
||||
g_subprocess_get_term_sig@Base 2.39.4
|
||||
g_subprocess_get_type@Base 2.39.4
|
||||
g_subprocess_launcher_close@Base 2.67.1
|
||||
g_subprocess_launcher_get_type@Base 2.39.4
|
||||
g_subprocess_launcher_getenv@Base 2.39.4
|
||||
g_subprocess_launcher_new@Base 2.39.4
|
||||
|
@ -1811,15 +1850,27 @@ libgio-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_tls_backend_supports_dtls@Base 2.47.5
|
||||
g_tls_backend_supports_tls@Base 2.28.0
|
||||
g_tls_certificate_flags_get_type@Base 2.28.0
|
||||
g_tls_certificate_get_dns_names@Base 2.70.0
|
||||
g_tls_certificate_get_ip_addresses@Base 2.70.0
|
||||
g_tls_certificate_get_issuer@Base 2.28.0
|
||||
g_tls_certificate_get_issuer_name@Base 2.70.0
|
||||
g_tls_certificate_get_not_valid_after@Base 2.70.0
|
||||
g_tls_certificate_get_not_valid_before@Base 2.70.0
|
||||
g_tls_certificate_get_subject_name@Base 2.70.0
|
||||
g_tls_certificate_get_type@Base 2.28.0
|
||||
g_tls_certificate_is_same@Base 2.33.14
|
||||
g_tls_certificate_list_new_from_file@Base 2.28.0
|
||||
g_tls_certificate_new_from_file@Base 2.28.0
|
||||
g_tls_certificate_new_from_file_with_password@Base 2.71.1
|
||||
g_tls_certificate_new_from_files@Base 2.28.0
|
||||
g_tls_certificate_new_from_pem@Base 2.28.0
|
||||
g_tls_certificate_new_from_pkcs11_uris@Base 2.67.1
|
||||
g_tls_certificate_new_from_pkcs12@Base 2.71.1
|
||||
g_tls_certificate_request_flags_get_type@Base 2.39.4
|
||||
g_tls_certificate_verify@Base 2.28.0
|
||||
g_tls_channel_binding_error_get_type@Base 2.65.1
|
||||
g_tls_channel_binding_error_quark@Base 2.65.1
|
||||
g_tls_channel_binding_type_get_type@Base 2.65.1
|
||||
g_tls_client_connection_copy_session_state@Base 2.45.1
|
||||
g_tls_client_connection_get_accepted_cas@Base 2.28.0
|
||||
g_tls_client_connection_get_server_identity@Base 2.28.0
|
||||
|
@ -1832,11 +1883,14 @@ libgio-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_tls_client_connection_set_validation_flags@Base 2.28.0
|
||||
g_tls_connection_emit_accept_certificate@Base 2.28.0
|
||||
g_tls_connection_get_certificate@Base 2.28.0
|
||||
g_tls_connection_get_channel_binding_data@Base 2.65.1
|
||||
g_tls_connection_get_ciphersuite_name@Base 2.70.0
|
||||
g_tls_connection_get_database@Base 2.30.0
|
||||
g_tls_connection_get_interaction@Base 2.30.0
|
||||
g_tls_connection_get_negotiated_protocol@Base 2.59.0
|
||||
g_tls_connection_get_peer_certificate@Base 2.28.0
|
||||
g_tls_connection_get_peer_certificate_errors@Base 2.28.0
|
||||
g_tls_connection_get_protocol_version@Base 2.70.0
|
||||
g_tls_connection_get_rehandshake_mode@Base 2.28.0
|
||||
g_tls_connection_get_require_close_notify@Base 2.28.0
|
||||
g_tls_connection_get_type@Base 2.28.0
|
||||
|
@ -1893,6 +1947,7 @@ libgio-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_tls_password_set_value@Base 2.30.0
|
||||
g_tls_password_set_value_full@Base 2.30.0
|
||||
g_tls_password_set_warning@Base 2.30.0
|
||||
g_tls_protocol_version_get_type@Base 2.70.0
|
||||
g_tls_rehandshake_mode_get_type@Base 2.28.0
|
||||
g_tls_server_connection_get_type@Base 2.28.0
|
||||
g_tls_server_connection_new@Base 2.28.0
|
||||
|
@ -1954,6 +2009,7 @@ libgio-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_unix_mount_monitor_get_type@Base 2.16.0
|
||||
g_unix_mount_monitor_new@Base 2.16.0
|
||||
g_unix_mount_monitor_set_rate_limit@Base 2.18.0
|
||||
g_unix_mount_point_at@Base 2.65.1
|
||||
g_unix_mount_point_compare@Base 2.16.0
|
||||
g_unix_mount_point_copy@Base 2.53.1
|
||||
g_unix_mount_point_free@Base 2.16.0
|
||||
|
@ -2038,6 +2094,9 @@ libglib-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
* Build-Depends-Package: libglib2.0-dev
|
||||
__glib_assert_msg@Base 2.37.6
|
||||
g_access@Base 2.12.0
|
||||
g_aligned_alloc@Base 2.71.2
|
||||
g_aligned_alloc0@Base 2.71.2
|
||||
g_aligned_free@Base 2.71.2
|
||||
g_allocator_free@Base 2.12.0
|
||||
g_allocator_new@Base 2.12.0
|
||||
g_array_append_vals@Base 2.12.0
|
||||
|
@ -2079,6 +2138,7 @@ libglib-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_assertion_message@Base 2.16.0
|
||||
g_assertion_message_cmpnum@Base 2.16.0
|
||||
g_assertion_message_cmpstr@Base 2.16.0
|
||||
g_assertion_message_cmpstrv@Base 2.67.1
|
||||
g_assertion_message_error@Base 2.20.0
|
||||
g_assertion_message_expr@Base 2.16.0
|
||||
g_async_queue_length@Base 2.12.0
|
||||
|
@ -2113,7 +2173,9 @@ libglib-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_atomic_int_add@Base 2.12.0
|
||||
g_atomic_int_and@Base 2.30.0
|
||||
g_atomic_int_compare_and_exchange@Base 2.12.0
|
||||
g_atomic_int_compare_and_exchange_full@Base 2.73.2
|
||||
g_atomic_int_dec_and_test@Base 2.30.0
|
||||
g_atomic_int_exchange@Base 2.73.1
|
||||
g_atomic_int_exchange_and_add@Base 2.12.0
|
||||
g_atomic_int_get@Base 2.12.0
|
||||
g_atomic_int_inc@Base 2.30.0
|
||||
|
@ -2123,6 +2185,8 @@ libglib-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_atomic_pointer_add@Base 2.30.0
|
||||
g_atomic_pointer_and@Base 2.30.0
|
||||
g_atomic_pointer_compare_and_exchange@Base 2.12.0
|
||||
g_atomic_pointer_compare_and_exchange_full@Base 2.73.2
|
||||
g_atomic_pointer_exchange@Base 2.73.1
|
||||
g_atomic_pointer_get@Base 2.12.0
|
||||
g_atomic_pointer_or@Base 2.30.0
|
||||
g_atomic_pointer_set@Base 2.12.0
|
||||
|
@ -2157,7 +2221,9 @@ libglib-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_bookmark_file_error_quark@Base 2.12.0
|
||||
g_bookmark_file_free@Base 2.12.0
|
||||
g_bookmark_file_get_added@Base 2.12.0
|
||||
g_bookmark_file_get_added_date_time@Base 2.65.1
|
||||
g_bookmark_file_get_app_info@Base 2.12.0
|
||||
g_bookmark_file_get_application_info@Base 2.65.1
|
||||
g_bookmark_file_get_applications@Base 2.12.0
|
||||
g_bookmark_file_get_description@Base 2.12.0
|
||||
g_bookmark_file_get_groups@Base 2.12.0
|
||||
|
@ -2165,10 +2231,12 @@ libglib-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_bookmark_file_get_is_private@Base 2.12.0
|
||||
g_bookmark_file_get_mime_type@Base 2.12.0
|
||||
g_bookmark_file_get_modified@Base 2.12.0
|
||||
g_bookmark_file_get_modified_date_time@Base 2.65.1
|
||||
g_bookmark_file_get_size@Base 2.12.0
|
||||
g_bookmark_file_get_title@Base 2.12.0
|
||||
g_bookmark_file_get_uris@Base 2.12.0
|
||||
g_bookmark_file_get_visited@Base 2.12.0
|
||||
g_bookmark_file_get_visited_date_time@Base 2.65.1
|
||||
g_bookmark_file_has_application@Base 2.12.0
|
||||
g_bookmark_file_has_group@Base 2.12.0
|
||||
g_bookmark_file_has_item@Base 2.12.0
|
||||
|
@ -2181,15 +2249,19 @@ libglib-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_bookmark_file_remove_group@Base 2.12.0
|
||||
g_bookmark_file_remove_item@Base 2.12.0
|
||||
g_bookmark_file_set_added@Base 2.12.0
|
||||
g_bookmark_file_set_added_date_time@Base 2.65.1
|
||||
g_bookmark_file_set_app_info@Base 2.12.0
|
||||
g_bookmark_file_set_application_info@Base 2.65.1
|
||||
g_bookmark_file_set_description@Base 2.12.0
|
||||
g_bookmark_file_set_groups@Base 2.12.0
|
||||
g_bookmark_file_set_icon@Base 2.12.0
|
||||
g_bookmark_file_set_is_private@Base 2.12.0
|
||||
g_bookmark_file_set_mime_type@Base 2.12.0
|
||||
g_bookmark_file_set_modified@Base 2.12.0
|
||||
g_bookmark_file_set_modified_date_time@Base 2.65.1
|
||||
g_bookmark_file_set_title@Base 2.12.0
|
||||
g_bookmark_file_set_visited@Base 2.12.0
|
||||
g_bookmark_file_set_visited_date_time@Base 2.65.1
|
||||
g_bookmark_file_to_data@Base 2.12.0
|
||||
g_bookmark_file_to_file@Base 2.12.0
|
||||
g_build_filename@Base 2.12.0
|
||||
|
@ -2216,6 +2288,7 @@ libglib-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_bytes_compare@Base 2.31.8
|
||||
g_bytes_equal@Base 2.31.8
|
||||
g_bytes_get_data@Base 2.31.8
|
||||
g_bytes_get_region@Base 2.70.0
|
||||
g_bytes_get_size@Base 2.31.8
|
||||
g_bytes_hash@Base 2.31.8
|
||||
g_bytes_new@Base 2.31.8
|
||||
|
@ -2288,6 +2361,7 @@ libglib-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_datalist_get_flags@Base 2.12.0
|
||||
g_datalist_id_dup_data@Base 2.33.14
|
||||
g_datalist_id_get_data@Base 2.12.0
|
||||
g_datalist_id_remove_multiple@Base 2.73.1
|
||||
g_datalist_id_remove_no_notify@Base 2.12.0
|
||||
g_datalist_id_replace_data@Base 2.33.14
|
||||
g_datalist_id_set_data_full@Base 2.12.0
|
||||
|
@ -2416,6 +2490,8 @@ libglib-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_environ_setenv@Base 2.31.8
|
||||
g_environ_unsetenv@Base 2.31.8
|
||||
g_error_copy@Base 2.12.0
|
||||
g_error_domain_register@Base 2.67.2
|
||||
g_error_domain_register_static@Base 2.67.2
|
||||
g_error_free@Base 2.12.0
|
||||
g_error_matches@Base 2.12.0
|
||||
g_error_new@Base 2.12.0
|
||||
|
@ -2427,6 +2503,7 @@ libglib-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_file_open_tmp@Base 2.12.0
|
||||
g_file_read_link@Base 2.12.0
|
||||
g_file_set_contents@Base 2.12.0
|
||||
g_file_set_contents_full@Base 2.65.1
|
||||
g_file_test@Base 2.12.0
|
||||
g_filename_display_basename@Base 2.12.0
|
||||
g_filename_display_name@Base 2.12.0
|
||||
|
@ -2471,6 +2548,7 @@ libglib-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_get_user_name@Base 2.12.0
|
||||
g_get_user_runtime_dir@Base 2.28.0
|
||||
g_get_user_special_dir@Base 2.14.0
|
||||
g_get_user_state_dir@Base 2.71.1
|
||||
g_getenv@Base 2.12.0
|
||||
g_hash_table_add@Base 2.31.8
|
||||
g_hash_table_contains@Base 2.31.8
|
||||
|
@ -2493,6 +2571,7 @@ libglib-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_hash_table_lookup_extended@Base 2.12.0
|
||||
g_hash_table_new@Base 2.12.0
|
||||
g_hash_table_new_full@Base 2.12.0
|
||||
g_hash_table_new_similar@Base 2.71.1
|
||||
g_hash_table_ref@Base 2.12.0
|
||||
g_hash_table_remove@Base 2.12.0
|
||||
g_hash_table_remove_all@Base 2.12.0
|
||||
|
@ -2542,6 +2621,7 @@ libglib-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_iconv_open@Base 2.12.0
|
||||
g_idle_add@Base 2.12.0
|
||||
g_idle_add_full@Base 2.12.0
|
||||
g_idle_add_once@Base 2.73.1
|
||||
g_idle_funcs@Base 2.12.0
|
||||
g_idle_remove_by_data@Base 2.12.0
|
||||
g_idle_source_new@Base 2.12.0
|
||||
|
@ -2679,8 +2759,10 @@ libglib-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_locale_to_utf8@Base 2.12.0
|
||||
g_log@Base 2.12.0
|
||||
g_log_default_handler@Base 2.12.0
|
||||
g_log_get_debug_enabled@Base 2.71.1
|
||||
g_log_remove_handler@Base 2.12.0
|
||||
g_log_set_always_fatal@Base 2.12.0
|
||||
g_log_set_debug_enabled@Base 2.71.1
|
||||
g_log_set_default_handler@Base 2.12.0
|
||||
g_log_set_fatal_mask@Base 2.12.0
|
||||
g_log_set_handler@Base 2.12.0
|
||||
|
@ -2691,6 +2773,8 @@ libglib-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_log_structured_standard@Base 2.55.2
|
||||
g_log_variant@Base 2.49.7
|
||||
g_log_writer_default@Base 2.49.3
|
||||
g_log_writer_default_set_use_stderr@Base 2.67.1
|
||||
g_log_writer_default_would_drop@Base 2.67.1
|
||||
g_log_writer_format_fields@Base 2.49.3
|
||||
g_log_writer_is_journald@Base 2.49.3
|
||||
g_log_writer_journald@Base 2.49.3
|
||||
|
@ -2713,6 +2797,7 @@ libglib-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_main_context_is_owner@Base 2.12.0
|
||||
g_main_context_iteration@Base 2.12.0
|
||||
g_main_context_new@Base 2.12.0
|
||||
g_main_context_new_with_flags@Base 2.71.0
|
||||
g_main_context_pending@Base 2.12.0
|
||||
g_main_context_pop_thread_default@Base 2.22.0
|
||||
g_main_context_prepare@Base 2.12.0
|
||||
|
@ -2792,6 +2877,7 @@ libglib-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_mem_is_system_malloc@Base 2.12.0
|
||||
g_mem_profile@Base 2.12.0
|
||||
g_mem_set_vtable@Base 2.12.0
|
||||
g_memdup2@Base 2.67.3
|
||||
g_memdup@Base 2.12.0
|
||||
g_mkdir@Base 2.12.0
|
||||
g_mkdir_with_parents@Base 2.12.0
|
||||
|
@ -2882,14 +2968,18 @@ libglib-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_pattern_match@Base 2.12.0
|
||||
g_pattern_match_simple@Base 2.12.0
|
||||
g_pattern_match_string@Base 2.12.0
|
||||
g_pattern_spec_copy@Base 2.70.0
|
||||
g_pattern_spec_equal@Base 2.12.0
|
||||
g_pattern_spec_free@Base 2.12.0
|
||||
g_pattern_spec_match@Base 2.70.0
|
||||
g_pattern_spec_match_string@Base 2.70.0
|
||||
g_pattern_spec_new@Base 2.12.0
|
||||
g_pointer_bit_lock@Base 2.30.0
|
||||
g_pointer_bit_trylock@Base 2.30.0
|
||||
g_pointer_bit_unlock@Base 2.30.0
|
||||
g_poll@Base 2.20.0
|
||||
g_prefix_error@Base 2.16.0
|
||||
g_prefix_error_literal@Base 2.70.0
|
||||
g_print@Base 2.12.0
|
||||
g_printerr@Base 2.12.0
|
||||
g_printf@Base 2.12.0
|
||||
|
@ -2909,8 +2999,10 @@ libglib-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_ptr_array_foreach@Base 2.12.0
|
||||
g_ptr_array_free@Base 2.12.0
|
||||
g_ptr_array_insert@Base 2.39.4
|
||||
g_ptr_array_is_null_terminated@Base 2.73.1
|
||||
g_ptr_array_new@Base 2.12.0
|
||||
g_ptr_array_new_full@Base 2.30.0
|
||||
g_ptr_array_new_null_terminated@Base 2.73.1
|
||||
g_ptr_array_new_with_free_func@Base 2.22.0
|
||||
g_ptr_array_ref@Base 2.22.0
|
||||
g_ptr_array_remove@Base 2.12.0
|
||||
|
@ -3207,12 +3299,15 @@ libglib-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_source_set_name_by_id@Base 2.26.0
|
||||
g_source_set_priority@Base 2.12.0
|
||||
g_source_set_ready_time@Base 2.35.8
|
||||
g_source_set_static_name@Base 2.70.0
|
||||
g_source_unref@Base 2.12.0
|
||||
g_spaced_primes_closest@Base 2.12.0
|
||||
g_spawn_async@Base 2.12.0
|
||||
g_spawn_async_with_fds@Base 2.57.2
|
||||
g_spawn_async_with_pipes@Base 2.12.0
|
||||
g_spawn_async_with_pipes_and_fds@Base 2.67.4
|
||||
g_spawn_check_exit_status@Base 2.33.14
|
||||
g_spawn_check_wait_status@Base 2.70.0
|
||||
g_spawn_close_pid@Base 2.12.0
|
||||
g_spawn_command_line_async@Base 2.12.0
|
||||
g_spawn_command_line_sync@Base 2.12.0
|
||||
|
@ -3303,6 +3398,7 @@ libglib-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_string_prepend_len@Base 2.12.0
|
||||
g_string_prepend_unichar@Base 2.12.0
|
||||
g_string_printf@Base 2.12.0
|
||||
g_string_replace@Base 2.67.3+git20210214
|
||||
g_string_set_size@Base 2.12.0
|
||||
g_string_sized_new@Base 2.12.0
|
||||
g_string_truncate@Base 2.12.0
|
||||
|
@ -3325,6 +3421,13 @@ libglib-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_strstr_len@Base 2.12.0
|
||||
g_strtod@Base 2.12.0
|
||||
g_strup@Base 2.12.0
|
||||
g_strv_builder_add@Base 2.67.1
|
||||
g_strv_builder_add_many@Base 2.70.0
|
||||
g_strv_builder_addv@Base 2.70.0
|
||||
g_strv_builder_end@Base 2.67.1
|
||||
g_strv_builder_new@Base 2.67.1
|
||||
g_strv_builder_ref@Base 2.67.1
|
||||
g_strv_builder_unref@Base 2.67.1
|
||||
g_strv_contains@Base 2.43.2
|
||||
g_strv_equal@Base 2.59.0
|
||||
g_strv_length@Base 2.12.0
|
||||
|
@ -3336,16 +3439,20 @@ libglib-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_test_bug@Base 2.16.0
|
||||
g_test_bug_base@Base 2.16.0
|
||||
g_test_build_filename@Base 2.37.2
|
||||
g_test_case_free@Base 2.70.0
|
||||
g_test_config_vars@Base 2.16.0
|
||||
g_test_create_case@Base 2.16.0
|
||||
g_test_create_suite@Base 2.16.0
|
||||
g_test_expect_message@Base 2.33.14
|
||||
g_test_fail@Base 2.30.0
|
||||
g_test_fail_printf@Base 2.70.0
|
||||
g_test_failed@Base 2.37.6
|
||||
g_test_get_dir@Base 2.37.2
|
||||
g_test_get_filename@Base 2.37.2
|
||||
g_test_get_path@Base 2.67.3
|
||||
g_test_get_root@Base 2.16.0
|
||||
g_test_incomplete@Base 2.37.6
|
||||
g_test_incomplete_printf@Base 2.70.0
|
||||
g_test_init@Base 2.16.0
|
||||
g_test_log_buffer_free@Base 2.16.0
|
||||
g_test_log_buffer_new@Base 2.16.0
|
||||
|
@ -3367,9 +3474,11 @@ libglib-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_test_run_suite@Base 2.16.0
|
||||
g_test_set_nonfatal_assertions@Base 2.37.6
|
||||
g_test_skip@Base 2.37.6
|
||||
g_test_skip_printf@Base 2.70.0
|
||||
g_test_subprocess@Base 2.37.1
|
||||
g_test_suite_add@Base 2.16.0
|
||||
g_test_suite_add_suite@Base 2.16.0
|
||||
g_test_suite_free@Base 2.70.0
|
||||
g_test_summary@Base 2.61.1
|
||||
g_test_timer_elapsed@Base 2.16.0
|
||||
g_test_timer_last@Base 2.16.0
|
||||
|
@ -3398,6 +3507,7 @@ libglib-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_thread_pool_get_num_unused_threads@Base 2.12.0
|
||||
g_thread_pool_move_to_front@Base 2.45.4
|
||||
g_thread_pool_new@Base 2.12.0
|
||||
g_thread_pool_new_full@Base 2.70.0
|
||||
g_thread_pool_push@Base 2.12.0
|
||||
g_thread_pool_set_max_idle_time@Base 2.12.0
|
||||
g_thread_pool_set_max_threads@Base 2.12.0
|
||||
|
@ -3423,6 +3533,7 @@ libglib-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_time_zone_get_offset@Base 2.28.0
|
||||
g_time_zone_is_dst@Base 2.28.0
|
||||
g_time_zone_new@Base 2.26.0
|
||||
g_time_zone_new_identifier@Base 2.67.1
|
||||
g_time_zone_new_local@Base 2.26.0
|
||||
g_time_zone_new_offset@Base 2.57.2
|
||||
g_time_zone_new_utc@Base 2.26.0
|
||||
|
@ -3430,6 +3541,7 @@ libglib-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_time_zone_unref@Base 2.26.0
|
||||
g_timeout_add@Base 2.12.0
|
||||
g_timeout_add_full@Base 2.12.0
|
||||
g_timeout_add_once@Base 2.73.1
|
||||
g_timeout_add_seconds@Base 2.14.0
|
||||
g_timeout_add_seconds_full@Base 2.14.0
|
||||
g_timeout_funcs@Base 2.12.0
|
||||
|
@ -3449,21 +3561,35 @@ libglib-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_trash_stack_push@Base 2.12.0
|
||||
g_tree_destroy@Base 2.12.0
|
||||
g_tree_foreach@Base 2.12.0
|
||||
g_tree_foreach_node@Base 2.67.1
|
||||
g_tree_height@Base 2.12.0
|
||||
g_tree_insert@Base 2.12.0
|
||||
g_tree_insert_node@Base 2.67.1
|
||||
g_tree_lookup@Base 2.12.0
|
||||
g_tree_lookup_extended@Base 2.12.0
|
||||
g_tree_lookup_node@Base 2.67.1
|
||||
g_tree_lower_bound@Base 2.67.1
|
||||
g_tree_new@Base 2.12.0
|
||||
g_tree_new_full@Base 2.12.0
|
||||
g_tree_new_with_data@Base 2.12.0
|
||||
g_tree_nnodes@Base 2.12.0
|
||||
g_tree_node_first@Base 2.67.1
|
||||
g_tree_node_key@Base 2.67.1
|
||||
g_tree_node_last@Base 2.67.1
|
||||
g_tree_node_next@Base 2.67.1
|
||||
g_tree_node_previous@Base 2.67.1
|
||||
g_tree_node_value@Base 2.67.1
|
||||
g_tree_ref@Base 2.22.0
|
||||
g_tree_remove@Base 2.12.0
|
||||
g_tree_remove_all@Base 2.70.0
|
||||
g_tree_replace@Base 2.12.0
|
||||
g_tree_replace_node@Base 2.67.1
|
||||
g_tree_search@Base 2.12.0
|
||||
g_tree_search_node@Base 2.67.1
|
||||
g_tree_steal@Base 2.12.0
|
||||
g_tree_traverse@Base 2.12.0
|
||||
g_tree_unref@Base 2.22.0
|
||||
g_tree_upper_bound@Base 2.67.1
|
||||
g_try_malloc0@Base 2.12.0
|
||||
g_try_malloc0_n@Base 2.24.0
|
||||
g_try_malloc@Base 2.12.0
|
||||
|
@ -3524,11 +3650,44 @@ libglib-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_unix_signal_source_new@Base 2.30.0
|
||||
g_unlink@Base 2.12.0
|
||||
g_unsetenv@Base 2.12.0
|
||||
g_uri_build@Base 2.65.1
|
||||
g_uri_build_with_user@Base 2.65.1
|
||||
g_uri_error_quark@Base 2.65.1
|
||||
g_uri_escape_bytes@Base 2.65.1
|
||||
g_uri_escape_string@Base 2.16.0
|
||||
g_uri_get_auth_params@Base 2.65.1
|
||||
g_uri_get_flags@Base 2.65.1
|
||||
g_uri_get_fragment@Base 2.65.1
|
||||
g_uri_get_host@Base 2.65.1
|
||||
g_uri_get_password@Base 2.65.1
|
||||
g_uri_get_path@Base 2.65.1
|
||||
g_uri_get_port@Base 2.65.1
|
||||
g_uri_get_query@Base 2.65.1
|
||||
g_uri_get_scheme@Base 2.65.1
|
||||
g_uri_get_user@Base 2.65.1
|
||||
g_uri_get_userinfo@Base 2.65.1
|
||||
g_uri_is_valid@Base 2.65.1
|
||||
g_uri_join@Base 2.65.1
|
||||
g_uri_join_with_user@Base 2.65.1
|
||||
g_uri_list_extract_uris@Base 2.12.0
|
||||
g_uri_params_iter_init@Base 2.65.1
|
||||
g_uri_params_iter_next@Base 2.65.1
|
||||
g_uri_parse@Base 2.65.1
|
||||
g_uri_parse_params@Base 2.65.1
|
||||
g_uri_parse_relative@Base 2.65.1
|
||||
g_uri_parse_scheme@Base 2.16.0
|
||||
g_uri_peek_scheme@Base 2.65.1
|
||||
g_uri_ref@Base 2.65.1
|
||||
g_uri_resolve_relative@Base 2.65.1
|
||||
g_uri_split@Base 2.65.1
|
||||
g_uri_split_network@Base 2.65.1
|
||||
g_uri_split_with_user@Base 2.65.1
|
||||
g_uri_to_string@Base 2.65.1
|
||||
g_uri_to_string_partial@Base 2.65.1
|
||||
g_uri_unescape_bytes@Base 2.65.1
|
||||
g_uri_unescape_segment@Base 2.16.0
|
||||
g_uri_unescape_string@Base 2.16.0
|
||||
g_uri_unref@Base 2.65.1
|
||||
g_usleep@Base 2.12.0
|
||||
g_utf16_to_ucs4@Base 2.12.0
|
||||
g_utf16_to_utf8@Base 2.12.0
|
||||
|
@ -3759,14 +3918,18 @@ libgmodule-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_module_build_path@Base 2.12.0
|
||||
g_module_close@Base 2.12.0
|
||||
g_module_error@Base 2.12.0
|
||||
g_module_error_quark@Base 2.70.0
|
||||
g_module_make_resident@Base 2.12.0
|
||||
g_module_name@Base 2.12.0
|
||||
g_module_open@Base 2.12.0
|
||||
g_module_open_full@Base 2.70.0
|
||||
g_module_supported@Base 2.12.0
|
||||
g_module_symbol@Base 2.12.0
|
||||
libgobject-2.0.so.0 libglib2.0-0 #MINVER#
|
||||
* Build-Depends-Package: libglib2.0-dev
|
||||
g_array_get_type@Base 2.22.0
|
||||
g_binding_dup_source@Base 2.67.1
|
||||
g_binding_dup_target@Base 2.67.1
|
||||
g_binding_flags_get_type@Base 2.26.0
|
||||
g_binding_get_flags@Base 2.26.0
|
||||
g_binding_get_source@Base 2.26.0
|
||||
|
@ -3774,6 +3937,13 @@ libgobject-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_binding_get_target@Base 2.26.0
|
||||
g_binding_get_target_property@Base 2.26.0
|
||||
g_binding_get_type@Base 2.26.0
|
||||
g_binding_group_bind@Base 2.71.2
|
||||
g_binding_group_bind_full@Base 2.71.2
|
||||
g_binding_group_bind_with_closures@Base 2.71.2
|
||||
g_binding_group_dup_source@Base 2.71.2
|
||||
g_binding_group_get_type@Base 2.71.2
|
||||
g_binding_group_new@Base 2.71.2
|
||||
g_binding_group_set_source@Base 2.71.2
|
||||
g_binding_unbind@Base 2.37.1
|
||||
g_boxed_copy@Base 2.12.0
|
||||
g_boxed_free@Base 2.12.0
|
||||
|
@ -3912,6 +4082,7 @@ libgobject-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_object_notify_by_pspec@Base 2.26.0
|
||||
g_object_ref@Base 2.12.0
|
||||
g_object_ref_sink@Base 2.12.0
|
||||
g_object_take_ref@Base 2.70.0
|
||||
g_object_remove_toggle_ref@Base 2.12.0
|
||||
g_object_remove_weak_pointer@Base 2.12.0
|
||||
g_object_replace_data@Base 2.33.14
|
||||
|
@ -3951,6 +4122,7 @@ libgobject-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_param_spec_int64@Base 2.12.0
|
||||
g_param_spec_int@Base 2.12.0
|
||||
g_param_spec_internal@Base 2.12.0
|
||||
g_param_spec_is_valid_name@Base 2.65.1
|
||||
g_param_spec_long@Base 2.12.0
|
||||
g_param_spec_object@Base 2.12.0
|
||||
g_param_spec_override@Base 2.12.0
|
||||
|
@ -3981,9 +4153,11 @@ libgobject-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_param_type_register_static@Base 2.12.0
|
||||
g_param_value_convert@Base 2.12.0
|
||||
g_param_value_defaults@Base 2.12.0
|
||||
g_param_value_is_valid@Base 2.73.1
|
||||
g_param_value_set_default@Base 2.12.0
|
||||
g_param_value_validate@Base 2.12.0
|
||||
g_param_values_cmp@Base 2.12.0
|
||||
g_pattern_spec_get_type@Base 2.70.0
|
||||
g_pointer_type_register_static@Base 2.12.0
|
||||
g_pollfd_get_type@Base 2.35.8
|
||||
g_ptr_array_get_type@Base 2.22.0
|
||||
|
@ -4002,6 +4176,18 @@ libgobject-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_signal_emit_valist@Base 2.12.0
|
||||
g_signal_emitv@Base 2.12.0
|
||||
g_signal_get_invocation_hint@Base 2.12.0
|
||||
g_signal_group_block@Base 2.71.2
|
||||
g_signal_group_connect@Base 2.71.2
|
||||
g_signal_group_connect_after@Base 2.71.2
|
||||
g_signal_group_connect_closure@Base 2.73.1
|
||||
g_signal_group_connect_data@Base 2.71.2
|
||||
g_signal_group_connect_object@Base 2.71.2
|
||||
g_signal_group_connect_swapped@Base 2.71.2
|
||||
g_signal_group_dup_target@Base 2.71.2
|
||||
g_signal_group_get_type@Base 2.71.2
|
||||
g_signal_group_new@Base 2.71.2
|
||||
g_signal_group_set_target@Base 2.71.2
|
||||
g_signal_group_unblock@Base 2.71.2
|
||||
g_signal_handler_block@Base 2.12.0
|
||||
g_signal_handler_disconnect@Base 2.12.0
|
||||
g_signal_handler_find@Base 2.12.0
|
||||
|
@ -4012,6 +4198,7 @@ libgobject-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_signal_handlers_disconnect_matched@Base 2.12.0
|
||||
g_signal_handlers_unblock_matched@Base 2.12.0
|
||||
g_signal_has_handler_pending@Base 2.12.0
|
||||
g_signal_is_valid_name@Base 2.65.1
|
||||
g_signal_list_ids@Base 2.12.0
|
||||
g_signal_lookup@Base 2.12.0
|
||||
g_signal_name@Base 2.12.0
|
||||
|
@ -4035,6 +4222,7 @@ libgobject-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_strv_get_type@Base 2.12.0
|
||||
g_thread_get_type@Base 2.35.8
|
||||
g_time_zone_get_type@Base 2.33.14
|
||||
g_tree_get_type@Base 2.67.1
|
||||
g_type_add_class_cache_func@Base 2.12.0
|
||||
g_type_add_class_private@Base 2.24.0
|
||||
g_type_add_instance_private@Base 2.37.3
|
||||
|
@ -4080,6 +4268,7 @@ libgobject-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_type_instance_get_private@Base 2.12.0
|
||||
g_type_interface_add_prerequisite@Base 2.12.0
|
||||
g_type_interface_get_plugin@Base 2.12.0
|
||||
g_type_interface_instantiatable_prerequisite@Base 2.67.1
|
||||
g_type_interface_peek@Base 2.12.0
|
||||
g_type_interface_peek_parent@Base 2.12.0
|
||||
g_type_interface_prerequisites@Base 2.12.0
|
||||
|
@ -4117,6 +4306,7 @@ libgobject-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_unicode_break_type_get_type@Base 2.59.2
|
||||
g_unicode_script_get_type@Base 2.59.2
|
||||
g_unicode_type_get_type@Base 2.59.2
|
||||
g_uri_get_type@Base 2.65.1
|
||||
g_value_array_append@Base 2.12.0
|
||||
g_value_array_copy@Base 2.12.0
|
||||
g_value_array_free@Base 2.12.0
|
||||
|
@ -4174,6 +4364,7 @@ libgobject-2.0.so.0 libglib2.0-0 #MINVER#
|
|||
g_value_set_instance@Base 2.12.0
|
||||
g_value_set_int64@Base 2.12.0
|
||||
g_value_set_int@Base 2.12.0
|
||||
g_value_set_interned_string@Base 2.65.1
|
||||
g_value_set_long@Base 2.12.0
|
||||
g_value_set_object@Base 2.12.0
|
||||
g_value_set_object_take_ownership@Base 2.12.0
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
interest-noawait /usr/lib/#MULTIARCH#/gio/modules
|
||||
interest-noawait /usr/lib/gio/modules
|
||||
interest-await /usr/share/glib-2.0/schemas
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
usr/bin/gapplication
|
||||
usr/bin/gdbus
|
||||
usr/bin/gio
|
||||
usr/bin/gio-querymodules
|
||||
usr/bin/glib-compile-schemas
|
||||
usr/bin/gresource
|
||||
usr/bin/gsettings
|
||||
usr/share/bash-completion
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
#!/usr/bin/dh-exec
|
||||
/usr/lib/${DEB_HOST_MULTIARCH}/glib-2.0/gio-querymodules /usr/bin/gio-querymodules
|
||||
/usr/lib/${DEB_HOST_MULTIARCH}/glib-2.0/glib-compile-schemas /usr/bin/glib-compile-schemas
|
|
@ -1,2 +1,2 @@
|
|||
# GLib programs normally use GLib functions instead of using libc directly
|
||||
libglib2.0-bin: hardening-no-fortify-functions usr/bin/gio
|
||||
libglib2.0-bin: hardening-no-fortify-functions [usr/bin/gio]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
usr/include/*
|
||||
usr/lib/*/glib-2.0
|
||||
usr/lib/*/glib-2.0/include
|
||||
usr/lib/*/lib*.a
|
||||
usr/lib/*/libgio*.so
|
||||
usr/lib/*/libglib*.so
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
# Workaround for #887629 in stretch, see #887863
|
||||
libglib2.0-dev: maintainer-script-empty prerm
|
|
@ -1,10 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# libglib2.0-dev needs a prerm in buster, so that if the old prerm fails
|
||||
# due to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=887629 we can
|
||||
# recover by running the new prerm. Keep this workaround until after
|
||||
# Debian 10 has been released.
|
||||
|
||||
set -e
|
||||
|
||||
#DEBHELPER#
|
|
@ -1,7 +1,12 @@
|
|||
# Lots of tests don't use libc functions
|
||||
libglib2.0-tests: hardening-no-fortify-functions usr/libexec/installed-tests/glib/*
|
||||
libglib2.0-tests: hardening-no-fortify-functions [usr/libexec/installed-tests/glib/*]
|
||||
# Some are deliberately not well-formed UTF-8
|
||||
libglib2.0-tests: national-encoding [usr/libexec/installed-tests/glib/markups/fail*]
|
||||
# Not every .txt file is documentation
|
||||
libglib2.0-tests: package-contains-documentation-outside-usr-share-doc [usr/libexec/installed-tests/glib/*.txt]
|
||||
# Test data for content-type sniffing, never actually executed
|
||||
libglib2.0-tests: script-not-executable usr/libexec/installed-tests/glib/x-content/unix-software/autorun.sh
|
||||
libglib2.0-tests: shell-script-fails-syntax-check usr/libexec/installed-tests/glib/x-content/unix-software/autorun.sh
|
||||
libglib2.0-tests: script-not-executable [usr/libexec/installed-tests/glib/x-content/unix-software/autorun.sh]
|
||||
# This is lorem ipsum in a test-case, nothing to do with the Debian Free Software Guidelines
|
||||
libglib2.0-tests: spelling-error-in-binary usr/libexec/installed-tests/glib/utf8-pointer dsfg dfsg
|
||||
libglib2.0-tests: spelling-error-in-binary dsfg dfsg [usr/libexec/installed-tests/glib/utf8-pointer]
|
||||
# Depends on a private test-only library
|
||||
libglib2.0-tests: custom-library-search-path RUNPATH /usr/libexec/installed-tests/glib [usr/libexec/installed-tests/glib/gdbus-peer]
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
[properties]
|
||||
have_c99_snprintf = true
|
||||
have_c99_vsnprintf = true
|
||||
have_strlcpy = false
|
||||
have_unix98_printf = true
|
|
@ -0,0 +1,2 @@
|
|||
[properties]
|
||||
growing_stack = false
|
|
@ -0,0 +1,2 @@
|
|||
[properties]
|
||||
growing_stack = true
|
|
@ -0,0 +1,38 @@
|
|||
From: Ryan Lortie <desrt@desrt.ca>
|
||||
Date: Tue, 4 Mar 2014 09:20:38 -0500
|
||||
Subject: timer test: use 'volatile' for locals
|
||||
|
||||
GCC seems to be failing to follow the letter of the C spec by allowing extra
|
||||
precision in floating point values to persist across assignments which are
|
||||
optimised away.
|
||||
|
||||
Force its hand by using 'volatile' on the locals in question.
|
||||
|
||||
Bug: https://gitlab.gnome.org/GNOME/glib/issues/820
|
||||
Forwarded: yes
|
||||
---
|
||||
glib/tests/timer.c | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/glib/tests/timer.c b/glib/tests/timer.c
|
||||
index 149b3af..b7a90c2 100644
|
||||
--- a/glib/tests/timer.c
|
||||
+++ b/glib/tests/timer.c
|
||||
@@ -30,7 +30,7 @@ static void
|
||||
test_timer_basic (void)
|
||||
{
|
||||
GTimer *timer;
|
||||
- gdouble elapsed;
|
||||
+ volatile gdouble elapsed;
|
||||
gulong micros;
|
||||
|
||||
timer = g_timer_new ();
|
||||
@@ -47,7 +47,7 @@ static void
|
||||
test_timer_stop (void)
|
||||
{
|
||||
GTimer *timer;
|
||||
- gdouble elapsed, elapsed2;
|
||||
+ volatile gdouble elapsed, elapsed2;
|
||||
|
||||
timer = g_timer_new ();
|
||||
|
|
@ -0,0 +1,168 @@
|
|||
From: Philip Withnall <withnall@endlessm.com>
|
||||
Date: Thu, 23 Nov 2017 18:48:58 +0000
|
||||
Subject: [PATCH] Call gettext if .desktop file does not have inline
|
||||
translations
|
||||
|
||||
Patch from OpenSUSE via Ubuntu, original author unknown. Martin Pitt and
|
||||
Vincent Untz appear to be the main authors.
|
||||
|
||||
Reworked slightly by Philip Withnall to avoid exposing new public API
|
||||
for the non-standard keys.
|
||||
|
||||
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=569829
|
||||
Bug-Ubuntu: https://launchpad.net/bugs/3935
|
||||
Applied-upstream: no, rejected because "this will be solved soon" (in 2013)
|
||||
---
|
||||
glib/gkeyfile.c | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
1 file changed, 83 insertions(+)
|
||||
|
||||
diff --git a/glib/gkeyfile.c b/glib/gkeyfile.c
|
||||
index dc80ce5..661c2ed 100644
|
||||
--- a/glib/gkeyfile.c
|
||||
+++ b/glib/gkeyfile.c
|
||||
@@ -488,6 +488,17 @@
|
||||
* Since: 2.14
|
||||
*/
|
||||
|
||||
+/* Downstream Debian defines for calling gettext() if a .desktop file doesn’t
|
||||
+ * contain translations. These are not standardised.
|
||||
+ *
|
||||
+ * See: https://launchpad.net/bugs/3935
|
||||
+ * See:http://bugzilla.gnome.org/show_bug.cgi?id=569829
|
||||
+ */
|
||||
+#define G_KEY_FILE_DESKTOP_ACTION_GROUP_PREFIX "Desktop Action"
|
||||
+#define G_KEY_FILE_DESKTOP_KEY_GETTEXT_DOMAIN "X-GNOME-Gettext-Domain"
|
||||
+#define G_KEY_FILE_DESKTOP_KEY_FULLNAME "X-GNOME-FullName"
|
||||
+#define G_KEY_FILE_DESKTOP_KEY_KEYWORDS "Keywords"
|
||||
+
|
||||
typedef struct _GKeyFileGroup GKeyFileGroup;
|
||||
|
||||
/**
|
||||
@@ -511,6 +522,7 @@ struct _GKeyFile
|
||||
GKeyFileFlags flags;
|
||||
|
||||
gchar **locales;
|
||||
+ gchar *gettext_domain;
|
||||
|
||||
volatile gint ref_count;
|
||||
};
|
||||
@@ -636,6 +648,7 @@ g_key_file_init (GKeyFile *key_file)
|
||||
key_file->list_separator = ';';
|
||||
key_file->flags = 0;
|
||||
key_file->locales = g_strdupv ((gchar **)g_get_language_names ());
|
||||
+ key_file->gettext_domain = NULL;
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -655,6 +668,12 @@ g_key_file_clear (GKeyFile *key_file)
|
||||
key_file->parse_buffer = NULL;
|
||||
}
|
||||
|
||||
+ if (key_file->gettext_domain)
|
||||
+ {
|
||||
+ g_free (key_file->gettext_domain);
|
||||
+ key_file->gettext_domain = NULL;
|
||||
+ }
|
||||
+
|
||||
tmp = key_file->groups;
|
||||
while (tmp != NULL)
|
||||
{
|
||||
@@ -874,6 +893,11 @@ g_key_file_load_from_fd (GKeyFile *key_file,
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
+ key_file->gettext_domain = g_key_file_get_string (key_file,
|
||||
+ G_KEY_FILE_DESKTOP_GROUP,
|
||||
+ G_KEY_FILE_DESKTOP_KEY_GETTEXT_DOMAIN,
|
||||
+ NULL);
|
||||
+
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
@@ -986,6 +1010,11 @@ g_key_file_load_from_data (GKeyFile *key_file,
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
+ key_file->gettext_domain = g_key_file_get_string (key_file,
|
||||
+ G_KEY_FILE_DESKTOP_GROUP,
|
||||
+ G_KEY_FILE_DESKTOP_KEY_GETTEXT_DOMAIN,
|
||||
+ NULL);
|
||||
+
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
@@ -2213,6 +2242,8 @@ g_key_file_get_locale_string (GKeyFile *key_file,
|
||||
GError *key_file_error;
|
||||
gchar **languages;
|
||||
gboolean free_languages = FALSE;
|
||||
+ gboolean try_gettext = FALSE;
|
||||
+ const gchar *msg_locale;
|
||||
gint i;
|
||||
|
||||
g_return_val_if_fail (key_file != NULL, NULL);
|
||||
@@ -2234,6 +2265,25 @@ g_key_file_get_locale_string (GKeyFile *key_file,
|
||||
free_languages = FALSE;
|
||||
}
|
||||
|
||||
+ /* we're only interested in gettext translation if we don't have a
|
||||
+ * translation in the .desktop file itself and if the key is one of the keys
|
||||
+ * we know we want to translate: Name, GenericName, Comment, Keywords.
|
||||
+ * Blindly doing this for all keys can give strange result for the icons,
|
||||
+ * since the Icon is a locale string in the spec, eg. We also only get
|
||||
+ * translation in the mo file if the requested locale is the LC_MESSAGES one.
|
||||
+ * Ideally, we should do more and change LC_MESSAGES to use the requested
|
||||
+ * locale, but there's no guarantee it's installed on the system and it might
|
||||
+ * have some side-effects. Since this is a corner case, let's ignore it. */
|
||||
+ msg_locale = setlocale (LC_MESSAGES, NULL);
|
||||
+ try_gettext = msg_locale && key_file->gettext_domain &&
|
||||
+ (strcmp (group_name, G_KEY_FILE_DESKTOP_GROUP) == 0 ||
|
||||
+ g_str_has_prefix (group_name, G_KEY_FILE_DESKTOP_ACTION_GROUP_PREFIX)) &&
|
||||
+ (strcmp (key, G_KEY_FILE_DESKTOP_KEY_NAME) == 0 ||
|
||||
+ strcmp (key, G_KEY_FILE_DESKTOP_KEY_FULLNAME) == 0 ||
|
||||
+ strcmp (key, G_KEY_FILE_DESKTOP_KEY_GENERIC_NAME) == 0 ||
|
||||
+ strcmp (key, G_KEY_FILE_DESKTOP_KEY_KEYWORDS) == 0 ||
|
||||
+ strcmp (key, G_KEY_FILE_DESKTOP_KEY_COMMENT) == 0);
|
||||
+
|
||||
for (i = 0; languages[i]; i++)
|
||||
{
|
||||
candidate_key = g_strdup_printf ("%s[%s]", key, languages[i]);
|
||||
@@ -2250,6 +2300,39 @@ g_key_file_get_locale_string (GKeyFile *key_file,
|
||||
translated_value = NULL;
|
||||
}
|
||||
|
||||
+ /* Fallback to gettext */
|
||||
+ if (try_gettext && !translated_value)
|
||||
+ {
|
||||
+ gchar *orig_value = g_key_file_get_string (key_file, group_name, key, NULL);
|
||||
+
|
||||
+ if (orig_value)
|
||||
+ {
|
||||
+ gboolean codeset_set;
|
||||
+ const gchar *translated;
|
||||
+ gboolean has_gettext;
|
||||
+
|
||||
+ codeset_set = bind_textdomain_codeset (key_file->gettext_domain, "UTF-8") != NULL;
|
||||
+ translated = NULL;
|
||||
+
|
||||
+ translated = g_dgettext (key_file->gettext_domain,
|
||||
+ orig_value);
|
||||
+ has_gettext = translated != orig_value;
|
||||
+
|
||||
+ g_free (orig_value);
|
||||
+
|
||||
+ if (has_gettext)
|
||||
+ {
|
||||
+ if (codeset_set)
|
||||
+ translated_value = g_strdup (translated);
|
||||
+ else
|
||||
+ translated_value = g_locale_to_utf8 (translated,
|
||||
+ -1, NULL, NULL, NULL);
|
||||
+ }
|
||||
+ else
|
||||
+ translated_value = NULL;
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
/* Fallback to untranslated key
|
||||
*/
|
||||
if (!translated_value)
|
|
@ -0,0 +1,135 @@
|
|||
From: Debian GNOME Maintainers
|
||||
<pkg-gnome-maintainers@lists.alioth.debian.org>
|
||||
Date: Wed, 29 Jun 2022 08:02:49 +0000
|
||||
Subject: file-type
|
||||
|
||||
===================================================================
|
||||
---
|
||||
gio/gfile.c | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
po/zh_CN.po | 3 +++
|
||||
2 files changed, 73 insertions(+)
|
||||
|
||||
diff --git a/gio/gfile.c b/gio/gfile.c
|
||||
index a2ded14..e37bc36 100644
|
||||
--- a/gio/gfile.c
|
||||
+++ b/gio/gfile.c
|
||||
@@ -39,6 +39,9 @@
|
||||
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
+#include <mntent.h>
|
||||
+#include <sys/vfs.h>
|
||||
+#include <syslog.h>
|
||||
|
||||
#include "gfile.h"
|
||||
#include "glib/gstdio.h"
|
||||
@@ -339,6 +342,29 @@ static gboolean g_file_real_measure_disk_usage_finish (GFile
|
||||
guint64 *num_files,
|
||||
GError **error);
|
||||
|
||||
+static const char* get_fs_type (char* path)
|
||||
+{
|
||||
+ const char* fs_type = NULL;
|
||||
+ struct mntent* m = NULL;
|
||||
+ FILE* f = NULL;
|
||||
+
|
||||
+ f = setmntent ("/etc/mtab", "r");
|
||||
+ if (!f) {
|
||||
+ syslog (LOG_ERR, "error:%s", strerror(errno));
|
||||
+ }
|
||||
+
|
||||
+ while ((m = getmntent(f))) {
|
||||
+ if (!path) continue;
|
||||
+ if (!m->mnt_dir) continue;
|
||||
+ if (!strcmp (path, m->mnt_dir)) {
|
||||
+ fs_type = g_strdup_printf("%s", m->mnt_type);
|
||||
+ }
|
||||
+ }
|
||||
+ endmntent (f);
|
||||
+
|
||||
+ return fs_type;
|
||||
+}
|
||||
+
|
||||
typedef GFileIface GFileInterface;
|
||||
G_DEFINE_INTERFACE (GFile, g_file, G_TYPE_OBJECT)
|
||||
|
||||
@@ -3457,10 +3483,32 @@ g_file_copy (GFile *source,
|
||||
GFileIface *iface;
|
||||
GError *my_error;
|
||||
gboolean res;
|
||||
+ const char* fs_type;
|
||||
+ GMount* destination_mount;
|
||||
+ GFile* root;
|
||||
+ struct stat s;
|
||||
|
||||
g_return_val_if_fail (G_IS_FILE (source), FALSE);
|
||||
g_return_val_if_fail (G_IS_FILE (destination), FALSE);
|
||||
|
||||
+ destination_mount = g_file_find_enclosing_mount(g_file_get_parent(destination), NULL, NULL);
|
||||
+ if ( destination_mount != NULL) {
|
||||
+ root = g_mount_get_default_location (destination_mount);
|
||||
+ fs_type = get_fs_type (g_file_get_path(root));
|
||||
+ if(fs_type != NULL) {
|
||||
+ if(!strcmp(fs_type,"vfat") || !strcmp(fs_type,"fat32")) {
|
||||
+ if (stat(g_file_get_path(source), &s) == 0) {
|
||||
+ if(s.st_size > 4294967296) {
|
||||
+ g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED, _("The file is too large, the fat format file system only supports files within 4G,can be imported in device after compression"));
|
||||
+ return FALSE;
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ g_free(fs_type);
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
if (g_cancellable_set_error_if_cancelled (cancellable, error))
|
||||
return FALSE;
|
||||
|
||||
@@ -3659,10 +3707,32 @@ g_file_move (GFile *source,
|
||||
GFileIface *iface;
|
||||
GError *my_error;
|
||||
gboolean res;
|
||||
+ const char* fs_type;
|
||||
+ GMount* destination_mount;
|
||||
+ GFile* root;
|
||||
+ struct stat s;
|
||||
|
||||
g_return_val_if_fail (G_IS_FILE (source), FALSE);
|
||||
g_return_val_if_fail (G_IS_FILE (destination), FALSE);
|
||||
|
||||
+ destination_mount = g_file_find_enclosing_mount(g_file_get_parent(destination), NULL, NULL);
|
||||
+ if ( destination_mount != NULL) {
|
||||
+ root = g_mount_get_default_location (destination_mount);
|
||||
+
|
||||
+ fs_type = get_fs_type (g_file_get_path(root));
|
||||
+ if(fs_type != NULL) {
|
||||
+ if(!strcmp(fs_type,"vfat") || !strcmp(fs_type,"fat32")) {
|
||||
+ if (stat(g_file_get_path(source), &s) == 0) {
|
||||
+ if(s.st_size > 4294967296) {
|
||||
+ g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED, _("The file is too large, the fat format file system only supports files within 4G,can be moved in device after compression"));
|
||||
+ return FALSE;
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+ g_free(fs_type);
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
if (g_cancellable_set_error_if_cancelled (cancellable, error))
|
||||
return FALSE;
|
||||
|
||||
diff --git a/po/zh_CN.po b/po/zh_CN.po
|
||||
index 4e4adb5..1a46756 100644
|
||||
--- a/po/zh_CN.po
|
||||
+++ b/po/zh_CN.po
|
||||
@@ -43,6 +43,9 @@ msgstr "GApplication 选项"
|
||||
msgid "Show GApplication options"
|
||||
msgstr "显示 GApplication 选项"
|
||||
|
||||
+msgid "The file is too large, the fat format file system only supports files within 4G,can be imported in device after compression"
|
||||
+msgstr "文件太大,fat格式文件系统只支持4G以内的文件,压缩后可以导入设备"
|
||||
+
|
||||
#: ../gio/gapplication.c:538
|
||||
msgid "Enter GApplication service mode (use from D-Bus service files)"
|
||||
msgstr "进入 GApplication 服务模式(从 D-Bus 服务文件中调用)"
|
|
@ -0,0 +1,41 @@
|
|||
From: Debian GNOME Maintainers
|
||||
<pkg-gnome-maintainers@lists.alioth.debian.org>
|
||||
Date: Wed, 29 Jun 2022 08:02:49 +0000
|
||||
Subject: fix-trash-issue-in-data-usershare
|
||||
|
||||
===================================================================
|
||||
---
|
||||
gio/glocalfile.c | 6 ++++--
|
||||
1 file changed, 4 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/gio/glocalfile.c b/gio/glocalfile.c
|
||||
index 72ef947..bb7c863 100644
|
||||
--- a/gio/glocalfile.c
|
||||
+++ b/gio/glocalfile.c
|
||||
@@ -1951,6 +1951,7 @@ g_local_file_trash (GFile *file,
|
||||
GVfsClass *class;
|
||||
GVfs *vfs;
|
||||
int errsv;
|
||||
+ gboolean is_local_file_in_usershare = FALSE;
|
||||
|
||||
if (glib_should_use_portal ())
|
||||
return g_trash_portal_trash_file (file, error);
|
||||
@@ -1988,7 +1989,8 @@ g_local_file_trash (GFile *file,
|
||||
g_free (path);
|
||||
}
|
||||
|
||||
- if (file_stat.st_dev == home_stat.st_dev)
|
||||
+ is_local_file_in_usershare = g_str_has_prefix(local->filename, "/data/usershare");
|
||||
+ if (file_stat.st_dev == home_stat.st_dev && !is_local_file_in_usershare)
|
||||
{
|
||||
is_homedir_trash = TRUE;
|
||||
errno = 0;
|
||||
@@ -2028,7 +2030,7 @@ g_local_file_trash (GFile *file,
|
||||
}
|
||||
|
||||
mount = g_unix_mount_at (topdir, NULL);
|
||||
- if (mount == NULL || g_unix_mount_is_system_internal (mount))
|
||||
+ if (mount == NULL || g_unix_mount_is_system_internal (mount) && !is_local_file_in_usershare)
|
||||
{
|
||||
g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
|
||||
_("Trashing on system internal mounts is not supported"));
|
|
@ -0,0 +1,51 @@
|
|||
From: Martin Pitt <mpitt@debian.org>
|
||||
Date: Tue, 24 Feb 2009 16:08:05 +0100
|
||||
Subject: Provide backwards compatibility for 01_gettext-desktopfiles.patch
|
||||
for X-{Debian,Ubuntu}-Gettext-Domain
|
||||
|
||||
Ubuntu-specific. 01_gettext-desktopfiles.patch was changed to use
|
||||
X-GNOME-, so this is necessary until all our .desktop files are converted.
|
||||
|
||||
Forwarded: no
|
||||
---
|
||||
glib/gkeyfile.c | 20 ++++++++++++++++++++
|
||||
1 file changed, 20 insertions(+)
|
||||
|
||||
diff --git a/glib/gkeyfile.c b/glib/gkeyfile.c
|
||||
index 661c2ed..749254e 100644
|
||||
--- a/glib/gkeyfile.c
|
||||
+++ b/glib/gkeyfile.c
|
||||
@@ -897,6 +897,16 @@ g_key_file_load_from_fd (GKeyFile *key_file,
|
||||
G_KEY_FILE_DESKTOP_GROUP,
|
||||
G_KEY_FILE_DESKTOP_KEY_GETTEXT_DOMAIN,
|
||||
NULL);
|
||||
+ if (!key_file->gettext_domain)
|
||||
+ key_file->gettext_domain = g_key_file_get_string (key_file,
|
||||
+ G_KEY_FILE_DESKTOP_GROUP,
|
||||
+ "X-Ubuntu-Gettext-Domain",
|
||||
+ NULL);
|
||||
+ if (!key_file->gettext_domain)
|
||||
+ key_file->gettext_domain = g_key_file_get_string (key_file,
|
||||
+ G_KEY_FILE_DESKTOP_GROUP,
|
||||
+ "X-Debian-Gettext-Domain",
|
||||
+ NULL);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
@@ -1014,6 +1024,16 @@ g_key_file_load_from_data (GKeyFile *key_file,
|
||||
G_KEY_FILE_DESKTOP_GROUP,
|
||||
G_KEY_FILE_DESKTOP_KEY_GETTEXT_DOMAIN,
|
||||
NULL);
|
||||
+ if (!key_file->gettext_domain)
|
||||
+ key_file->gettext_domain = g_key_file_get_string (key_file,
|
||||
+ G_KEY_FILE_DESKTOP_GROUP,
|
||||
+ "X-Ubuntu-Gettext-Domain",
|
||||
+ NULL);
|
||||
+ if (!key_file->gettext_domain)
|
||||
+ key_file->gettext_domain = g_key_file_get_string (key_file,
|
||||
+ G_KEY_FILE_DESKTOP_GROUP,
|
||||
+ "X-Debian-Gettext-Domain",
|
||||
+ NULL);
|
||||
|
||||
return TRUE;
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
From: Iain Lane <iain.lane@canonical.com>
|
||||
Date: Mon, 10 Sep 2012 16:25:18 +0100
|
||||
Subject: Disable confusing (to users) warning about deprecated schema paths
|
||||
|
||||
Disable a warning when compiling schemas which are installed
|
||||
into 'deprecated' locations. Users see this very often due to
|
||||
glib-compile-schemas being called from libglib2.0-0's trigger and it is
|
||||
not very useful for them.
|
||||
|
||||
Forwarded: not-needed
|
||||
---
|
||||
gio/glib-compile-schemas.c | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/gio/glib-compile-schemas.c b/gio/glib-compile-schemas.c
|
||||
index 7888120..4c4d22e 100644
|
||||
--- a/gio/glib-compile-schemas.c
|
||||
+++ b/gio/glib-compile-schemas.c
|
||||
@@ -1232,6 +1232,9 @@ parse_state_start_schema (ParseState *state,
|
||||
return;
|
||||
}
|
||||
|
||||
+ // Disable this warning: it confuses users and there is unlikely to be much
|
||||
+ // progress towards fixing
|
||||
+ /*
|
||||
if (path && (g_str_has_prefix (path, "/apps/") ||
|
||||
g_str_has_prefix (path, "/desktop/") ||
|
||||
g_str_has_prefix (path, "/system/")))
|
||||
@@ -1244,6 +1247,7 @@ parse_state_start_schema (ParseState *state,
|
||||
g_printerr ("%s\n", message);
|
||||
g_free (message);
|
||||
}
|
||||
+ */
|
||||
|
||||
state->schema_state = schema_state_new (path, gettext_domain,
|
||||
extends, extends_name, list_of);
|
|
@ -0,0 +1,33 @@
|
|||
From: Martin Pitt <martin.pitt@ubuntu.com>
|
||||
Date: Tue, 26 Jun 2012 19:28:14 +0200
|
||||
Subject: Do not fail the /thread/thread4 test if prlimit() fails
|
||||
|
||||
This happens on the Debian buildds.
|
||||
|
||||
[smcv: Use g_test_skip()]
|
||||
|
||||
Forwarded: no, Debian buildd specific
|
||||
---
|
||||
glib/tests/thread.c | 9 ++++++++-
|
||||
1 file changed, 8 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/glib/tests/thread.c b/glib/tests/thread.c
|
||||
index 579ce1f..3f1959d 100644
|
||||
--- a/glib/tests/thread.c
|
||||
+++ b/glib/tests/thread.c
|
||||
@@ -142,7 +142,14 @@ test_thread4 (void)
|
||||
nl.rlim_cur = 1;
|
||||
|
||||
if ((ret = prlimit (getpid (), RLIMIT_NPROC, &nl, &ol)) != 0)
|
||||
- g_error ("prlimit failed: %s", g_strerror (errno));
|
||||
+ {
|
||||
+ gchar *message = g_strdup_printf ("setting PRLIMIT_NPROC to {cur=%d,max=%d} failed: %s",
|
||||
+ (int) nl.rlim_cur, (int) nl.rlim_max,
|
||||
+ g_strerror (errno));
|
||||
+ g_test_skip (message);
|
||||
+ g_free (message);
|
||||
+ return;
|
||||
+ }
|
||||
|
||||
error = NULL;
|
||||
thread = g_thread_try_new ("a", thread1_func, NULL, &error);
|
|
@ -0,0 +1,25 @@
|
|||
From: =?utf-8?q?Sebastian_Dr=C3=B6ge?= <slomo@debian.org>
|
||||
Date: Tue, 13 Jul 2010 14:06:28 +0200
|
||||
Subject: Adjust path to glib-compile-schemas in the pkg-config file
|
||||
|
||||
This is because gio-querymodules and glib-compile-schemas have been put in
|
||||
a private, versioned directory in libglib2.0-0 to avoid a dependency loop.
|
||||
|
||||
Forwarded: not-needed, specific to Debian packaging
|
||||
---
|
||||
gio/meson.build | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/gio/meson.build b/gio/meson.build
|
||||
index 2ef60ed..32b47df 100644
|
||||
--- a/gio/meson.build
|
||||
+++ b/gio/meson.build
|
||||
@@ -822,7 +822,7 @@ pkg.generate(libgio,
|
||||
'giomoduledir=' + pkgconfig_giomodulesdir,
|
||||
'gio=' + join_paths('${bindir}', 'gio'),
|
||||
'gio_querymodules=' + join_paths('${bindir}', 'gio-querymodules'),
|
||||
- 'glib_compile_schemas=' + join_paths('${bindir}', 'glib-compile-schemas'),
|
||||
+ 'glib_compile_schemas=' + join_paths('${libdir}', 'glib-2.0', 'glib-compile-schemas'),
|
||||
'glib_compile_resources=' + join_paths('${bindir}', 'glib-compile-resources'),
|
||||
'gdbus=' + join_paths('${bindir}', 'gdbus'),
|
||||
'gdbus_codegen=' + join_paths('${bindir}', 'gdbus-codegen'),
|
70
debian/patches/debian/Disable-some-tests-on-slow-architectures-which-keep-faili.patch
vendored
Normal file
70
debian/patches/debian/Disable-some-tests-on-slow-architectures-which-keep-faili.patch
vendored
Normal file
|
@ -0,0 +1,70 @@
|
|||
From: Martin Pitt <martin.pitt@ubuntu.com>
|
||||
Date: Thu, 27 Sep 2012 11:22:56 +0200
|
||||
Subject: Disable some tests on slow architectures which keep failing the
|
||||
tests
|
||||
|
||||
[smcv: Modified to use g_test_skip() instead of omitting those test cases
|
||||
completely, and allow them to be re-enabled with a Debian-specific
|
||||
environment variable]
|
||||
|
||||
Co-authored-by: Simon McVittie <smcv@debian.org>
|
||||
Forwarded: no
|
||||
---
|
||||
glib/tests/mainloop.c | 16 ++++++++++++++++
|
||||
glib/tests/timeout.c | 9 +++++++++
|
||||
2 files changed, 25 insertions(+)
|
||||
|
||||
diff --git a/glib/tests/mainloop.c b/glib/tests/mainloop.c
|
||||
index 1368e9b..2c11d34 100644
|
||||
--- a/glib/tests/mainloop.c
|
||||
+++ b/glib/tests/mainloop.c
|
||||
@@ -461,6 +461,14 @@ test_child_sources (void)
|
||||
GMainLoop *loop;
|
||||
GSource *parent, *child_b, *child_c, *end;
|
||||
|
||||
+#if defined(__arm__)
|
||||
+ if (g_getenv ("DEB_ALLOW_FLAKY_TESTS") == NULL)
|
||||
+ {
|
||||
+ g_test_skip ("Not reliable on older ARM hardware");
|
||||
+ return;
|
||||
+ }
|
||||
+#endif
|
||||
+
|
||||
ctx = g_main_context_new ();
|
||||
loop = g_main_loop_new (ctx, FALSE);
|
||||
|
||||
@@ -539,6 +547,14 @@ test_recursive_child_sources (void)
|
||||
GMainLoop *loop;
|
||||
GSource *parent, *child_b, *child_c, *end;
|
||||
|
||||
+#if defined(__arm__)
|
||||
+ if (g_getenv ("DEB_ALLOW_FLAKY_TESTS") == NULL)
|
||||
+ {
|
||||
+ g_test_skip ("Not reliable on older ARM hardware");
|
||||
+ return;
|
||||
+ }
|
||||
+#endif
|
||||
+
|
||||
ctx = g_main_context_new ();
|
||||
loop = g_main_loop_new (ctx, FALSE);
|
||||
|
||||
diff --git a/glib/tests/timeout.c b/glib/tests/timeout.c
|
||||
index 47f00ba..d6fad36 100644
|
||||
--- a/glib/tests/timeout.c
|
||||
+++ b/glib/tests/timeout.c
|
||||
@@ -175,6 +175,15 @@ test_func (gpointer data)
|
||||
static void
|
||||
test_rounding (void)
|
||||
{
|
||||
+
|
||||
+#if defined(__arm__)
|
||||
+ if (g_getenv ("DEB_ALLOW_FLAKY_TESTS") == NULL)
|
||||
+ {
|
||||
+ g_test_skip ("Not reliable on older ARM hardware");
|
||||
+ return;
|
||||
+ }
|
||||
+#endif
|
||||
+
|
||||
loop = g_main_loop_new (NULL, FALSE);
|
||||
|
||||
last_time = g_get_monotonic_time ();
|
32
debian/patches/debian/Skip-test-which-performs-some-unreliable-floating-point-c.patch
vendored
Normal file
32
debian/patches/debian/Skip-test-which-performs-some-unreliable-floating-point-c.patch
vendored
Normal file
|
@ -0,0 +1,32 @@
|
|||
From: Iain Lane <laney@debian.org>
|
||||
Date: Tue, 18 Mar 2014 15:43:35 +0000
|
||||
Subject: Skip test which performs some unreliable floating point comparisons
|
||||
|
||||
[smcv: Modified to use g_test_skip() instead of omitting those test cases
|
||||
completely, and allow them to be re-enabled with a Debian-specific
|
||||
environment variable]
|
||||
|
||||
Co-authored-by: Simon McVittie <smcv@debian.org>
|
||||
Bug: https://gitlab.gnome.org/GNOME/glib/issues/820
|
||||
Forwarded: no
|
||||
---
|
||||
glib/tests/timer.c | 6 ++++++
|
||||
1 file changed, 6 insertions(+)
|
||||
|
||||
diff --git a/glib/tests/timer.c b/glib/tests/timer.c
|
||||
index b7a90c2..98e82da 100644
|
||||
--- a/glib/tests/timer.c
|
||||
+++ b/glib/tests/timer.c
|
||||
@@ -33,6 +33,12 @@ test_timer_basic (void)
|
||||
volatile gdouble elapsed;
|
||||
gulong micros;
|
||||
|
||||
+ if (g_getenv ("DEB_ALLOW_FLAKY_TESTS") == NULL)
|
||||
+ {
|
||||
+ g_test_skip ("Not reliable due to floating-point rounding (glib#820)");
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
timer = g_timer_new ();
|
||||
|
||||
elapsed = g_timer_elapsed (timer, µs);
|
48
debian/patches/debian/Skip-unreliable-gdbus-threading-tests--by-default.patch
vendored
Normal file
48
debian/patches/debian/Skip-unreliable-gdbus-threading-tests--by-default.patch
vendored
Normal file
|
@ -0,0 +1,48 @@
|
|||
From: Simon McVittie <smcv@debian.org>
|
||||
Date: Fri, 4 Jan 2019 08:37:20 +0000
|
||||
Subject: Skip unreliable gdbus-threading tests by default
|
||||
|
||||
test_threaded_singleton() test to reproduce a race condition between
|
||||
last-unref of the global singleton GDBusConnection and g_bus_get_sync().
|
||||
|
||||
test_method_calls_in_thread() checks that multiple threads can all make
|
||||
method calls to the same proxy.
|
||||
|
||||
However, test setup intermittently times out with:
|
||||
|
||||
# GLib-GIO-DEBUG: run 0: refcount is 2, sleeping
|
||||
Bail out! GLib-GIO-FATAL-ERROR: connection had too many refs
|
||||
|
||||
The current theory upstream is that this might be a reference leak in
|
||||
test_delivery_in_thread().
|
||||
|
||||
Furthermore, test teardown is now often failing when destroying the test
|
||||
bus.
|
||||
|
||||
Demote these tests to be run as part of the "flaky" autopkgtests, but
|
||||
not at build time or in the part of the autopkgtest run that gates
|
||||
progress into testing.
|
||||
|
||||
Bug: https://gitlab.gnome.org/GNOME/glib/issues/1515
|
||||
Forwarded: no
|
||||
---
|
||||
gio/tests/gdbus-threading.c | 6 ++++++
|
||||
1 file changed, 6 insertions(+)
|
||||
|
||||
diff --git a/gio/tests/gdbus-threading.c b/gio/tests/gdbus-threading.c
|
||||
index 2b89fb0..2cc5757 100644
|
||||
--- a/gio/tests/gdbus-threading.c
|
||||
+++ b/gio/tests/gdbus-threading.c
|
||||
@@ -649,6 +649,12 @@ main (int argc,
|
||||
|
||||
g_test_init (&argc, &argv, NULL);
|
||||
|
||||
+ if (g_getenv ("DEB_ALLOW_FLAKY_TESTS") == NULL)
|
||||
+ {
|
||||
+ g_print("ok 1 # SKIP all gdbus-threading tests skipped because they are too unreliable (glib#1515)\n");
|
||||
+ return 77;
|
||||
+ }
|
||||
+
|
||||
session_bus_up ();
|
||||
|
||||
/* this is safe; testserver will exit once the bus goes away */
|
37
debian/patches/debian/closures-test-Skip-on-arm-unless-flaky-tests-are-allowed.patch
vendored
Normal file
37
debian/patches/debian/closures-test-Skip-on-arm-unless-flaky-tests-are-allowed.patch
vendored
Normal file
|
@ -0,0 +1,37 @@
|
|||
From: Simon McVittie <smcv@debian.org>
|
||||
Date: Thu, 3 Jan 2019 09:01:03 +0000
|
||||
Subject: closures test: Skip on arm* unless flaky tests are allowed
|
||||
|
||||
Choosing the right number of iterations to avoid either taking literally
|
||||
hours on some hardware, or getting spurious failures when one thread
|
||||
starves another, seems to be too hard to get right in practice.
|
||||
Make this test opt-in so that its failures aren't release-critical.
|
||||
We can run it as a separate autopkgtest that is marked flaky.
|
||||
|
||||
Signed-off-by: Simon McVittie <smcv@debian.org>
|
||||
Bug-Debian: https://bugs.debian.org/880883
|
||||
Bug-Debian: https://bugs.debian.org/917983
|
||||
Forwarded: not-needed
|
||||
---
|
||||
gobject/tests/closure-refcount.c | 8 ++++++++
|
||||
1 file changed, 8 insertions(+)
|
||||
|
||||
diff --git a/gobject/tests/closure-refcount.c b/gobject/tests/closure-refcount.c
|
||||
index 5a92005..73185f0 100644
|
||||
--- a/gobject/tests/closure-refcount.c
|
||||
+++ b/gobject/tests/closure-refcount.c
|
||||
@@ -260,6 +260,14 @@ test_closure_refcount (void)
|
||||
GTest *object;
|
||||
guint i, n_iterations;
|
||||
|
||||
+#if defined(__aarch64__) || defined(__arm__)
|
||||
+ if (g_getenv ("DEB_ALLOW_FLAKY_TESTS") != NULL)
|
||||
+ {
|
||||
+ g_print ("SKIP: Test is known to be flaky on arm* (#880883, #917983)\n");
|
||||
+ return 0;
|
||||
+ }
|
||||
+#endif
|
||||
+
|
||||
object = g_object_new (G_TYPE_TEST, NULL);
|
||||
closure = g_cclosure_new (G_CALLBACK (test_signal_handler), &test_data, destroy_data);
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
From: Simon McVittie <smcv@debian.org>
|
||||
Date: Fri, 26 Jul 2019 23:49:03 +0100
|
||||
Subject: gmenumodel test: Mark as flaky
|
||||
|
||||
This test has not had a great history of reliability.
|
||||
|
||||
Signed-off-by: Simon McVittie <smcv@debian.org>
|
||||
Bug-Debian: https://bugs.debian.org/932678
|
||||
Forwarded: no
|
||||
---
|
||||
gio/tests/gmenumodel.c | 6 ++++++
|
||||
1 file changed, 6 insertions(+)
|
||||
|
||||
diff --git a/gio/tests/gmenumodel.c b/gio/tests/gmenumodel.c
|
||||
index fc0fcea..5c54551 100644
|
||||
--- a/gio/tests/gmenumodel.c
|
||||
+++ b/gio/tests/gmenumodel.c
|
||||
@@ -1147,6 +1147,12 @@ test_dbus_peer_subscriptions (void)
|
||||
{
|
||||
PeerConnection peer;
|
||||
|
||||
+ if (g_getenv ("DEB_ALLOW_FLAKY_TESTS") == NULL)
|
||||
+ {
|
||||
+ g_test_skip ("Not reliable? #932678");
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
peer_connection_up (&peer);
|
||||
do_subscriptions (peer.server_connection, peer.client_connection);
|
||||
peer_connection_down (&peer);
|
|
@ -0,0 +1,36 @@
|
|||
From: Simon McVittie <smcv@debian.org>
|
||||
Date: Fri, 26 Jul 2019 23:51:39 +0100
|
||||
Subject: gvariant test: Don't run at build-time on mips
|
||||
|
||||
DEB_ALLOW_FLAKY_TESTS is not quite right here, because we don't know
|
||||
that the test would fail if left for long enough - the problem is that
|
||||
it doesn't get there, because generating random floating-point numbers
|
||||
is very slow on some of our mips hardware. However, it has the right
|
||||
practical effect.
|
||||
|
||||
Signed-off-by: Simon McVittie <smcv@debian.org>
|
||||
Bug: https://bugs.debian.org/932678
|
||||
Forwarded: no
|
||||
---
|
||||
glib/tests/gvariant.c | 8 ++++++++
|
||||
1 file changed, 8 insertions(+)
|
||||
|
||||
diff --git a/glib/tests/gvariant.c b/glib/tests/gvariant.c
|
||||
index 3905e20..d418c75 100644
|
||||
--- a/glib/tests/gvariant.c
|
||||
+++ b/glib/tests/gvariant.c
|
||||
@@ -2405,6 +2405,14 @@ test_fuzzes (gpointer data)
|
||||
gdouble fuzziness;
|
||||
int i;
|
||||
|
||||
+#ifdef __mips__
|
||||
+ if (g_getenv ("DEB_ALLOW_FLAKY_TESTS") == NULL)
|
||||
+ {
|
||||
+ g_test_skip ("Extremely slow on some mips CPUs: #932678");
|
||||
+ return;
|
||||
+ }
|
||||
+#endif
|
||||
+
|
||||
fuzziness = GPOINTER_TO_INT (data) / 100.;
|
||||
|
||||
for (i = 0; i < 200; i++)
|
24
debian/patches/debian/taptestrunner-Stop-looking-like-an-executable-script.patch
vendored
Normal file
24
debian/patches/debian/taptestrunner-Stop-looking-like-an-executable-script.patch
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
From: Simon McVittie <smcv@debian.org>
|
||||
Date: Wed, 30 Oct 2019 08:44:52 +0000
|
||||
Subject: taptestrunner: Stop looking like an executable script
|
||||
|
||||
This file is installed as non-executable but starts with the #! that
|
||||
indicates an executable script, causing warnings from Debian's Lintian
|
||||
tool. In fact it is imported as a Python module rather than being run
|
||||
as an executable, so there is no need for the #! line.
|
||||
|
||||
Signed-off-by: Simon McVittie <smcv@debian.org>
|
||||
Forwarded: no
|
||||
---
|
||||
gobject/tests/taptestrunner.py | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff --git a/gobject/tests/taptestrunner.py b/gobject/tests/taptestrunner.py
|
||||
index 2614961..7baceb5 100644
|
||||
--- a/gobject/tests/taptestrunner.py
|
||||
+++ b/gobject/tests/taptestrunner.py
|
||||
@@ -1,4 +1,3 @@
|
||||
-#!/usr/bin/env python
|
||||
# coding=utf-8
|
||||
|
||||
# Copyright (c) 2015 Remko Tronçon (https://el-tramo.be)
|
106
debian/patches/debian/testfilemonitor-Skip-if-we-are-avoiding-flaky-tests.patch
vendored
Normal file
106
debian/patches/debian/testfilemonitor-Skip-if-we-are-avoiding-flaky-tests.patch
vendored
Normal file
|
@ -0,0 +1,106 @@
|
|||
From: Simon McVittie <smcv@debian.org>
|
||||
Date: Tue, 25 Feb 2020 10:45:07 +0000
|
||||
Subject: testfilemonitor: Skip if we are avoiding flaky tests
|
||||
|
||||
See https://gitlab.gnome.org/GNOME/glib/issues/1634
|
||||
|
||||
Signed-off-by: Simon McVittie <smcv@debian.org>
|
||||
Forwarded: no
|
||||
---
|
||||
gio/tests/testfilemonitor.c | 34 +++++++++++++++++++++++++++++++++-
|
||||
1 file changed, 33 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/gio/tests/testfilemonitor.c b/gio/tests/testfilemonitor.c
|
||||
index b74dc2b..79b5776 100644
|
||||
--- a/gio/tests/testfilemonitor.c
|
||||
+++ b/gio/tests/testfilemonitor.c
|
||||
@@ -21,6 +21,12 @@ setup (Fixture *fixture,
|
||||
gchar *path = NULL;
|
||||
GError *local_error = NULL;
|
||||
|
||||
+ if (g_getenv ("DEB_ALLOW_FLAKY_TESTS") == NULL)
|
||||
+ {
|
||||
+ g_test_skip ("https://gitlab.gnome.org/GNOME/glib/issues/1634");
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
path = g_dir_make_tmp ("gio-test-testfilemonitor_XXXXXX", &local_error);
|
||||
g_assert_no_error (local_error);
|
||||
|
||||
@@ -37,7 +43,9 @@ teardown (Fixture *fixture,
|
||||
{
|
||||
GError *local_error = NULL;
|
||||
|
||||
- g_file_delete (fixture->tmp_dir, NULL, &local_error);
|
||||
+ if (fixture->tmp_dir != NULL)
|
||||
+ g_file_delete (fixture->tmp_dir, NULL, &local_error);
|
||||
+
|
||||
g_assert_no_error (local_error);
|
||||
g_clear_object (&fixture->tmp_dir);
|
||||
}
|
||||
@@ -360,6 +368,10 @@ test_atomic_replace (Fixture *fixture,
|
||||
GError *error = NULL;
|
||||
TestData data;
|
||||
|
||||
+ /* respect g_test_skip() during setup() */
|
||||
+ if (g_test_failed ())
|
||||
+ return;
|
||||
+
|
||||
data.step = 0;
|
||||
data.events = NULL;
|
||||
|
||||
@@ -465,6 +477,10 @@ test_file_changes (Fixture *fixture,
|
||||
GError *error = NULL;
|
||||
TestData data;
|
||||
|
||||
+ /* respect g_test_skip() during setup() */
|
||||
+ if (g_test_failed ())
|
||||
+ return;
|
||||
+
|
||||
data.step = 0;
|
||||
data.events = NULL;
|
||||
|
||||
@@ -582,6 +598,10 @@ test_dir_monitor (Fixture *fixture,
|
||||
GError *error = NULL;
|
||||
TestData data;
|
||||
|
||||
+ /* respect g_test_skip() during setup() */
|
||||
+ if (g_test_failed ())
|
||||
+ return;
|
||||
+
|
||||
data.step = 0;
|
||||
data.events = NULL;
|
||||
|
||||
@@ -679,6 +699,10 @@ test_dir_non_existent (Fixture *fixture,
|
||||
TestData data;
|
||||
GError *error = NULL;
|
||||
|
||||
+ /* respect g_test_skip() during setup() */
|
||||
+ if (g_test_failed ())
|
||||
+ return;
|
||||
+
|
||||
data.step = 0;
|
||||
data.events = NULL;
|
||||
|
||||
@@ -788,6 +812,10 @@ test_cross_dir_moves (Fixture *fixture,
|
||||
GError *error = NULL;
|
||||
TestData data[2];
|
||||
|
||||
+ /* respect g_test_skip() during setup() */
|
||||
+ if (g_test_failed ())
|
||||
+ return;
|
||||
+
|
||||
data[0].step = 0;
|
||||
data[0].events = NULL;
|
||||
|
||||
@@ -957,6 +985,10 @@ test_file_hard_links (Fixture *fixture,
|
||||
GError *error = NULL;
|
||||
TestData data;
|
||||
|
||||
+ /* respect g_test_skip() during setup() */
|
||||
+ if (g_test_failed ())
|
||||
+ return;
|
||||
+
|
||||
g_test_bug ("755721");
|
||||
|
||||
#ifdef HAVE_LINK
|
|
@ -0,0 +1,23 @@
|
|||
From: Debian GNOME Maintainers
|
||||
<pkg-gnome-maintainers@lists.alioth.debian.org>
|
||||
Date: Wed, 29 Jun 2022 08:02:49 +0000
|
||||
Subject: fix-localization-issue
|
||||
|
||||
===================================================================
|
||||
---
|
||||
po/zh_CN.po | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/po/zh_CN.po b/po/zh_CN.po
|
||||
index 015feb1..b5a09aa 100644
|
||||
--- a/po/zh_CN.po
|
||||
+++ b/po/zh_CN.po
|
||||
@@ -3344,7 +3344,7 @@ msgstr "源流已经关闭"
|
||||
|
||||
#: ../gio/gresolver.c:386 ../gio/gthreadedresolver.c:150
|
||||
#: ../gio/gthreadedresolver.c:168
|
||||
-#, fuzzy, c-format
|
||||
+#, c-format
|
||||
msgid "Error resolving “%s”: %s"
|
||||
msgstr "解析“%s”时出错:%s"
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
From: Debian GNOME Maintainers
|
||||
<pkg-gnome-maintainers@lists.alioth.debian.org>
|
||||
Date: Wed, 29 Jun 2022 08:02:49 +0000
|
||||
Subject: fix-trash-issue-in-data
|
||||
|
||||
===================================================================
|
||||
---
|
||||
gio/glocalfile.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/gio/glocalfile.c b/gio/glocalfile.c
|
||||
index bb7c863..3992574 100644
|
||||
--- a/gio/glocalfile.c
|
||||
+++ b/gio/glocalfile.c
|
||||
@@ -1989,7 +1989,7 @@ g_local_file_trash (GFile *file,
|
||||
g_free (path);
|
||||
}
|
||||
|
||||
- is_local_file_in_usershare = g_str_has_prefix(local->filename, "/data/usershare");
|
||||
+ is_local_file_in_usershare = g_str_has_prefix(local->filename, "/data") && g_file_test ("/data/usershare", G_FILE_TEST_EXISTS);
|
||||
if (file_stat.st_dev == home_stat.st_dev && !is_local_file_in_usershare)
|
||||
{
|
||||
is_homedir_trash = TRUE;
|
|
@ -0,0 +1,203 @@
|
|||
From: Philip Withnall <withnall@endlessm.com>
|
||||
Date: Fri, 28 Feb 2020 15:15:02 +0000
|
||||
Subject: [PATCH 1/2] tests: Use g_assert_*() in cancellable test rather than
|
||||
g_assert()
|
||||
|
||||
`g_assert()` is compiled out if `G_DISABLE_ASSERT` is defined, and
|
||||
`g_assert_*()` gives more detailed failure messages.
|
||||
|
||||
Signed-off-by: Philip Withnall <withnall@endlessm.com>
|
||||
---
|
||||
gio/gcancellable.c | 43 ++++++++++++++++++++++++++
|
||||
gio/tests/cancellable.c | 81 +++++++++++++++++++++++++++++++++++++++++++++++--
|
||||
2 files changed, 122 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/gio/gcancellable.c b/gio/gcancellable.c
|
||||
index d9e58b8..e687cca 100644
|
||||
--- a/gio/gcancellable.c
|
||||
+++ b/gio/gcancellable.c
|
||||
@@ -643,6 +643,8 @@ typedef struct {
|
||||
|
||||
GCancellable *cancellable;
|
||||
gulong cancelled_handler;
|
||||
+ /* Protected by cancellable_mutex: */
|
||||
+ gboolean resurrected_during_cancellation;
|
||||
} GCancellableSource;
|
||||
|
||||
/*
|
||||
@@ -661,8 +663,24 @@ cancellable_source_cancelled (GCancellable *cancellable,
|
||||
gpointer user_data)
|
||||
{
|
||||
GSource *source = user_data;
|
||||
+ GCancellableSource *cancellable_source = (GCancellableSource *) source;
|
||||
+
|
||||
+ g_mutex_lock (&cancellable_mutex);
|
||||
+
|
||||
+ /* Drop the reference added in cancellable_source_dispose(); see the comment there.
|
||||
+ * The reference must be dropped after unlocking @cancellable_mutex since
|
||||
+ * it could be the final reference, and the dispose function takes
|
||||
+ * @cancellable_mutex. */
|
||||
+ if (cancellable_source->resurrected_during_cancellation)
|
||||
+ {
|
||||
+ cancellable_source->resurrected_during_cancellation = FALSE;
|
||||
+ g_mutex_unlock (&cancellable_mutex);
|
||||
+ g_source_unref (source);
|
||||
+ return;
|
||||
+ }
|
||||
|
||||
g_source_ref (source);
|
||||
+ g_mutex_unlock (&cancellable_mutex);
|
||||
g_source_set_ready_time (source, 0);
|
||||
g_source_unref (source);
|
||||
}
|
||||
@@ -684,12 +702,37 @@ cancellable_source_dispose (GSource *source)
|
||||
{
|
||||
GCancellableSource *cancellable_source = (GCancellableSource *)source;
|
||||
|
||||
+ g_mutex_lock (&cancellable_mutex);
|
||||
+
|
||||
if (cancellable_source->cancellable)
|
||||
{
|
||||
+ if (cancellable_source->cancellable->priv->cancelled_running)
|
||||
+ {
|
||||
+ /* There can be a race here: if thread A has called
|
||||
+ * g_cancellable_cancel() and has got as far as committing to call
|
||||
+ * cancellable_source_cancelled(), then thread B drops the final
|
||||
+ * ref on the GCancellableSource before g_source_ref() is called in
|
||||
+ * cancellable_source_cancelled(), then cancellable_source_dispose()
|
||||
+ * will run through and the GCancellableSource will be finalised
|
||||
+ * before cancellable_source_cancelled() gets to g_source_ref(). It
|
||||
+ * will then be left in a state where it’s committed to using a
|
||||
+ * dangling GCancellableSource pointer.
|
||||
+ *
|
||||
+ * Eliminate that race by resurrecting the #GSource temporarily, and
|
||||
+ * then dropping that reference in cancellable_source_cancelled(),
|
||||
+ * which should be guaranteed to fire because we’re inside a
|
||||
+ * @cancelled_running block.
|
||||
+ */
|
||||
+ g_source_ref (source);
|
||||
+ cancellable_source->resurrected_during_cancellation = TRUE;
|
||||
+ }
|
||||
+
|
||||
g_clear_signal_handler (&cancellable_source->cancelled_handler,
|
||||
cancellable_source->cancellable);
|
||||
g_clear_object (&cancellable_source->cancellable);
|
||||
}
|
||||
+
|
||||
+ g_mutex_unlock (&cancellable_mutex);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
diff --git a/gio/tests/cancellable.c b/gio/tests/cancellable.c
|
||||
index cd349a8..002bdcc 100644
|
||||
--- a/gio/tests/cancellable.c
|
||||
+++ b/gio/tests/cancellable.c
|
||||
@@ -138,7 +138,7 @@ mock_operation_finish (GAsyncResult *result,
|
||||
MockOperationData *data;
|
||||
GTask *task;
|
||||
|
||||
- g_assert (g_task_is_valid (result, NULL));
|
||||
+ g_assert_true (g_task_is_valid (result, NULL));
|
||||
|
||||
/* This test expects the return value to be iterations_done even
|
||||
* when an error is set.
|
||||
@@ -212,7 +212,7 @@ test_cancel_multiple_concurrent (void)
|
||||
if (g_test_verbose ())
|
||||
g_printerr ("CANCEL: %d operations\n", num_async_operations);
|
||||
g_cancellable_cancel (cancellable);
|
||||
- g_assert (g_cancellable_is_cancelled (cancellable));
|
||||
+ g_assert_true (g_cancellable_is_cancelled (cancellable));
|
||||
|
||||
/* Wait for all operations to be cancelled */
|
||||
g_main_loop_run (loop);
|
||||
@@ -228,6 +228,82 @@ test_cancel_null (void)
|
||||
g_cancellable_cancel (NULL);
|
||||
}
|
||||
|
||||
+typedef struct
|
||||
+{
|
||||
+ GCond cond;
|
||||
+ GMutex mutex;
|
||||
+ GSource *cancellable_source; /* (owned) */
|
||||
+} ThreadedDisposeData;
|
||||
+
|
||||
+static gboolean
|
||||
+cancelled_cb (GCancellable *cancellable,
|
||||
+ gpointer user_data)
|
||||
+{
|
||||
+ /* Nothing needs to be done here. */
|
||||
+ return G_SOURCE_CONTINUE;
|
||||
+}
|
||||
+
|
||||
+static gpointer
|
||||
+threaded_dispose_thread_cb (gpointer user_data)
|
||||
+{
|
||||
+ ThreadedDisposeData *data = user_data;
|
||||
+
|
||||
+ /* Synchronise with the main thread before trying to reproduce the race. */
|
||||
+ g_mutex_lock (&data->mutex);
|
||||
+ g_cond_broadcast (&data->cond);
|
||||
+ g_mutex_unlock (&data->mutex);
|
||||
+
|
||||
+ /* Race with cancellation of the cancellable. */
|
||||
+ g_source_unref (data->cancellable_source);
|
||||
+
|
||||
+ return NULL;
|
||||
+}
|
||||
+
|
||||
+static void
|
||||
+test_cancellable_source_threaded_dispose (void)
|
||||
+{
|
||||
+ guint i;
|
||||
+
|
||||
+ g_test_summary ("Test a thread race between disposing of a GCancellableSource "
|
||||
+ "(in one thread) and cancelling the GCancellable it refers "
|
||||
+ "to (in another thread)");
|
||||
+ g_test_bug ("https://gitlab.gnome.org/GNOME/glib/issues/1841");
|
||||
+
|
||||
+ for (i = 0; i < 100000; i++)
|
||||
+ {
|
||||
+ GCancellable *cancellable = NULL;
|
||||
+ GSource *cancellable_source = NULL;
|
||||
+ ThreadedDisposeData data;
|
||||
+ GThread *thread = NULL;
|
||||
+
|
||||
+ /* Create a cancellable and a cancellable source for it. For this test,
|
||||
+ * there’s no need to attach the source to a #GMainContext. */
|
||||
+ cancellable = g_cancellable_new ();
|
||||
+ cancellable_source = g_cancellable_source_new (cancellable);
|
||||
+ g_source_set_callback (cancellable_source, G_SOURCE_FUNC (cancelled_cb), NULL, NULL);
|
||||
+
|
||||
+ /* Create a new thread and wait until it’s ready to execute before
|
||||
+ * cancelling our cancellable. */
|
||||
+ g_cond_init (&data.cond);
|
||||
+ g_mutex_init (&data.mutex);
|
||||
+ data.cancellable_source = g_steal_pointer (&cancellable_source);
|
||||
+
|
||||
+ g_mutex_lock (&data.mutex);
|
||||
+ thread = g_thread_new ("/cancellable-source/threaded-dispose",
|
||||
+ threaded_dispose_thread_cb, &data);
|
||||
+ g_cond_wait (&data.cond, &data.mutex);
|
||||
+ g_mutex_unlock (&data.mutex);
|
||||
+
|
||||
+ /* Race with disposal of the cancellable source. */
|
||||
+ g_cancellable_cancel (cancellable);
|
||||
+
|
||||
+ g_thread_join (g_steal_pointer (&thread));
|
||||
+ g_mutex_clear (&data.mutex);
|
||||
+ g_cond_clear (&data.cond);
|
||||
+ g_object_unref (cancellable);
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
{
|
||||
@@ -235,6 +311,7 @@ main (int argc, char *argv[])
|
||||
|
||||
g_test_add_func ("/cancellable/multiple-concurrent", test_cancel_multiple_concurrent);
|
||||
g_test_add_func ("/cancellable/null", test_cancel_null);
|
||||
+ g_test_add_func ("/cancellable-source/threaded-dispose", test_cancellable_source_threaded_dispose);
|
||||
|
||||
return g_test_run ();
|
||||
}
|
80
debian/patches/gwakeuptest-Be-less-parallel-unless-invoked-with-m-slow.patch
vendored
Normal file
80
debian/patches/gwakeuptest-Be-less-parallel-unless-invoked-with-m-slow.patch
vendored
Normal file
|
@ -0,0 +1,80 @@
|
|||
From: Simon McVittie <smcv@debian.org>
|
||||
Date: Mon, 18 Dec 2017 18:06:05 +0000
|
||||
Subject: gwakeuptest: Be less parallel unless invoked with -m slow
|
||||
|
||||
This is a workaround for test failures on the reproducible-builds
|
||||
infrastructure, where a multi-threaded stress-test sometimes takes longer
|
||||
to finish on x86_64 than it would have done on slow architectures like
|
||||
arm and mips on the official Debian autobuilders. It is not clear why.
|
||||
|
||||
This change will make this test more likely to pass, but less likely to
|
||||
detect bugs.
|
||||
|
||||
Signed-off-by: Simon McVittie <smcv@debian.org>
|
||||
Bug-Debian: https://bugs.debian.org/884659
|
||||
Forwarded: no
|
||||
---
|
||||
glib/tests/gwakeuptest.c | 17 +++++++++++++----
|
||||
1 file changed, 13 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/glib/tests/gwakeuptest.c b/glib/tests/gwakeuptest.c
|
||||
index 461a7d3..2c3eccd 100644
|
||||
--- a/glib/tests/gwakeuptest.c
|
||||
+++ b/glib/tests/gwakeuptest.c
|
||||
@@ -89,6 +89,9 @@ struct context
|
||||
#define NUM_TOKENS 5
|
||||
#define TOKEN_TTL 100000
|
||||
|
||||
+static gint num_threads = NUM_THREADS;
|
||||
+static gint token_ttl = TOKEN_TTL;
|
||||
+
|
||||
static struct context contexts[NUM_THREADS];
|
||||
static GThread *threads[NUM_THREADS];
|
||||
static GWakeup *last_token_wakeup;
|
||||
@@ -158,7 +161,7 @@ dispatch_token (struct token *token)
|
||||
struct context *ctx;
|
||||
gint next_ctx;
|
||||
|
||||
- next_ctx = g_test_rand_int_range (0, NUM_THREADS);
|
||||
+ next_ctx = g_test_rand_int_range (0, num_threads);
|
||||
ctx = &contexts[next_ctx];
|
||||
token->owner = ctx;
|
||||
token->ttl--;
|
||||
@@ -213,6 +216,12 @@ test_threaded (void)
|
||||
{
|
||||
gint i;
|
||||
|
||||
+ if (!g_test_slow ())
|
||||
+ {
|
||||
+ num_threads = NUM_THREADS / 10;
|
||||
+ token_ttl = TOKEN_TTL / 10;
|
||||
+ }
|
||||
+
|
||||
/* make sure we don't block forever */
|
||||
alarm (60);
|
||||
|
||||
@@ -230,7 +239,7 @@ test_threaded (void)
|
||||
last_token_wakeup = g_wakeup_new ();
|
||||
|
||||
/* create contexts, assign to threads */
|
||||
- for (i = 0; i < NUM_THREADS; i++)
|
||||
+ for (i = 0; i < num_threads; i++)
|
||||
{
|
||||
context_init (&contexts[i]);
|
||||
threads[i] = g_thread_new ("test", thread_func, &contexts[i]);
|
||||
@@ -238,13 +247,13 @@ test_threaded (void)
|
||||
|
||||
/* dispatch tokens */
|
||||
for (i = 0; i < NUM_TOKENS; i++)
|
||||
- dispatch_token (token_new (TOKEN_TTL));
|
||||
+ dispatch_token (token_new (token_ttl));
|
||||
|
||||
/* wait until all tokens are gone */
|
||||
wait_for_signaled (last_token_wakeup);
|
||||
|
||||
/* ask threads to quit, join them, cleanup */
|
||||
- for (i = 0; i < NUM_THREADS; i++)
|
||||
+ for (i = 0; i < num_threads; i++)
|
||||
{
|
||||
context_quit (&contexts[i]);
|
||||
g_thread_join (threads[i]);
|
File diff suppressed because it is too large
Load Diff
|
@ -1,8 +1,4 @@
|
|||
#!/usr/bin/make -f
|
||||
DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
|
||||
ifneq (,$(filter $(DEB_BUILD_ARCH), mips64el loongarch64))
|
||||
export DEB_BUILD_OPTIONS=nocheck
|
||||
endif
|
||||
|
||||
binaries := $(shell dh_listpackages)
|
||||
|
||||
|
@ -13,7 +9,8 @@ DEB_LDFLAGS_MAINT_APPEND += -Wl,-z,defs
|
|||
|
||||
# NB: do NOT use -Wl,--as-needed to build glib; for instance the link to
|
||||
# pthread is carefully crafted to allow dlopen()ing pthread-using libs; see
|
||||
# http://mid.gmane.org/1257999019.21780.15.camel@marzipan
|
||||
# https://marc.info/?i=1257999019.21780.15.camel@marzipan aka
|
||||
# https://mail.gnome.org/archives/gtk-devel-list/2009-November/msg00096.html
|
||||
DEB_LDFLAGS_MAINT_APPEND += -Wl,--no-as-needed
|
||||
|
||||
# Make the linker work a bit harder so dynamic loading can be done faster
|
||||
|
@ -22,39 +19,44 @@ DEB_LDFLAGS_MAINT_APPEND += -Wl,-O1
|
|||
include /usr/share/dpkg/default.mk
|
||||
|
||||
%:
|
||||
dh $@ --with gnome,python3 --buildsystem=meson
|
||||
dh $@
|
||||
|
||||
override_dh_autoreconf:
|
||||
@:
|
||||
DEB_CONFIGURE_EXTRA_FLAGS =
|
||||
|
||||
ifneq ($(DEB_HOST_ARCH),$(DEB_BUILD_ARCH))
|
||||
# Properties of glibc. These are the same for all Debian architectures,
|
||||
# and are auto-detected when doing a native build.
|
||||
DEB_CONFIGURE_EXTRA_FLAGS += --cross-file=$(CURDIR)/debian/meson/libc-properties.ini
|
||||
|
||||
# The direction of stack growth varies between architectures.
|
||||
ifneq ($(filter hppa,$(DEB_HOST_ARCH_CPU)),)
|
||||
stack_grows_up = true
|
||||
DEB_CONFIGURE_EXTRA_FLAGS += --cross-file=$(CURDIR)/debian/meson/stack-grows-up.ini
|
||||
else
|
||||
stack_grows_up = false
|
||||
DEB_CONFIGURE_EXTRA_FLAGS += --cross-file=$(CURDIR)/debian/meson/stack-grows-down.ini
|
||||
endif
|
||||
|
||||
endif # cross-compiling
|
||||
|
||||
ifneq ($(filter kfreebsd,$(DEB_HOST_ARCH_OS)),)
|
||||
have_non_stub_xattr = false
|
||||
else
|
||||
have_non_stub_xattr = true
|
||||
endif
|
||||
|
||||
export DH_MESON_CROSS_FILE = debian/cross.txt
|
||||
# This target can be run manually to verify that we have the source code
|
||||
# for these files. If all goes well, it should result in no diff.
|
||||
# This is not done automatically during the build, because it requires a
|
||||
# git checkout of GLib.
|
||||
maintainer-update-unicode-data:
|
||||
rm -f glib/gscripttable.h
|
||||
rm -f glib/gunibreak.h
|
||||
rm -f glib/gunichartables.h
|
||||
rm -f glib/gunidecomp.h
|
||||
rm -f glib/tests/casefold.txt
|
||||
rm -f glib/tests/casemap.txt
|
||||
$(CURDIR)/tools/update-unicode-data.sh $(CURDIR)/unicode-data 15.0.0
|
||||
|
||||
# We edit the debcrossgen output to work around unimplemented feature
|
||||
# request https://bugs.debian.org/912559
|
||||
override_dh_auto_configure:
|
||||
ifneq ($(DEB_HOST_ARCH),$(DEB_BUILD_ARCH))
|
||||
/usr/share/meson/debcrossgen \
|
||||
-o debian/cross.txt.in
|
||||
debian/set-cross-properties \
|
||||
have_c99_snprintf=true \
|
||||
have_c99_vsnprintf=true \
|
||||
have_strlcpy=false \
|
||||
have_unix98_printf=true \
|
||||
growing_stack=$(stack_grows_up) \
|
||||
< debian/cross.txt.in > debian/cross.txt
|
||||
endif
|
||||
dh_auto_configure \
|
||||
--builddirectory=debian/build/deb \
|
||||
-- \
|
||||
|
@ -72,8 +74,7 @@ endif
|
|||
|
||||
override_dh_clean:
|
||||
rm -rf $(CURDIR)/debian/build \
|
||||
$(CURDIR)/debian/install \
|
||||
$(CURDIR)/debian/tmp-xdg-runtime-dir
|
||||
$(CURDIR)/debian/install
|
||||
dh_clean -Xorg.gtk.test.gschema.xml.orig -Xorg.gtk.test.gschema.override.orig
|
||||
|
||||
|
||||
|
@ -81,11 +82,6 @@ override_dh_makeshlibs:
|
|||
dh_makeshlibs -plibglib2.0-tests -n
|
||||
dh_makeshlibs --remaining-packages --add-udeb=libglib2.0-udeb -- -c4
|
||||
|
||||
override_dh_strip:
|
||||
ifeq (,$(filter $(DEB_BUILD_ARCH), loongarch64)) # loongarch64 don't build dbg packages
|
||||
dh_strip --dbgsym-migration='libglib2.0-0-dbg (<< 2.51.4-1~)'
|
||||
endif
|
||||
|
||||
# (Ubuntu-specific)
|
||||
# Don't strip translations from the installed tests; makes them environment dependent.
|
||||
override_dh_translations:
|
||||
|
@ -95,17 +91,6 @@ override_dh_translations:
|
|||
# where creating /home/buildd/.dbus-keyrings fails
|
||||
export HOME=$(CURDIR)/debian/build
|
||||
|
||||
# Put these back to their defaults if we are not running with a clean
|
||||
# environment, so that they are based on the temporary $HOME above.
|
||||
# Otherwise, some tests would try to write to the user's real XDG_DATA_HOME,
|
||||
# causing unwanted side-effects or FTBFS depending whether the user's
|
||||
# real HOME is available in the build chroot (if used)
|
||||
unexport XDG_CACHE_HOME
|
||||
unexport XDG_CONFIG_DIRS
|
||||
unexport XDG_CONFIG_HOME
|
||||
unexport XDG_DATA_HOME
|
||||
unexport XDG_DATA_DIRS
|
||||
|
||||
# Make sure that everything that uses D-Bus is creating its own temporary
|
||||
# session rather than polluting the developer's (or failing, on buildds)
|
||||
export DBUS_SESSION_BUS_ADDRESS=this-should-not-be-used-and-will-fail:
|
||||
|
@ -133,11 +118,48 @@ endif
|
|||
override_dh_auto_test-arch:
|
||||
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
|
||||
# Remove LD_PRELOAD so we don't run with fakeroot, which makes dbus-related tests fail
|
||||
# Remove LANGUAGE to avoid mismatches between expected and actual
|
||||
# messages in non-English locales (mainly on reproducible-builds)
|
||||
# First run the non-flaky tests, and fail the build if they fail (on linux)
|
||||
env -u LD_PRELOAD \
|
||||
env \
|
||||
-u LANG \
|
||||
-u LANGUAGE \
|
||||
-u LD_PRELOAD \
|
||||
DEB_BUILD_TIME_TESTS=1 \
|
||||
LC_ALL=C.UTF-8 \
|
||||
MESON_TESTTHREADS=1 \
|
||||
debian/tests/run-with-locales \
|
||||
--generate de_DE=ISO-8859-1 \
|
||||
--generate de_DE.utf8 \
|
||||
--generate de_DE@euro.utf8 \
|
||||
--generate el_GR.utf8 \
|
||||
--generate en_GB=ISO-8859-1 \
|
||||
--generate en_GB.utf8 \
|
||||
--generate en_US=ISO-8859-1 \
|
||||
--generate en_US.utf8 \
|
||||
--generate es_ES.utf8 \
|
||||
--generate fa_IR=UTF-8 \
|
||||
--generate fa_IR.utf8 \
|
||||
--generate fr_FR.utf8 \
|
||||
--generate hr_HR.utf8 \
|
||||
--generate ja_JP.utf8 \
|
||||
--generate ja_JP.EUC-JP \
|
||||
--generate lt_LT.utf8 \
|
||||
--generate pl_PL=ISO-8859-2 \
|
||||
--generate pl_PL.ISO-8859-2 \
|
||||
--generate pl_PL.utf8 \
|
||||
--generate ru_RU=ISO-8859-5 \
|
||||
--generate ru_RU.utf8 \
|
||||
--generate sr_RS=UTF-8 \
|
||||
--generate sr_RS@latin=UTF-8 \
|
||||
--generate sv_SE=ISO-8859-1 \
|
||||
--generate sv_SE.utf8 \
|
||||
--generate tr_TR=ISO-8859-9 \
|
||||
--generate tr_TR.utf8 \
|
||||
--generate tt_RU=UTF-8 \
|
||||
--generate tt_RU.utf8 \
|
||||
--generate tt_RU@iqtelif=UTF-8 \
|
||||
-- \
|
||||
meson test -C debian/build/deb \
|
||||
--no-rebuild \
|
||||
--num-processes 1 \
|
||||
|
@ -146,7 +168,10 @@ ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
|
|||
--verbose \
|
||||
|| $(handle_test_failure)
|
||||
# and then run the flaky ones, but ignore them failing
|
||||
env -u LD_PRELOAD \
|
||||
env \
|
||||
-u LANG \
|
||||
-u LANGUAGE \
|
||||
-u LD_PRELOAD \
|
||||
DEB_BUILD_TIME_TESTS=1 \
|
||||
LC_ALL=C.UTF-8 \
|
||||
MESON_TESTTHREADS=1 \
|
||||
|
@ -159,13 +184,19 @@ ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
|
|||
|| true
|
||||
endif
|
||||
|
||||
# Skip build-time tests if all we are building is documentation; running
|
||||
# them once per architecture is plenty
|
||||
# Skip most build-time tests if all we are building is documentation;
|
||||
# running them once per architecture is plenty. As an exception, do run the
|
||||
# documentation completeness checks, which won't normally be run on
|
||||
# architecture-specific buildds (except in Ubuntu).
|
||||
override_dh_auto_test-indep:
|
||||
@:
|
||||
meson test -C debian/build/deb \
|
||||
--no-rebuild \
|
||||
--num-processes 1 \
|
||||
--timeout-multiplier $(test_timeout_multiplier) \
|
||||
--verbose \
|
||||
gio-doc-check glib-doc-check gobject-doc-check \
|
||||
|| $(handle_test_failure)
|
||||
|
||||
# The tests assume this directory exists and is writable
|
||||
export XDG_RUNTIME_DIR=$(CURDIR)/debian/tmp-xdg-runtime-dir
|
||||
# Let's get failing tests' stdout and stderr so we have some information when
|
||||
# a build fails
|
||||
export VERBOSE=1
|
||||
|
@ -178,23 +209,13 @@ enable_libmount := disabled
|
|||
enable_selinux := disabled
|
||||
endif
|
||||
|
||||
ifneq ($(filter hurd kfreebsd,$(DEB_HOST_ARCH_OS)),)
|
||||
use_fam := true
|
||||
else
|
||||
use_fam := false
|
||||
endif
|
||||
|
||||
# configure flags
|
||||
DEB_CONFIGURE_EXTRA_FLAGS := \
|
||||
-Dinternal_pcre=false \
|
||||
$(NULL)
|
||||
|
||||
DEB_CONFIGURE_FLAGS_deb := \
|
||||
--default-library both \
|
||||
-Dfam=$(use_fam) \
|
||||
-Dinstalled_tests=true \
|
||||
-Dlibelf=enabled \
|
||||
-Dlibmount=$(enable_libmount) \
|
||||
-Dman=true \
|
||||
-Dmultiarch=true \
|
||||
-Dselinux=$(enable_selinux) \
|
||||
-Dsystemtap=true \
|
||||
-Dxattr=$(have_non_stub_xattr) \
|
||||
|
@ -247,6 +268,7 @@ override_dh_install:
|
|||
ifneq ($(filter %-udeb,$(binaries)),)
|
||||
# Unwanted bits from the .udeb build
|
||||
rm -f debian/install/udeb/usr/lib/*/*.so
|
||||
rm -fr debian/install/udeb/usr/libexec/gio-launch-desktop
|
||||
rm -fr debian/install/udeb/usr/share/gdb
|
||||
rm -fr debian/install/udeb/usr/share/gettext/its
|
||||
rm -fr debian/install/udeb/usr/share/glib-2.0/codegen
|
||||
|
@ -254,15 +276,27 @@ ifneq ($(filter %-udeb,$(binaries)),)
|
|||
rm -fr debian/install/udeb/usr/share/glib-2.0/valgrind
|
||||
rm -fr debian/install/udeb/usr/share/man
|
||||
dh_install -plibglib2.0-udeb --sourcedir=debian/install/udeb
|
||||
endif
|
||||
ifneq ($(filter %-tests,$(binaries)),)
|
||||
sed -i -e '/^#!.*/,1 d' debian/install/deb/usr/libexec/installed-tests/glib/taptestrunner.py
|
||||
endif
|
||||
dh_install --remaining-packages --sourcedir=debian/install/deb
|
||||
install -D -t debian/libglib2.0-0/usr/lib/${DEB_HOST_MULTIARCH}/glib-2.0/ debian/gio-launch-desktop
|
||||
|
||||
override_dh_dwz:
|
||||
dh_dwz -Nlibglib2.0-udeb
|
||||
|
||||
override_dh_missing:
|
||||
dh_missing --sourcedir=debian/install/deb --fail-missing
|
||||
ifneq ($(filter %-udeb,$(binaries)),)
|
||||
dh_missing --sourcedir=debian/install/udeb --fail-missing
|
||||
# debhelper >= 13.4 makes all of /usr/libexec executable, which is not
|
||||
# quite right for installed-tests
|
||||
override_dh_fixperms:
|
||||
dh_fixperms -Xusr/libexec/installed-tests
|
||||
ifneq ($(filter %-tests,$(binaries)),)
|
||||
chmod --changes u=rw,og=r debian/libglib2.0-tests/usr/libexec/installed-tests/*/*.so
|
||||
chmod --changes u=rw,og=r debian/libglib2.0-tests/usr/libexec/installed-tests/*/*/*.so
|
||||
chmod --recursive --changes a+rX,u+w,og-w debian/libglib2.0-tests/usr/libexec/installed-tests
|
||||
endif
|
||||
|
||||
override_dh_missing:
|
||||
dh_missing --sourcedir=debian/install/deb
|
||||
ifneq ($(filter %-udeb,$(binaries)),)
|
||||
dh_missing --sourcedir=debian/install/udeb
|
||||
endif
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
import sys
|
||||
|
||||
|
||||
def write_properties(properties):
|
||||
for prop in properties:
|
||||
k, v = prop.split('=', 1)
|
||||
print('{} = {}'.format(k, v))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
for line in sys.stdin:
|
||||
sys.stdout.write(line)
|
||||
|
||||
if line.strip() == '[properties]':
|
||||
write_properties(sys.argv[1:])
|
||||
done = True
|
||||
|
||||
if not done:
|
||||
print('[properties]')
|
||||
write_properties(sys.argv[1:])
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue