Bug#595903: apt-setup: Fails to mount cdrom during installation

2010-09-21 Thread Stefan Kisdaroczi
Hi,

with version 0.47 the cdrom is still not mounted for the tasksel stage, the 
base install works fine, If you mount the cdrom with
# mount /dev/cdrom /target/media/cdrom
and give the grub bootloader install a second chance it works.

For Version 0.46 you had to uncomment the cdrom entry in sources.list first.
With 0.47 there is a second (uncommented) cdrom entry which works.

I have built the cdrom with simple-cdd using squeeze and added the following 
udeb's from sid:

apt-cdrom-setup 0.47
apt-mirror-setup 0.47
apt-setup-udeb 0.47
cdrom-detect 1.35

Regards Stefan



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



Bug#594914: linux-patch-xenomai: patched kernel fails to boot

2010-08-30 Thread Stefan Kisdaroczi
Package: linux-patch-xenomai
Version: 2.5.4-2

adeos-patched 32bit x86 kernels are randomly freezing at early boot.
The bug was fixed upstream ( please read the commit-message [1] for
additional details ).

Fixed kernel-patches are available in the Adeos download area, see the
links posted to the xenomai mailing list [2].

Regards,
Stefan

[1]
http://git.denx.de/?p=ipipe-2.6.git;a=commit;h=d7ed9ab34a265d6486504d20ee794548ce6011d3
[2] https://mail.gna.org/public/xenomai-help/2010-08/msg00241.html




signature.asc
Description: OpenPGP digital signature


Bug#614620: debmirror: fails to get Debian Installer Images

2011-02-22 Thread Stefan Kisdaroczi
Package: debmirror
Version: 2.6

Thanks very much for the quick sha1 release, Joey.
Version 2.6 works fine on lenny without --progress.

But getting the Debian Installer Image fails, a patch is attached.

Regards
Stefan
--- debmirror.orig	2011-02-22 18:26:05.996260712 +0100
+++ debmirror	2011-02-22 18:26:33.332207866 +0100
@@ -2505,7 +2505,7 @@
   $file =~ m:(^.*)/:;
   make_dir ("$tdir/$image_dir/$1") if $1;
   if (!remote_get("$image_dir/$file", $tdir) ||
-  !check_file(file => "$tdir/$image_dir/$file", size => -1, MD5Sum => $di_files{$image_dir}{$file}{md5sum})) {
+  !check_file(filename => "$tdir/$image_dir/$file", size => -1, MD5Sum => $di_files{$image_dir}{$file}{md5sum})) {
 	$lres = 0;
 	last if (! $do_dry_run);
   }


signature.asc
Description: This is a digitally signed message part.


Bug#571099: wrong email address and typo in copyright

2010-02-23 Thread Stefan Kisdaroczi
Source: xenomai
Version: 2.5.1-3
Tags: patch

Hi,

attached a patch fixing a typo and a wrong email address in debian/copyright.
Thanks.

Regards
kisda

--- xenomai-2.5.1.orig/debian/copyright 2010-02-23 10:12:39.0 +0100
+++ xenomai-2.5.1/debian/copyright  2010-02-23 12:36:30.0 +0100
@@ -7,13 +7,13 @@ It was downloaded from http://www.xenoma
 
 Copyright (C) 2001,2002,2003,2004,2005,2006,2007,2008 Philippe Gerum 
.
 Copyright (C) 2005 Dmitry Adamushko 
-Copyright (C) 2001,2003,2004,2005,2006,2008 Gilles Chanteperdrix 

+Copyright (C) 2001,2003,2004,2005,2006,2008 Gilles Chanteperdrix 

 Copyright (C) 2005,2006,2007 Jan Kiszka 
 Copyright (C) 2006 Wolfgang Grandegger 
 
 License:
 
-Xenmai is licensed under GPL version 2, the user space libraries are LGPL
+Xenomai is licensed under GPL version 2, the user space libraries are LGPL
 version 2.1.
 On Debian systems, the complete texts of the GNU General Public License v2
 and the GNU Lesser General Public License v2 can be found in the file


signature.asc
Description: OpenPGP digital signature


Bug#571104: ia64 support removed in 2.5.x

2010-02-23 Thread Stefan Kisdaroczi
Source: xenomai
Version: 2.5.1-3
Tags: patch

Hi,

ia64 was removed in Xenomai 2.5 [1].
Attached a patch removing ia64 support in debian/control.
Thanks.

Regards
kisda

[1] https://mail.gna.org/public/xenomai-help/2009-01/msg00158.html

diff -uNrp xenomai-2.5.1.orig/debian/control xenomai-2.5.1/debian/control
--- xenomai-2.5.1.orig/debian/control   2010-02-23 10:12:39.0 +0100
+++ xenomai-2.5.1/debian/control2010-02-23 14:34:06.0 +0100
@@ -8,7 +8,7 @@ Homepage: http://www.xenomai.org/
 
 Package: xenomai-runtime
 Section: devel
-Architecture: amd64 arm armeb armel i386 ia64 powerpc
+Architecture: amd64 arm armeb armel i386 powerpc
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Suggests: linux-patch-xenomai, xenomai-doc
 Replaces: xenomai
@@ -47,7 +47,7 @@ Description: Linux kernel patches for Xe
 
 Package: libxenomai1
 Section: libs
-Architecture: amd64 arm armeb armel i386 ia64 powerpc
+Architecture: amd64 arm armeb armel i386 powerpc
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Suggests: linux-patch-xenomai, xenomai-doc
 Replaces: xenomai
@@ -64,7 +64,7 @@ Description: Shared libraries for Xenoma
 
 Package: libxenomai-dev
 Section: libdevel
-Architecture: amd64 arm armeb armel i386 ia64 powerpc
+Architecture: amd64 arm armeb armel i386 powerpc
 Depends: libxenomai1 (= ${binary:Version}), ${misc:Depends}
 Suggests: linux-patch-xenomai, xenomai-doc
 Replaces: xenomai


signature.asc
Description: OpenPGP digital signature


Bug#569023: buggy pred/succ for integer constants that equal the low/high bound of a built-in integer type

2010-02-09 Thread Stefan Kisdaroczi
Package: fp-compiler
Version: 2.4.0-1
Tags: patch

Hi,

the succ() and pred() calls are buggy in fpc 2.4.0.
It was discussed at the fpc-devel mailing list [1] and was fixed
in fpc svn trunk revision 14537 [2].

Attached a patch pred_succ.diff and a small testprogram pred_succ.pas.

The testprogram should print '256' but prints '0' without patch.

thx
Stefan

[1] http://www.mail-archive.com/fpc-de...@lists.freepascal.org/msg16041.html
[2] http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=rev&revision=14537

-- 
Stefan Kisdaroczi
Bergauer AG
Studbachstrasse 12
CH-8340 Hinwil
mail: stefan.kisdaro...@bergauer.ch
skype: stefan.kisdaroczi
tel:  +41 44 938 39 74
fax:  +41 44 938 39 75
diff -uNrp fpc-2.4.0.orig/fpcsrc/compiler/ninl.pas 
fpc-2.4.0/fpcsrc/compiler/ninl.pas
--- fpc-2.4.0.orig/fpcsrc/compiler/ninl.pas 2009-09-28 17:33:41.0 
+0200
+++ fpc-2.4.0/fpcsrc/compiler/ninl.pas  2010-02-09 11:06:17.0 +0100
@@ -1410,7 +1410,6 @@ implementation
 hp: tnode;
 vl,vl2: TConstExprInt;
 vr: bestreal;
-checkrange: boolean;
 
   begin { simplify }
  result:=nil;
@@ -1632,16 +1631,20 @@ implementation
   in_pred_x,
   in_succ_x:
 begin
-  { only perform range checking if the result is an enum }
-  checkrange:=(resultdef.typ=enumdef);
-
   if (left.nodetype=ordconstn) then
-   begin
- if (inlinenumber=in_succ_x) then
-   
result:=cordconstnode.create(tordconstnode(left).value+1,left.resultdef,checkrange)
- else
-   
result:=cordconstnode.create(tordconstnode(left).value-1,left.resultdef,checkrange);
-   end;
+begin
+  if (inlinenumber=in_succ_x) then
+vl:=tordconstnode(left).value+1
+  else
+vl:=tordconstnode(left).value-1;
+  if is_integer(left.resultdef) then
+  { the type of the original integer constant is 
irrelevant,
+it should be automatically adapted to the new value }
+result:=genintconstnode(vl)
+  else
+{ check the range for enums, chars, booleans }
+result:=cordconstnode.create(vl,left.resultdef,true)
+end
 end;
   in_low_x,
   in_high_x:
program pred_succ;
begin
writeln(succ(255));
end.



signature.asc
Description: OpenPGP digital signature


Bug#638295: debmirror: support alternative configuration files

2011-08-18 Thread Stefan Kisdaroczi
Package: debmirror
Version: 1:2.9
Severity: wishlist
Tags: patch

with the attached patch you can specify a configuration file by
exporting DEBMIRRORCONF.

Stefan
diff --git a/debmirror b/debmirror
index 0c50a2f..a36f4ca 100755
--- a/debmirror
+++ b/debmirror
@@ -493,7 +493,8 @@ excluding the section 'debug' and the package 'foo-doc':
   ~/.debmirror.conf
 
 Debmirror will look for the presence of these files and load them
-in the indicated order if they exist.
+in the indicated order if they exist. If you specify a configuration
+file by exporting DEBMIRRORCONF, these files are not loaded.
 See the example in /usr/share/doc/debmirror/examples for syntax.
 
   ~/.gnupg/trustedkeys.gpg
@@ -579,8 +580,13 @@ my $HOME;
 ($HOME = $ENV{'HOME'}) or die "HOME not defined in environment!\n";
 
 # Load in config files
-require "/etc/debmirror.conf" if -r "/etc/debmirror.conf";
-require "$HOME/.debmirror.conf" if -r "$HOME/.debmirror.conf";
+my $conf;
+if ($conf = $ENV{'DEBMIRRORCONF'}) {
+  require "$conf" if -r "$conf" or die "Error reading configuration file $conf";
+} else {
+  require "/etc/debmirror.conf" if -r "/etc/debmirror.conf";
+  require "$HOME/.debmirror.conf" if -r "$HOME/.debmirror.conf";
+}
 
 # This hash contains the releases to mirror. If both codename and suite can be
 # determined from the Release file, the codename is used in the key. If not,


Bug#638295: debmirror: support alternative configuration files

2011-08-21 Thread Stefan Kisdaroczi
2011/8/20 Joey Hess :
> Stefan Kisdaroczi wrote:
>> with the attached patch you can specify a configuration file by
>> exporting DEBMIRRORCONF.
>
> debmirror already has too many switches, but I still think another one
> would be preferable to an environment variable
Yes, a switch like --conf=,,... would be great.

> if this is really needed.
Don't know, me yes. So I decided to open a wishlist bug with a small
non-intrusive patch that
works for me, but I prefer a switch based solution with multiple conf files.

> Did you choose to use an env var simply because the config file is
> loaded before getopt?
Was a reason, yes.

Should I try to make patch with a conf-file switch ?

Stefan



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



Bug#587421: debuilder: use kvm for i386 on amd64 host

2010-06-28 Thread Stefan Kisdaroczi
Source: cowdancer
Version: 0.61
Tags: patch

Hi,

kvm is able to run i386 on a amd64 host.
I'm using the attached patch on a debian lenny amd64 server
with qemubuilder 0.47 without problems.
( the patch is for 0.61, just compile tested )

Regards
Stefan

diff -uNrp cowdancer-0.61.orig/qemuarch.c cowdancer-0.61/qemuarch.c
--- cowdancer-0.61.orig/qemuarch.c  2009-11-06 15:48:24.0 +0100
+++ cowdancer-0.61/qemuarch.c   2010-06-28 15:37:40.0 +0200
@@ -140,6 +140,8 @@ const char* qemu_arch_qemu(const char* a
*/
   if(!strcmp(host_arch,arch) && !(system("which kvm")))
return "kvm";
+  else if(!strcmp(host_arch, "amd64") && !(system("which kvm")))
+return "kvm";
   else if((!strcmp(host_arch, "i386")) && (!strcmp(arch, "i386")))
return "qemu";
   else
Binärdateien cowdancer-0.61.orig/.qemuarch.c.swp and 
cowdancer-0.61/.qemuarch.c.swp sind verschieden.


signature.asc
Description: OpenPGP digital signature


Bug#587424: debuilder: set serial console baudrate to 115200

2010-06-28 Thread Stefan Kisdaroczi
Source: cowdancer
Version: 0.61
Tags: patch

Hi,

the kvm serial port emulation using 9600 bauds is slowing
down the build. I didnt see this problem using qemu, the
serial emulation speed accuracy seems to be better in kvm.

I'm using the attached patch on a debian lenny amd64 server
with qemubuilder 0.47 and the package building runs noticeable
faster.

( the patch is for 0.61, just compile tested )

Regards
Stefan

diff -uNrp cowdancer-0.61.orig/qemuarch.c cowdancer-0.61/qemuarch.c
--- cowdancer-0.61.orig/qemuarch.c  2010-06-28 16:32:16.0 +0200
+++ cowdancer-0.61/qemuarch.c   2010-06-28 16:35:08.0 +0200
@@ -187,6 +187,6 @@ const char* qemu_arch_tty(const char* ar
 {
   return "ttyAMA0";
 }
-  return "ttyS0";
+  return "ttyS0,115200n8";
 }
 


signature.asc
Description: OpenPGP digital signature


Bug#638295: debmirror: support alternative configuration files

2012-06-25 Thread Stefan Kisdaroczi
Hi Matthias,

2012/6/25 Matthias Schmitz :
>Hi Joey, hi everyone,
>
>i also need to specify an alternative configuration file to debmirror
>because i need to mirror Debian and Ubuntu on the same host.

thanks for the trigger!

The attached patch allows loading multiple configuration files instead
of the default configuration files.

use: debmirror --config-file=file1,file2,...

Thats what I need. Does this work for you? ( Not well tested, switch
documentation missing ).

Regards
Stefan


debmirror-config-files.patch
Description: Binary data


Bug#636627: better patch

2011-08-04 Thread Stefan Kisdaroczi
better patch. maybe.

Regards
Stefan
diff --git a/debmirror b/debmirror
index 73c52ae..0c41a1d 100755
--- a/debmirror
+++ b/debmirror
@@ -979,10 +979,7 @@ foreach my $dist (keys %distset) {
   next unless exists $distset{$dist}{mirror};
   foreach my $section (@sections) {
 # some suites don't have d-i
-next if ($section =~ /debian-installer/ && $dist eq "woody");
-next if ($section =~ /debian-installer/ && $dist eq "experimental");
-# *-proposed-updates, squeeze-updates, etc all partial suites, all lack d-i
-next if ($section =~ /debian-installer/ && $dist =~ /.*-updates/ );
+next if ($section =~ /debian-installer/ && di_skip_dist($dist) );
 foreach my $arch (@arches) {
   get_index("dists/$dist/$section/binary-$arch", "Packages");
   link_index($dist,$section,$arch) if $debmarshal;
@@ -2425,9 +2422,20 @@ sub cleanup_unknown_files {
   di_cleanup() if @di_dists;
 }
 
+sub di_skip_dist {
+  my $dist=shift;
+  if ( $dist eq "woody" ||
+   $dist eq "experimental" ||
+   $dist =~ /.*-updates/ ) {
+return 1;
+  }
+  return 0;
+}
+
 sub di_check_dists {
   DI_DIST:
   for my $di_dist (@di_dists) {
+next if di_skip_dist($di_dist);
 if (exists $distset{$di_dist}) {
   # Valid dist and also mirroring the archive itself
   $distset{$di_dist}{"d-i"} = 1;


Bug#636627: debmirror: skip d-i images for suites without d-i

2011-08-05 Thread Stefan Kisdaroczi
2011/8/5 Joey Hess :
> Stefan Kisdaroczi wrote:
>> related to #619146:
>>
>> I changed the command line from
>>   --dist=squeeze,squeeze-updates --di-dist=squeeze
>> to
>>   --dist=squeeze,squeeze-updates --di-dist=dists
>> and debmirror tried to mirror d-i images for squeeze-updates.
>>
>> The attached patch skips d-i images for suites without d-i.
>
> It seems that the fix for #619146 must have been put into a too late
> place in the code. But with your patch, there are now two separate peices
> of code that try to detect and skip suites that do not have d-i (the
> other being around line 982), so a way needs to be found to unify those.

I did that in the better patch i sent later to 636...@bugs.debian.org.
Attached again or see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=636627

Stefan
diff --git a/debmirror b/debmirror
index 73c52ae..0c41a1d 100755
--- a/debmirror
+++ b/debmirror
@@ -979,10 +979,7 @@ foreach my $dist (keys %distset) {
   next unless exists $distset{$dist}{mirror};
   foreach my $section (@sections) {
 # some suites don't have d-i
-next if ($section =~ /debian-installer/ && $dist eq "woody");
-next if ($section =~ /debian-installer/ && $dist eq "experimental");
-# *-proposed-updates, squeeze-updates, etc all partial suites, all lack d-i
-next if ($section =~ /debian-installer/ && $dist =~ /.*-updates/ );
+next if ($section =~ /debian-installer/ && di_skip_dist($dist) );
 foreach my $arch (@arches) {
   get_index("dists/$dist/$section/binary-$arch", "Packages");
   link_index($dist,$section,$arch) if $debmarshal;
@@ -2425,9 +2422,20 @@ sub cleanup_unknown_files {
   di_cleanup() if @di_dists;
 }
 
+sub di_skip_dist {
+  my $dist=shift;
+  if ( $dist eq "woody" ||
+   $dist eq "experimental" ||
+   $dist =~ /.*-updates/ ) {
+return 1;
+  }
+  return 0;
+}
+
 sub di_check_dists {
   DI_DIST:
   for my $di_dist (@di_dists) {
+next if di_skip_dist($di_dist);
 if (exists $distset{$di_dist}) {
   # Valid dist and also mirroring the archive itself
   $distset{$di_dist}{"d-i"} = 1;


Bug#617285: pptpsetup: use absolute path for pptp in tunnel file

2011-03-07 Thread Stefan Kisdaroczi
Package: pptp-linux
Version: 1.7.2-6
Severity: minor
Tags: patch

Hi,

the tunnel files generated by pptpsetup are not working if pptp is used as non-
root user.

The first paragraph of file USING (root of source tree) suggests using the 
absolute path too:
> Usage Notes
> 
> pptp is started as a psuedo-tty child process using pppd's pty option:
> pppd call provider [pppd-options] \
> pty "/usr/sbin/pptp hostname --nolaunchpppd [pptp-options]"
> ...

Please consider applying the attached patch. It should not break anything for 
users using pptp as root, but works for more secure setup's using a non-root 
user too.

Thanks
Stefan
diff -uNrp pptp-linux-1.7.2.orig/pptpsetup pptp-linux-1.7.2/pptpsetup
--- pptp-linux-1.7.2.orig/pptpsetup	2011-03-07 18:48:40.0 +0100
+++ pptp-linux-1.7.2/pptpsetup	2011-03-07 19:52:39.336169936 +0100
@@ -85,7 +85,7 @@ sub create {
 
 print FILE <<"TUNNEL";
 # written by pptpsetup
-pty "pptp $SERVER --nolaunchpppd"
+pty "/usr/sbin/pptp $SERVER --nolaunchpppd"
 lock
 noauth
 nobsdcomp


signature.asc
Description: This is a digitally signed message part.


Bug#617285: pptpsetup: use absolute path for pptp in tunnel

2011-03-08 Thread Stefan Kisdaroczi
Hi Ola,

> Hi Stefan
> 
> As pptp obviously can be run also for non-root users I'm starting to think
> that we should move pptp from /usr/sbin to /usr/bin. That would also solve
> this problem, right?

I don't think thats the solution, it would break my (and probably others) 
setups.

I'm using 'suid root' on /usr/sbin/pptp (see bug #384455) and call pon/poff as 
'normal user which needs to be a member of group dip'.

After pptp-linux install, i always do:
1) # chmod u+s,o-x /usr/sbin/pptp
2) # chown root.dip /usr/sbin/pptp
3) # pptpsetup ... ... ...
4) # 
5) # 

Reading your arguments on bug #384455 i have the feeling that you overlooked 
the 'o-x' on step 1) above which makes pptp unexecutable for 'normal users' 
which are not member of group 'dip' assigned in 2).

With this setup, root needs to setup the connections and root adds users which 
should be able to connect to the group 'dip'. The actual user can't change the 
setup and don't needs to login as root to make a connection, which is IMHO 
more secure and handy.

However, the user created by the squeeze d-i is automatically added to the 
group 'dip' (see change in package user-setup 1.29), this wasn't the case for 
older releases of debian.

The solution as I see it, is:
- fix pptpsetup to use the absolute path /usr/sbin/pptp
  (This is what this bug is about, breaks nothing, famous last words :-)
- fix #384455, but maybe with group 'pptp' and not 'dip'
  (Needs the pptpsetup fix. I can make a patch if you agree on this solution)

This group permission scheme is wide spread in debian packages, it would be 
nice to have it in pptp-linux too.

Regards
Stefan


signature.asc
Description: This is a digitally signed message part.


Bug#621680: preseeding the gitolite/adminkey fails

2011-05-06 Thread Stefan Kisdaroczi
Hi,

the following change fixed the preseeding of gitolite/adminkey for me:

file gitolite-2.0/debian/config:
 # ask for key of admin user (either file or direct input)
-db_set gitolite/adminkey ""
 db_input low gitolite/adminkey || true
 db_go

thx
Stefan


signature.asc
Description: This is a digitally signed message part.


Bug#614352: debmirror: Release file without md5 renders package unusable

2011-02-21 Thread Stefan Kisdaroczi
Package: debmirror

my mirror stopped to sync today with following error:

 Won't mirror without dists/squeeze-updates/main/binary-amd64/Packages.gz
  signature in Release at /usr/bin/debmirror line 1952.
 Get Packages and Sources files and other miscellany.
 dists/squeeze-updates/main/binary-amd64/Packages.gz exists locally but not
  in Release

See 'Release file changes' @debian-devel-announce from Joerg jaspert [1].

IMHO this renders all versions of debmirror unusable.

Regards
Stefan

[1] http://lists.debian.org/debian-devel-announce/2011/02/msg8.html


signature.asc
Description: This is a digitally signed message part.


Bug#593586: fixed in xenomai 2.5.5

2010-10-06 Thread Stefan Kisdaroczi
This bug is fixed in upstream release 2.5.5.

Stefan




signature.asc
Description: OpenPGP digital signature


Bug#593585: fixed in xenomai 2.5.5

2010-10-06 Thread Stefan Kisdaroczi
The script prepare-patch.sh is fixed and moved to scripts/ in upstream
release 2.5.5.
Please call scripts/prepare-patch.sh in rules and remove
debian/prepare-patch.sh.

thanks
Stefan




signature.asc
Description: OpenPGP digital signature


Bug#588922: postinst fails in qemubuilder environment, no telinit

2010-07-13 Thread Stefan Kisdaroczi
Package: libc6
Version: 2.11.2-2
Tags: patch

hi,

libc6 fails to install in a squeeze qemubuilder on a lenny host.
There is no telinit -> postinst fails.

See qemubuilder-bug 545691 for additional information.

The postinst of package libselinux makes additional checks,
could be better then my attached patch.

thx
Stefan

diff -uNrp eglibc-2.11.2.original//debian/debhelper.in/libc.postinst eglibc-2.11.2/debian/debhelper.in/libc.postinst
--- eglibc-2.11.2.original//debian/debhelper.in/libc.postinst	2010-07-13 14:39:45.0 +0200
+++ eglibc-2.11.2/debian/debhelper.in/libc.postinst	2010-07-13 15:01:17.724671379 +0200
@@ -216,7 +216,9 @@ then
   if [ "$(stat -c %d/%i /)" = "$(stat -Lc %d/%i /proc/1/root 2>/dev/null)" ]; then
 # the devicenumber/inode pair of / is the same as that of /sbin/init's
 # root, so we're *not* in a chroot
-(telinit u ; sleep 1)
+if [ -x /sbin/telinit ]; then
+  (telinit u ; sleep 1)
+fi
   fi
 fi
 fi


signature.asc
Description: OpenPGP digital signature


Bug#588922: postinst fails in qemubuilder environment, no telinit

2010-07-13 Thread Stefan Kisdaroczi
On 13.07.2010 16:12, Aurelien Jarno wrote:
> Stefan Kisdaroczi a écrit :
>   
>> Package: libc6
>> Version: 2.11.2-2
>> Tags: patch
>>
>> hi,
>>
>> libc6 fails to install in a squeeze qemubuilder on a lenny host.
>> There is no telinit -> postinst fails.
>> 
> Why is there no telinit? sysvinit contains this file and is both
> "Essential: yes" and "Priority: required". In any case it should be
> unpacked before libc6 postinst is run.
>   

Ok, there is a /sbin/telinit (sorry for that), but /dev/initctl is missing.
The virtual machine kernel cmdline is "init=/pbuilder-run".

The installation gives the following error:
  debconf: falling back to frontend: Teletype
  telinit: /dev/initctl: No such file or directory
  dpkg: error processing libc6 (--install):
   subprocess installed post-installation script returned error exit
status 1
  Errors were encountered while processing:
   libc6

From the libselinux postinst:
if [ -x /sbin/init ] && [ -d /proc/1 ] &&
[ "$(stat -c %d/%i /sbin/init)" = "$(stat -Lc %d/%i /proc/1/exe
2>/dev/null)" ] ; then
# So, init exists, and there is a linuxy /proc, and the inode of
the executable
# of the process with pid 1 is the same as /sbin/init (ok, no
init=/bin/sh going on)

if [ "$(stat -c %d/%i /)" = "$(stat -Lc %d/%i /proc/1/root
2>/dev/null)" ]; then
# the devicenumber/inode pair of / is the same as that of
# /sbin/init's root, so we're *not* in a chroot

# Final sanity check. Make sure there is a /dev/initctl
# for us to talk to
if [ -e /dev/initctl ]; then
# Use telinit if available, it is better form, according
# to the sysvinit maintainer.
if [ -x /sbin/telinit ]; then
(telinit u ; sleep 1)
else
(init u ; sleep 1)
fi
fi
fi
fi




signature.asc
Description: OpenPGP digital signature


Bug#589968: simple-cdd: wget mirroring fails with non-standard mirror-path

2010-07-22 Thread Stefan Kisdaroczi
Package: simple-cdd
Version: 0.3.13
Tags: patch

Hi,

the mirror-path on my debian-mirror is
  http://server/debian/squeeze/
instead of
  http://server/debian/

build-simple-cdd fails with:
...
Starting new i386 CD 1 at /home/ski/simple/tmp//cd-build/squeeze/CD1
  Adding the required directories
  Generating the image label and volume id
You need a Debian mirror with the doc directory!
Failed to start disc 1, error 256
make: *** [image-trees] Fehler 9

The attached patch fixed it for me.

regards
Stefan

diff -uNrp simple-cdd-0.3.13.original/tools/mirror/wget simple-cdd-0.3.13/tools/mirror/wget
--- simple-cdd-0.3.13.original/tools/mirror/wget	2009-10-30 07:56:58.0 +0100
+++ simple-cdd-0.3.13/tools/mirror/wget	2010-07-22 17:06:02.755530632 +0200
@@ -6,5 +6,7 @@ for file in $mirror_files ; do
 sleep 1
 done
 
+cut_dirs=$(echo -n "$wget_debian_mirror" | sed -e 's:/$::' -e 's://::' -e 's:[^/]::g' | wc -m)
+
 # download files
-wget -c -N -nv --no-parent -nH --cut-dirs=1 -r $wget_file_list -P $MIRROR
+wget -c -N -nv --no-parent -nH --cut-dirs=$cut_dirs -r $wget_file_list -P $MIRROR


signature.asc
Description: OpenPGP digital signature


Bug#573144: fyi

2010-07-26 Thread Stefan Kisdaroczi
Hi,

there were two changes for i915 in 2.6.35-rc6 that could be related to
this bug.

drm/i915: enable low power render writes on GEN3 hardware.

[1]
drm/i915: Define MI_ARB_STATE bits

[2]

Regards, Stefan

[1]
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=944001201ca0196bcdb088129e5866a9f379d08c
[2]
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=45503ded966c98e604c9667c0b458d40666b9ef3







signature.asc
Description: OpenPGP digital signature


Bug#590667: debmirror: fails to move installer MD5SUMS file in place on mirror

2010-07-28 Thread Stefan Kisdaroczi
Package: debmirror
Version: 2.4.4
Tags: patch

Hi,

the file dists/squeeze/main/installer-i386/current/images/MD5SUMS
didn't get updated on my mirror. The attached patch fixed it for me.

Regards
Stefan

diff -uNrp debmirror-2.4.4.original/debmirror debmirror-2.4.4/debmirror
--- debmirror-2.4.4.original/debmirror	2010-03-25 19:13:29.0 +0100
+++ debmirror-2.4.4/debmirror	2010-07-28 12:00:51.064616005 +0200
@@ -2418,6 +2418,9 @@ sub di_get_files {
 	link("$tdir/$image_dir/$file", "$image_dir/$file");
   }
   # Move the MD5SUMS file in place on mirror
+  if (-f "$image_dir/MD5SUMS") {
+unlink "$image_dir/MD5SUMS";
+  }
   link("$tdir/$image_dir/MD5SUMS", "$image_dir/MD5SUMS");
 } elsif (! $do_dry_run) {
   say("Failed to download some files in $image_dir; not updating images.");


signature.asc
Description: OpenPGP digital signature


Bug#590701: simple-cdd: Section Quick Start in README outdated

2010-07-28 Thread Stefan Kisdaroczi
Package: simple-cdd
Version: 0.3.13
Severity: minor
Tags: patch

Hi,

the attached patch updates the Quick Start section in the README file.
(from http://wiki.debian.org/Simple-CDD/Howto. My editor trimmed all trailing 
spaces, sorry)

Regards
Stefan


diff -uNrp simple-cdd-0.3.13.original/README simple-cdd-0.3.13/README
--- simple-cdd-0.3.13.original/README	2009-10-30 07:56:58.0 +0100
+++ simple-cdd-0.3.13/README	2010-07-28 16:43:56.337659225 +0200
@@ -1,4 +1,4 @@
-here's a quick guide to using simple-cdd... 
+here's a quick guide to using simple-cdd...
 
 if you have further questions, ask on the simple-cdd-devel mailing list:
 http://lists.alioth.debian.org/mailman/listinfo/simple-cdd-devel, or in the
@@ -7,67 +7,59 @@ debian-custom channel on irc.debian.org.
 
 Quick Start (from http://wiki.debian.org/Simple-CDD/Howto)
 
-if you want to try Simple-CDD, on an etch system:
+To try Simple-CDD, on a Debian system:
 
- mkdir ~/my-simple-cdd
+Install simple-cdd (as root):
 
- cd ~/my-simple-cdd
+ # apt-get install simple-cdd
 
-add to your sources.list:
+Create a working directory (as a user):
 
- echo deb http://http.us.debian.org/debian sid main >> /etc/apt/sources.list
+ $ mkdir ~/my-simple-cdd
+ $ cd ~/my-simple-cdd
 
- apt-get update
+Build a basic CD:
 
- apt-get -t stable install simple-cdd
+ $ build-simple-cdd
 
- apt-get update
+This will create a partial package mirror in the directory tmp/mirror, and if
+all goes well, an .iso CD image in the "images" directory when it is finished.
+By default, target CDD release version is the same as the host version. You can
+specify the optional argument --dist to change the targets version. For example,
+it can be etch, lenny, sid, etc.
+If this step doesn't work, you need to figure out why before trying more
+complicated things.
 
-comment out the lines in /etc/apt/sources.list, or configure apt pinning so it
-doesn't pull in unstable packages.
+Create a profile named NAME:
 
-build a basic CD, and include simple-cdd-profiles .udeb from sid:
+ $ mkdir profiles
+ $ for p in list-of-packages-you-want-installed ; do echo $p >> profiles/NAME.packages ; done
 
- build-simple-cdd --profiles-udeb-dist sid
-
-this will create a partial package mirror in the dir "tmp/mirror", and if all
-goes well, an .iso CD image in the "images" dir when it is finished. if this
-step doesn't work, you need to figure out why before trying more complicated
-things.
-
-create a profile named NAME:
-
- mkdir profiles
-
- for p in list of packages you want installed ; do echo $p >> profiles/NAME.packages ; done
-
-note that you should not include package dependencies, but only the packages
+Note that you should not include package dependencies, but only the packages
 you actually want.
 
-build the CD with selected profile NAME, and include simple-cdd-profiles .udeb
-from sid:
+Build the CD with selected profile NAME:
 
- build-simple-cdd --profiles NAME --profiles-udeb-dist sid
+ $ build-simple-cdd --profiles NAME
 
-this should create an .iso CD image in the "images" dir when it is finished
-with your custom profile.
+This should create an .iso CD image in the "images" directory when it is
+finished with your custom profile.
 
-use qemu to test:
+Use qemu to test:
 
- apt-get install qemu
+ # apt-get install qemu
+ $ build-simple-cdd --qemu --profiles NAME
 
- build-simple-cdd --qemu --profiles NAME
+Optional features:
 
-optional features:
+If you want debconf preseeding, put a debconf-set-selections compatible file
+into profiles/NAME.preseed.
 
-if you want debconf preseeding, put a debconf-set-selections compatible file
-into profiles/NAME.preseed
+If you want a custom post-install script, place it in profiles/NAME.postinst.
 
-if you want a custom post-install script, place it in profiles/NAME.postinst
+For more options:
 
-for more options:
-
- build-simple-cdd --help
+ $ build-simple-cdd --help
 
 
 The Less Quick Start
@@ -89,7 +81,7 @@ to make a custom profile, think of a nam
 edit or create files in the "profiles" directory, beginning with the profile
 name, and ending in .preseed, .packages, .downloads, etc. for example:
 
-profiles/x-basic.preseed 
+profiles/x-basic.preseed
 profiles/x-basic.packages
 profiles/x-basic.downloads
 
@@ -98,26 +90,26 @@ profiles/x-basic.downloads
  short, one-line description of the what the profile does
 
  *.packages
- 
+
  packages installed when the profile is selected.  do not include packages such
  as linux-image or grub, as debian-installer will handle these specially.
 
  *.downloads
- 
+
  additional packages included on a CD providing the profile, but not installed
  by simple-cdd (though debian-installer may install them)
 
  *.preseed
- 
+
  debconf questions loaded if the profile is selected
 
  *.postinst
- 
+
  profile-specific post-install script. runs in the "finish-install" phase of
  debian-installer.
 
  *.conf
- 
+
  profile-specific configuration settings. sourced during CD build.
 
 
@@ -127,7 +119,7 @@ to build

Bug#593585: linux-patch-xenomai: patched kernel fails to build

2010-08-19 Thread Stefan Kisdaroczi
Package: linux-patch-xenomai
Version: 2.5.4-1
Tags: patch

Building a kernel patched with adeos-ipipe-2.6.34-x86-2.7-02.patch fails
to build with:
kernel/xenomai/arch/generic/hal.c:47:29: error: asm/xenomai/hal.h: No
such file or directory
kernel/xenomai/arch/generic/hal.c:77: error: ‘RTHAL_NR_CPUS’ undeclared
here (not in a function)
kernel/xenomai/arch/generic/hal.c:79: error: ‘RTHAL_NR_APCS’ undeclared
here (not in a function)
kernel/xenomai/arch/generic/hal.c:89: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘rthal_apc_lock’
kernel/xenomai/arch/generic/hal.c:93: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘rthal_domain’
kernel/xenomai/arch/generic/hal.c:97: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘rthal_trap_handler’

The arch-specific asm include files are patched to the wrong (old)
location in the kernel tree.
The kernel build-system symlinked the old to the new location until
2.6.32, this was removed for 2.6.33 [1].
So, kernels patched with the current adeos patches for 2.6.33 and 2.6.34
will not build (tested only 2.6.34-x86).
The adeos-patches for older kernels (<2.6.33) contained in the current
package should still work with the attached patch (tested with 2.6.32-x86).
This problem was discussed on the xenomai-help mailing list [2].

The attached patch fixes the problem.

Regards,
Stefan

[1]
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=c95fa08a3e17c3f2983c4cbf409f5c9ae47b7dec
[2] https://mail.gna.org/public/xenomai-help/2010-08/msg00188.html

diff --git a/debian/prepare-patch.sh b/debian/prepare-patch.sh
index 296638d..6ca734b 100755
--- a/debian/prepare-patch.sh
+++ b/debian/prepare-patch.sh
@@ -112,7 +112,7 @@ for linux_arch in $supported_arch ; do
 esac
 
 patch_link r m ksrc/arch/$base_arch arch/$linux_arch/xenomai
-patch_link r n include/asm-$base_arch include/asm-$linux_arch/xenomai
+patch_link r n include/asm-$base_arch arch/$linux_arch/include/asm/xenomai
 
 p="+drivers-\$(CONFIG_XENOMAI)		+= arch/$linux_arch/xenomai/"
 echo $p | patch_append arch/$linux_arch/Makefile


signature.asc
Description: OpenPGP digital signature


Bug#593586: linux-patch-xenomai: rtcan IXXAT SJA_MOD register refuses to set up dual channel cards

2010-08-19 Thread Stefan Kisdaroczi
Package: linux-patch-xenomai
Version: 2.5.4-1
Tags: patch

there is a fix for dual channel can cards which got forgotten in the
upstream 2.5.4 release. [1]

patch attached.

Regards,
Stefan

[1] https://mail.gna.org/public/xenomai-help/2010-08/msg00085.html

From 5c7bec10b099fd1973394b2a6ca388a5e3742b64 Mon Sep 17 00:00:00 2001
From: Peter Soetens 
Date: Fri, 9 Jul 2010 15:21:53 +0200
Subject: [PATCH] rtcan: Mask the SJA_MOD register when probing for channels

Inspired by the plx_pci.c driver which does the same.
Tested on IXXAT PC-I 04

Signed-off-by: Peter Soetens 
---
 ksrc/drivers/can/sja1000/rtcan_ixxat_pci.c |3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/ksrc/drivers/can/sja1000/rtcan_ixxat_pci.c b/ksrc/drivers/can/sja1000/rtcan_ixxat_pci.c
index 5faa763..8c91efd 100644
--- a/ksrc/drivers/can/sja1000/rtcan_ixxat_pci.c
+++ b/ksrc/drivers/can/sja1000/rtcan_ixxat_pci.c
@@ -63,6 +63,7 @@ struct rtcan_ixxat_pci
 #define IXXAT_INTCSR_OFFSET  0x4c /* Offset in PLX9050 conf registers */
 #define IXXAT_INTCSR_SLAVE   0x41 /* LINT1 and PCI interrupt enabled */
 #define IXXAT_INTCSR_MASTER  0x08 /* LINT2 enabled */
+#define IXXAT_SJA_MOD_MASK   0xa1 /* Mask for reading dual/single channel */
 
 /* PCI vender, device and sub-device ID */
 #define IXXAT_PCI_VENDOR_ID  0x10b5
@@ -238,7 +239,7 @@ static int __devinit ixxat_pci_init_one (struct pci_dev *pdev,
 writeb(0x1, base_addr + CHANNEL_MASTER_RESET);
 writeb(0x1, base_addr + CHANNEL_SLAVE_RESET);
 udelay(100);
-if (readb(base_addr + CHANNEL_OFFSET + SJA_MOD) != 0x21 ||
+if ( (readb(base_addr + CHANNEL_OFFSET + SJA_MOD) & IXXAT_SJA_MOD_MASK ) != 0x21 ||
 	readb(base_addr + CHANNEL_OFFSET + SJA_SR ) != 0x0c ||
 	readb(base_addr + CHANNEL_OFFSET + SJA_IR ) != 0xe0)
 	channel = CHANNEL_SINGLE;
-- 
1.6.3.3



signature.asc
Description: OpenPGP digital signature


Bug#528681: FindFirst() returns true, but the filename is an empty string

2009-05-14 Thread Stefan Kisdaroczi
Package: fp-units-rtl
Version: 2.2.4-1

The FindFirst() function returns true, but the filename is an empty string.

This Bug is fixed upstream. Log from revision 13074, trunk :
 * also consider the search attributes for findfirst if the name does
   not contain wildcards + test
 * don't return true from FindGetFileInfo if the file name is ok, but the
   search attributes don't match (resulted in returning multiple times the
   name of the previous entry that did fulfill all requirements)

I have attached a patch. It's the diff from rev 13074, without the added
testprogram. I had to fix one (easy) hunk manually.

How to reproduce:

Create an empty subdirectory './empty_dir' an start following program.
It should not give any output, but writes 'Found:  Len=0'.

program fpc_find;
uses sysutils;
var SearchRec : TSearchRec;
begin
  if ( FindFirst('./empty_dir/*', faAnyFile - faDirectory, SearchRec ) = 0 ) 
then
  with SearchRec do
writeln( 'Found : ', Name,' Len=', length(Name) );
  FindClose( SearchRec );
end.

Thank you
Stefan Kisdaroczi
This patch fixes the FindFirst and FindGetFileInfo functions.

--- fpc-2.2.4.orig/fpcsrc/rtl/unix/sysutils.pp  2008-11-29 17:27:25.0 
+0100
+++ fpc-2.2.4/fpcsrc/rtl/unix/sysutils.pp   2009-05-13 14:10:02.0 
+0200
@@ -416,8 +416,6 @@ var
   UnixFindData : PUnixFindData;
 Begin
   UnixFindData:=PUnixFindData(f.FindHandle);
-  if UnixFindData=nil then
-exit;
   if UnixFindData^.SearchType=0 then
 begin
   if UnixFindData^.dirptr<>nil then
@@ -430,27 +428,31 @@ End;

 Function FindGetFileInfo(const s:string;var f:TSearchRec):boolean;
 var
-  st  : baseunix.stat;
-  WinAttr : longint;
+  st   : baseunix.stat;
+  WinAttr  : longint;
+  ResolvedPath : string;
+  LinkLen  : ssize_t;

 begin
   FindGetFileInfo:=false;
   If Assigned(F.FindHandle) and PUnixFindData(f.FindHandle)^.searchattr)) 
and faSymlink) > 0) then
-FindGetFileInfo:=(fplstat(pointer(s),st)=0)
+FindGetFileInfo:=(fplstat(pointer(s),st)=0)
   else
 FindGetFileInfo:=(fpstat(pointer(s),st)=0);
-  If not FindGetFileInfo then
-exit;
+  If not FindGetFileInfo then
+exit;
   WinAttr:=LinuxToWinAttr(PChar(pointer(s)),st);
-  If (f.FindHandle = nil) or ((WinAttr and 
Not(PUnixFindData(f.FindHandle)^.searchattr))=0) Then
+  If ((WinAttr and Not(PUnixFindData(f.FindHandle)^.searchattr))=0) Then
Begin
  f.Name:=ExtractFileName(s);
  f.Attr:=WinAttr;
  f.Size:=st.st_Size;
  f.Mode:=st.st_mode;
  f.Time:=UnixToWinAge(st.st_mtime);
- result:=true;
-   End;
+ FindGetFileInfo:=true;
+   End
+  else
+FindGetFileInfo:=false;
 end;


@@ -469,7 +471,10 @@ Var
 Begin
   Result:=-1;
   UnixFindData:=PUnixFindData(Rslt.FindHandle);
-  if UnixFindData=nil then
+  { SearchSpec='' means that there were no wild cards, so only one file to
+find.
+  }
+  if UnixFindData^.SearchSpec='' then
 exit;
   if (UnixFindData^.SearchType=0) and
  (UnixFindData^.Dirptr=nil) then
@@ -519,6 +524,12 @@ Begin
   fillchar(Rslt,sizeof(Rslt),0);
   if Path='' then
 exit;
+  { Allocate UnixFindData (we always need it, for the search attributes) }
+  New(UnixFindData);
+  FillChar(UnixFindData^,sizeof(UnixFindData^),0);
+  Rslt.FindHandle:=UnixFindData;
+   {We always also search for readonly and archive, regardless of Attr:}
+  UnixFindData^.SearchAttr := Attr or faarchive or fareadonly;
   {Wildcards?}
   if (Pos('?',Path)=0)  and (Pos('*',Path)=0) then
begin
@@ -527,14 +538,8 @@ Begin
end
   else
begin
- { Allocate UnixFindData }
- New(UnixFindData);
- FillChar(UnixFindData^,sizeof(UnixFindData^),0);
- Rslt.FindHandle:=UnixFindData;
  {Create Info}
  UnixFindData^.SearchSpec := Path;
- {We always also search for readonly and archive, regardless of Attr:}
- UnixFindData^.SearchAttr := Attr or faarchive or fareadonly;
  UnixFindData^.NamePos := Length(UnixFindData^.SearchSpec);
  while (UnixFindData^.NamePos>0) and 
(UnixFindData^.SearchSpec[UnixFindData^.NamePos]<>'/') do
dec(UnixFindData^.NamePos);


signature.asc
Description: OpenPGP digital signature


Bug#949040: rinse --list-distributions fails - fedora-17 script missing

2020-01-16 Thread Stefan Kisdaroczi
Package: rinse
Version: 3.3

$ sudo rinse --list-distributions
Config 'fedora-17' has a package file in
'/etc/rinse/fedora-17.packages', but no scripts path in
'/usr/lib/rinse/fedora-17' at /usr/sbin/rinse line 578.

regards, Stefan



Bug#949040: still using F17?

2020-01-21 Thread Stefan Kisdaroczi
Hi,

no, i dont need fedora-17. IMHO it's a 'bad first impression' bug:
$ sudo apt install rinse
$ sudo rinse --list-distributions
Config 'fedora-17' has a package file in
'/etc/rinse/fedora-17.packages', but no scripts path in
'/usr/lib/rinse/fedora-17' at /usr/sbin/rinse line 578.

thank you,
Stefan


Am Mo., 20. Jan. 2020 um 15:03 Uhr schrieb Thomas Lange
:
>
> Do you really use Fedora 17 nowadays? It's very old.
> I do not like to work on this, but if you send me a patch, I will
> include it.
> --
> regards Thomas



Bug#990442: debmirror: fails to handle multiple keyrings specified in a config-file

2021-06-29 Thread Stefan Kisdaroczi
Package: debmirror
Version 2.35

Hi,

debmirror fails to handle multiple keyrings specified in a config-file.

config-file:
@keyrings="/etc/apt/trusted.gpg.d/key-a.gpg,/etc/apt/trusted.gpg.d/key-b.gpg";

fails with:
gpgv: keyblock resource
'/etc/apt/trusted.gpg.d/key-a.gpg,/etc/apt/trusted.gpg.d/key-b.gpg':
No such file or directory

The attached patch fixes it.

Regards, Stefan
diff -uNrp debmirror-2.35.orig/debmirror debmirror-2.35/debmirror
--- debmirror-2.35.orig/debmirror	2021-06-03 12:23:33.0 +0200
+++ debmirror-2.35/debmirror	2021-06-29 10:38:46.230744497 +0200
@@ -820,6 +820,7 @@ $remoteroot =~ s%^[:/]%% unless download
 @arches=split(/,/,join(',',@arches));
 @arches=qw(i386) unless @arches;
 @arches=() if (join(',',@arches) eq "none");
+@keyrings=split(/,/,join(',',@keyrings));
 @di_dists=split(/,/,join(',',@di_dists));
 @di_arches=split(/,/,join(',',@di_arches));
 if (@di_dists) {


Bug#990442: debmirror: fails to handle multiple keyrings specified in a config-file

2021-08-02 Thread Stefan Kisdaroczi
Hi Colin,

in view of the other comma-separated values, it looked like an error.
At that moment, I wasn't aware that path names can contain commas.
Specifying several key rings in the configuration file works. Feel
free to close this bug report.

Many Thanks, Stefan

Am So., 4. Juli 2021 um 20:51 Uhr schrieb Colin Watson :
>
> On Tue, Jun 29, 2021 at 11:08:36AM +0200, Stefan Kisdaroczi wrote:
> > debmirror fails to handle multiple keyrings specified in a config-file.
> >
> > config-file:
> > @keyrings="/etc/apt/trusted.gpg.d/key-a.gpg,/etc/apt/trusted.gpg.d/key-b.gpg";
>
> In a config file, couldn't you just write:
>
>   @keyrings = ("/etc/apt/trusted.gpg.d/key-a.gpg", 
> "/etc/apt/trusted.gpg.d/key-b.gpg");
>
> ?
>
> My concern about applying your patch is that it would break the
> (admittedly probably rare, but perfectly valid) case where the path to a
> keyring file contains a comma.  While it's true that we do manual
> comma-separation of other values (release names, section names,
> architecture names, rsync-extra directory names), those are all cases
> where the individual values themselves may not contain commas.
>
> --
> Colin Watson (he/him)  [cjwat...@debian.org]



Bug#1021730: reprepro: support for suite pattern *- in updates (patch)

2022-10-13 Thread Stefan Kisdaroczi
Package: reprepro
Version: 5.3.0-1.2
Severity: wishlist
Tags: patch

Hi,

the attached patch allows suite pattern *- for conf/updates in addition to */.
Needed for bullseye security, -backports and -updates in the main archive.

Regards,
Stefan

Examples:

Name: security-buster
Method: http://security.debian.org/debian-security
Suite: */updates

Name: security
Method: http://security.debian.org/debian-security
Suite: *-updates

Name: backports
Method: http://ftp.debian.org/debian
Suite: *-backports

Name: updates
Method: http://ftp.debian.org/debian
Suite: *-updates
diff -uNrp reprepro-5.3.0.orig/docs/reprepro.1 reprepro-5.3.0/docs/reprepro.1
--- reprepro-5.3.0.orig/docs/reprepro.1	2018-09-09 07:17:15.0 +0200
+++ reprepro-5.3.0/docs/reprepro.1	2022-10-13 17:04:32.150363395 +0200
@@ -1678,7 +1678,7 @@ if both get their \fBMethod\fP informati
 .B Suite
 The suite to update from. If this is not present, the codename
 of the distribution using this one is used. Also "*/whatever"
-is replaced by "/whatever"
+is replaced by "/whatever", "*-whatever" is replaced by "-whatever"
 .TP
 .B Components
 The components to update. Each item can be either the name
diff -uNrp reprepro-5.3.0.orig/updates.c reprepro-5.3.0/updates.c
--- reprepro-5.3.0.orig/updates.c	2019-02-02 12:14:59.0 +0100
+++ reprepro-5.3.0/updates.c	2022-10-13 17:15:28.735408139 +0200
@@ -593,6 +593,7 @@ CFfinishparse(update_pattern) {
 		}
 		if (n->suite_from != NULL && strcmp(n->suite_from, "*") != 0 &&
 strncmp(n->suite_from, "*/", 2) != 0 &&
+strncmp(n->suite_from, "*-", 2) != 0 &&
 strchr(n->suite_from, '*') != NULL) {
 			fprintf(stderr,
 "%s:%u to %u: Unsupported suite pattern '%s'\n",
@@ -755,8 +756,8 @@ static inline char *translate_suite_patt
 
 	if (p == NULL || strcmp(p->suite_from, "*") == 0)
 		return strdup(codename);
-	if (p->suite_from[0] == '*' && p->suite_from[1] == '/')
-		return calc_dirconcat(codename, p->suite_from + 2);
+	if (p->suite_from[0] == '*' && (p->suite_from[1] == '/' || p->suite_from[1] == '-'))
+		return mprintf("%s%s", codename, p->suite_from + 1);
 	else if (strchr(p->suite_from, '*') == NULL)
 		return strdup(p->suite_from);
 	//TODO: implement this


Bug#783672: cdebootstrap: Please support stretch/testing

2015-06-01 Thread Stefan Kisdaroczi
On Wed, 29 Apr 2015 03:53:07 +0200 Diederik de Haas
 wrote:
> Package: cdebootstrap
> Version: 0.6.4
> Severity: important
>
> It is currently not possible to install a testing/stretch system using
> cdebootstrap(-static) and it would be nice if it could.

Try the not really documented --suite-config option as a workaround,
worked for me:
cdebootstrap --suite-config=wheezy stretch ...

regards,
Stefan


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



Bug#779255: qemubuilder: unable to build anything; can't find .DSC file

2015-05-08 Thread Stefan Kisdaroczi
On Thu, 26 Feb 2015 10:20:31 +1100 Dmitry Smirnov  wrote:
> [...]
> 
>  -> Finished parsing the build-deps
> dpkg-source: error: cannot fstat file ./mypkg_1.0.orig.tar.gz: No such file or
> directory
>  -> Building the package
> /var/cache/pbuilder/pbuilder-mnt/pbuilder-run: line 26: cd:
> /var/cache/pbuilder/pbuilder-mnt/*-*/: No such file or directory
> tail: cannot open 'debian/changelog' for reading: No such file or directory
> dpkg-buildpackage: error: tail of debian/changelog gave error exit status 1
> 
>
> I'm pretty sure this very version was working well until something in sid has
> changed...

Hi,

Newer dsc files are trimmed, there is no space after "Files:". Patch
attached, fixed it for me.

On Sat, 4 Apr 2015 02:28:40 +0200 gregor herrmann  wrote:
> [...]
>   forking: mount -o loop /var/cache/pbuilder/build//qemu.19020.dev 
> /var/cache/pbuilder/build//qemu.19020
>   forking: umount /var/cache/pbuilder/build//qemu.19020
>
> but here it hangs forever and I also have a qemubuilder segfault.

Happens if KERNEL_IMAGE ist not set in pbuilderrc.
To build amd64 on amd64 I use the following ~/.pbuilderrc:
ARCH=amd64
KERNEL_IMAGE=/vmlinuz
INITRD=/initrd.img
MEMORY_MEGS=1024

Regards, Stefan
diff -uNrp cowdancer-0.73.orig/qemubuilder.c cowdancer-0.73/qemubuilder.c
--- cowdancer-0.73.orig/qemubuilder.c	2013-05-18 15:46:38.0 +0200
+++ cowdancer-0.73/qemubuilder.c	2015-05-08 22:28:14.178457350 +0200
@@ -579,7 +579,7 @@ static char* copy_dscfile(const char* ds
 	}
 	}
   if (!(buf[0]==' ')&&
-	  !strcmp(buf,"Files: "))
+	  !strncmp(buf,"Files:",6))
 	{
 	  filelist=1;
 	}


Bug#863133: debmirror: multiple problems with --debmarshal --getcontents --dry-run

2017-05-22 Thread Stefan Kisdaroczi
Package: debmirror
Version: 1:2.26
Tags: patch

Hi,

1) debmirror fails with --debmarshal and --getcontents

$ debmirror --rsync-extra=none --method http --keyring
/usr/share/keyrings/debian-archive-keyring.gpg --debmarshal
--getcontents mirror
Warning: --rsync-extra is not configured to mirror the trace files.
This configuration is not recommended.
Error while linking .temp/dists/sid/contrib/Contents-i386.gz: No such
file or directory
WARNING: releasing 1 pending lock...

link_contents_into_snapshot() is called i a $sect loop and contains
itself a $sect loop.
Patch 01-debmarshal-getcontents.diff removes the loop in
link_contents_into_snapshot().

2) debmirror fails with --debmarshal and --dry-run and updates latest symlink

Without --getcontents:
$ debmirror --rsync-extra=none --method http --keyring
/usr/share/keyrings/debian-archive-keyring.gpg --debmarshal --dry-run
mirror
...
[  0%] Getting: dists/sid/contrib/i18n/Translation-en.bz2... ok
linking dists/sid/contrib/i18n/Translation-en.bz2
Error while linking .temp/dists/sid/contrib/i18n/Translation-en.bz2:
No such file or directory at /usr/bin/debmirror line 2028.
WARNING: releasing 1 pending lock...

With --getcontents:
$ debmirror --rsync-extra=none --method http --keyring
/usr/share/keyrings/debian-archive-keyring.gpg --debmarshal --dry-run
--getcontents mirror
...
[100%] Getting: dists/sid/main/Contents-i386.diff/Index... ok
.temp/dists/sid/main/Contents-i386.diff/Index: No such file or
directory at /usr/bin/debmirror line 2571.
WARNING: releasing 1 pending lock...

Patch 02-debmarshal-dry-run.diff fixes --debmarshal in --dry-run mode.

3) debmirror fails with --dry-run and --getcontents if --diff is != none

debmirror --rsync-extra=none --method http --keyring
/usr/share/keyrings/debian-archive-keyring.gpg --dry-run --getcontents
mirror
...
http://ftp.debian.org/debian/dists/sid/main/Contents-i386.diff/Index
=> [100%] Getting: dists/sid/main/Contents-i386.diff/Index... ok
.temp/dists/sid/main/Contents-i386.diff/Index: No such file or
directory at /usr/bin/debmirror line 2570.
WARNING: releasing 1 pending lock...

Patch 03-dry-run-getcontents.diff

4) debmirror creates pool/ and dists/$dist/ directory tree with --dry-run

I did not expect that in --dry-run mode. Patch 04-dry-run.diff


Regards
Stefan
diff --git a/debmirror b/debmirror
index 51fc92d..059cc23 100755
--- a/debmirror
+++ b/debmirror
@@ -2007,17 +2007,14 @@ sub link_release_into_snapshot {
 }
 
 sub link_contents_into_snapshot {
-  my ($dist,$mirrordir,$arch,$tempdir) = @_;
+  my ($dist,$mirrordir,$arch,$sect,$tempdir) = @_;
   my $next = get_next_snapshot($dist);
-  push my @sects, @sections,  "";
-  foreach my $sect (@sects) {
-if ($sect ne "") {$sect = "/$sect";}
-if (exists $file_lists{"$tempdir/dists/$dist$sect/Contents-$arch.gz"}) {
-  unlink("$mirrordir/dists/$dist/$next$sect/Contents-$arch.gz");
-  link("$tempdir/dists/$dist$sect/Contents-$arch.gz",
-   "$mirrordir/dists/$dist/$next$sect/Contents-$arch.gz")
-or die "Error while linking 
$tempdir/dists/$dist$sect/Contents-$arch.gz: $!\n";
-}
+  say("Linking dists/$dist$sect/Contents-$arch.gz to $next");
+  if (exists $file_lists{"$tempdir/dists/$dist$sect/Contents-$arch.gz"}) {
+unlink("$mirrordir/dists/$dist/$next$sect/Contents-$arch.gz");
+link("$tempdir/dists/$dist$sect/Contents-$arch.gz",
+ "$mirrordir/dists/$dist/$next$sect/Contents-$arch.gz")
+  or die "Error while linking $tempdir/dists/$dist$sect/Contents-$arch.gz: 
$!\n";
   }
 }
 
@@ -2419,7 +2416,7 @@ sub get_contents_files {
 $files{"dists/$dist$sect/Contents-$arch.gz"}=1;
 $files{$tempdir."/"."dists/$dist$sect/Contents-$arch.gz"}=1;
 if ($debmarshal) {
-  link_contents_into_snapshot($dist,$mirrordir,$arch,$tempdir);
+  link_contents_into_snapshot($dist,$mirrordir,$arch,$sect,$tempdir);
 }
   };
   my $first = 1;
diff --git a/debmirror b/debmirror
index 059cc23..dd66362 100755
--- a/debmirror
+++ b/debmirror
@@ -995,8 +995,12 @@ foreach my $dist (@dists) {
 $files{"dists/$codename$dist_sdir/Release"}=1;
 $files{$tempdir."/"."dists/$codename$dist_sdir/Release"}=1;
 if ($debmarshal) {
-  $next = make_next_snapshot($mirrordir,$dist,$codename,
-$dist_sdir,$tempdir);
+  $next = get_next_snapshot($dist);
+  say("Making dists/$codename$dist_sdir snapshot $next");
+  make_dir("$mirrordir/dists/$dist/$next") if ! $dry_run;
+  say("Linking dists/$codename$dist_sdir/Release to $next");
+  link_release_into_snapshot($mirrordir,$dist,$next,$tempdir,
+ $codename,$dist_sdir,"Release") if ! $dry_run;
 }
 if (-f "$tdir/Release.gpg") {
   rename("$tdir/Release.gpg", 
"$tempdir/dists/$codename$dist_sdir/Release.gpg")
@@ -1004,8 +1008,9 @@ foreach my $dist (@dists) {
   $files{"dists/$codename$dist_sdir/Release.gpg"}=1;
   $files{$tempdir."/"."dists/$codename$dist_sdir/Re

Bug#670991: rsync 3.1

2017-05-22 Thread Stefan Kisdaroczi
Hi,

this happens if you run debmirror as root using rsync. rsync uses the
uid:gid from the server if run as root.
rsync 3.1 added the Options --usermap/--groupmap/--chown [1]. The
rsync version in Jessie is 3.1.1.

So, if you really need to run debmirror as root you can add
"--chown=x:y" to --rsync-options:
$ sudo debmirror --rsync-options="-aIL --partial --chown=me:me" ...

IMO this bug can be closed. Only happens if run as root with rsync on
wheezy and older.

Regards
Stefan

[1] https://download.samba.org/pub/rsync/src/rsync-3.1.0-NEWS



Bug#863194: debmirror traces

2017-05-23 Thread Stefan Kisdaroczi
Hi,

attached are two patches.

debmirror-version.patch: version string and --version option (set to 2.27)
debmirror-trace.patch: additional trace info (needs version string)

new trace output:
Tue May 23 14:05:22 UTC 2017
Date: Tue, 23 May 2017 16:05:22 +0200
Date-Started: Tue, 23 May 2017 16:04:18 +0200
Used debmirror version: 2.27
Running on host: mybox.xyz.local
Architectures: amd64 i386
Distributions: stretch jessie
Upstream-mirror: ftp.ch.debian.org

Regards, Stefan
diff --git a/debmirror b/debmirror
index 7e9e669..26bea48 100755
--- a/debmirror
+++ b/debmirror
@@ -629,6 +629,7 @@ our $doing_meta=1;
 our $ignore_missing_release=0;
 our $ignore_release_gpg=0;
 our $start_time = time;
+our $start_date =`LC_ALL=C date -R`;
 our $dry_run=0;
 our $do_dry_run=0;
 our $rsync_options="-aIL --partial";
@@ -1566,6 +1567,13 @@ if (! $do_dry_run) {
   make_dir("project/trace");
   open OUT, ">$tracefile" or die "$tracefile: $!";
   print OUT `LC_ALL=C date -u`;
+  print OUT "Date: ".`LC_ALL=C date -R`;
+  print OUT "Date-Started: $start_date";
+  print OUT "Used debmirror version: $version\n";
+  print OUT "Running on host: $hostname\n";
+  print OUT "Architectures: ".join(" ", @arches)."\n";
+  print OUT "Distributions: ".join(" ", @dists)."\n";
+  print OUT "Upstream-mirror: $host\n";
   close OUT;
 }
 


diff --git a/debmirror b/debmirror
index 51fc92d..7e9e669 100755
--- a/debmirror
+++ b/debmirror
@@ -89,6 +89,10 @@ download debs and source files and only simulates cleanup.
 
 Display a usage summary.
 
+=item B<--version>
+
+Print version number and exit.
+
 =item B<-h>, B<--host>=I
 
 Specify the remote host to mirror from. Defaults to I,
@@ -592,6 +596,8 @@ use if $] lt "5.022", "Net::INET6Glue";
 use Net::FTP;
 use LWP::UserAgent;
 
+our $version="2.27";
+
 # Yeah, I use too many global variables in this program.
 our $mirrordir;
 our @config_files;
@@ -703,6 +709,7 @@ my $state_cache_exptime;
 my $files_cache_version = "1.0";
 
 my $help;
+my $print_version;
 Getopt::Long::Configure qw(no_pass_through);
 GetOptions('debug'  => \$debug,
'progress|p' => \$progress,
@@ -757,9 +764,14 @@ GetOptions('debug'  => \$debug,
'retry-rsync-packages=s' => \$retry_rsync_packages,
'keyring=s'  => \@keyrings,
'help'   => \$help,
+   'version'=> \$print_version,
 ) or usage;
 usage if $help;
 usage("invalid number of arguments") if $ARGV[1];
+if ($print_version) {
+  print "debmirror $version\n";
+  exit(0);
+}
 
 # This parameter is so important that it is the only required parameter,
 # unless specified in a configuration file.




Bug#836819: simple-cdd fails with custom installer

2016-09-06 Thread Stefan Kisdaroczi
Package: simple-cdd
Version: 0.6.1

Hi,

simple-cdd fails with custom installer.
log and patch attached.

Cheers, Stefan
rsync: mkdir "/tmp/cdd/tmp/mirror/dists/wheezy/main/installer-i386/current" failed: No such file or directory (2)
rsync error: error in file IO (code 11) at main.c(674) [Receiver=3.1.1]
Traceback (most recent call last):
 File "/usr/bin/build-simple-cdd", line 637, in 
   scdd.build_mirror()
 File "/usr/bin/build-simple-cdd", line 280, in build_mirror
   self.get_custom_installer()
 File "/usr/bin/build-simple-cdd", line 299, in get_custom_installer
   subprocess.check_call(["rsync", "--delete", "-aWHr", os.path.join(di_dir, "."), current_installer])
 File "/usr/lib/python3.5/subprocess.py", line 581, in check_call
   raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['rsync', '--delete', '-aWHr', '../../d-i/i386/.', 'dists/wheezy/main/installer-i386/current/']' returned non-zero exit status 11
diff -uNrp simple-cdd-0.6.1.orig/build-simple-cdd simple-cdd-0.6.1/build-simple-cdd
--- simple-cdd-0.6.1.orig/build-simple-cdd	2015-08-15 13:00:52.0 +0200
+++ simple-cdd-0.6.1/build-simple-cdd	2016-09-06 09:59:33.076688587 +0200
@@ -295,7 +295,7 @@ class SimpleCDD:
 
 if os.path.isdir(di_dir):
 log.info("using installer from: %s", di_dir)
-os.makedirs(di_dir, exist_ok=True)
+os.makedirs(current_installer, exist_ok=True)
 subprocess.check_call(["rsync", "--delete", "-aWHr", os.path.join(di_dir, "."), current_installer])
 
 def compute_kernel_params(self):


Bug#839737: wrong path in package description

2016-10-04 Thread Stefan Kisdaroczi
Package: restricted-ssh-commands
Version: 0.3-1
Severity: minor

hi,

the command example in the package description uses /usr/bin/ instead
of /usr/lib/.

thanks, Stefan
diff -uNrp restricted-ssh-commands-0.3.orig/debian/control restricted-ssh-commands-0.3/debian/control
--- restricted-ssh-commands-0.3.orig/debian/control	2015-12-08 10:33:09.0 +0100
+++ restricted-ssh-commands-0.3/debian/control	2016-10-04 13:17:38.540563422 +0200
@@ -24,5 +24,5 @@ Description: Restrict SSH users to a pre
  Create a configuration file in /etc/restricted-ssh-commands/ and add
  following line to ~/.ssh/authorized_keys to use it
  .
-command="/usr/bin/restricted-ssh-commands",no-port-forwarding,
+command="/usr/lib/restricted-ssh-commands",no-port-forwarding,
 no-X11-forwarding,no-agent-forwarding,no-pty ssh-rsa [...]


Bug#698626: Preseeding netcfg/enable doesn't work

2013-01-21 Thread Stefan Kisdaroczi

Package: netcfg
Version: 1.103

I preseed the installer with "d-i netcfg/enable boolean false".

netcfg 1.103 ignores it at two places and writes the file 
/etc/network/interfaces.
The second write in finish-install.d/55netcfg-copy-config overwrites my 
own interface config.
I fixed it with the attached patch. Preseeding netcfg/enable worked with 
squeeze.


Regards
Stefan

...
Jan 18 11:43:51 debootstrap: Setting up tasksel (3.14) ...
Jan 18 11:43:51 debootstrap: Setting up tasksel-data (3.14) ...
Jan 18 11:43:52 apt-install: Queueing package keyboard-configuration for later 
installation
Jan 18 11:43:52 apt-install: Queueing package console-setup for later 
installation
Jan 18 11:43:52 netcfg[21719]: INFO: Starting netcfg v.1.103 (built 
20121210-1746)
Jan 18 11:43:52 netcfg[21719]: DEBUG: No interface given; clearing 
/etc/network/interfaces
Jan 18 11:43:52 netcfg[21719]: DEBUG: Writing informative header
Jan 18 11:43:52 netcfg[21719]: DEBUG: Success!
Jan 18 11:43:52 netcfg[21719]: DEBUG: Writing loopback interface
Jan 18 11:43:52 netcfg[21719]: DEBUG: Success!
Jan 18 11:43:52 base-installer: Using CD-ROM mount point /media/cdrom/
...
Jan 18 12:07:47 cdrom-detect: Unmounting and ejecting '/dev/sr0'
Jan 18 12:07:47 finish-install: info: Running 
/usr/lib/finish-install.d/20final-message
Jan 18 12:07:55 finish-install: info: Running 
/usr/lib/finish-install.d/30hw-detect
Jan 18 12:07:55 finish-install: info: Running 
/usr/lib/finish-install.d/50config-target-network
Jan 18 12:07:55 finish-install: info: Running 
/usr/lib/finish-install.d/55netcfg-copy-config
Jan 18 12:07:55 in-target: dpkg-query: no packages found matching 
network-manager
Jan 18 12:07:55 finish-install: cat: can't open '/tmp/connection_type': No such 
file or directory
Jan 18 12:07:55 finish-install: cat: can't open '/tmp/connection_type': No such 
file or directory
Jan 18 12:07:55 netcfg[2884]: INFO: Starting netcfg v.1.103 (built 
20121210-1746)
Jan 18 12:07:55 netcfg[2884]: DEBUG: No interface given; clearing 
/etc/network/interfaces
Jan 18 12:07:55 netcfg[2884]: DEBUG: Writing informative header
Jan 18 12:07:55 netcfg[2884]: DEBUG: Success!
Jan 18 12:07:55 netcfg[2884]: DEBUG: Writing loopback interface
Jan 18 12:07:55 netcfg[2884]: DEBUG: Success!
Jan 18 12:07:55 finish-install: info: Running 
/usr/lib/finish-install.d/60cleanup
Jan 18 12:07:55 finish-install: info: Running 
/usr/lib/finish-install.d/65partman-md
Jan 18 12:07:55 finish-install: info: Running 
/usr/lib/finish-install.d/90base-installer
Jan 18 12:07:55 finish-install: info: Running 
/usr/lib/finish-install.d/90console
Jan 18 12:07:55 finish-install: info: Running 
/usr/lib/finish-install.d/94save-logs
diff -uNrp netcfg-1.103/finish-install.d/55netcfg-copy-config netcfg-1.103+nmu1/finish-install.d/55netcfg-copy-config
--- netcfg-1.103/finish-install.d/55netcfg-copy-config	2012-12-03 21:55:19.0 +0100
+++ netcfg-1.103+nmu1/finish-install.d/55netcfg-copy-config	2013-01-18 16:45:35.424024352 +0100
@@ -3,6 +3,12 @@ set -e
 
 . /usr/share/debconf/confmodule
 
+db_get netcfg/enable
+
+if [ "$RET" = "false" ]; then
+  exit 0
+fi
+
 # File paths for various configuration files
 FILE_PATH_NM_CONFIG=etc/NetworkManager/system-connections
 FILE_INTERFACES=/etc/network/interfaces


Bug#637442: squeeze debmirror can't mirror wheezy

2013-03-26 Thread Stefan Kisdaroczi
2013/3/26 Alexis Huxley :
> [...]
> does one really need wheezy to mirror wheezy? :-(

No, you can install debmirror 2.14~bpo60+1 from squeeze-backports.

Regards Stefan


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



Bug#698626: Fwd: Bug#698626: Preseeding netcfg/enable doesn't work

2013-02-08 Thread Stefan Kisdaroczi
2013/2/8 Philipp Kern :
> On Mon, Jan 21, 2013 at 11:21:24AM +0100, Stefan Kisdaroczi wrote:
>> I preseed the installer with "d-i netcfg/enable boolean false".
>>
>> netcfg 1.103 ignores it at two places and writes the file
>> /etc/network/interfaces.
>> The second write in finish-install.d/55netcfg-copy-config overwrites
>> my own interface config.
>
> Where is that config coming from?

My own package.

> Because base-installer.d/40netcfg will create
> a loopback-only /etc/network/interfaces in the installer environment and then
> copy it to the target unconditionally. So you're mainly annoyed that another
> copy is done in finish-install after you did your manual changes to the
> target environment?

Exactly.

> From which I conclude that the initial copy is ok for you?

Yes.
I still think it's a bug, but it does not hurt...

thank you

Regards Stefan


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



Bug#345633: fp-compiler not finding Linux-unit identifiers

2006-07-22 Thread Stefan Kisdaroczi
Hi,

> Sirs !
> Using unit unix or oldlinux instead of linux solved my problem.
> Apparently, with the introduction of fp-compiler 1.9.4 [ from 1.0.4 ]
> many functions have been moved away from unit linux.
> This is not documented in the accompanying documentation fp-units-rtl.pdf,
> which seems to be the same as in 1.0.4
> However, an updated fp-unit-rtl.pdf exists at the Free Pascal website .=

From the /usr/share/doc/fp-docs/rtl.pdf from the fp-docs package 2.0.0-4 :

Chapter 16
Reference for unit Linux
16.1 Overview
The linux unit contains linux specific operating system calls.
The platform independent functionality of the FPC 1.0.X version of the linux 
unit has been split out
over the unix (1250), baseunix (70) and unixutil (1296) units.
The X86-specific parts have been moved to the X86 (1323) unit.
People wanting to use the old version (FPC 1.0.X and before) of the linux can 
use the oldlinux (742)
unit instead.

kisda




signature.asc
Description: PGP signature


signature.asc
Description: OpenPGP digital signature


Bug#343693: FTBFS on !i386: manifest changed

2005-12-17 Thread Stefan Kisdaroczi
Package: xorg-x11
Version: 6.8.99.903.dfsg.1-1
Tags: experimental patch

Hi,

attached patch fixes the manfests for arch != i386. tested an amd64.
Please apply for the next upload (hint: version 6.8.99.904 on x.org ;-)

Thank you
kisda

diff -uNrp xorg-x11-6.8.99.903.dfsg.1.orig/debian/MANIFEST.alpha.in 
xorg-x11-6.8.99.903.dfsg.1/debian/MANIFEST.alpha.in
--- xorg-x11-6.8.99.903.dfsg.1.orig/debian/MANIFEST.alpha.in2005-12-17 
00:55:37.0 +0100
+++ xorg-x11-6.8.99.903.dfsg.1/debian/MANIFEST.alpha.in 2005-12-17 
00:59:44.0 +0100
@@ -476,7 +476,6 @@ usr/X11R6/bin/mmapr
 usr/X11R6/bin/mmapw
 usr/X11R6/bin/oclock
 usr/X11R6/bin/pcitweak
-usr/X11R6/bin/pclcomp
 usr/X11R6/bin/proxymngr
 usr/X11R6/bin/revpath
 usr/X11R6/bin/rstart
@@ -1740,7 +1739,6 @@ usr/X11R6/man/man1/mkfontscale.1x
 usr/X11R6/man/man1/mkhtmlindex.1x
 usr/X11R6/man/man1/oclock.1x
 usr/X11R6/man/man1/pcitweak.1x
-usr/X11R6/man/man1/pclcomp.1x
 usr/X11R6/man/man1/proxymngr.1x
 usr/X11R6/man/man1/revpath.1x
 usr/X11R6/man/man1/rstart.1x
diff -uNrp xorg-x11-6.8.99.903.dfsg.1.orig/debian/MANIFEST.amd64.in 
xorg-x11-6.8.99.903.dfsg.1/debian/MANIFEST.amd64.in
--- xorg-x11-6.8.99.903.dfsg.1.orig/debian/MANIFEST.amd64.in2005-12-17 
00:55:37.0 +0100
+++ xorg-x11-6.8.99.903.dfsg.1/debian/MANIFEST.amd64.in 2005-12-17 
00:59:59.0 +0100
@@ -476,7 +476,6 @@ usr/X11R6/bin/mmapr
 usr/X11R6/bin/mmapw
 usr/X11R6/bin/oclock
 usr/X11R6/bin/pcitweak
-usr/X11R6/bin/pclcomp
 usr/X11R6/bin/proxymngr
 usr/X11R6/bin/revpath
 usr/X11R6/bin/rstart
@@ -1740,7 +1739,6 @@ usr/X11R6/man/man1/mkfontscale.1x
 usr/X11R6/man/man1/mkhtmlindex.1x
 usr/X11R6/man/man1/oclock.1x
 usr/X11R6/man/man1/pcitweak.1x
-usr/X11R6/man/man1/pclcomp.1x
 usr/X11R6/man/man1/proxymngr.1x
 usr/X11R6/man/man1/revpath.1x
 usr/X11R6/man/man1/rstart.1x
diff -uNrp xorg-x11-6.8.99.903.dfsg.1.orig/debian/MANIFEST.hppa.in 
xorg-x11-6.8.99.903.dfsg.1/debian/MANIFEST.hppa.in
--- xorg-x11-6.8.99.903.dfsg.1.orig/debian/MANIFEST.hppa.in 2005-12-17 
00:55:37.0 +0100
+++ xorg-x11-6.8.99.903.dfsg.1/debian/MANIFEST.hppa.in  2005-12-17 
01:00:18.0 +0100
@@ -491,7 +491,6 @@ usr/X11R6/bin/mmapr
 usr/X11R6/bin/mmapw
 usr/X11R6/bin/oclock
 usr/X11R6/bin/pcitweak
-usr/X11R6/bin/pclcomp
 usr/X11R6/bin/proxymngr
 usr/X11R6/bin/revpath
 usr/X11R6/bin/rstart
@@ -3526,7 +3525,6 @@ usr/X11R6/lib/modules/multimedia/theatre
 usr/X11R6/lib/modules/multimedia/theatre_detect_drv.so
 usr/X11R6/lib/modules/multimedia/theatre_drv.so
 usr/X11R6/lib/modules/multimedia/uda1380_drv.so
-usr/X11R6/man/man1/pclcomp.1x
 usr/X11R6/man/man1/xdbedizzy.1x
 usr/X11R6/man/man1/xdpr.1x
 usr/X11R6/man/man1/xpr.1x
diff -uNrp xorg-x11-6.8.99.903.dfsg.1.orig/debian/MANIFEST.ia64.in 
xorg-x11-6.8.99.903.dfsg.1/debian/MANIFEST.ia64.in
--- xorg-x11-6.8.99.903.dfsg.1.orig/debian/MANIFEST.ia64.in 2005-12-17 
00:55:37.0 +0100
+++ xorg-x11-6.8.99.903.dfsg.1/debian/MANIFEST.ia64.in  2005-12-17 
01:00:36.0 +0100
@@ -476,7 +476,6 @@ usr/X11R6/bin/mmapr
 usr/X11R6/bin/mmapw
 usr/X11R6/bin/oclock
 usr/X11R6/bin/pcitweak
-usr/X11R6/bin/pclcomp
 usr/X11R6/bin/proxymngr
 usr/X11R6/bin/revpath
 usr/X11R6/bin/rstart
@@ -3559,7 +3558,6 @@ usr/X11R6/man/man1/XevieQueryVersion.3x
 usr/X11R6/man/man1/XevieSelectInput.3x
 usr/X11R6/man/man1/XevieSendEvent.3x
 usr/X11R6/man/man1/XevieStart.3x
-usr/X11R6/man/man1/pclcomp.1x
 usr/X11R6/man/man1/xdbedizzy.1x
 usr/X11R6/man/man1/xdpr.1x
 usr/X11R6/man/man1/xpr.1x
diff -uNrp xorg-x11-6.8.99.903.dfsg.1.orig/debian/MANIFEST.powerpc.in 
xorg-x11-6.8.99.903.dfsg.1/debian/MANIFEST.powerpc.in
--- xorg-x11-6.8.99.903.dfsg.1.orig/debian/MANIFEST.powerpc.in  2005-12-17 
00:55:37.0 +0100
+++ xorg-x11-6.8.99.903.dfsg.1/debian/MANIFEST.powerpc.in   2005-12-17 
01:00:57.0 +0100
@@ -475,7 +475,6 @@ usr/X11R6/bin/mmapr
 usr/X11R6/bin/mmapw
 usr/X11R6/bin/oclock
 usr/X11R6/bin/pcitweak
-usr/X11R6/bin/pclcomp
 usr/X11R6/bin/proxymngr
 usr/X11R6/bin/revpath
 usr/X11R6/bin/rstart
@@ -1737,7 +1736,6 @@ usr/X11R6/man/man1/mkfontscale.1x
 usr/X11R6/man/man1/mkhtmlindex.1x
 usr/X11R6/man/man1/oclock.1x
 usr/X11R6/man/man1/pcitweak.1x
-usr/X11R6/man/man1/pclcomp.1x
 usr/X11R6/man/man1/proxymngr.1x
 usr/X11R6/man/man1/revpath.1x
 usr/X11R6/man/man1/rstart.1x
diff -uNrp xorg-x11-6.8.99.903.dfsg.1.orig/debian/MANIFEST.sparc.in 
xorg-x11-6.8.99.903.dfsg.1/debian/MANIFEST.sparc.in
--- xorg-x11-6.8.99.903.dfsg.1.orig/debian/MANIFEST.sparc.in2005-12-17 
00:55:37.0 +0100
+++ xorg-x11-6.8.99.903.dfsg.1/debian/MANIFEST.sparc.in 2005-12-17 
01:01:15.0 +0100
@@ -475,7 +475,6 @@ usr/X11R6/bin/mmapr
 usr/X11R6/bin/mmapw
 usr/X11R6/bin/oclock
 usr/X11R6/bin/pcitweak
-usr/X11R6/bin/pclcomp
 usr/X11R6/bin/proxymngr
 usr/X11R6/bin/revpath
 usr/X11R6/bin/rstart
@@ -1755,7 +1754,6 @@ usr/X11R6/man/man1/mkfontscale.1x
 usr/X11R6/man/man1/mkhtmlindex.1x
 usr/X11R6/man/man1/oclock.1x
 usr/X11R6/man/man1/pcitweak.1x
-usr/X11R6/man/man1/pclcomp.1x
 usr/X11R6/man/ma

Bug#304633: 304633@bugs.debian.org

2005-05-10 Thread Stefan Kisdaroczi
Hi,

this bug was fixed in the upstream cvs after Release 1.9.8. So Release 2.0.0 
will be ok.
These build-deps are added: ncurses-dev, libgpmg1-dev

> If I add libgpmg1-dev and libncurses5-dev to the Build-Depends, then
> the build fails later with errors building the docs.

Failed like this ?

 ) [1259] (./rtl.aux
 ! TeX capacity exceeded, sorry [save size=5000].
 [EMAIL PROTECTED]@bel ...dafter \ifx \csname [EMAIL PROTECTED]
   [EMAIL PROTECTED] \else 
[EMAIL PROTECTED]
 l.8892 ...228}{Types\relax }{subsection.33.2.1}{}}

 !  ==> Fatal error occurred, the output PDF file is not finished!
 Transcript written on rtl.log.
 make[1]: *** [rtl.pdf] Fehler 1
 make[1]: Leaving directory `/home/ks7/src/fpc-2.0.0/docs'
 make: *** [build-indep-stamp] Fehler 2
 debuild: fatal error at line 765:
 dpkg-buildpackage failed!

If you mean this failure, I fixed it like this:

1) Change save_size in /etc/texmf/texmf.d/95NonPath.cnf from 5000 to 1:

--- /etc/texmf/texmf.d/95NonPath.cnf.old2005-05-10 19:03:37.0 
+0200
+++ /etc/texmf/texmf.d/95NonPath.cnf2005-05-10 19:04:06.0 +0200
@@ -135,7 +135,7 @@ hyph_size = 1000% number of hyph
 nest_size = 500% simultaneous semantic levels (e.g., groups)
 max_in_open = 15   % simultaneous input files and error insertions
 param_size = 5000  % simultaneous macro parameters
-save_size = 5000   % for saving values outside current group
+save_size = 1  % for saving values outside current group
 stack_size = 1500  % simultaneous input sources

2) Run "update-texmf"
3) Run "fmtutil --all"

cu kisda


signature.asc
Description: OpenPGP digital signature


Bug#297881: fp-compiler: Internal compiler error

2005-03-03 Thread Stefan Kisdaroczi
Hi,

this seems to be fixed upstream, tested with Version 1.9.8:

$ fpc ./test.pas
Free Pascal Compiler version 1.9.8 [2005/02/16] for i386
Copyright (c) 1993-2005 by Florian Klaempfl
Target OS: Linux for i386
Compiling ./test.pas
test.pas(9,20) Error: Operation "or" not supported for types "Char" and
"Char"
test.pas(11) Fatal: There were 1 errors compiling module, stopping

Regards
  kisda

Frieder Kalisch wrote:
> Package: fp-compiler
> Version: 1.9.4-5
> Severity: normal
>
>
> The following (syntactically wrong) program generates an internal
> compiler error rather than a real error message. This should be fixed.
>
> Regards
>
> Frieder Kalisch
>
>
>
> program test;
>
> var
>   a: string;
>
> begin
>   a := ' =53';
>
>   while a[1] = ' ' or '=' do delete(a,1,1);
> end.
>
>
>
> $ fpc test.p
> Free Pascal Compiler version 1.9.4 [2004/08/12] for i386
> Copyright (c) 1993-2004 by Florian Klaempfl
> Target OS: Linux for i386
> Compiling test.p
> Panic : Internal compiler error, exiting.
> test.p(9,14) Fatal: Internal error 
>
>
>
> -- System Information:
> Debian Release: 3.1
>   APT prefers testing
>   APT policy: (500, 'testing')
> Architecture: i386 (i686)
> Kernel: Linux 2.6.8-2-686
> Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1) (ignored: LC_ALL set 
> to de_DE)
>
> Versions of packages fp-compiler depends on:
> ii  fp-units-rtl  1.9.4-5Free Pascal -- Runtime Library
>
> -- no debconf information
>
>
>



signature.asc
Description: OpenPGP digital signature


Bug#280705: #280705

2005-03-03 Thread Stefan Kisdaroczi
Hi,

i tried to reproduce your problem with fpc-1.9.8 and this small program:

program subrange;
var lkey : 1..15;
begin
  lkey := 6;
  case lkey of
6:writeln('6');
7:writeln('7');
  end;
end.

--> prints '6' as it should, and not '7'

Is this testcase ok?

Regards kisda



signature.asc
Description: OpenPGP digital signature


Bug#297881: fp-compiler: Internal compiler error

2005-03-04 Thread Stefan Kisdaroczi
Hi,

Carlos Laviola wrote:
> Either way, I'll upload 1.9.8 and incorporate your tips about which
> bugs have been closed already. If it's not too much to ask, could you
> give me a short description of where or how the bug was fixed, when
> appliable?

Informations from upstream cvs in following format:
[commit-date] [commit-log]
[diff-url]
[fixed-in-release]

>>#216057: fp-units-rtl: CRT unit gotoxy problem
>>#216060: fp-units-rtl: CRT unit gotoxy problem
>>-> fixed
2004/07/20 "some updates to xy2ansi"
http://www.freepascal.org/cgi-bin/viewcvs.cgi/fpc/rtl/unix/crt.pp.diff?r1=1.19&r2=1.20
1.9.6

>>#255960: minor error in the manpage
>>-> fixed
2005/01/10 "fix -Op"
http://www.freepascal.org/cgi-bin/viewcvs.cgi/fpc/install/man/man1/fpc.1.diff?r1=1.7&r2=1.8
1.9.8

>>#269853: fp-compiler: man page file broken
>>-> fixed
2005/01/10 "fix man page"
http://www.freepascal.org/cgi-bin/viewcvs.cgi/fpc/install/debian/fp-compiler.postinst.in.diff?r1=1.4&r2=1.5
1.9.8

>>#288955: strlcopy is broken
>>-> fixed
2004/11/04 "fixed result of strlcopy"
http://www.freepascal.org/cgi-bin/viewcvs.cgi/fpc/rtl/i386/strings.inc.diff?r1=1.15&r2=1.16
1.9.6

>>#297881: fp-compiler: Internal compiler error
>>-> fixed
2004/08/08 "fixed several ies when illegal operators were used"
http://www.freepascal.org/cgi-bin/viewcvs.cgi/fpc/compiler/nadd.pas.diff?r1=1.125&r2=1.126
1.9.6

>>There will stay still 2 open bugs:
>>#150150: fp-docs: should provide an alternate format to PDF
>>#280705: miscompiles case of subrange
>>I try to test the second...
I couldn't reproduce it and i posted my testprogram.

Regards
  kisda


signature.asc
Description: OpenPGP digital signature


Bug#383055: freepascal 2.0.4

2006-08-28 Thread Stefan Kisdaroczi
Hi,

Long awaited release 2.0.4 is finally out. See www.freepascal.org.

kisda




signature.asc
Description: OpenPGP digital signature


Bug#351923: freepascal 2.0.4-rc3

2006-08-07 Thread Stefan Kisdaroczi
A new upstream version 2.0.4-rc3 is available [1]. The final release 2.0.4 is
expected during August [2].

[1] http://svn.freepascal.org/svn/fpcbuild/tags/release_2_0_4_rc3
[2] http://www.freepascal.org

**
  What's New in 2.0.4
**

More than 1000 changes have been made to 2.0.4 since 2.0.2. As this is a bug
fix release, most are fixes for some issues, but new features and performance
enhancements have been added as well.

Compiler:
  * Lot of small bugs and compatibility fixes
  * Updated several translations
  * Improved code generation
  * Improved and fixed PIC code generation
  * Improved register allocation
  * Improved ansistring string code generation
  * Several alignment values increased so the requirements of modern processors
are met better
  * WINDOWS defined on all windows platforms (Win32, Win64, WinCE)
  * Parameter order for methods with structured results changed
(result pointer<->self swapped), please check such methods if they are
implemented in assembler
  * i386 compiler no longer needs environment variables set when installed on
an x86_64 Linux distribution

RTL:
  * Lot of small bug and compatibility fixes
  * 64 bit file pointer support on most targets
  * Faster integer to string conversion
  * Endian conversion routines added
  * Improved heap manager
  * Improved ansistring routines
  * PowerPC: Power3/4/5/PPC970 compatibility

FCL:
  * Lot of small bugs and compatibility fixes
  * Improved database support
  * The sqlitedataset, interbase, fpodbc, ddg, mysqldb3 and mysqldb4 units
are obsolete and replaced by the sqldb components
  * Oracle support added

Packages:
  * Lot of small bugs and compatibility fixes
  * Improved database support
  * Apple universal interfaces added

Free Vision:
  * New outline unit
  * Small bug fixes
  * Unix: much improved video and keyboard handling
  * Unix: Free Vision applications no longer need to link to libc
  * Linux: grab_vcsa utility to ensure vcsa access

IDE:
  * Small bug fixes
  * Redesigned directories window
  * Reorganised compiler options window
  * Option to use Ctrl+X,C,V for cut/copy/paste

Misc:
  * Improved documentation
  * Better cross compilation support




signature.asc
Description: OpenPGP digital signature


Bug#341830: [EMAIL PROTECTED]

2006-08-14 Thread Stefan Kisdaroczi
hi,

> [...]
> wsem:~$ locate libgdk-x11-2
> /usr/lib/libgdk-x11-2.0.so.0
> /usr/lib/libgdk-x11-2.0.so.0.600.4
> 
> wsem:~$ locate libgtk-x11-2
> /usr/lib/libgtk-x11-2.0.so.0
> /usr/lib/libgtk-x11-2.0.so.0.600.4
> 
> I have the libs... what's up?

You need the packages libgtk2.0-dev and libglib2.0-dev. See also bug #337990.

kisda



signature.asc
Description: OpenPGP digital signature


Bug#423099: FP-IDE responds randomly to the mouse commands

2007-05-09 Thread Stefan Kisdaroczi
Hi,

this sounds like the bug reported at the freepascal bugtracker here: 
http://www.freepascal.org/mantis/view.php?id=8416
There is also a debian Bug about that: Package gpm #412927

I don't know if this is the same problem, but it sounds like.

Hope i could help.
kisda

TrialAndError schrieb:
> Package: fp-ide
> Version: 2.0.4-5
> 
> The FP-IDE responds randomly to the mouse commands (all menus and
> keyboard commands are working.
> 
> The bug is described by someone else on Ubuntu 6.06 but it exists on 
> Debian/Lenny too. fp-ide 2.0.0-4 works fine with Lenny.
> 
> http://www.nabble.com/FP-IDE-FPC204-and-Ubuntu-6.06-t3524367.html
> 
> 
> 




signature.asc
Description: OpenPGP digital signature