Bug#732788: Processed (with 5 errors): 732788

2022-01-20 Thread Carl Karsten
How often should I ping you?

On Thu, Jan 13, 2022 at 2:13 PM Carl Karsten  wrote:
>
> On Mon, Jan 3, 2022 at 3:51 AM Carl Karsten  wrote:
> >
> > https://salsa.debian.org/cloud-team/cloud-initramfs-tools/-/merge_requests/5
>
> bump ^^^
>
> >
> > On Sat, Jan 1, 2022 at 8:28 AM Thomas Goirand  wrote:
> > >
> > > On 12/31/21 10:14 PM, Carl Karsten wrote:
> > > > What do I need to do to get overlayroot into unstable?
> > >
> > > Hi,
> > >
> > > Thanks for your explanation, now I get it.
> > >
> > > If you want to work on this yourself, you can simply provide a merge
> > > request in the Salsa repository over here:
> > > https://salsa.debian.org/cloud-team/cloud-initramfs-tools
> > >
> > > then ping me again in this bug.
> > >
> > > Cheers,
> > >
> > > Thomas Goirand (zigo)
> >
> >
> >
> > --
> > Carl K
> >
>
>
> --
> Carl K



-- 
Carl K



Bug#732788: Processed (with 5 errors): 732788

2022-01-13 Thread Carl Karsten
On Mon, Jan 3, 2022 at 3:51 AM Carl Karsten  wrote:
>
> https://salsa.debian.org/cloud-team/cloud-initramfs-tools/-/merge_requests/5

bump ^^^

>
> On Sat, Jan 1, 2022 at 8:28 AM Thomas Goirand  wrote:
> >
> > On 12/31/21 10:14 PM, Carl Karsten wrote:
> > > What do I need to do to get overlayroot into unstable?
> >
> > Hi,
> >
> > Thanks for your explanation, now I get it.
> >
> > If you want to work on this yourself, you can simply provide a merge
> > request in the Salsa repository over here:
> > https://salsa.debian.org/cloud-team/cloud-initramfs-tools
> >
> > then ping me again in this bug.
> >
> > Cheers,
> >
> > Thomas Goirand (zigo)
>
>
>
> --
> Carl K
>


-- 
Carl K



Bug#732788: Processed (with 5 errors): 732788

2022-01-03 Thread Carl Karsten
https://salsa.debian.org/cloud-team/cloud-initramfs-tools/-/merge_requests/5

On Sat, Jan 1, 2022 at 8:28 AM Thomas Goirand  wrote:
>
> On 12/31/21 10:14 PM, Carl Karsten wrote:
> > What do I need to do to get overlayroot into unstable?
>
> Hi,
>
> Thanks for your explanation, now I get it.
>
> If you want to work on this yourself, you can simply provide a merge
> request in the Salsa repository over here:
> https://salsa.debian.org/cloud-team/cloud-initramfs-tools
>
> then ping me again in this bug.
>
> Cheers,
>
> Thomas Goirand (zigo)



-- 
Carl K



Bug#948744: voctomix-outcasts: --audio_elements option is ignored.

2020-01-12 Thread Carl Karsten
released!

https://github.com/CarlFK/voctomix-outcasts/releases/tag/v0.9.3

Thanks again for putting up with me.



On Mon, Jan 13, 2020 at 7:12 AM Carl Karsten  wrote:

> oh right, I said there is a patch.  hmm... let me create a release
> after breakfast.
>
> On Mon, Jan 13, 2020 at 6:48 AM Carl F Karsten 
> wrote:
>
>> Package: voctomix-outcasts
>> Severity: important
>> Tags: patch
>>
>> Hello Holger!
>>
>> ingest.py --help says --audio-elements does something, but I never wrote
>> the code to do anything. Opps.
>>
>> code added is basically:
>> audio_src += args.audio_elements + " !\n"
>>
>> It is about to be tested in production at LCA in 2.5 hours!
>>
>> We coppied the file onto the box, so no need to rush getting this fix
>> packaged.
>>
>> Thanks!
>> Carl
>>
>>
>> -- System Information:
>> Debian Release: buster/sid
>>   APT prefers bionic-updates
>>   APT policy: (500, 'bionic-updates'), (500, 'bionic-security'), (500,
>> 'bionic'), (100, 'bionic-backports')
>> Architecture: amd64 (x86_64)
>> Foreign Architectures: i386
>>
>> Kernel: Linux 4.15.0-72-generic (SMP w/4 CPU cores)
>> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
>> LANGUAGE=en_US: (charmap=UTF-8)
>> Shell: /bin/sh linked to /bin/dash
>> Init: systemd (via /run/systemd/system)
>> LSM: AppArmor: enabled
>>
>> Versions of packages voctomix-outcasts depends on:
>> ii  gir1.2-gst-plugins-base-1.0  1.14.5-0ubuntu1~18.04.1
>> ii  gstreamer1.0-plugins-good1.14.5-0ubuntu1~18.04.1
>> ii  python3  3.6.7-1~18.04
>> ii  python3-gi   3.26.1-2ubuntu1
>>
>> Versions of packages voctomix-outcasts recommends:
>> ii  gstreamer1.0-x  1.14.5-0ubuntu1~18.04.1
>>
>> voctomix-outcasts suggests no packages.
>>
>
>
> --
> Carl K
>


-- 
Carl K


Bug#948744: voctomix-outcasts: --audio_elements option is ignored.

2020-01-12 Thread Carl Karsten
oh right, I said there is a patch.  hmm... let me create a release
after breakfast.

On Mon, Jan 13, 2020 at 6:48 AM Carl F Karsten 
wrote:

> Package: voctomix-outcasts
> Severity: important
> Tags: patch
>
> Hello Holger!
>
> ingest.py --help says --audio-elements does something, but I never wrote
> the code to do anything. Opps.
>
> code added is basically:
> audio_src += args.audio_elements + " !\n"
>
> It is about to be tested in production at LCA in 2.5 hours!
>
> We coppied the file onto the box, so no need to rush getting this fix
> packaged.
>
> Thanks!
> Carl
>
>
> -- System Information:
> Debian Release: buster/sid
>   APT prefers bionic-updates
>   APT policy: (500, 'bionic-updates'), (500, 'bionic-security'), (500,
> 'bionic'), (100, 'bionic-backports')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
>
> Kernel: Linux 4.15.0-72-generic (SMP w/4 CPU cores)
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
> LANGUAGE=en_US: (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
> LSM: AppArmor: enabled
>
> Versions of packages voctomix-outcasts depends on:
> ii  gir1.2-gst-plugins-base-1.0  1.14.5-0ubuntu1~18.04.1
> ii  gstreamer1.0-plugins-good1.14.5-0ubuntu1~18.04.1
> ii  python3  3.6.7-1~18.04
> ii  python3-gi   3.26.1-2ubuntu1
>
> Versions of packages voctomix-outcasts recommends:
> ii  gstreamer1.0-x  1.14.5-0ubuntu1~18.04.1
>
> voctomix-outcasts suggests no packages.
>


-- 
Carl K


Bug#804350: vizzini -- Kernel driver for Exar XR21V1414 USB UART

2019-06-06 Thread Carl Karsten
I have tested with 5.2.0, it seems to work.

I have the hardware
(Atlys shown here:
https://hdmi2usb.tv/digilent-atlys/
and sometimes
https://store.digilentinc.com/atlys-spartan-6-fpga-trainer-board-limited-time-see-nexys-video/

Are there any issues blocking this?

Here is from my bash_history:

mkdir shenki torvalds
(cd shenki
git clone https://github.com/shenki/linux.git
cd linux
git diff HEAD^ > ../../vizzini.patch
)
cd torvalds
git clone -depth 1
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
cd linux
cp /boot/config-`uname -r` .config
yes '' | make oldconfig
make -j `getconf _NPROCESSORS_ONLN` deb-pkg LOCALVERSION=-viz-torv
git apply ../../vizzini.patch
make oldconfig
# USB Exar XR21V141x 'Vizzini' Serial Driver (USB_SERIAL_VIZZINI)
[N/m/?] (NEW) m
make -j `getconf _NPROCESSORS_ONLN` deb-pkg LOCALVERSION=-viz2-torv
cd ..
sudo dpkg -i linux-image-5.2.0-rc1-viz2-torv_5.2.0-rc1-viz2-torv-1_amd64.deb




-- 
Carl K



Bug#930043: voctomix-outcasts: record-timestamp uses -ilme interlacing on progressive data

2019-06-05 Thread Carl Karsten
fixed!
https://github.com/CarlFK/voctomix-outcasts/releases/tag/v0.9.1

On Thu, Jun 6, 2019 at 11:45 AM Carl F Karsten  wrote:
>
> Package: voctomix-outcasts
> Version: 0.7.0
> Severity: normal
>
> Dear Maintainer,
>
> *** Reporter, please consider answering these questions, where appropriate ***
>
>* What led up to the situation?
>
>Final encode is missing pixels because the encoder deinterlaced
>progressive frames.
>
>* What exactly did you do (or not do) that was effective (or
>  ineffective)?
>* What was the outcome of this action?
>* What outcome did you expect instead?
>
> *** End of the template - remove these template lines ***
>
>
> -- System Information:
> Debian Release: stretch/sid
>   APT prefers xenial-updates
>   APT policy: (500, 'xenial-updates'), (500, 'xenial-security'), (500, 
> 'xenial'), (100, 'xenial-backports')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
>
> Kernel: Linux 4.4.0-148-generic (SMP w/4 CPU cores)
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)



-- 
Carl K



Bug#927347: voctomix-outcasts: don't use hardcoded filenames in /tmp - even for testing

2019-05-23 Thread Carl Karsten
deleted one file, fixed the other.

And addressed this from #dc-v
(11:13:09 AM) olasd: CarlFK: why did you add a deinterlace in
https://github.com/CarlFK/voctomix-outcasts/commit/174b1c9fd77f5f49f4040e0747e70ca8f39c7c39
(11:14:19 AM) olasd: it makes the loop wobblwobble

fixed.

tested, and made some notes about how to test
https://github.com/CarlFK/voctomix-outcasts/blob/master/tests/README.md

Can you package please?
https://github.com/CarlFK/voctomix-outcasts/releases/tag/v0.9.0

As always, thank you for your help.


On Thu, Apr 18, 2019 at 5:57 AM Holger Levsen  wrote:
>
> package: voctomix-outcasts
> severity: important
> x-debbugs-cc: 927...@bugs.debian.org, c...@nextdayvideo.com
>
> Hi Carl,
>
> On Thu, Apr 18, 2019 at 10:45:00AM +, Niels Thykier wrote:
> > > voctomix-outcasts (0.8.0-1) unstable; urgency=medium
> > Unblocked.
>
> this is quite yay! (=it will make it into Buster)
>
> > I noted that the tests hardcodes a /tmp/test.ts file (not a regression
> > though).
>
> eeks, this is not so yay. Please use mktemp instead.
>
> I see /tmp/test.ts is used by tests/server-file.sh and tests/mock-stack.sh
> - do they both need to refer to the same file? If not the fix is
> trivial...
>
> > Could you talk to upstream about avoiding hard-coding file
> > names in /tmp - even in test suites?
>
> done :)
>
>
> --
> tschau,
> Holger
>
> ---
>holger@(debian|reproducible-builds|layer-acht).org
>PGP fingerprint: B8BF 5413 7B09 D35C F026 FE9D 091A B856 069A AA1C



--
Carl K



Bug#928787: hdmi2usb-mode-switch: missing dep: python3-pkg-resources

2019-05-11 Thread Carl Karsten
Package: hdmi2usb-mode-switch
Version: 0.0.0+git20161124-2
Severity: important

Dear Maintainer,

pi@oppi:~ $ hdmi2usb-mode-switch
Traceback (most recent call last):
  File "/usr/bin/hdmi2usb-mode-switch", line 6, in 
  from pkg_resources import load_entry_point
  ImportError: No module named 'pkg_resources'


pi@oppi:~ $ sudo apt install python3-pkg-resources
(fixed)


-- System Information:
Distributor ID:Raspbian
Description:Raspbian GNU/Linux 9.9 (stretch)
Release:9.9
Codename:stretch
Architecture: armv6l

Kernel: Linux 4.14.98+
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8),
LANGUAGE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages hdmi2usb-mode-switch depends on:
ii  fxload 0.0.20081013-1
ii  hdmi2usb-fx2-firmware  0.0.0~git20151225-1
ii  hdmi2usb-udev  0.0.0+git20161124-2
ii  ixo-usb-jtag   0.0.0+git20160908-1
ii  python33.5.3-1

Versions of packages hdmi2usb-mode-switch recommends:
pn  openocd  

hdmi2usb-mode-switch suggests no packages.

-- no debconf information

-- 
Carl K



Bug#926829: voctomix-outcasts: usb audio needs gstreamer1.0-alsa

2019-04-10 Thread Carl Karsten
Package: voctomix-outcasts
Version: package needs gstreamer1.0-alsa added to recommends
Severity: important

Dear Maintainer,

A show said "oh, no audio"  so I'm hooking a usb mic to the Opsis
slave, which needs gstreamer1.0-alsa.

this fixed it:
apt install gstreamer1.0-alsa

please package v0.8.0 waiting in git and add gstreamer1.0-alsa


-- System Information:
Debian Release: stretch/sid
  APT prefers xenial-updates
  APT policy: (500, 'xenial-updates'), (500, 'xenial-security'), (500,
'xenial'), (100, 'xenial-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.4.0-142-generic (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

-- 
Carl K


Bug#926828: voctomix-outcasts: EOS errors

2019-04-10 Thread Carl Karsten
Package: voctomix-outcasts
Version: v0.7.0
Severity: important

Dear Maintainer,

Hi!

I wanted 5 seconds of test pattern, but limiting the stream to 5 seccodns
does exit(1) and things abort.  so I fixed it.  go me.

please package v0.8.0 waiting in git

-- System Information:
Debian Release: stretch/sid
  APT prefers xenial-updates
  APT policy: (500, 'xenial-updates'), (500, 'xenial-security'), (500,
'xenial'), (100, 'xenial-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.4.0-142-generic (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)


-- 
Carl K


Bug#913523: working workaround

2018-11-16 Thread Carl Karsten
using files from the syslinux package and 2 from
kernel.org/.../syslinux-6.04-pre1.tar

target=/media/sdc
sudo apt install syslinux
wget -N 
https://mirrors.edge.kernel.org/pub/linux/utils/boot/syslinux/Testing/6.04/syslinux-6.04-pre1.tar.gz
tar xf syslinux-6.04-pre1.tar.gz

mkdir -p $target/EFI/syslinux $target/EFI/BOOT
cp syslinux-6.04-pre1/efi64/efi/syslinux.efi $target/EFI/BOOT/BOOTX64.EFI
cp syslinux-6.04-pre1/efi64/com32/elflink/ldlinux/ldlinux.e64 $target/EFI/BOOT/
cp /usr/lib/syslinux/modules/efi64/* $target/EFI/syslinux

I think the fix will be something like the above (sans wget) and the
cp lines be added around here:

https://salsa.debian.org/installer-team/debian-installer/blob/master/build/config/x86.cfg#L113-115

mcopy -i$(TEMP_BOOT) /usr/lib/syslinux/modules/bios/vesamenu.c32
::vesamenu.c32; \
mcopy -i$(TEMP_BOOT) /usr/lib/syslinux/modules/bios/libcom32.c32
::libcom32.c32; \
mcopy -i$(TEMP_BOOT) /usr/lib/syslinux/modules/bios/libutil.c32
::libutil.c32 ; \


-- 
Carl K



Bug#913523: workaround/fix: add more uefi syslinux files

2018-11-11 Thread Carl Karsten
This works for the one box I am testing on (the same OP's turbot).

There may be more files than needed, we were guessing and stopped when
it booted.

This suggests the existing boot.img can be fixed without breaking
backwards compatibility.

Get the syslinux package

dd boot.img /dev/sdX, mount /dev/sdX di

mkdir -p di/efi/boot

mv di/syslinux.cfg di/boot
cp efi64/efi/syslinux.efi di/efi/boot/bootx64.efi
cp di/efi/boot/syslinux.cfg di/efi/syslinux/syslinux.cfg
cp di/linux di/efi/boot/
cp di/initrd.gz di/efi/boot/

resulting files:

Unsure which files are needed in efi/boot and which ones are needed in
efi/syslinux

di/efi/
di/efi/boot
di/efi/boot/bootx64.efi
di/efi/boot/libutil.c32
di/efi/boot/menu.c32
di/efi/boot/ldlinux.e64
di/efi/boot/syslinux.cfg
di/efi/syslinux
di/efi/syslinux/menu.c32
di/efi/syslinux/ldlinux.e64
di/efi/syslinux/libutil.c32
di/efi/syslinux/syslinux.cfg



Bug#913523: workaround: replace syslinux with grub

2018-11-11 Thread Carl Karsten
this isn't a fix, but a workaround that is fairly easy:

dd boot.img /dev/sdX, mount it, cd it.

mkdir -p efi/boot

grub-mkimage -o bootx64.efi -p /efi/boot -O x86_64-efi \
fat iso9660 part_gpt part_msdos \
normal boot linux configfile loopback chain \
efifwsetup efi_gop efi_uga \
ls search search_label search_fs_uuid search_fs_file \
gfxterm gfxterm_background gfxterm_menu test all_video loadenv \
exfat ext2 ntfs btrfs hfsplus udf

create grub.cfg



Bug#913523: boot.img has no partition table

2018-11-11 Thread Carl Karsten
hd-media/boot.img does not contain a partition table, it is just an fs:

$ file boot.img
boot.img: DOS/MBR boot sector, code offset 0x58+2, OEM-ID "SYSLINUX",
sectors/cluster 8, Media descriptor 0xf8, sectors/track 63, heads 255,
sectors 1953120 (volumes > 32 MB) , FAT (32 bit), sectors/FAT 1904,
serial number 0xdeb1, label: "Debian Inst"

I tried to find support that a partition table is required. The best I
could find this this:

"The following list outlines the advantages of using the GPT disk
layout over the legacy Master Boot Record (MBR) disk layout: ..."
http://www.uefi.org/sites/default/files/resources/UEFI%20Spec%202_7_A%20Sept%206.pdf

And these comments from IRC:
waldi: well, if you boot something without efi partition, it will only
work with csm

"In November 2017, Intel announced that it planned to phase out
support for CSM by 2020."
https://en.wikipedia.org/wiki/Unified_Extensible_Firmware_Interface#CSM_booting

CarlFK: is there a reason why hd-media/boot.img.gz does not have a
partition table?waldi: maybe because no-one bothered to change it?



Bug#785149: grub installer failing on nvme0n1

2017-04-19 Thread Carl Karsten
Looks like the same problem.
I am running a preseeded instal of stretch.

If someone can provide a preseed file for me to test with I can give
it a go, or try to collect my setup and post.


-- 
Carl K


Bug#439763: in-target seems to fix

2017-04-19 Thread Carl Karsten
I had 'this problem' I guess.


I was able to repo it with something like
 late_command ... chroot target apt install unattended-updates

I changed chroot target to in-target and the problem went away.


-- 
Carl K


Bug#661712: dvswitch: Provide some information about the free space of the hd

2014-11-03 Thread Carl Karsten
oh oh oh!!!

print it every time someone hits cut, like part of this:

 212 printf(INFO: Created file %s\n, name);

and if it drops below a threshold (like 1 hour) print it to stderr also.



On Mon, Nov 3, 2014 at 3:47 PM, Jürgen Weigert jnwei...@gmail.com wrote:

 How about printing the available recording time, when starting dvsink-file?
 This is, when someone is paying attention to placing the recording on
 the right disk and such. The user who starts dvsink-files should watch
 out for error messages anyway. My idea is, that this makes it the best
 point in time to give information about free space.

 cheers, JW-

 On Sat, Nov 1, 2014 at 12:12 AM, Wouter Verhelst w...@uter.be wrote:
  On Sun, Oct 26, 2014 at 02:43:44AM +, Ben Hutchings wrote:
  On Sat, 2014-10-18 at 13:53 +0200, Petter Reinholdtsen wrote:
   Thank you for the comments and the review.  But the question I really
   need an answer to before continuing is if such change will be accepted
   or not.
  
   So far me and another user have seen the need for printing free space,
   while you have stated two years ago that you do not see the need.
  
   If the feature is interesting and acceptable, I can brush up the patch
   into a usable state, but if not I would rather spend the time
   elsewhere.
 
  It's not my decision any more.
 
  I guess that means it's mine ;-)
 
  I would like to avoid cluttering the UI, but other than that I can see
  and understand the use case for this (we did lose some recordings at
  FOSDEM 2014 due to disk ran full, for instance, so yeah, I see what
  the problem is).
 
  So if you can do something that doesn't make the UI too complicated, it
  will most likely be accepted.
 
  --
  It is easy to love a country that is famous for chocolate and beer
 
-- Barack Obama, speaking in Brussels, Belgium, 2014-03-26
 
  --
  dvswitch-devel mailing list
  dvswitch-de...@lists.alioth.debian.org
  http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/dvswitch-devel

 --
 dvswitch-devel mailing list
 dvswitch-de...@lists.alioth.debian.org
 http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/dvswitch-devel




-- 
Carl K


Bug#661712: dvswitch: Provide some information about the free space of the hd

2014-10-18 Thread Carl Karsten
I have been using this for years:

print 'free space: %s gig' % round(gigfree,1)
print 'room for: %s min' % round(minutes,1)
if minutes5:
else:
  print %s minutes is not enough. % (minutes)

https://github.com/CarlFK/dvsmon/blob/master/sink_find_dir.py#L48

I hardly ever look at it.

The not enough has never been useful.

My point: this seems like a good idea when you have lost a recording due to
running out of disk space, but in practice I don't think it will help.   So
I wouldn't bother adding code to dvswitch.

What does work for me:
Before the event starts look at the schedule and estimate how much space is
needed.  Check to make sure you have that much free space.






On Sat, Oct 18, 2014 at 6:12 AM, Ben Hutchings b...@decadent.org.uk wrote:

 On Sat, 2014-10-18 at 10:42 +0200, Petter Reinholdtsen wrote:
   I don't see the point of doing this in DVswitch.  There are applets
   for this and a stock GNOME installation will warn on low disk space.
 
  I believe it would be nice to see the amount of disk free where I look
  to check if the dvsink is working, and made a untested draft patch to
  do so.
 
  Something along these lines would help me a bit when doing video
  recordings:
 
  Index: src/dvsink-files.c
  ===
  --- src/dvsink-files.c  (revision 414)
  +++ src/dvsink-files.c  (working copy)
  @@ -17,6 +17,7 @@
   #include sys/types.h
   #include sys/stat.h
   #include unistd.h
  +#include sys/statfs.h
 
   #include config.h
   #include dif.h
  @@ -162,6 +163,19 @@
   return total;
   }
 
  +/* Return the amount of megabyte free on the disk of the file
 descriptor */
  +static long freespace(int fd)
  +{
  +struct statfs stat;
  +long free;
  +if (0 == fstatfs(fd, stat))

 From statfs(2):
 Linux-specific.  The Linux statfs() was inspired by the 4.4BSD
 one (but
 they do not use the same structure).
 [...]
 LSB  has  deprecated the library calls statfs() and fstatfs() and
 tells
 us to use statvfs(2) and fstatvfs(2) instead.

  +{
  +free = stat.f_bsize * stat.f_bavail / (1024*1024) ;
  +} else {
  +free = -1;
  +}
  +}

 This is not even self-consistent in brace placement!

   static void transfer_frames(struct transfer_params * params)
   {
   static uint8_t buf[SINK_FRAME_HEADER_SIZE + DIF_MAX_FRAME_SIZE];
  @@ -207,7 +221,8 @@
  file = create_file(output_name_format, name);
  if (starting)
  printf(INFO: Started recording\n);
  -   printf(INFO: Created file %s\n, name);
  +   long free = freespace(file);

 Local variable free hides global function free().

  +   printf(INFO: Created file %s - free space $ld MiB\n, name,
 free);

 So it prints free space -1 MiB in case of error??

 Ben.

  fflush(stdout);
  }
 
  Perhaps something to include?
 

 --
 Ben Hutchings
 Life is what happens to you while you're busy making other plans.
- John
 Lennon

 --
 dvswitch-devel mailing list
 dvswitch-de...@lists.alioth.debian.org
 http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/dvswitch-devel




-- 
Carl K


Bug#627122: [Mlt-devel] Bug#627122: melt sefaults

2011-05-22 Thread Carl Karsten
I didn't like all the sudo loopy so I came up with a new way:


https://gitorious.org/vms/vms/blobs/master/mk_sid_qcow.sh

-- 
Carl K



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#627122: [Mlt-devel] Bug#627122: melt sefaults

2011-05-19 Thread Carl Karsten
On Wed, May 18, 2011 at 12:37 PM, Carl Karsten c...@personnelware.com wrote:
 I'll
 report in a few hours.

where few = 40.

[ 2449.988189] melt[8336]: segfault at 0 ip b5b39ffa sp bfcd7110 error
4 in libQtCore.so.4.7.3[b5ae3000+29e000]

It isn't a simple vm, but it builds one pretty quick.  I couldn't
figure out how to install grub onto an image, so I  pulled the
kernel/initrd out and use qemu as my boot loader.



#!/bin/bash -x


sudo apt-get install qemu kpartx debootstrap

# clean up previous run
sudo umount /dev/mapper/loop0p1
sudo kpartx -v -d $PWD/disk.img
# sudo losetup -d /dev/loop0

# create image:
qemu-img create -f raw disk.img 2000M

# partition it:
parted disk.img mklabel gpt
parted --script disk.img mkpart primary ext3 1 2090

# loop the partition
sudo losetup /dev/loop0 disk.img
sudo kpartx -a /dev/loop0

# format the partition
sudo mkfs.ext3 /dev/mapper/loop0p1

# mount the partition
mkdir -p rootfs
sudo mount /dev/mapper/loop0p1 rootfs

sudo debootstrap --arch i386 sid rootfs http://ftp.us.debian.org/debian/

cat EOT  stage2.sh
#!/bin/bash -x

printf Acquire::http::Proxy
\http://g2a.personnelware.com:8000/\;\n;  /etc/apt/apt.conf

apt-get install -y --force-yes linux-image-2.6.38-2-486
apt-get install -y --force-yes openssh-server vim
# apt-get install lspci
apt-get install -y --force-yes git automake autoconf libtool intltool
g++ yasm swig libgavl-dev libsamplerate-dev libxml2-dev ladspa-sdk
libjack-dev libsox-dev libsdl-dev libgtk2.0-dev libqt4-dev libexif-dev
libtheora-dev libvdpau-dev libvorbis-dev python-dev

cd /root
wget -N http://www.mltframework.org/twiki/pub/MLT/BuildScripts/build-melted.sh
chmod +x build-melted.sh

EOT
sudo cp stage2.sh rootfs/tmp

sudo chroot rootfs /bin/bash tmp/stage2.sh

# pull the kernel and initrd out into the loocal fs so qemu can boot it
cp rootfs/boot/vmlinuz-2.6.38-2-486 rootfs/boot/initrd.img-2.6.38-2-486 .

# once it boots:
# dhcclient eth0
# ffmpeg...mp3=0
# ./build-melted.sh

qemu disk.img \
 -kernel vmlinuz-2.6.38-2-486 -initrd initrd.img-2.6.38-2-486 \
 -append root=/dev/sda1 ro 1 \
 -redir tcp:5022::22 \
 -nographic -curses


https://gitorious.org/vms/vms/blobs/master/mksid_vm.sh

-- 
Carl K



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#627122: [Mlt-devel] Bug#627122: melt sefaults

2011-05-19 Thread Carl Karsten
On Thu, May 19, 2011 at 11:51 PM, Carl Karsten c...@personnelware.com wrote:

 printf Acquire::http::Proxy
 \http://g2a.personnelware.com:8000/\;\n;  /etc/apt/apt.conf

whoops, pull that.  or point it at your own proxy.

-- 
Carl K



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#627122: [Mlt-devel] Bug#627122: melt sefaults

2011-05-18 Thread Carl Karsten
On Wed, May 18, 2011 at 11:51 AM, Dan Dennedy d...@dennedy.org wrote:
 On Wed, May 18, 2011 at 9:02 AM, Samuel Mimram smim...@gmail.com wrote:
 Hi,

 On Wed, May 18, 2011 at 1:39 AM, Dan Dennedy d...@dennedy.org wrote:

 On Tue, May 17, 2011 at 1:59 PM, Patrick Matthäi pmatth...@debian.org
 wrote:
  Hello,
 
  you are right, it also happens here, I can play and compose videos, no
  problem but at the end it segfaults.
  I am building mlt since 0.7.0 with all hardening options which are
  available, but for testing I rebuild 0.7.2-2 without them and still get
  the same faults.
 
  @Dan:
  What is your opinion?

 Someone else reported this problem, but so far I have not reproduced
 it on Ubuntu 10.04, Ubuntu 11.04, Fedora 14, and OS X. Both bug
 reports' backtrace show a crash in
 QVariantAnimation::registerInterpolator(), which I find strange esp.
 since our only Qt-based module, qimage, has not changed since before
 the v0.7.0 release. As you can see, it occurs when MLT calls dlcose()
 on a MLT plugin using Qt. Someone having the problem can easily see if
 deleting libmltqimage.so helps. I suggested this to the other reporter
 but have not heard back.

 Yes, I confirm that the bug disappears when I remove libmltqimage.so.

 Great, thanks. What is the Qt4 version?

 Sorry, I have not been using Debian for years. What is a convenient
 way to install recent sid in a VM just so an outsider like me can take
 a look at an issue firsthand? Anyone making periodic iso or vm
 appliance?


I am not up on debian names - here is lenny and squeze:

http://people.debian.org/~aurel32/qemu/i386/

and a script I use to get it, run qemu, setup ssh and stuff.  might
save you more time than it takes to figure out what it does :)

https://gitorious.org/vms/vms/blobs/master/run.sh




 --
 +-DRD-+

 --
 What Every C/C++ and Fortran developer Should Know!
 Read this article and learn how Intel has extended the reach of its
 next-generation tools to help Windows* and Linux* C/C++ and Fortran
 developers boost performance applications - including clusters.
 http://p.sf.net/sfu/intel-dev2devmay
 ___
 Mlt-devel mailing list
 mlt-de...@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/mlt-devel




-- 
Carl K



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#627122: [Mlt-devel] Bug#627122: melt sefaults

2011-05-18 Thread Carl Karsten
On Wed, May 18, 2011 at 12:10 PM, Patrick Matthäi pmatth...@debian.org wrote:
 Am 18.05.2011 18:59, schrieb Carl Karsten:
 I am not up on debian names - here is lenny and squeze:

 http://people.debian.org/~aurel32/qemu/i386/

 and a script I use to get it, run qemu, setup ssh and stuff.  might
 save you more time than it takes to figure out what it does :)

 https://gitorious.org/vms/vms/blobs/master/run.sh

 It may not be reproduceable with Squeeze, so you have to install Squeeze
 and then upgrade it to Debian testing or unstable.

I am going to give this a shot to see if it works as promised. I'll
report in a few hours.

man debootstrap:

main # cd / ; mkdir /sid-root
main # debootstrap sid /sid-root http://ftp.us.debian.org/debian/
[ ... watch it download the whole system ]
main # echo proc /sid-root/proc proc defaults 0 0  /etc/fstab
main # mount proc /sid-root/proc -t proc
main # echo sysfs /sid-root/sys sysfs defaults 0 0  /etc/fstab
main # mount sysfs /sid-root/sys -t sysfs
main # cp /etc/hosts /sid-root/etc/hosts
main # chroot /sid-root /bin/bash
chroot # dselect
[ you may use aptitude, install mc and vim ... ]
 main # echo 8:23:respawn:/usr/sbin/chroot /sid-root  \
/sbin/getty 38400 tty8   /etc/inittab
[ define a login tty that will use this system ]
 main # init q
[ reload init ]


-- 
Carl K



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org