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

Re: Renaming a library.



Charles Plessy wrote:

> Together with Upstream and the Fedora packager, we decided some time ago
> that a
> library in a package I am preparing will be renamed in Debian and Fedora,
> from
> ‘libread’ to ‘libstaden-read’.
> 
> In Fedora, this is done by using sed on some ‘.in’ files:
> http://cvs.fedoraproject.org/viewvc/rpms/staden-io_lib/devel/staden-io_lib.spec?revision=1.4&view=markup
> 
> I was wondering if modifying the corresponding ‘.am’ and rerunning the
> autotools, but I get the followign error after applying the following
> patch:

You can modify the Makefile.in. So you don't need to run the
autotools chain.

> --- a/io_lib/Makefile.am
> +++ b/io_lib/Makefile.am
> @@ -1,6 +1,6 @@
> -lib_LIBRARIES = libread.a
> +lib_LIBRARIES = libstaden-read.a
>  
> -libread_a_SOURCES = \
> +libstaden-read_a_SOURCES = \

Replace the minus with an underscore:

libstaden_read_a_SOURCES = ...

in such variables and you will get rid of:

> io_lib/Makefile.am:3: bad characters in variable name
> `libstaden-read_a_SOURCES'

those errors. Then everything should be fine.

Regards, Daniel
-- 
Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss für nur 17,95 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02


Reply to: