[Bug 1297550] Review Request: golang-github-jmespath-go-jmespath - Golang implementation of JMESPath

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=1297550



--- Comment #4 from Jan Chaloupka <jchaloup@xxxxxxxxxx> ---
[!]: Package requires other packages for directories it uses.
     Note: No known owner of /usr/share/gocode/src/github.com/jmespath/go-
     jmespath/cmd

[!]: Package must own all directories that it creates.
     Note: Directories without known owners: /usr/share/gocode/src,
     /usr/share/gocode/src/github.com/jmespath/go-jmespath/cmd,
     /usr/share/gocode, /usr/share/gocode/src/github.com

All dirs up to /usr/share/gocode/src/github.com/jmespath/go-jmespath/cmd are
(should be owned) by golang compiler. The cmd is problematic. By the nature of
the construct in %install section, github.com/jmespath/go-jmespath/cmd is
skipped as it contains no go files.

Opening issue on gofed [1]. Temporary fix is use this instead:

# find all *.go but no *_test.go files and generate devel.file-list
for file in $(find . -iname "*.go" \! -iname "*_test.go") ; do
    dirprefix=$(dirname $file)
    install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$dirprefix
    cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
    echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list

    while [ "$dirprefix" != "." ]; do
        echo "%%dir %%{gopath}/src/%%{import_path}/$dirprefix" >>
devel.file-list
        dirprefix=$(dirname $dirprefix)
    done
done


[1] https://github.com/gofed/gofed/issues/97

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list
package-review@xxxxxxxxxxxxxxxxxxxxxxx
http://lists.fedoraproject.org/admin/lists/package-review@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]