Re: Avoiding a file being added to a package

2008-08-14 Thread Erast Benson
On Thu, 2008-08-14 at 20:00 +0530, Anil Gulecha wrote:
 On Thu, Aug 14, 2008 at 7:51 PM, Erast Benson [EMAIL PROTECTED] wrote:
  Another way is to use dpkg-divert - but in this case its a bug.
  charset.alias must be shipped with libiconv library only.
 
 I hung around at #elinks, and turns out the package has a copy of
 gettext in it. which geneates the file.

I think you need to ask debian/rules to use system-wide
libicon/gettext..

 Also the package has an 'ubuntu' in it (as it's already in the our
 repo.. i got it via apt-get source elinks)? Is this alright? If not,
 how do I remove ubuntu?

In debian/changelog for first line where version specified:

s/ubuntu/nexenta/

apt-upstream-tool does that for you. Also, over time it will do some
other policy things... so I would suggest to use it and try to improve
it if you'll find bugs and time permits.

Caution: you always need to check if a package exists in our repository
before getting it as is from Ubuntu. Could be that some amount of work
already done by someone and all we need is to fix existing package,
instead of importing new one from upstream.

 [EMAIL PROTECTED]:~/elinks_tmp# apt-get source elinks
 Reading package lists... Done
 Building dependency tree
 Reading state information... Done
 NOTICE: 'elinks' packaging is maintained in the 'Git' version control system 
 at:
 git://git.debian.org/git/collab-maint/elinks.git
 Need to get 3149kB of source archives.
 Get:1 ftp://linux.stanford.edu hardy/main elinks 0.11.3-5ubuntu2 (dsc) [1231B]
 Get:2 ftp://linux.stanford.edu hardy/main elinks 0.11.3-5ubuntu2 (tar) 
 [3127kB]
 Get:3 ftp://linux.stanford.edu hardy/main elinks 0.11.3-5ubuntu2 (diff) 
 [20.8kB]
 Fetched 3149kB in 0s (7305kB/s)
 dpkg-source: extracting elinks in elinks-0.11.3
 dpkg-source: unpacking elinks_0.11.3.orig.tar.gz
 dpkg-source: applying ./elinks_0.11.3-5ubuntu2.diff.gz
 [EMAIL PROTECTED]:~/elinks_tmp# ls
 elinks-0.11.3  elinks_0.11.3-5ubuntu2.diff.gz
 elinks_0.11.3-5ubuntu2.dsc  elinks_0.11.3.orig.tar.gz
 
 
 ~Anil
 

___
gnusol-devel mailing list
gnusol-devel@lists.sonic.net
http://lists.sonic.net/mailman/listinfo/gnusol-devel


Re: Avoiding a file being added to a package

2008-08-14 Thread Anil Gulecha
On Thu, Aug 14, 2008 at 8:23 PM, Erast Benson [EMAIL PROTECTED] wrote:
 On Thu, 2008-08-14 at 20:17 +0530, Anil Gulecha wrote:
 On Thu, Aug 14, 2008 at 8:11 PM, Erast Benson [EMAIL PROTECTED] wrote:
  On Thu, 2008-08-14 at 20:00 +0530, Anil Gulecha wrote:
  On Thu, Aug 14, 2008 at 7:51 PM, Erast Benson [EMAIL PROTECTED] wrote:
   Another way is to use dpkg-divert - but in this case its a bug.
   charset.alias must be shipped with libiconv library only.
  
  I hung around at #elinks, and turns out the package has a copy of
  gettext in it. which geneates the file.
 
  I think you need to ask debian/rules to use system-wide
  libicon/gettext..
 
  Also the package has an 'ubuntu' in it (as it's already in the our
  repo.. i got it via apt-get source elinks)? Is this alright? If not,
  how do I remove ubuntu?
 
  In debian/changelog for first line where version specified:
 
  s/ubuntu/nexenta/
 
  apt-upstream-tool does that for you. Also, over time it will do some
  other policy things... so I would suggest to use it and try to improve
  it if you'll find bugs and time permits.
 
  Caution: you always need to check if a package exists in our repository
  before getting it as is from Ubuntu. Could be that some amount of work
  already done by someone and all we need is to fix existing package,
  instead of importing new one from upstream.
 

 Ok.

 So what line do I need to add to sources.list to first check
 Nexenta-hardy sources. the current contents are as below, so it gets
 things from ubuntu's mirror.

 [EMAIL PROTECTED]:~/elinks_tmp# cat /etc/apt/sources.list
 ## In order to bootstrap from elatte, we include the elatte-unstable sources
 ## and then publish to hardy
 # deb http://apt.nexenta.org elatte-unstable main contrib non-free
 deb http://apt.nexenta.org hardy-unstable main contrib non-free

 ## In order to get older sources from elatte, enable one of the sources below
 # deb-src http://apt.nexenta.org/ elatte-stable main contrib non-free
 # deb-src http://apt.nexenta.org/ elatte-testing main contrib non-free
 # deb-src http://apt.nexenta.org/ elatte-unstable main contrib non-free

 ## Hardy/main is the primary target for upstream sources
 deb-src ftp://linux.stanford.edu/pub/mirrors/ubuntu/ hardy main
 deb-src ftp://linux.stanford.edu/pub/mirrors/ubuntu/ hardy-updates main
 deb-src ftp://linux.stanford.edu/pub/mirrors/ubuntu/ hardy-security main

 Just comment these three above and use apt-upstream-tool to avoid
 messing with apt-get directly...

Yes.. this would then get packages from Ubuntu. My question was that
Elinks is _already_ in the ncp2 repository, but with the charset.alias
bug.

In such a case, do i get the file via upstream (ubuntu) ad build it,
or do i get it from our own repository (ncp2 hardy) and build it from
there.

Regards
Anil
___
gnusol-devel mailing list
gnusol-devel@lists.sonic.net
http://lists.sonic.net/mailman/listinfo/gnusol-devel