Bug#1009165: golang-src package missing /usr/lib/go/pkg/include/ directory

2022-04-08 Thread Shengjing Zhu
On Fri, Apr 8, 2022 at 9:39 AM Tong Sun  wrote:
>
> Package: golang-1.17-src
> Version: 1.17
>
> I found the whole /usr/lib/go-1.17/pkg/include/ directory missing from
> the golang-src package.
> Verified with the following filelist  as well:
>
> https://packages.debian.org/sid/all/golang-1.17-src/filelist
>
> The "include" directory should be there as per Ian from golang.org.
> Missing it prevents installing certain packages like below.
>
> It's OK not to include them by default in the golang-vv-src packages
> as there might not be many people using them, however, I searched for
> "golang-1.17" but found no other packages providing them. Maybe
> provide an extra -src-include package?
>
> BTW, the problem exist in golang-1.18-src as well, verified by
> examining the listing from
> https://packages.debian.org/sid/all/golang-1.18-src/filelist
>

FTR, these files are in golang-X.Y-go package.

```
$ dpkg -L golang-1.18-go|grep pkg/include
/usr/share/go-1.18/pkg/include
/usr/share/go-1.18/pkg/include/asm_ppc64x.h
/usr/share/go-1.18/pkg/include/funcdata.h
/usr/share/go-1.18/pkg/include/textflag.h
/usr/lib/go-1.18/pkg/include
```

I don't know how it is possible that one only installs  golang-X.Y-src
package but still has a working `go` command.

-- 
Shengjing Zhu



Bug#1009165: golang-src package missing /usr/lib/go/pkg/include/ directory

2022-04-07 Thread Tong Sun
Control: close -1
thanks

my bad

On Thu, Apr 7, 2022 at 10:31 PM Tong Sun
 wrote:
>
> On Thu, Apr 7, 2022 at 9:37 PM Tong Sun wrote:
>
> > The "include" directory should be there as per Ian from golang.org.
> > Missing it prevents installing certain packages like below.
>
> Found that there are only **three** files!
>
> -rw-r--r-- root/root  1023 2022-03-15 10:09 go/pkg/include/asm_ppc64x.h
> -rw-r--r-- root/root  2612 2022-03-15 10:09 go/pkg/include/funcdata.h
> -rw-r--r-- root/root  1560 2022-03-15 10:09 go/pkg/include/textflag.h
>
> > It's OK not to include them by default in the golang-vv-src packages
> > as there might not be many people using them, however, I searched for
> > "golang-1.17" but found no other packages providing them. Maybe
> > provide an extra -src-include package?
>
> So no need for an extra package at all.



Bug#1009165: golang-src package missing /usr/lib/go/pkg/include/ directory

2022-04-07 Thread Tong Sun
On Thu, Apr 7, 2022 at 9:37 PM Tong Sun wrote:

> The "include" directory should be there as per Ian from golang.org.
> Missing it prevents installing certain packages like below.

Found that there are only **three** files!

-rw-r--r-- root/root  1023 2022-03-15 10:09 go/pkg/include/asm_ppc64x.h
-rw-r--r-- root/root  2612 2022-03-15 10:09 go/pkg/include/funcdata.h
-rw-r--r-- root/root  1560 2022-03-15 10:09 go/pkg/include/textflag.h

> It's OK not to include them by default in the golang-vv-src packages
> as there might not be many people using them, however, I searched for
> "golang-1.17" but found no other packages providing them. Maybe
> provide an extra -src-include package?

So no need for an extra package at all.



Bug#1009165: golang-src package missing /usr/lib/go/pkg/include/ directory

2022-04-07 Thread Tong Sun
Package: golang-1.17-src
Version: 1.17

I found the whole /usr/lib/go-1.17/pkg/include/ directory missing from
the golang-src package.
Verified with the following filelist  as well:

https://packages.debian.org/sid/all/golang-1.17-src/filelist

The "include" directory should be there as per Ian from golang.org.
Missing it prevents installing certain packages like below.

It's OK not to include them by default in the golang-vv-src packages
as there might not be many people using them, however, I searched for
"golang-1.17" but found no other packages providing them. Maybe
provide an extra -src-include package?

BTW, the problem exist in golang-1.18-src as well, verified by
examining the listing from
https://packages.debian.org/sid/all/golang-1.18-src/filelist

thanks


-- Forwarded message -
From: Ian Lance Taylor 
Date: Thu, Apr 7, 2022 at 7:40 PM
Subject: Re: [go-nuts] Missing /usr/lib/go/pkg/include/ for native binaries
To: Tong Sun
Cc: golang-nuts 


On Thu, Apr 7, 2022 at 2:35 PM Tong Sun wrote:
>
> This might be the first go package that I do `go get` and which requires 
> native binaries:
>
> $ go get -v go.opentelemetry.io/otel/exporters/stdout/stdouttrace
> golang.org/x/sys/unix
> # golang.org/x/sys/unix
> /.../Go/pkg/mod/golang.org/x/sys@v0.0.0-20210423185535-09eb48e85fd7/unix/asm_linux_amd64.s:9:
>  #include: open /usr/lib/go-1.17/pkg/include/textflag.h: no such file or 
> directory
>
> I checked and found that I'm missing the whole /usr/lib/go-1.17/pkg/include/ 
> directory.
>
> How can I get them so that my `go get` can be successful?
>
> Thanks
>
> $ go version
> go version go1.17.6 linux/amd64
>
> $ lsb_release -a
> No LSB modules are available.
> Distributor ID: Debian
> Description:Debian GNU/Linux bullseye/sid
> Release:   10.12
> Codename:  buster
>
> $ apt-cache policy golang-1.17-src
> golang-1.17-src:
>   Installed: 1.17.6-1~bpo11+1
>   Candidate: 1.17.8-1~bpo11+1
>   Version table:
>  1.17.8-1~bpo11+1 100
> 100 http://deb.debian.org/debian bullseye-backports/main amd64 
> Packages
>  *** 1.17.6-1~bpo11+1 100
> 100 /var/lib/dpkg/status

That's odd.  File a bug report against Debian?  I don't know why they
are missing.

You can of course get the header files you need by installing Go
yourself (https://go.dev/doc/install).

Ian