deepin-community / deepin-overlay

deepin overlay for gentoo users
GNU General Public License v2.0
6 stars 3 forks source link

dde-base/deepin-pw-check-5.1.8: service/service.go:7:2: cannot find package "github.com/linuxdeepin/go-dbus-factory/org.freedesktop.policykit1 #28

Closed HougeLangley closed 2 years ago

HougeLangley commented 2 years ago

Full Build Log:

 * Package:    dde-base/deepin-pw-check-5.1.8
 * Repository: deepin
 * Maintainer: rabenda.cn@gmail.com
 * USE:        elibc_glibc kernel_linux loong userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
 * Vendoring github.com/godbus/dbus github.com-godbus-dbus-e0a146e.tar.gz
 * Vendoring github.com/fsnotify/fsnotify github.com-fsnotify-fsnotify-7f4cf4d.tar.gz
 * Vendoring golang.org/x/sys github.com-golang-sys-cc9327a.tar.gz
 * Vendoring github.com/stretchr/testify github.com-stretchr-testify-acba37e.tar.gz
 * Vendoring github.com/davecgh/go-spew github.com-davecgh-go-spew-87df7c6.tar.gz
 * Vendoring github.com/pmezard/go-difflib github.com-pmezard-go-difflib-792786c.tar.gz
 * Vendoring github.com/stretchr/objx github.com-stretchr-objx-35313a9.tar.gz
 * Vendoring gopkg.in/yaml.v3 github.com-go-yaml-yaml-496545a.tar.gz
>>> Source unpacked in /var/tmp/portage/dde-base/deepin-pw-check-5.1.8/work
>>> Preparing source in /var/tmp/portage/dde-base/deepin-pw-check-5.1.8/work/deepin-pw-check-5.1.8 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dde-base/deepin-pw-check-5.1.8/work/deepin-pw-check-5.1.8 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dde-base/deepin-pw-check-5.1.8/work/deepin-pw-check-5.1.8 ...
make -j32 all 
gcc lib/*.c -fstack-protector-strong -D_FORTITY_SOURCE=1 -z noexecstack -pie -fPIC -z lazy -shared -DIN_CRACKLIB -W -Wall -Wl,-soname,libdeepin_pw_check.so.1 -o out/libdeepin_pw_check.so.1.1  -lcrypt -lcrack -liniparser4
gcc lib/bigcrypt.c -c -fstack-protector-strong -D_FORTITY_SOURCE=1 -z noexecstack -pie -fPIC -z lazy -DIN_CRACKLIB -W -Wall -o lib/bigcrypt.o
gcc lib/debug.c -c -fstack-protector-strong -D_FORTITY_SOURCE=1 -z noexecstack -pie -fPIC -z lazy -DIN_CRACKLIB -W -Wall -o lib/debug.o
gcc lib/deepin_pw_check.c -c -fstack-protector-strong -D_FORTITY_SOURCE=1 -z noexecstack -pie -fPIC -z lazy -DIN_CRACKLIB -W -Wall -o lib/deepin_pw_check.o
gcc lib/md5.c -c -fstack-protector-strong -D_FORTITY_SOURCE=1 -z noexecstack -pie -fPIC -z lazy -DIN_CRACKLIB -W -Wall -o lib/md5.o
gcc lib/md5_crypt.c -c -fstack-protector-strong -D_FORTITY_SOURCE=1 -z noexecstack -pie -fPIC -z lazy -DIN_CRACKLIB -W -Wall -o lib/md5_crypt.o
gcc lib/passwd_compare.c -c -fstack-protector-strong -D_FORTITY_SOURCE=1 -z noexecstack -pie -fPIC -z lazy -DIN_CRACKLIB -W -Wall -o lib/passwd_compare.o
gcc lib/word_check.c -c -fstack-protector-strong -D_FORTITY_SOURCE=1 -z noexecstack -pie -fPIC -z lazy -DIN_CRACKLIB -W -Wall -o lib/word_check.o
gcc tool/*.c -liniparser4 -W -Wall -o out/pwd-conf-update
deepin-policy-ts-convert ts2policy misc/polkit-action/com.deepin.daemon.passwdconf.policy.in misc/ts/com.deepin.daemon.passwdconf.policy misc/polkit-action/com.deepin.daemon.passwdconf.policy
lib/deepin_pw_check.c: In function ‘get_default_options’:
env GOPATH="/var/tmp/portage/dde-base/deepin-pw-check-5.1.8/work/deepin-pw-check-5.1.8:/usr/lib/go-gentoo:/var/tmp/portage/dde-base/deepin-pw-check-5.1.8/temp/golibdir/" go build  -o out/bin/deepin-pw-check  service/*.go
lib/deepin_pw_check.c:146:48: warning: unused parameter ‘level’ []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-parameter-Wunused-parameter]8;;]
  146 | static struct Options *get_default_options(int level, const char *dict_path, const char *conf_file) {
      |                                            ~~~~^~~~~
lib/deepin_pw_check.c: In function ‘is_type_valid’:
lib/deepin_pw_check.c:309:31: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wsign-compare-Wsign-compare]8;;]
  309 |             for (int j = 0; j < strlen(p); j++) {
      |                               ^
lib/deepin_pw_check.c: In function ‘deepin_pw_check_by_conf’:
lib/deepin_pw_check.c:494:58: warning: unused parameter ‘user’ []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-parameter-Wunused-parameter]8;;]
  494 | static PW_ERROR_TYPE deepin_pw_check_by_conf(const char *user, const char *pw, int level, const char *dict_path, const char *conf_file) {
      |                                              ~~~~~~~~~~~~^~~~
policyFile: misc/polkit-action/com.deepin.daemon.passwdconf.policy.in
tsDir: misc/ts/com.deepin.daemon.passwdconf.policy
outputPolicyFile: misc/polkit-action/com.deepin.daemon.passwdconf.policy
lib/deepin_pw_check.c: In function ‘get_default_options’:
lib/deepin_pw_check.c:146:48: warning: unused parameter ‘level’ []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-parameter-Wunused-parameter]8;;]
  146 | static struct Options *get_default_options(int level, const char *dict_path, const char *conf_file) {
      |                                            ~~~~^~~~~
lib/deepin_pw_check.c: In function ‘is_type_valid’:
lib/deepin_pw_check.c:309:31: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wsign-compare-Wsign-compare]8;;]
  309 |             for (int j = 0; j < strlen(p); j++) {
      |                               ^
lib/deepin_pw_check.c: In function ‘deepin_pw_check_by_conf’:
lib/deepin_pw_check.c:494:58: warning: unused parameter ‘user’ []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-parameter-Wunused-parameter]8;;]
  494 | static PW_ERROR_TYPE deepin_pw_check_by_conf(const char *user, const char *pw, int level, const char *dict_path, const char *conf_file) {
      |                                              ~~~~~~~~~~~~^~~~
# cd lib ;ar x /usr/lib//libiniparser.a
# cd lib ;ar x /usr/lib//libcrack.a
# cd lib ;ar x /usr/lib//libcrypt.a
ar rcs out/libdeepin_pw_check.a lib/*.o
service/service.go:7:2: cannot find package "github.com/linuxdeepin/go-dbus-factory/org.freedesktop.policykit1" in any of:
    /usr/lib/go/src/github.com/linuxdeepin/go-dbus-factory/org.freedesktop.policykit1 (from $GOROOT)
    /var/tmp/portage/dde-base/deepin-pw-check-5.1.8/work/deepin-pw-check-5.1.8/src/github.com/linuxdeepin/go-dbus-factory/org.freedesktop.policykit1 (from $GOPATH)
    /usr/lib/go-gentoo/src/github.com/linuxdeepin/go-dbus-factory/org.freedesktop.policykit1
    /var/tmp/portage/dde-base/deepin-pw-check-5.1.8/temp/golibdir/src/github.com/linuxdeepin/go-dbus-factory/org.freedesktop.policykit1
make: *** [Makefile:28: out/bin/deepin-pw-check] Error 1
make: *** Waiting for unfinished jobs....
cd out; ln -s libdeepin_pw_check.so.1.1 libdeepin_pw_check.so
 * ERROR: dde-base/deepin-pw-check-5.1.8::deepin failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=dde-base/deepin-pw-check-5.1.8::deepin'`,
 * the complete build log and the output of `emerge -pqv '=dde-base/deepin-pw-check-5.1.8::deepin'`.
 * The complete build log is located at '/var/tmp/portage/dde-base/deepin-pw-check-5.1.8/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dde-base/deepin-pw-check-5.1.8/temp/environment'.
 * Working directory: '/var/tmp/portage/dde-base/deepin-pw-check-5.1.8/work/deepin-pw-check-5.1.8/src'
 * S: '/var/tmp/portage/dde-base/deepin-pw-check-5.1.8/work/deepin-pw-check-5.1.8'
HougeLangley commented 2 years ago
Portage 3.0.34 (python 3.10.6-final-0, default/linux/loong/22.0/la64v100/lp64d/systemd, gcc-13.0.0, glibc-2.36, 5.19.0-rc5-6 loongarch64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.19.0-rc5-6-loongarch64-with-glibc2.36
KiB Mem:   133311168 total, 105136656 free
KiB Swap:    2069808 total,   2069808 free
Head commit of repository gentoo: 8ded12e731df8d371bf03339f1b919ab9e44c19f

Head commit of repository deepin: ac9a36fdf21f74c427f482175825885e7438aa0c

Head commit of repository loongson: adcfc2cfccf4c178f9fae8b4f1384c2b3acbd936

sh bash 5.1_p16-r1
ld GNU ld (Gentoo 2.39 p3) 2.39.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r1::gentoo
dev-lang/perl:             5.36.0::gentoo
dev-lang/python:           3.10.6_p2::gentoo, 3.11.0_rc1::gentoo
dev-util/cmake:            3.24.1::gentoo
dev-util/meson:            0.63.1::gentoo
sys-apps/baselayout:       2.8-r2::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-apps/systemd:          251.4::gentoo
sys-devel/autoconf:        2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.39::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/gcc:             13.0.0_pre20220814::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.19::gentoo (virtual/os-headers)
sys-libs/glibc:            2.36::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo/gentoo.git
    priority: -1000

deepin
    location: /var/db/repos/deepin
    sync-type: git
    sync-uri: https://github.com/deepin-community/deepin-overlay.git
    masters: gentoo

loongson
    location: /var/db/repos/gentoo-loogarch
    sync-type: git
    sync-uri: https://github.com/xen0n/loongson-overlay.git
    masters: gentoo

ACCEPT_KEYWORDS="loong ~loong"
ACCEPT_LICENSE="*"
CBUILD="loongarch64-unknown-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="loongarch64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --with-bdeps=y --autounmask-write=y --quiet-build=y --jobs=2 -l"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://mirrors.ustc.edu.cn/gentoo/"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_US zh_CN en zh"
MAKEOPTS="-j32"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X acl bzip2 cli crypt dri fortran gdbm iconv ipv6 libglvnd loong ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl systemd udev unicode xattr zlib" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en-US zh-CN en zh" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="dummy fbdev v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SHELL, SIZE, STRINGS, STRIP, YACC, YFLAGS
HougeLangley commented 2 years ago

这里的问题估计是上面一个包没有构建出来导致的,go-dbus-factory

RevySR commented 2 years ago

已增加go-dbus-factory 依赖

HougeLangley commented 2 years ago

谢谢,一会儿我来测试~

HougeLangley commented 2 years ago

Fixed https://github.com/deepin-community/deepin-overlay/commit/50977a5911ea0dddc3cb10fe9fa220f0bc6fb09d