Re: [libgpiod] gpiod_line_get_value_bulk may be broken?

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

 



On Fri, 11 Aug 2023 at 01:59, Kent Gibson <warthog618@xxxxxxxxx> wrote:

> So you don't need to alloc for it at all - gpiod_line_find() already did
> that. As per that function's comment, you still need to close the chip
> eventually to prevent memory leaks.

Close then free?

> > I must be missing something? Or are you assuming that I am the only
> > one compiling LinuxCNC?

> I am assuming you are building an execuable to package as a binary.
> If you are building a dev package then you can't hide the libgpiod
> dependency from the end user, so you have the choice of either using
> what is readily available or forcing the end user to install libgpiod
> from source themselves

We do build binary packages, but not generally on my PC, instead the
builds happen on a number of buildbots, including the one at Debian.
Also, there are about 20 active developers who expect to pull the
repository from Git and have it build, and probably low-hundreds of
users who regularly build from source.

Basically, a git pull of the repository  + the listed build-time
dependencies has to build without anyone manually fetching an external
code repository.

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912




[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux