Bug#662946: bug 662946 equivs: does not strip subdirectories from files to be installed

2013-06-12 Thread Gioele Barabucci

Hello,

any chance that the patch that allows files in subdirectories be applied 
soon without the additional feature of allowing spaces in file names?


Regards,

--
Gioele Barabucci 


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



Bug#662946: bug 662946 equivs: does not strip subdirectories from files to be installed

2012-11-11 Thread Euan Thoms
Well, I can agree with you to a certain extent. I wouldn't use whitespace in 
any of my projects files. However I'm packaging Digikam, one of the shining 
stars of the open source world IMHO. And it includes a few files with white 
space in the names, files designed for humans, not computers or programmers 
like us. Bottom line is I can't package it unless I do something far worse than 
white space in file names.

PS, thanks for the reply... and for the great software that got me into debian 
packaging. I use equivs-build to package for PCLinuxOS too. I found it easier 
to make a simple deb and alien it rpm than to figure out how make a simple rpm.

Thomas Koch  wrote:

>Euan Thoms:
>> I started hacking a solution to the white spaces in files names. I got it
>> working for the equivs-build script but then hit a wall when I discovered
>> that dh_install itself does not support white-space in file names / paths.
>> The issue was raised in 2003 and basically the maintainer is not
>> interested in resolving the situation. I find it quite disturbing and
>> unacceptable that we can't have white-space in file names for core
>> packaging tools. Is there something I'm missing here? How can this stay
>> like this for nearly a decade?
>I can't help but smile and consider it a wonderful feature that the core 
>packaging tools shield my system against files with whitespace... :-)
>
>Thomas Koch, http://www.koch.ro


Bug#662946: bug 662946 equivs: does not strip subdirectories from files to be installed

2012-11-06 Thread Thomas Koch
Euan Thoms:
> I started hacking a solution to the white spaces in files names. I got it
> working for the equivs-build script but then hit a wall when I discovered
> that dh_install itself does not support white-space in file names / paths.
> The issue was raised in 2003 and basically the maintainer is not
> interested in resolving the situation. I find it quite disturbing and
> unacceptable that we can't have white-space in file names for core
> packaging tools. Is there something I'm missing here? How can this stay
> like this for nearly a decade?
I can't help but smile and consider it a wonderful feature that the core 
packaging tools shield my system against files with whitespace... :-)

Thomas Koch, http://www.koch.ro


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



Bug#662946: bug 662946 equivs: does not strip subdirectories from files to be installed

2012-11-06 Thread Euan Thoms

Sorry, my last message was sent in HTML, so I'll repeate below:

>
I agree with RjY, this is undesired behaviour to not allow full path of source 
files int the "Files:" section. What if there are two files with same name in 
different directories, copying them to the same dir as control file is not 
possible.

Also, it can't parse white space in file names.
<

I've tested RjY's patch and it works well. It's a simple ans small change that 
makes a real big difference to anyone doing basic packaging with equivs. Please 
consider the fix before it's too late to get into wheezy.

I started hacking a solution to the white spaces in files names. I got it 
working for the equivs-build script but then hit a wall when I discovered that 
dh_install itself does not support white-space in file names / paths. The issue 
was raised in 2003 and basically the maintainer is not interested in resolving 
the situation. I find it quite disturbing and unacceptable that we can't have 
white-space in file names for core packaging tools. Is there something I'm 
missing here? How can this stay like this for nearly a decade?


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



Bug#662946: equivs: does not strip subdirectories from files to be installed

2012-11-06 Thread Euan Thoms
I agree with RjY, this is undesired behaviour to not allow full path of source files int the "Files:" section. What if there are two files with same name in different directories, copying them to the same dir as control file is not possible.

Also, it can't parse white space in file names.


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



Bug#662946: equivs: does not strip subdirectories from files to be installed

2012-03-10 Thread Thomas Koch
Package: equivs
Version: 2.0.9
Followup-For: Bug #662946

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Hi,

as reported in #660765, I like to build my equivs packages under /tmp. I've done
so by cd-ing into tmp and calling equivs with the full path to the control
file. However in that case, equivs does not search for Files to be installed
relative to the control file's location (as expected) but relativ to the current
dir.

equivs should always search files to be installed relative to the location of
the control file.

BTW: It would also be nice to have glob expansion available.

The patch proposed earlier in this thread may have the problem that it can not
be used to install directories, which would be very nice?

Regards, Thomas Koch

- -- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages equivs depends on:
ii  debhelper  9.20120115
ii  dpkg-dev   1.16.1.2
ii  fakeroot   1.18.2-1
ii  make   3.81-8.1
ii  perl   5.14.2-7

equivs recommends no packages.

equivs suggests no packages.

- -- no debconf information

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBCAAGBQJPXE/oAAoJEAf8SJEEK6ZaQJcP/1vEz795UJOrmyWLVshK9XTm
/d119e7ZUKRepNju/Y9h2NjIWIP/KgBUe5+zTpTDbUIo+dh9GN9OLh/YxtwAEF67
pTnzU2HTzdS6P8EpviXjdm0UFh46x8dMukNf/5qOut17HLRvpTh9ie6oIg10ncm+
vOcbn9ikSx3FnIEKdTeKtgbqGzh04imYvmFOjXuWTt28fdlngQQ6h3DULIcyrJ/f
lJYAoPbjq/wmMAElOCCAGyu16DxIP59blB6CMqpzTr5gFZQsSD1OStUKfXP8OxuG
xtVX8rrShogx1jUG4lYKx9E/JdpxGAyDK+75BGjOZt2OCkEAOtS78X4m+U7qpFDC
cuG9/Ig6fFjm80iNP13JlkE+HkWntumzbOEhcKTL6TkNr/zhaoEyqIeS88iIf5mm
D0bRRDK4T+KQY81FMGp+jCzOOCWlM+1Jq5ddEWDd88UXqM27u23LiMiUwsoDvfHv
D0YyBbKr4yt+StGHEt9vUTaYdSVzvTzQDZ3dPE+tSAl+3TKs2ZW+mxgcjPacNvq0
kvyUr0E3aTLY2AhCf9RqO7UixpNGpKo2MR7a4Uf3xCX1r1eyTlBNEs2koBwp5oRC
/w/xTdW1tg7yuKJI6r3XG2pyoax0lKDk2CPmSSx+lkASe35XfXQ6CmFUNWUMGPkH
ufbktqGB52m+iXsypvQQ
=/MVn
-END PGP SIGNATURE-



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



Bug#662946: equivs: does not strip subdirectories from files to be installed

2012-03-07 Thread RjY
Package: equivs
Version: 2.0.9
Severity: normal
Tags: patch

For example, if I have a control file with

  Files: src/some_program /bin

equivs installs /bin/src/some_program instead of /bin/some_program.

Apologies if this is intentional behaviour, but it was unexpected, not
to mention quite inconvenient. :)

Here is a patch which uses basename to fix the install path:

--- /usr/bin/equivs-build   2011-09-30 07:22:24.0 +0100
+++ /tmp/equivs-build   2012-03-07 13:27:50.315122421 +
@@ -67,7 +67,7 @@
 for (split "\n", $control{'Files'} || "") {
 die "Cannot parse Files line: '$_'\n"
 unless m:^\s*(\S+)\s+(\S+)/?\s*$:;
-$install_files{"$2/$1"} = $1;
+$install_files{"$2/".basename($1)} = $1;
 }
 my %create_files = ();
 for (@{$control{'File'} || []}) {

Thanks in advance for your consideration.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages equivs depends on:
ii  debhelper  9.20120115
ii  dpkg-dev   1.16.1.2
ii  fakeroot   1.18.2-1
ii  make   3.81-8.1
ii  perl   5.14.2-9

equivs recommends no packages.

equivs suggests no packages.

-- no debconf information

-- 
http://rjy.org.uk/



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